summaryrefslogtreecommitdiffstats
path: root/src/soc/intel/common/block/include/intelblocks/mp_init.h
diff options
context:
space:
mode:
authorSubrata Banik <subrata.banik@intel.com>2020-07-31 11:47:42 +0530
committerSubrata Banik <subrata.banik@intel.com>2020-08-06 04:24:16 +0000
commita3c33c6e21d341bac34612ebb9c6bbef91ad04e1 (patch)
treee660a9cfde1950a12dc6f49af1eb7fd9348ddc61 /src/soc/intel/common/block/include/intelblocks/mp_init.h
parent4bcb63bdd804a9b6c3083394cd3e377eb5f7804b (diff)
downloadcoreboot-a3c33c6e21d341bac34612ebb9c6bbef91ad04e1.tar.gz
coreboot-a3c33c6e21d341bac34612ebb9c6bbef91ad04e1.tar.bz2
coreboot-a3c33c6e21d341bac34612ebb9c6bbef91ad04e1.zip
soc/intel/common/block/cpu: Refactor init_cpus function
This patch makes init_cpus function external so that it can be used in below scenarios: 1. When coreboot is doing MP initialization as part of BS_DEV_INIT_CHIPS (exclude this call if user has selected USE_INTEL_FSP_MP_INIT) 2. coreboot would like to take APs control back after FSP-S has done with MP initialization based on user select USE_INTEL_FSP_MP_INIT Also make sure post_cpus_init function is getting executed unconditionally to update MTRR snapshot on all cores. Change-Id: Idc03090360f34df074b33ba0fced2d192edf068a Signed-off-by: Subrata Banik <subrata.banik@intel.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/44076 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Patrick Rudolph <siro@das-labor.org> Reviewed-by: Aaron Durbin <adurbin@chromium.org> Reviewed-by: Furquan Shaikh <furquan@google.com>
Diffstat (limited to 'src/soc/intel/common/block/include/intelblocks/mp_init.h')
-rw-r--r--src/soc/intel/common/block/include/intelblocks/mp_init.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/soc/intel/common/block/include/intelblocks/mp_init.h b/src/soc/intel/common/block/include/intelblocks/mp_init.h
index 10dd19be3170..6220b766ab03 100644
--- a/src/soc/intel/common/block/include/intelblocks/mp_init.h
+++ b/src/soc/intel/common/block/include/intelblocks/mp_init.h
@@ -70,6 +70,16 @@ const void *intel_mp_current_microcode(void);
void get_microcode_info(const void **microcode, int *parallel);
/*
+ * Perform BSP and AP initialization
+ * This function can be called in below cases
+ * 1. During coreboot is doing MP initialization as part of BS_DEV_INIT_CHIPS (exclude
+ * this call if user has selected USE_INTEL_FSP_MP_INIT)
+ * 2. coreboot would like to take APs control back after FSP-S has done with MP
+ * initialization based on user select USE_INTEL_FSP_MP_INIT
+ */
+void init_cpus(void);
+
+/*
* SoC Overrides
*
* All new SoC must implement below functionality for ramstage.