diff options
author | Arthur Heymans <arthur@aheymans.xyz> | 2019-06-04 14:12:01 +0200 |
---|---|---|
committer | Nico Huber <nico.h@gmx.de> | 2019-11-10 22:40:59 +0000 |
commit | 2abbe467658a8e4479c381330e85e126c8f42a90 (patch) | |
tree | 814bb1a711c25c03e9b502520336bfdd98cad2df /src/soc/intel/broadwell/pmutil.c | |
parent | 1d4bdda47f030d01418936d3399856dddfa7f43b (diff) |
soc/intel/broadwell: Use common SB RTC code
Change-Id: Iedb9a8962ac1b4107e9192b0be610fb92d2cfdc6
Signed-off-by: Arthur Heymans <arthur@aheymans.xyz>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/33202
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Nico Huber <nico.h@gmx.de>
Diffstat (limited to 'src/soc/intel/broadwell/pmutil.c')
-rw-r--r-- | src/soc/intel/broadwell/pmutil.c | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/src/soc/intel/broadwell/pmutil.c b/src/soc/intel/broadwell/pmutil.c index 322e96f4a0..00db6156ec 100644 --- a/src/soc/intel/broadwell/pmutil.c +++ b/src/soc/intel/broadwell/pmutil.c @@ -451,32 +451,6 @@ int acpi_sci_irq(void) return sci_irq; } -int rtc_failure(void) -{ - u8 reg8; - int rtc_failed; -#if defined(__SIMPLE_DEVICE__) - pci_devfn_t dev = PCH_DEV_LPC; -#else - struct device *dev = PCH_DEV_LPC; -#endif - - reg8 = pci_read_config8(dev, GEN_PMCON_3); - rtc_failed = reg8 & RTC_BATTERY_DEAD; - if (rtc_failed) { - reg8 &= ~RTC_BATTERY_DEAD; - pci_write_config8(dev, GEN_PMCON_3, reg8); - printk(BIOS_DEBUG, "rtc_failed = 0x%x\n", rtc_failed); - } - - return !!rtc_failed; -} - -int vbnv_cmos_failed(void) -{ - return rtc_failure(); -} - int vboot_platform_is_resuming(void) { if (!(inw(ACPI_BASE_ADDRESS + PM1_STS) & WAK_STS)) |