Skip to content

Commit a4f9cc9

Browse files
JiafeiPannashif
authored andcommitted
modules: hal_nxp: disable hal clock driver for SCMI clock
If SCMI clock is used in Zephyr, it will not use hal clock API, so disable hal clock driver and also disable driver clock control in all the other hal drivers. Signed-off-by: Jiafei Pan <Jiafei.Pan@nxp.com>
1 parent e40d56c commit a4f9cc9

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

modules/hal_nxp/mcux/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ zephyr_compile_definitions_ifdef(
9898
)
9999

100100
zephyr_compile_definitions_ifdef(
101-
CONFIG_SOC_MIMX9596
101+
CONFIG_CLOCK_CONTROL_ARM_SCMI
102102
FSL_SDK_DISABLE_DRIVER_CLOCK_CONTROL=1
103103
)
104104

modules/hal_nxp/mcux/mcux-sdk-ng/device/device.cmake

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,9 @@ endif()
3838

3939
set(CONFIG_MCUX_COMPONENT_device.system ON)
4040
set(CONFIG_MCUX_COMPONENT_device.CMSIS ON)
41-
set(CONFIG_MCUX_COMPONENT_driver.clock ON)
41+
if(NOT CONFIG_CLOCK_CONTROL_ARM_SCMI)
42+
set(CONFIG_MCUX_COMPONENT_driver.clock ON)
43+
endif()
4244

4345
# Exclude fsl_power.c for DSP domains
4446
if(CONFIG_ARM)

0 commit comments

Comments
 (0)