summaryrefslogtreecommitdiff
path: root/src/include/pc80
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/include/pc80
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/include/pc80')
-rw-r--r--src/include/pc80/mc146818rtc.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/include/pc80/mc146818rtc.h b/src/include/pc80/mc146818rtc.h
index f6a1c04372..5d7497df56 100644
--- a/src/include/pc80/mc146818rtc.h
+++ b/src/include/pc80/mc146818rtc.h
@@ -254,8 +254,15 @@ static inline void cmos_post_log(void) {}
static inline void cmos_post_init(void) {}
#endif /* CONFIG_CMOS_POST */
+#if IS_ENABLED(CONFIG_USE_OPTION_TABLE)
+void sanitize_cmos(void);
+#else
+static inline void sanitize_cmos(void) {}
+#endif /* CONFIG_USE_OPTION_TABLE */
+
#else /* !CONFIG_ARCH_X86 */
static inline void cmos_post_init(void) {}
+static inline void sanitize_cmos(void) {}
#endif /* CONFIG_ARCH_X86 */
#endif /* PC80_MC146818RTC_H */