aboutsummaryrefslogtreecommitdiff
path: root/src/soc/intel/common/block/smm
diff options
context:
space:
mode:
Diffstat (limited to 'src/soc/intel/common/block/smm')
-rw-r--r--src/soc/intel/common/block/smm/Makefile.inc3
-rw-r--r--src/soc/intel/common/block/smm/smm.c7
2 files changed, 10 insertions, 0 deletions
diff --git a/src/soc/intel/common/block/smm/Makefile.inc b/src/soc/intel/common/block/smm/Makefile.inc
index e50562513e..82a3191e25 100644
--- a/src/soc/intel/common/block/smm/Makefile.inc
+++ b/src/soc/intel/common/block/smm/Makefile.inc
@@ -1,3 +1,6 @@
+bootblock-$(CONFIG_SOC_INTEL_COMMON_BLOCK_SMM) += smm.c
+romstage-$(CONFIG_SOC_INTEL_COMMON_BLOCK_SMM) += smm.c
+postcar-$(CONFIG_SOC_INTEL_COMMON_BLOCK_SMM) += smm.c
ramstage-$(CONFIG_SOC_INTEL_COMMON_BLOCK_SMM) += smm.c
smm-$(CONFIG_SOC_INTEL_COMMON_BLOCK_SMM) += smihandler.c
smm-$(CONFIG_SOC_INTEL_COMMON_BLOCK_SMM_IO_TRAP) += smitraphandler.c
diff --git a/src/soc/intel/common/block/smm/smm.c b/src/soc/intel/common/block/smm/smm.c
index 41f3426c11..8428fca2c7 100644
--- a/src/soc/intel/common/block/smm/smm.c
+++ b/src/soc/intel/common/block/smm/smm.c
@@ -19,6 +19,7 @@
#include <cpu/x86/smm.h>
#include <intelblocks/pmclib.h>
#include <intelblocks/smm.h>
+#include <intelblocks/systemagent.h>
#include <soc/pm.h>
void smm_southbridge_clear_state(void)
@@ -77,3 +78,9 @@ void smm_setup_structures(void *gnvs, void *tcg, void *smi1)
"d" (APM_CNT)
);
}
+
+void smm_region_info(void **start, size_t *size)
+{
+ *start = (void *)sa_get_tseg_base();
+ *size = sa_get_tseg_size();
+}