summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorNico Huber <nico.huber@secunet.com>2017-07-25 16:11:36 +0200
committerNico Huber <nico.h@gmx.de>2017-07-26 19:30:01 +0000
commit5ce0fe117626b10f327fe279f64856cde575946c (patch)
tree15cf66c456de8e82f19b1615aa11adf01e668ee6 /src/lib
parenta81f32192486952979d505e51ba6ae7a7d30e91d (diff)
downloadcoreboot-5ce0fe117626b10f327fe279f64856cde575946c.tar.xz
Port cmos.default handling to C environment bootblock
Gather related code in the new file drivers/pc80/rtc/mc146818rtc_boot.c, call sanitize_cmos() from C environment bootblock. Change-Id: Ia5c64de208a5986299c0508d0e11eeb8473deef1 Signed-off-by: Nico Huber <nico.huber@secunet.com> Reviewed-on: https://review.coreboot.org/20768 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/bootblock.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/bootblock.c b/src/lib/bootblock.c
index b859e1ea4e..2e228c6d32 100644
--- a/src/lib/bootblock.c
+++ b/src/lib/bootblock.c
@@ -36,6 +36,7 @@ asmlinkage void bootblock_main_with_timestamp(uint64_t base_timestamp)
if (IS_ENABLED(CONFIG_COLLECT_TIMESTAMPS) && _timestamp_size > 0)
timestamp_init(base_timestamp);
+ sanitize_cmos();
cmos_post_init();
bootblock_soc_early_init();