summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/soc/amd/common/vboot/vbnv_cmos.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/soc/amd/common/vboot/vbnv_cmos.c b/src/soc/amd/common/vboot/vbnv_cmos.c
index 5baf923939..31c8128d65 100644
--- a/src/soc/amd/common/vboot/vbnv_cmos.c
+++ b/src/soc/amd/common/vboot/vbnv_cmos.c
@@ -3,6 +3,12 @@
#include <security/vboot/vbnv.h>
#include <pc80/mc146818rtc.h>
+void vbnv_platform_init_cmos(void)
+{
+ /* The 0 argument tells cmos_init not to update CMOS unless it is invalid. */
+ cmos_init(0);
+}
+
int vbnv_cmos_failed(void)
{
/* If CMOS power has failed, the century will be set to 0xff */