summaryrefslogtreecommitdiff
path: root/src/soc/amd/common/block/lpc
diff options
context:
space:
mode:
Diffstat (limited to 'src/soc/amd/common/block/lpc')
-rw-r--r--src/soc/amd/common/block/lpc/Kconfig5
-rw-r--r--src/soc/amd/common/block/lpc/espi_util.c3
2 files changed, 7 insertions, 1 deletions
diff --git a/src/soc/amd/common/block/lpc/Kconfig b/src/soc/amd/common/block/lpc/Kconfig
index 1ec8dd4668..3aaccf344d 100644
--- a/src/soc/amd/common/block/lpc/Kconfig
+++ b/src/soc/amd/common/block/lpc/Kconfig
@@ -24,3 +24,8 @@ config SOC_AMD_COMMON_BLOCK_USE_ESPI
help
Select this option if mainboard uses eSPI instead of LPC (if supported
by platform).
+
+config SOC_AMD_COMMON_BLOCK_HAS_ESPI_SUB_DECODE
+ bool
+ depends on SOC_AMD_COMMON_BLOCK_HAS_ESPI
+ default n
diff --git a/src/soc/amd/common/block/lpc/espi_util.c b/src/soc/amd/common/block/lpc/espi_util.c
index 0878fb7663..7ee53862dc 100644
--- a/src/soc/amd/common/block/lpc/espi_util.c
+++ b/src/soc/amd/common/block/lpc/espi_util.c
@@ -916,7 +916,8 @@ int espi_setup(void)
}
/* Enable subtractive decode if configured */
- espi_setup_subtractive_decode(cfg);
+ if (CONFIG(SOC_AMD_COMMON_BLOCK_HAS_ESPI_SUB_DECODE))
+ espi_setup_subtractive_decode(cfg);
return 0;
}