intel/broadwell: guard CHROMEOS support better
Since CHROMEOS_VBNV_* are selected by mainboards, they may be active without CHROMEOS being selected. In this case, they should be a no-op. Change-Id: I3b84e2a919ffaa809d713e72e5e4df7a7575e6b9 Signed-off-by: Patrick Georgi <pgeorgi@chromium.org> Reviewed-on: http://review.coreboot.org/9954 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
This commit is contained in:
parent
bd74a4b2d2
commit
320ad820aa
|
@ -178,7 +178,7 @@ static void pch_power_options(device_t dev)
|
|||
enable_alt_smi(config->alt_gp_smi_en);
|
||||
}
|
||||
|
||||
#if IS_ENABLED(CONFIG_CHROMEOS_VBNV_CMOS)
|
||||
#if IS_ENABLED(CONFIG_CHROMEOS) && IS_ENABLED(CONFIG_CHROMEOS_VBNV_CMOS)
|
||||
/*
|
||||
* Preserve Vboot NV data when clearing CMOS as it will
|
||||
* have been re-initialized already by Vboot firmware init.
|
||||
|
@ -210,7 +210,7 @@ static void pch_rtc_init(struct device *dev)
|
|||
printk(BIOS_DEBUG, "rtc_failed = 0x%x\n", rtc_failed);
|
||||
}
|
||||
|
||||
#if IS_ENABLED(CONFIG_CHROMEOS_VBNV_CMOS)
|
||||
#if IS_ENABLED(CONFIG_CHROMEOS) && IS_ENABLED(CONFIG_CHROMEOS_VBNV_CMOS)
|
||||
pch_cmos_init_preserve(rtc_failed);
|
||||
#else
|
||||
cmos_init(rtc_failed);
|
||||
|
|
Loading…
Reference in New Issue