soc/intel/meteorlake: Switch to common global reset implementation
Replace platform-specific reset.c with the common global reset implementation using CSE with PMC fallback. Changes: - Remove src/soc/intel/meteorlake/reset.c - Enable SOC_INTEL_COMMON_FEATURE_GLOBAL_RESET_CSE_PMC in Kconfig - Update Makefile.mk to remove reset.c from build The global reset implementation was identical to 6 other platforms, making it an ideal candidate for consolidation. Change-Id: I0ad75bbeb1fad7352b2b898487a5b54eff496d0b Signed-off-by: Jeremy Compostella <jeremy.compostella@intel.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/91210 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Guvendik, Bora <bora.guvendik@intel.com>
This commit is contained in:
parent
b2a533c918
commit
5c85dcda7f
3 changed files with 1 additions and 19 deletions
|
|
@ -88,6 +88,7 @@ config SOC_INTEL_METEORLAKE
|
|||
select SOC_INTEL_COMMON_BLOCK_XHCI_ELOG
|
||||
select SOC_INTEL_COMMON_FEATURE
|
||||
select SOC_INTEL_COMMON_FEATURE_ESPI
|
||||
select SOC_INTEL_COMMON_FEATURE_GLOBAL_RESET_CSE_PMC
|
||||
select SOC_INTEL_COMMON_FEATURE_GSPI_DEVFN
|
||||
select SOC_INTEL_COMMON_FEATURE_LOCKDOWN
|
||||
select SOC_INTEL_COMMON_FEATURE_PMUTIL
|
||||
|
|
|
|||
|
|
@ -17,7 +17,6 @@ bootblock-y += soc_info.c
|
|||
romstage-$(CONFIG_SOC_INTEL_CSE_PRE_CPU_RESET_TELEMETRY) += cse_telemetry.c
|
||||
romstage-y += meminit.c
|
||||
romstage-y += pcie_rp.c
|
||||
romstage-y += reset.c
|
||||
romstage-y += soc_info.c
|
||||
|
||||
ramstage-y += acpi.c
|
||||
|
|
@ -32,7 +31,6 @@ ramstage-y += graphics.c
|
|||
ramstage-y += p2sb.c
|
||||
ramstage-y += pcie_rp.c
|
||||
ramstage-y += pmc.c
|
||||
ramstage-y += reset.c
|
||||
ramstage-y += retimer.c
|
||||
ramstage-y += systemagent.c
|
||||
ramstage-y += tcss.c
|
||||
|
|
|
|||
|
|
@ -1,17 +0,0 @@
|
|||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
|
||||
#include <cf9_reset.h>
|
||||
#include <intelblocks/cse.h>
|
||||
#include <intelblocks/pmclib.h>
|
||||
#include <soc/intel/common/reset.h>
|
||||
|
||||
void do_global_reset(void)
|
||||
{
|
||||
/* Ask CSE to do the global reset */
|
||||
if (cse_request_global_reset() == CSE_TX_RX_SUCCESS)
|
||||
return;
|
||||
|
||||
/* global reset if CSE fail to reset */
|
||||
pmc_global_reset_enable(1);
|
||||
do_full_reset();
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue