summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/soc/amd/common/block/include/amdblocks/espi.h6
-rw-r--r--src/soc/amd/common/block/lpc/espi_util.c7
2 files changed, 8 insertions, 5 deletions
diff --git a/src/soc/amd/common/block/include/amdblocks/espi.h b/src/soc/amd/common/block/include/amdblocks/espi.h
index e12b1b8486..f9e25707d0 100644
--- a/src/soc/amd/common/block/include/amdblocks/espi.h
+++ b/src/soc/amd/common/block/include/amdblocks/espi.h
@@ -132,10 +132,6 @@ int espi_setup(void);
void mb_set_up_early_espi(void);
/* Setup eSPI with any mainboard specific initialization. */
-static inline void configure_espi_with_mb_hook(void)
-{
- mb_set_up_early_espi();
- espi_setup();
-}
+void configure_espi_with_mb_hook(void);
#endif /* AMD_BLOCK_ESPI_H */
diff --git a/src/soc/amd/common/block/lpc/espi_util.c b/src/soc/amd/common/block/lpc/espi_util.c
index ebc8f45979..4eb700be19 100644
--- a/src/soc/amd/common/block/lpc/espi_util.c
+++ b/src/soc/amd/common/block/lpc/espi_util.c
@@ -1053,3 +1053,10 @@ int espi_setup(void)
return 0;
}
+
+/* Setup eSPI with any mainboard specific initialization. */
+void configure_espi_with_mb_hook(void)
+{
+ mb_set_up_early_espi();
+ espi_setup();
+}