Iru Cai (mytbk920423@gmail.com) just uploaded a new patch set to gerrit, which you can find at https://review.coreboot.org/13448
-gerrit
commit 3c31f192159397c45557553093dd6cae2a26b407 Author: Iru Cai mytbk920423@gmail.com Date: Tue Jan 26 10:25:51 2016 +0800
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 --- src/mainboard/cubietech/cubieboard/bootblock.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/mainboard/cubietech/cubieboard/bootblock.c b/src/mainboard/cubietech/cubieboard/bootblock.c index e4a0313..1f6a77f 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(); }