armv7: Use same console initialization procedure for all ARM stages

Use same console initialization procedure for all ARM stages (bootblock,
romstage, and ramstage):

	#include <console/console.h>
	...
	console_init()
	...
	printk(level, format, ...)

Verified to boot on armv7/snow with console messages in all stages.

Change-Id: Idd689219035e67450ea133838a2ca02f8d74557e
Signed-off-by: Hung-Te Lin <hungte@chromium.org>
Signed-off-by: David Hendricks <dhendrix@chromium.org>
Reviewed-on: http://review.coreboot.org/2301
Tested-by: build bot (Jenkins)
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
This commit is contained in:
Hung-Te Lin
2013-02-06 22:01:18 +08:00
committed by Stefan Reinauer
parent 580fa2bf31
commit b868d40830
11 changed files with 40 additions and 56 deletions

View File

@ -30,14 +30,11 @@
#include <uart8250.h>
#endif
#if CONFIG_CPU_SAMSUNG_EXYNOS5
#include <cpu/samsung/exynos5-common/uart.h>
#endif
#if !defined(__ROMCC__) && CONFIG_CONSOLE_SERIAL_UART
unsigned char uart_rx_byte(void);
void uart_tx_byte(unsigned char data);
void uart_tx_flush(void);
void uart_init(void);
#endif
#endif /* UART_H */