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>
This commit is contained in:
@@ -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 */
|
||||
|
Reference in New Issue
Block a user