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:
parent
df29d23ee3
commit
cb587a2522
|
@ -23,7 +23,6 @@ romstage-$(CONFIG_DISPLAY_UPD_DATA) += upd_display.c
|
||||||
romstage-$(CONFIG_VERIFY_HOBS) += hob_verify.c
|
romstage-$(CONFIG_VERIFY_HOBS) += hob_verify.c
|
||||||
romstage-y += util.c
|
romstage-y += util.c
|
||||||
romstage-y += memory_init.c
|
romstage-y += memory_init.c
|
||||||
romstage-$(CONFIG_CACHE_RELOCATED_RAMSTAGE_OUTSIDE_CBMEM) += stage_cache.c
|
|
||||||
romstage-$(CONFIG_MMA) += mma_core.c
|
romstage-$(CONFIG_MMA) += mma_core.c
|
||||||
|
|
||||||
ramstage-y += debug.c
|
ramstage-y += debug.c
|
||||||
|
@ -34,12 +33,10 @@ ramstage-$(CONFIG_DISPLAY_HOBS) += hob_display.c
|
||||||
ramstage-$(CONFIG_VERIFY_HOBS) += hob_verify.c
|
ramstage-$(CONFIG_VERIFY_HOBS) += hob_verify.c
|
||||||
ramstage-y += notify.c
|
ramstage-y += notify.c
|
||||||
ramstage-y += silicon_init.c
|
ramstage-y += silicon_init.c
|
||||||
ramstage-$(CONFIG_CACHE_RELOCATED_RAMSTAGE_OUTSIDE_CBMEM) += stage_cache.c
|
|
||||||
ramstage-$(CONFIG_DISPLAY_UPD_DATA) += upd_display.c
|
ramstage-$(CONFIG_DISPLAY_UPD_DATA) += upd_display.c
|
||||||
ramstage-y += util.c
|
ramstage-y += util.c
|
||||||
ramstage-$(CONFIG_MMA) += mma_core.c
|
ramstage-$(CONFIG_MMA) += mma_core.c
|
||||||
|
|
||||||
postcar-$(CONFIG_CACHE_RELOCATED_RAMSTAGE_OUTSIDE_CBMEM) += stage_cache.c
|
|
||||||
postcar-$(CONFIG_FSP_CAR) += temp_ram_exit.c
|
postcar-$(CONFIG_FSP_CAR) += temp_ram_exit.c
|
||||||
postcar-$(CONFIG_FSP_CAR) += util.c
|
postcar-$(CONFIG_FSP_CAR) += util.c
|
||||||
postcar-$(CONFIG_DISPLAY_FSP_HEADER) += header_display.c
|
postcar-$(CONFIG_DISPLAY_FSP_HEADER) += header_display.c
|
||||||
|
|
|
@ -1,29 +0,0 @@
|
||||||
/*
|
|
||||||
* This file is part of the coreboot project.
|
|
||||||
*
|
|
||||||
* Copyright (C) 2013 Google Inc.
|
|
||||||
* Copyright (C) 2015 Intel Corp.
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; version 2 of the License.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include <console/console.h>
|
|
||||||
#include <fsp/memmap.h>
|
|
||||||
#include <stage_cache.h>
|
|
||||||
#include <program_loading.h>
|
|
||||||
|
|
||||||
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;
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -18,10 +18,23 @@
|
||||||
#include <bootstate.h>
|
#include <bootstate.h>
|
||||||
#include <console/console.h>
|
#include <console/console.h>
|
||||||
#include <cpu/x86/smm.h>
|
#include <cpu/x86/smm.h>
|
||||||
|
#include <fsp/memmap.h>
|
||||||
#include <intelblocks/pmclib.h>
|
#include <intelblocks/pmclib.h>
|
||||||
#include <intelblocks/smm.h>
|
#include <intelblocks/smm.h>
|
||||||
#include <intelblocks/systemagent.h>
|
#include <intelblocks/systemagent.h>
|
||||||
#include <soc/pm.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)
|
void smm_southbridge_clear_state(void)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue