From 1e6b980b1ec49e5ffdfb34e5373f13e82db67fb7 Mon Sep 17 00:00:00 2001 From: Barnali Sarkar Date: Mon, 7 Aug 2017 18:26:31 +0530 Subject: soc/intel/apollolake: Provide option to use Common MP Init This patch provides the option to use the common CPU Mp Init code by selecting a Config Token. CONFIG_SOC_INTEL_COMMON_BLOCK_CPU_MPINIT config token can be selected to use the Common MP Init Code, also where CPU MP Init is done before FSP-S Init. And if the config token is not selected, the old way of implementation will exist, where MP Init is been done after FSP-S. CQ-DEPEND=CL:*397551 BUG=none BRANCH=none TEST=Build and boot Reef Change-Id: I35d012785000d3f3bfcc34138cda9cd4591559f6 Signed-off-by: Barnali Sarkar Reviewed-on: https://review.coreboot.org/20895 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin --- src/soc/intel/apollolake/Kconfig | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'src/soc/intel/apollolake/Kconfig') diff --git a/src/soc/intel/apollolake/Kconfig b/src/soc/intel/apollolake/Kconfig index 49e56aa6d7..5ff328b522 100644 --- a/src/soc/intel/apollolake/Kconfig +++ b/src/soc/intel/apollolake/Kconfig @@ -315,6 +315,27 @@ config USE_APOLLOLAKE_FSP_CAR endchoice +choice + prompt "MPINIT code implementation" + default NO_COMMON_MPINIT if SOC_INTEL_APOLLOLAKE + default COMMON_MPINIT + help + This option allows you to select MP Init Code path either + from Intel Common Code implementation, or from SOC files. + +config NO_COMMON_MPINIT + bool "Not using Common MP Init code" + help + Common code MP Init path is not used. + +config COMMON_MPINIT + bool "Using Common MP Init code" + select SOC_INTEL_COMMON_BLOCK_CPU_MPINIT + help + Common code MP Init path is used. + +endchoice + # # Each bit in QOS mask controls this many bytes. This is calculated as: # (CACHE_WAYS / CACHE_BITS_PER_MASK) * CACHE_LINE_SIZE * CACHE_SETS -- cgit v1.2.3