vboot: remove init_vbnv_cmos()
Instead of having each potential caller deal with the differences of cmos_init() and init_vbnv_cmos() when VBOOT is enabled put the correct logic within the callee, cmos_init(), for handling the vbnv in CMOS. The internal __cmos_init() routine returns when the CMOS area was cleared. BUG=b:63054105 Change-Id: Ia124bcd61d3ac03e899a4ecf3645fc4b7a558f03 Signed-off-by: Aaron Durbin <adurbin@chromium.org> Reviewed-on: https://review.coreboot.org/21549 Reviewed-by: Furquan Shaikh <furquan@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
@@ -36,8 +36,6 @@
|
||||
#include <cpu/x86/smm.h>
|
||||
#include <soc/pcr_ids.h>
|
||||
#include <soc/ramstage.h>
|
||||
#include <vboot/vbnv.h>
|
||||
#include <vboot/vbnv_layout.h>
|
||||
|
||||
static const struct reg_script pch_pmc_misc_init_script[] = {
|
||||
/* SLP_S4=4s, SLP_S3=50ms, disable SLP_X stretching after SUS loss. */
|
||||
@@ -124,10 +122,7 @@ static void pch_rtc_init(void)
|
||||
/* Ensure the date is set including century byte. */
|
||||
cmos_check_update_date();
|
||||
|
||||
if (IS_ENABLED(CONFIG_VBOOT_VBNV_CMOS))
|
||||
init_vbnv_cmos(rtc_failed);
|
||||
else
|
||||
cmos_init(rtc_failed);
|
||||
cmos_init(rtc_failed);
|
||||
}
|
||||
|
||||
static void pch_power_options(void)
|
||||
|
Reference in New Issue
Block a user