Skip to content

Commit 118a6de

Browse files
mcux_sdk: cmake: Update hal cmake file to include GPC and DCDC drivers
GPC and DCDC drivers are required for power management. Update HAL to include these drivers for the SOCs that utilize them. Signed-off-by: Daniel DeGrasse <[email protected]>
1 parent 55daf0a commit 118a6de

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

mcux/hal_nxp.cmake

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,13 @@ elseif((${MCUX_DEVICE} MATCHES "MK(28|66)") OR (${MCUX_DEVICE} MATCHES "MKE(14|1
144144
include_driver_ifdef(CONFIG_HAS_MCUX_CACHE cache/lmem driver_cache_lmem)
145145
endif()
146146

147+
if (${MCUX_DEVICE} MATCHES "MIMXRT11[0-9][0-9]")
148+
include_driver_ifdef(CONFIG_PM_MCUX_GPC gpc_3 driver_gpc_3)
149+
elseif (${MCUX_DEVICE} MATCHES "MIMXRT10[0-9][0-9]")
150+
include_driver_ifdef(CONFIG_PM_MCUX_GPC gpc_1 driver_gpc_1)
151+
include_driver_ifdef(CONFIG_PM_MCUX_DCDC dcdc_1 driver_dcdc_1)
152+
endif()
153+
147154
if("${CONFIG_SOC_FAMILY}" STREQUAL "nxp_kinetis")
148155

149156
include_driver_ifdef(CONFIG_SOC_FLASH_MCUX flash driver_flash)

0 commit comments

Comments
 (0)