Skip to content

Commit e881029

Browse files
Holt-Sunkartben
authored andcommitted
modules: hal_nxp: mcux: add HAS_MCUX_LMEM_CACHE and hook LMEM for MCXE24X
Select cache_lmem component for MCXE24X devices. This exposes the LMEM cache API needed by the Zephyr driver Signed-off-by: Holt Sun <[email protected]>
1 parent d0cda31 commit e881029

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

modules/hal_nxp/mcux/Kconfig.mcux

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# MCUXpresso SDK
22

33
# Copyright (c) 2016, Freescale Semiconductor, Inc.
4-
# Copyright 2024 NXP
4+
# Copyright 2024, 2025 NXP
55
# SPDX-License-Identifier: Apache-2.0
66

77
config HAS_MCUX
@@ -52,6 +52,11 @@ config HAS_MCUX_XCACHE
5252
help
5353
Set if the XCACHE module is present on the SoC.
5454

55+
config HAS_MCUX_LMEM_CACHE
56+
bool
57+
help
58+
Set if the LMEM Cache module is present on the SoC.
59+
5560
config HAS_NXP_MONOLITHIC_NBU
5661
bool
5762
help

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,8 @@ elseif((${MCUX_DEVICE} MATCHES "MIMXRT(5|6)") OR (${MCUX_DEVICE} MATCHES "RW61")
200200
set_variable_ifdef(CONFIG_HAS_MCUX_CACHE CONFIG_MCUX_COMPONENT_driver.cache_cache64)
201201
elseif((${MCUX_DEVICE} MATCHES "MK(28|66)") OR (${MCUX_DEVICE} MATCHES "MKE(14|16|18)") OR (CONFIG_SOC_MIMXRT1166_CM4) OR (CONFIG_SOC_MIMXRT1176_CM4))
202202
set_variable_ifdef(CONFIG_HAS_MCUX_CACHE CONFIG_MCUX_COMPONENT_driver.cache_lmem)
203+
elseif(CONFIG_SOC_SERIES_MCXE24X)
204+
set_variable_ifdef(CONFIG_HAS_MCUX_LMEM_CACHE CONFIG_MCUX_COMPONENT_driver.cache_lmem)
203205
elseif(CONFIG_CPU_CORTEX_A)
204206
set_variable_ifdef(CONFIG_HAS_MCUX_CACHE CONFIG_MCUX_COMPONENT_driver.cache_armv8_a)
205207
endif()

0 commit comments

Comments
 (0)