Skip to content

Commit 44ae59e

Browse files
VitekSTkartben
authored andcommitted
modules: hal_nxp: Edit lists for mimxrt685s/hifi4
Exclude fsl_power.c from DSP domains, as it doesn't compile on those because of missing register definitions. Include fsl_dsp.c wherever it can be included, as it's required for initialisation of DSP domains. Signed-off-by: Vit Stanicek <[email protected]>
1 parent e3edf46 commit 44ae59e

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,19 @@ set(CONFIG_MCUX_COMPONENT_device.system ON)
4040
set(CONFIG_MCUX_COMPONENT_device.CMSIS ON)
4141
set(CONFIG_MCUX_COMPONENT_driver.clock ON)
4242

43-
if((NOT CONFIG_SOC_MIMXRT798S_HIFI1) AND (NOT CONFIG_SOC_MIMXRT798S_HIFI4))
43+
# Exclude fsl_power.c for DSP domains
44+
if(CONFIG_ARM)
4445
set(CONFIG_MCUX_COMPONENT_driver.power ON)
4546
endif()
4647

4748
set(CONFIG_MCUX_COMPONENT_driver.reset ON)
4849
set(CONFIG_MCUX_COMPONENT_driver.memory ON)
4950

51+
# Include fsl_dsp.c for ARM domains (applicable to i.MX RTxxx devices)
52+
if(CONFIG_ARM)
53+
set(CONFIG_MCUX_COMPONENT_driver.dsp ON)
54+
endif()
55+
5056
# load device variables
5157
include(${mcux_device_folder}/variable.cmake)
5258

0 commit comments

Comments
 (0)