From 50de97fedbf6279ff1c82829ae12c9e9434c9b9f Mon Sep 17 00:00:00 2001 From: Andrei Menzopol Date: Fri, 7 Feb 2025 12:07:00 +0200 Subject: [PATCH] soc: nxp: mcxw: update conditions to account for ieee driver Add ram section for ieee driver. Use config for ieee driver. Signed-off-by: Andrei Menzopol --- soc/nxp/mcx/mcxw/CMakeLists.txt | 6 ++++-- soc/nxp/mcx/mcxw/Kconfig.defconfig | 12 +++++++++++- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/soc/nxp/mcx/mcxw/CMakeLists.txt b/soc/nxp/mcx/mcxw/CMakeLists.txt index 5109d3175ab..aad110de351 100644 --- a/soc/nxp/mcx/mcxw/CMakeLists.txt +++ b/soc/nxp/mcx/mcxw/CMakeLists.txt @@ -1,4 +1,4 @@ -# Copyright 2023-2024 NXP +# Copyright 2023-2025 NXP # # SPDX-License-Identifier: Apache-2.0 @@ -14,4 +14,6 @@ zephyr_include_directories(.) set(SOC_LINKER_SCRIPT ${CMAKE_CURRENT_SOURCE_DIR}/linker.ld CACHE INTERNAL "") -zephyr_linker_sources_ifdef(CONFIG_BT RAM_SECTIONS sections.ld) +if (CONFIG_BT OR CONFIG_IEEE802154) + zephyr_linker_sources(RAM_SECTIONS sections.ld) +endif() diff --git a/soc/nxp/mcx/mcxw/Kconfig.defconfig b/soc/nxp/mcx/mcxw/Kconfig.defconfig index 5f7ad6800e6..d04ed76905a 100644 --- a/soc/nxp/mcx/mcxw/Kconfig.defconfig +++ b/soc/nxp/mcx/mcxw/Kconfig.defconfig @@ -1,4 +1,4 @@ -# Copyright 2023-2024 NXP +# Copyright 2023-2025 NXP # SPDX-License-Identifier: Apache-2.0 if SOC_SERIES_MCXW @@ -45,4 +45,14 @@ config HCI_NXP_RX_THREAD default y endif # BT + +if NET_L2_IEEE802154 || NET_L2_OPENTHREAD + +# Include intercore messaging component +config NXP_RF_IMU + default y + +endif # NET_L2_IEEE802154 || NET_L2_OPENTHREAD + + endif # SOC_SERIES_MCXW