summaryrefslogtreecommitdiff
path: root/src/soc/intel/cannonlake/pmc.c
diff options
context:
space:
mode:
authorMartin Roth <martinroth@google.com>2017-09-20 19:00:48 -0600
committerAaron Durbin <adurbin@chromium.org>2017-09-21 01:48:20 +0000
commit1eb02592b3c3dd4970524db80e232f32bb0248e4 (patch)
tree11c8b1ef5e035b67559ac0a261123e7c4c7ac3a4 /src/soc/intel/cannonlake/pmc.c
parent0990fbf2d9b8a0070866788b185bdd4bf6e5537e (diff)
downloadcoreboot-1eb02592b3c3dd4970524db80e232f32bb0248e4.tar.xz
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 <martinroth@google.com> Reviewed-on: https://review.coreboot.org/21616 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Marshall Dawson <marshalldawson3rd@gmail.com> Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'src/soc/intel/cannonlake/pmc.c')
-rw-r--r--src/soc/intel/cannonlake/pmc.c16
1 files changed, 0 insertions, 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;