diff options
-rw-r--r-- | src/soc/amd/common/block/lpc/espi_util.c | 10 | ||||
-rw-r--r-- | src/soc/amd/picasso/include/soc/iomap.h | 1 |
2 files changed, 2 insertions, 9 deletions
diff --git a/src/soc/amd/common/block/lpc/espi_util.c b/src/soc/amd/common/block/lpc/espi_util.c index 3750a8b7f9..29028a4b72 100644 --- a/src/soc/amd/common/block/lpc/espi_util.c +++ b/src/soc/amd/common/block/lpc/espi_util.c @@ -19,14 +19,8 @@ void espi_update_static_bar(uintptr_t bar) static uintptr_t espi_get_bar(void) { - uintptr_t espi_spi_base; - - if (espi_bar) - return espi_bar; - - espi_spi_base = lpc_get_spibase(); - espi_update_static_bar(espi_spi_base + ESPI_OFFSET_FROM_BAR); - + if (ENV_X86 && !espi_bar) + espi_update_static_bar(lpc_get_spibase() + ESPI_OFFSET_FROM_BAR); return espi_bar; } diff --git a/src/soc/amd/picasso/include/soc/iomap.h b/src/soc/amd/picasso/include/soc/iomap.h index 295aa53089..cb845c44d3 100644 --- a/src/soc/amd/picasso/include/soc/iomap.h +++ b/src/soc/amd/picasso/include/soc/iomap.h @@ -6,7 +6,6 @@ /* MMIO Ranges */ /* IO_APIC_ADDR defined in arch/x86 0xfec00000 */ #define SPI_BASE_ADDRESS 0xfec10000 -#define ESPI_BASE_ADDRESS 0xfec20000 #if CONFIG(HPET_ADDRESS_OVERRIDE) #error HPET address override is not allowed and must be fixed at 0xfed00000 |