summaryrefslogtreecommitdiff
path: root/src/soc
diff options
context:
space:
mode:
Diffstat (limited to 'src/soc')
-rw-r--r--src/soc/amd/common/block/lpc/espi_util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/soc/amd/common/block/lpc/espi_util.c b/src/soc/amd/common/block/lpc/espi_util.c
index 1b617fcccd..0878fb7663 100644
--- a/src/soc/amd/common/block/lpc/espi_util.c
+++ b/src/soc/amd/common/block/lpc/espi_util.c
@@ -183,9 +183,9 @@ int espi_open_io_window(uint16_t base, size_t size)
if (std_io != -1) {
espi_enable_decode(std_io);
return 0;
+ } else {
+ return espi_open_generic_io_window(base, size);
}
-
- return espi_open_generic_io_window(base, size);
}
static int espi_find_mmio_window(uint32_t win_base)