Subrata Banik has uploaded this change for review. ( https://review.coreboot.org/23810
Change subject: soc/intel/common/block/smm: Add option to have SOC specific SMI Handler ......................................................................
soc/intel/common/block/smm: Add option to have SOC specific SMI Handler
This patch ensures common code provides an option to register a SOC specific SMI handler.
Change-Id: I50fb154cc1ad4b3459bc352d2065f2c582711c20 Signed-off-by: Subrata Banik subrata.banik@intel.com --- M src/soc/intel/common/block/include/intelblocks/smihandler.h M src/soc/intel/common/block/smm/smihandler.c 2 files changed, 12 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/10/23810/1
diff --git a/src/soc/intel/common/block/include/intelblocks/smihandler.h b/src/soc/intel/common/block/include/intelblocks/smihandler.h index df2d17c..565b1e8 100644 --- a/src/soc/intel/common/block/include/intelblocks/smihandler.h +++ b/src/soc/intel/common/block/include/intelblocks/smihandler.h @@ -148,6 +148,9 @@
/* SoC overrides. */
+/* SMI handlers implemented inside SOC for MISC operation */ +void smihandler_soc_misc(void); + /* * This function returns a 1 or 0 depending on whether disable_busmaster * needs to be done for the specified device on S5 entry diff --git a/src/soc/intel/common/block/smm/smihandler.c b/src/soc/intel/common/block/smm/smihandler.c index 8a877c3..1dc61d1 100644 --- a/src/soc/intel/common/block/smm/smihandler.c +++ b/src/soc/intel/common/block/smm/smihandler.c @@ -38,6 +38,12 @@
/* SoC overrides. */
+/* SMI handlers implemented inside SOC for MISC operation */ +__attribute__((weak)) void smihandler_soc_misc(void) +{ + return; +} + __attribute__((weak)) int smihandler_soc_disable_busmaster(device_t dev) { return 1; @@ -278,6 +284,9 @@ if (IS_ENABLED(CONFIG_SPI_FLASH_SMM)) /* Re-init SPI driver to handle locked BAR */ fast_spi_init(); + + /* Specific SOC SMI handler */ + smihandler_soc_misc(); }
void smihandler_southbridge_apmc(