From 1eb02592b3c3dd4970524db80e232f32bb0248e4 Mon Sep 17 00:00:00 2001 From: Martin Roth Date: Wed, 20 Sep 2017 19:00:48 -0600 Subject: soc/intel/cannonlake: Remove old soc_get_rtc_failed function In coreboot commit bcd0bdabed (soc/intel/cannonlake: add rtc failure checking), the function soc_get_rtc_failed was supposed to be moved, but the old function was not removed, causing a build error. BUG=b:63054105 Change-Id: I31c1966af413df3f5a5492a5dd891a6eb26a1fc4 Signed-off-by: Martin Roth Reviewed-on: https://review.coreboot.org/21616 Tested-by: build bot (Jenkins) Reviewed-by: Marshall Dawson Reviewed-by: Aaron Durbin --- src/soc/intel/cannonlake/pmc.c | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/src/soc/intel/cannonlake/pmc.c b/src/soc/intel/cannonlake/pmc.c index a91e5eaecd..e9972a6bd8 100644 --- a/src/soc/intel/cannonlake/pmc.c +++ b/src/soc/intel/cannonlake/pmc.c @@ -87,22 +87,6 @@ static void pch_set_acpi_mode(void) } } -int soc_get_rtc_failed(void) -{ - uint8_t reg8; - int rtc_failed; - uint8_t *pmcbase = pmc_mmio_regs(); - - reg8 = read8(pmcbase + GEN_PMCON_B); - rtc_failed = reg8 & RTC_BATTERY_DEAD; - if (rtc_failed) { - reg8 &= ~RTC_BATTERY_DEAD; - write8(pmcbase + GEN_PMCON_B, reg8); - printk(BIOS_DEBUG, "rtc_failed = 0x%x\n", rtc_failed); - } - return rtc_failed; -} - static void config_deep_sX(uint32_t offset, uint32_t mask, int sx, int enable) { uint32_t reg; -- cgit v1.2.3