summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAngel Pons <th3fanbus@gmail.com>2021-04-17 13:36:58 +0200
committerPatrick Georgi <pgeorgi@google.com>2021-04-21 09:18:09 +0000
commitb48e6357e823dd6b01c9a0c9122079489ce8f190 (patch)
treede382c137d807dca5d6193a4148e42597b9b97f4
parent6a2ece7bd11d5ab2015af6ae01f119c1b532ca19 (diff)
downloadcoreboot-b48e6357e823dd6b01c9a0c9122079489ce8f190.tar.xz
soc/intel/xeon_sp: Drop unused functions and prototypes
No definition exists for pmc_set_disb() and rtc_failure() is not called. Change-Id: I3a68e1fc55c62193735a46caf9f70dd9ee0b7349 Signed-off-by: Angel Pons <th3fanbus@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/52466 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org> Reviewed-by: Michael Niewöhner <foss@mniewoehner.de> Reviewed-by: Marc Jones <marc@marcjonesconsulting.com>
-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)
{