summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/soc/intel/xeon_sp/include/soc/pm.h6
-rw-r--r--src/soc/intel/xeon_sp/pmutil.c16
2 files changed, 0 insertions, 22 deletions
diff --git a/src/soc/intel/xeon_sp/include/soc/pm.h b/src/soc/intel/xeon_sp/include/soc/pm.h
index 8c26c6ace3..b4d6df987e 100644
--- a/src/soc/intel/xeon_sp/include/soc/pm.h
+++ b/src/soc/intel/xeon_sp/include/soc/pm.h
@@ -117,12 +117,6 @@ struct chipset_power_state {
/* Get base address PMC memory mapped registers. */
uint8_t *pmc_mmio_regs(void);
-/* Set the DISB after DRAM init */
-void pmc_set_disb(void);
-
-/* Return non-zero when RTC failure happened. */
-int rtc_failure(void);
-
uint16_t get_pmbase(void);
void pmc_lock_smi(void);
diff --git a/src/soc/intel/xeon_sp/pmutil.c b/src/soc/intel/xeon_sp/pmutil.c
index b057ab23fc..c63285c69b 100644
--- a/src/soc/intel/xeon_sp/pmutil.c
+++ b/src/soc/intel/xeon_sp/pmutil.c
@@ -126,22 +126,6 @@ int soc_get_rtc_failed(void)
return rtc_fail;
}
-int rtc_failure(void)
-{
- u8 reg8;
- int rtc_failed;
- /* PMC Controller Device 0x1F, Func 02 */
- reg8 = pci_read_config8(PCH_DEV_PMC, GEN_PMCON_B);
- rtc_failed = reg8 & RTC_BATTERY_DEAD;
- if (rtc_failed) {
- reg8 &= ~RTC_BATTERY_DEAD;
- pci_write_config8(PCH_DEV_PMC, GEN_PMCON_B, reg8);
- printk(BIOS_DEBUG, "rtc_failed = 0x%x\n", rtc_failed);
- }
-
- return !!rtc_failed;
-}
-
/* Return 0, 3, or 5 to indicate the previous sleep state. */
int soc_prev_sleep_state(const struct chipset_power_state *ps, int prev_sleep_state)
{