summaryrefslogtreecommitdiff
path: root/src/soc/intel/xeon_sp/util.c
diff options
context:
space:
mode:
authorShuo Liu <shuo.liu@intel.com>2024-05-11 03:23:23 +0800
committerFelix Held <felix-coreboot@felixheld.de>2024-05-24 13:28:25 +0000
commitc2ed5eaa12fb3f0da5bdf2acb6f4a688e9b374d3 (patch)
treee91f73e30b7866df413a0550d7a362258c4c4416 /src/soc/intel/xeon_sp/util.c
parent8ed95c3d2b349c6fb105c8b72bd99b0b584073af (diff)
soc/intel/xeon_sp: Move get_cxl_mode out of soc/util.h
get_cxl_mode() is the interface for CXL mode config check used by SoC codes. It could be implemented by mechanisms outside of the SoC codes, e.g. board codes or OCP VPD driver. Move the interface declaration out of soc/util.h to a dedicated header, a.k.a., soc/config.h, so that the implementation codes do not need to include soc/util.h where there are lots of irrelevant definitions. Future SoC config check interfaces could be added to soc/config.h as well. The default weak implementation is moved out of util.c to config.c as well. TEST=Build and boot on intel/archercity CRB Change-Id: Ia0302b0d3fd93c49e1d6f64e8159f59d50f33e20 Signed-off-by: Shuo Liu <shuo.liu@intel.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/82293 Reviewed-by: Lean Sheng Tan <sheng.tan@9elements.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/soc/intel/xeon_sp/util.c')
-rw-r--r--src/soc/intel/xeon_sp/util.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/soc/intel/xeon_sp/util.c b/src/soc/intel/xeon_sp/util.c
index 2fdf45e04f..4dbe7a4cd7 100644
--- a/src/soc/intel/xeon_sp/util.c
+++ b/src/soc/intel/xeon_sp/util.c
@@ -265,8 +265,3 @@ void set_bios_init_completion(void)
set_bios_init_completion_for_package(sbsp_socket_id);
}
#endif
-
-__weak enum xeonsp_cxl_mode get_cxl_mode(void)
-{
- return XEONSP_CXL_DISABLED;
-}