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
;
13 return XEONSP_CXL_SP_MEM
;
15 return XEONSP_CXL_DISABLED
;