soc/intel/common: Add functions into common SMM library
This patch to add helper function to get SMM region start and size based on systemagent common library. BRANCH=none BUG=b:63974384 TEST=Build and boot eve successfully. Change-Id: If10af4a3f6a5bd22db5a03bcd3033a01b1cce0b4 Signed-off-by: Subrata Banik <subrata.banik@intel.com> Reviewed-on: https://review.coreboot.org/21268 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Aaron Durbin <adurbin@chromium.org>
This commit is contained in:
parent
73f448f04d
commit
4f62d165df
@ -30,5 +30,7 @@
|
|||||||
*/
|
*/
|
||||||
void smm_southbridge_clear_state(void);
|
void smm_southbridge_clear_state(void);
|
||||||
void smm_southbridge_enable(void);
|
void smm_southbridge_enable(void);
|
||||||
|
/* API to get SMM region start and size based on Host Bridge register */
|
||||||
|
void smm_region_info(void **start, size_t *size);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -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
|
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) += smihandler.c
|
||||||
smm-$(CONFIG_SOC_INTEL_COMMON_BLOCK_SMM_IO_TRAP) += smitraphandler.c
|
smm-$(CONFIG_SOC_INTEL_COMMON_BLOCK_SMM_IO_TRAP) += smitraphandler.c
|
||||||
|
@ -19,6 +19,7 @@
|
|||||||
#include <cpu/x86/smm.h>
|
#include <cpu/x86/smm.h>
|
||||||
#include <intelblocks/pmclib.h>
|
#include <intelblocks/pmclib.h>
|
||||||
#include <intelblocks/smm.h>
|
#include <intelblocks/smm.h>
|
||||||
|
#include <intelblocks/systemagent.h>
|
||||||
#include <soc/pm.h>
|
#include <soc/pm.h>
|
||||||
|
|
||||||
void smm_southbridge_clear_state(void)
|
void smm_southbridge_clear_state(void)
|
||||||
@ -77,3 +78,9 @@ void smm_setup_structures(void *gnvs, void *tcg, void *smi1)
|
|||||||
"d" (APM_CNT)
|
"d" (APM_CNT)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void smm_region_info(void **start, size_t *size)
|
||||||
|
{
|
||||||
|
*start = (void *)sa_get_tseg_base();
|
||||||
|
*size = sa_get_tseg_size();
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user