From b48e6357e823dd6b01c9a0c9122079489ce8f190 Mon Sep 17 00:00:00 2001 From: Angel Pons Date: Sat, 17 Apr 2021 13:36:58 +0200 Subject: [PATCH] soc/intel/xeon_sp: Drop unused functions and prototypes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit No definition exists for pmc_set_disb() and rtc_failure() is not called. Change-Id: I3a68e1fc55c62193735a46caf9f70dd9ee0b7349 Signed-off-by: Angel Pons Reviewed-on: https://review.coreboot.org/c/coreboot/+/52466 Tested-by: build bot (Jenkins) Reviewed-by: Tim Wawrzynczak Reviewed-by: Michael Niewöhner Reviewed-by: Marc Jones --- src/soc/intel/xeon_sp/include/soc/pm.h | 6 ------ src/soc/intel/xeon_sp/pmutil.c | 16 ---------------- 2 files changed, 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 8c26c6ace34c..b4d6df987e4b 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 b057ab23fce8..c63285c69b90 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) {