drivers/usb/acpi: Don't add GPIOs to _CRS for Intel Bluetooth
[coreboot2.git] / src / soc / amd / common / vboot / vbnv_cmos.c
blob31c8128d6558fb74a3333397e2c9801c97b88503
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #include <security/vboot/vbnv.h>
4 #include <pc80/mc146818rtc.h>
6 void vbnv_platform_init_cmos(void)
8 /* The 0 argument tells cmos_init not to update CMOS unless it is invalid. */
9 cmos_init(0);
12 int vbnv_cmos_failed(void)
14 /* If CMOS power has failed, the century will be set to 0xff */
15 return cmos_read(RTC_CLK_ALTCENTURY) == 0xff;