summaryrefslogtreecommitdiffstats
path: root/src/lib/bootblock.c
diff options
context:
space:
mode:
authorAaron Durbin <adurbin@chromium.org>2016-02-24 18:56:00 -0600
committerAaron Durbin <adurbin@chromium.org>2016-02-26 02:16:14 +0100
commitbe7cbdcc9df8028b129dd155400ae0fe8f236351 (patch)
tree8b0124e6a7bbd33f62a2cfe42880241ded45fcf8 /src/lib/bootblock.c
parent0aa7d247ae2ca3ac8f9ae2a8dced478fa340c120 (diff)
downloadcoreboot-be7cbdcc9df8028b129dd155400ae0fe8f236351.tar.gz
coreboot-be7cbdcc9df8028b129dd155400ae0fe8f236351.tar.bz2
coreboot-be7cbdcc9df8028b129dd155400ae0fe8f236351.zip
lib/bootblock: provide SoC callback parity with mainboard
There was no 'early' call into the SoC code prior to console getting initialized. Not having this enforces the mainboard to drive the setup of the console which typically just ends up calling into the SoC code. Provide a SoC early init call to handle this without having to duplicate the same code in mainboards utilizing the same SoC. Change-Id: Ia233dc3ae89a77df284d6d5cf5b2b051ad3be089 Signed-off-by: Aaron Durbin <adurbin@chromium.org> Reviewed-on: https://review.coreboot.org/13791 Reviewed-by: Furquan Shaikh <furquan@google.com> Tested-by: build bot (Jenkins) Reviewed-by: Andrey Petrov <andrey.petrov@intel.com> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Diffstat (limited to 'src/lib/bootblock.c')
-rw-r--r--src/lib/bootblock.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/bootblock.c b/src/lib/bootblock.c
index 4a36a58f853d..658eea45c99d 100644
--- a/src/lib/bootblock.c
+++ b/src/lib/bootblock.c
@@ -25,6 +25,7 @@
DECLARE_OPTIONAL_REGION(timestamp);
__attribute__((weak)) void bootblock_mainboard_early_init(void) { /* no-op */ }
+__attribute__((weak)) void bootblock_soc_early_init(void) { /* do nothing */ }
__attribute__((weak)) void bootblock_soc_init(void) { /* do nothing */ }
__attribute__((weak)) void bootblock_mainboard_init(void) { /* do nothing */ }
@@ -36,6 +37,7 @@ void main(void)
if (IS_ENABLED(CONFIG_COLLECT_TIMESTAMPS) && _timestamp_size > 0)
timestamp_init(timestamp_get());
+ bootblock_soc_early_init();
bootblock_mainboard_early_init();
if (IS_ENABLED(CONFIG_BOOTBLOCK_CONSOLE)) {