drivers/intel: Move FSP stage_cache implementation into common block
Change-Id: Iebb6d698c236a95162b3c7eb07987483a293b50a Signed-off-by: Subrata Banik <subrata.banik@intel.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/34005 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Furquan Shaikh <furquan@google.com>
This commit is contained in:
@@ -18,10 +18,23 @@
|
||||
#include <bootstate.h>
|
||||
#include <console/console.h>
|
||||
#include <cpu/x86/smm.h>
|
||||
#include <fsp/memmap.h>
|
||||
#include <intelblocks/pmclib.h>
|
||||
#include <intelblocks/smm.h>
|
||||
#include <intelblocks/systemagent.h>
|
||||
#include <soc/pm.h>
|
||||
#include <stage_cache.h>
|
||||
|
||||
#if !CONFIG(PLATFORM_USES_FSP1_1)
|
||||
void stage_cache_external_region(void **base, size_t *size)
|
||||
{
|
||||
if (smm_subregion(SMM_SUBREGION_CACHE, base, size)) {
|
||||
printk(BIOS_ERR, "ERROR: No cache SMM subregion.\n");
|
||||
*base = NULL;
|
||||
*size = 0;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
void smm_southbridge_clear_state(void)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user