summaryrefslogtreecommitdiff
path: root/src/console
diff options
context:
space:
mode:
authorKyösti Mälkki <kyosti.malkki@gmail.com>2014-02-17 21:34:42 +0200
committerKyösti Mälkki <kyosti.malkki@gmail.com>2014-03-04 15:26:08 +0100
commit1d7541feeba372ec3d1d441442238e1c65972bd7 (patch)
tree03e53d513aa89deaf15e2751cd247cc9cb3d7037 /src/console
parent7e75f20477511c48f47416caed7301e852165a7f (diff)
downloadcoreboot-1d7541feeba372ec3d1d441442238e1c65972bd7.tar.xz
console: Fix includes
Do not pull in console hw-specific prototypes everywhere with console.h as those are not needed for higher levels. Move prototypes for UARTs next to other consoles. Change-Id: Icbc9cd3e5bdfdab85d7dccd7c3827bba35248fb8 Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: http://review.coreboot.org/5232 Tested-by: build bot (Jenkins) Reviewed-by: Edward O'Callaghan <eocallaghan@alterapraxis.com> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Diffstat (limited to 'src/console')
-rw-r--r--src/console/cbmem_console.c1
-rw-r--r--src/console/console.c6
-rw-r--r--src/console/uart8250_console.c1
-rw-r--r--src/console/uart8250mem_console.c1
4 files changed, 9 insertions, 0 deletions
diff --git a/src/console/cbmem_console.c b/src/console/cbmem_console.c
index 2c43f5c967..870ce2f2c4 100644
--- a/src/console/cbmem_console.c
+++ b/src/console/cbmem_console.c
@@ -18,6 +18,7 @@
*/
#include <console/console.h>
+#include <console/cbmem_console.h>
static void cbmemc_init_(void)
{
diff --git a/src/console/console.c b/src/console/console.c
index 081113c6db..334e14012a 100644
--- a/src/console/console.c
+++ b/src/console/console.c
@@ -18,6 +18,12 @@
*/
#include <console/console.h>
+#include <console/cbmem_console.h>
+#include <console/uart.h>
+#include <console/usb.h>
+#include <console/ne2k.h>
+#include <console/spkmodem.h>
+
#include <build.h>
#include <arch/hlt.h>
#include <arch/io.h>
diff --git a/src/console/uart8250_console.c b/src/console/uart8250_console.c
index 196412c628..86f1401d8c 100644
--- a/src/console/uart8250_console.c
+++ b/src/console/uart8250_console.c
@@ -18,6 +18,7 @@
*/
#include <console/console.h>
+#include <console/uart.h>
#include <uart8250.h>
static void ttyS0_init(void)
diff --git a/src/console/uart8250mem_console.c b/src/console/uart8250mem_console.c
index 3833e47a7b..eb4e0e0b7e 100644
--- a/src/console/uart8250mem_console.c
+++ b/src/console/uart8250mem_console.c
@@ -18,6 +18,7 @@
*/
#include <console/console.h>
+#include <console/uart.h>
#include <uart8250.h>
static u32 uart_bar = 0;