From 3711be4e18e621d3d5b6c373493fd81f2305708d Mon Sep 17 00:00:00 2001 From: Jincheng Li Date: Fri, 16 May 2025 11:25:59 +0800 Subject: [PATCH] soc/intel/xeon_sp: Use Kconfig to define SPI_BASE_ADDRESS SPI_BASE_ADDRESS is a fixed value to align with SoC and FSP usage. Use Kconfig to define it so that SoC could override it per their needs. Change-Id: If5e5338106deb18d108a70f5ffcd96dcb1e5e25a Signed-off-by: Jincheng Li Reviewed-on: https://review.coreboot.org/c/coreboot/+/88047 Tested-by: build bot (Jenkins) Reviewed-by: Shuo Liu --- src/soc/intel/xeon_sp/Kconfig | 6 ++++++ src/soc/intel/xeon_sp/include/soc/iomap.h | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/soc/intel/xeon_sp/Kconfig b/src/soc/intel/xeon_sp/Kconfig index f61de56105..24923a5a29 100644 --- a/src/soc/intel/xeon_sp/Kconfig +++ b/src/soc/intel/xeon_sp/Kconfig @@ -64,6 +64,12 @@ config MAX_CPUS int default 80 +config INTEL_SPI_BASE_ADDRESS + hex + default 0xfe010000 + help + SPI BAR0 Base address. + config INTEL_ACPI_BASE_ADDRESS hex default 0x500 diff --git a/src/soc/intel/xeon_sp/include/soc/iomap.h b/src/soc/intel/xeon_sp/include/soc/iomap.h index ccc7e44d23..baeb7556f7 100644 --- a/src/soc/intel/xeon_sp/include/soc/iomap.h +++ b/src/soc/intel/xeon_sp/include/soc/iomap.h @@ -15,7 +15,7 @@ #define MAP_ENTRY_LIMIT_32(reg_, mask_bits_, desc_) MAP_ENTRY(reg_, 0, 1, mask_bits_, desc_) // SPI BAR0 MMIO base address -#define SPI_BASE_ADDRESS 0xfe010000 +#define SPI_BASE_ADDRESS CONFIG_INTEL_SPI_BASE_ADDRESS #define SPI_BASE_SIZE 0x1000 #define TCO_BASE_ADDRESS 0x400