mb/google/brya: Create rull variant
[coreboot2.git] / src / drivers / ocp / vpd / xeonsp_cxl.c
blob92a8eba0f8d1458f37e0ffc64ada339a1ca4f79d
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #include <drivers/ocp/include/vpd.h>
4 #include <soc/config.h>
6 enum xeonsp_cxl_mode get_cxl_mode(void)
8 int ocp_cxl_mode = get_cxl_mode_from_vpd();
9 switch (ocp_cxl_mode) {
10 case CXL_SYSTEM_MEMORY:
11 return XEONSP_CXL_SYS_MEM;
12 case CXL_SPM:
13 return XEONSP_CXL_SP_MEM;
14 default:
15 return XEONSP_CXL_DISABLED;