Skip to content

Commit a2152e4

Browse files
yangbolu1991mmahadevan108
authored andcommitted
mcux: hal_nxp: support i.MX95 in cmake
i.MX95 uses mu1 driver. Since it uses ARM SCMI for clock, the clock control in SDK driver should be disabled. Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
1 parent ff849a5 commit a2152e4

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

mcux/hal_nxp.cmake

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,11 @@ zephyr_compile_definitions_ifdef(
5858
ENET_ENHANCEDBUFFERDESCRIPTOR_MODE
5959
)
6060

61+
zephyr_compile_definitions_ifdef(
62+
CONFIG_SOC_MIMX9596
63+
FSL_SDK_DISABLE_DRIVER_CLOCK_CONTROL=1
64+
)
65+
6166
zephyr_library_compile_definitions_ifdef(
6267
CONFIG_HAS_MCUX_CACHE FSL_SDK_ENABLE_DRIVER_CACHE_CONTROL
6368
)
@@ -150,8 +155,6 @@ include_driver_ifdef(CONFIG_UART_MCUX_FLEXCOMM flexcomm/usart driver_flexcomm_u
150155
include_driver_ifdef(CONFIG_WDT_MCUX_WWDT wwdt driver_wwdt)
151156
include_driver_ifdef(CONFIG_ADC_MCUX_ADC12 adc12 driver_adc12)
152157
include_driver_ifdef(CONFIG_ADC_MCUX_ADC16 adc16 driver_adc16)
153-
include_driver_ifdef(CONFIG_IPM_IMX mu driver_mu)
154-
include_driver_ifdef(CONFIG_MBOX_NXP_IMX_MU mu driver_mu)
155158
include_driver_ifdef(CONFIG_CAN_MCUX_FLEXCAN flexcan driver_flexcan)
156159
include_driver_ifdef(CONFIG_CAN_MCUX_FLEXCAN_FD flexcan driver_flexcan)
157160
include_driver_ifdef(CONFIG_COUNTER_NXP_PIT pit driver_pit)
@@ -271,6 +274,14 @@ elseif(CONFIG_SOC_MIMXRT1189_CM33)
271274
include_driver_ifdef(CONFIG_HAS_MCUX_CACHE cache/xcache driver_cache_xcache)
272275
endif()
273276

277+
if (${MCUX_DEVICE} MATCHES "MIMX9596")
278+
include_driver_ifdef(CONFIG_IPM_IMX mu1 driver_mu1)
279+
include_driver_ifdef(CONFIG_MBOX_NXP_IMX_MU mu1 driver_mu1)
280+
else()
281+
include_driver_ifdef(CONFIG_IPM_IMX mu driver_mu)
282+
include_driver_ifdef(CONFIG_MBOX_NXP_IMX_MU mu driver_mu)
283+
endif()
284+
274285
if(CONFIG_CPU_CORTEX_A)
275286
include_driver_ifdef(CONFIG_HAS_MCUX_CACHE cache/armv8-a driver_cache_armv8a)
276287
endif()

0 commit comments

Comments
 (0)