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>
This commit is contained in:
parent
0990fbf2d9
commit
1eb02592b3
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue