From e10d07e336569ff5abbc3fbbffeeccbb165de681 Mon Sep 17 00:00:00 2001 From: Iru Cai Date: Tue, 26 Jan 2016 10:25:51 +0800 Subject: mainboard/cubieboard: use bootblock_mainboard_early_init since commit f1e321001d5954096f06f9a43138219a9a46536e, the UART init should be in bootblock_mainboard_early_init() which runs before console init. (see src/lib/bootblock.c) Change-Id: Ib00afdd6e81e7689fbd743c8a5f547d424896d71 Reviewed-on: https://review.coreboot.org/13448 Tested-by: build bot (Jenkins) Reviewed-by: Alexandru Gagniuc --- src/mainboard/cubietech/cubieboard/bootblock.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/mainboard') diff --git a/src/mainboard/cubietech/cubieboard/bootblock.c b/src/mainboard/cubietech/cubieboard/bootblock.c index e4a0313bd4..1f6a77fd1d 100644 --- a/src/mainboard/cubietech/cubieboard/bootblock.c +++ b/src/mainboard/cubietech/cubieboard/bootblock.c @@ -127,7 +127,7 @@ static void cubieboard_raminit(void) ////ram_check((u32)test_base, (u32)test_base + 0x1000); } -void bootblock_mainboard_init(void) +void bootblock_mainboard_early_init(void) { /* A10 Timer init uses the 24MHz clock, not PLLs, so we can init it very * early on to get udelay, which is used almost everywhere else. @@ -137,6 +137,9 @@ void bootblock_mainboard_init(void) cubieboard_setup_clocks(); cubieboard_setup_gpios(); cubieboard_enable_uart(); +} +void bootblock_mainboard_init(void) +{ cubieboard_raminit(); } -- cgit v1.2.3