summaryrefslogtreecommitdiff
path: root/src/mainboard
diff options
context:
space:
mode:
authorIru Cai <mytbk920423@gmail.com>2016-01-26 10:25:51 +0800
committerMartin Roth <martinroth@google.com>2016-01-29 17:03:52 +0100
commite10d07e336569ff5abbc3fbbffeeccbb165de681 (patch)
tree6cf02e48d384b4b6d9d3ad64c1b2d7a4e1de3f50 /src/mainboard
parent6d2ca021014aa967fc0be83f2f0d76e423db2037 (diff)
downloadcoreboot-e10d07e336569ff5abbc3fbbffeeccbb165de681.tar.xz
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 <mr.nuke.me@gmail.com>
Diffstat (limited to 'src/mainboard')
-rw-r--r--src/mainboard/cubietech/cubieboard/bootblock.c5
1 files changed, 4 insertions, 1 deletions
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();
}