Skip to content

Commit 8070fb9

Browse files
committed
soc: nxp: mcxw: Isolate MCXW7xx-specific config from MCXW2xx
Both MCXW2xx and MCXW7xx now share the same SoC family (CONFIG_SOC_FAMILY_MCXW). Isolate mcxw7xx-specific module/code from mcxw2xx. Signed-off-by: Yassine El Aissaoui <[email protected]>
1 parent 226f1d9 commit 8070fb9

File tree

4 files changed

+52
-52
lines changed

4 files changed

+52
-52
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,14 @@ if(CONFIG_NXP_RF_IMU)
3030
set(CONFIG_MCUX_COMPONENT_driver.gdma ON)
3131
set(CONFIG_MCUX_COMPONENT_component.wireless_imu_adapter ON)
3232
set(CONFIG_MCUX_PRJSEG_component.osa_interface.osa_macro_used ON)
33-
elseif(CONFIG_SOC_FAMILY_MCXW)
33+
elseif(CONFIG_SOC_SERIES_MCXW7XX)
3434
set(CONFIG_MCUX_COMPONENT_component.lists ON)
3535
set(CONFIG_MCUX_COMPONENT_component.rpmsg_adapter ON)
3636
zephyr_compile_definitions(HAL_RPMSG_SELECT_ROLE=0U)
3737
endif()
3838
endif()
3939

40-
if(CONFIG_SOC_FAMILY_MCXW AND CONFIG_IEEE802154)
40+
if(CONFIG_SOC_SERIES_MCXW7XX AND CONFIG_IEEE802154)
4141
set(CONFIG_MCUX_COMPONENT_driver.spc ON)
4242
set(CONFIG_MCUX_COMPONENT_component.lists ON)
4343
set(CONFIG_USE_component_osa_zephyr ON)
@@ -51,7 +51,7 @@ if(CONFIG_USE_component_osa_zephyr)
5151
endif()
5252

5353
# Component definitions
54-
if(CONFIG_NXP_RF_IMU AND CONFIG_SOC_FAMILY_MCXW)
54+
if(CONFIG_NXP_RF_IMU AND CONFIG_SOC_SERIES_MCXW7XX)
5555
zephyr_compile_definitions(HAL_RPMSG_SELECT_ROLE=0U)
5656
endif()
5757

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ if(CONFIG_SOC_FAMILY_MCXN OR CONFIG_SOC_FAMILY_MCXA)
185185
set(CONFIG_MCUX_COMPONENT_driver.mcx_spc ON)
186186
endif()
187187

188-
if(CONFIG_BT_NXP AND CONFIG_SOC_FAMILY_MCXW OR CONFIG_IEEE802154_MCXW)
188+
if(CONFIG_BT_NXP AND CONFIG_SOC_SERIES_MCXW7XX OR CONFIG_IEEE802154_MCXW)
189189
set(CONFIG_MCUX_COMPONENT_driver.spc ON)
190190
endif()
191191

soc/nxp/mcx/mcxw/Kconfig.defconfig

Lines changed: 0 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -8,52 +8,4 @@ if SOC_FAMILY_MCXW
88
config CORTEX_M_SYSTICK
99
default n if MCUX_LPTMR_TIMER
1010

11-
if BT
12-
13-
config MAIN_STACK_SIZE
14-
default 2560
15-
16-
config BT_LONG_WQ_STACK_SIZE
17-
default 2560
18-
19-
config SYSTEM_WORKQUEUE_STACK_SIZE
20-
default 2048
21-
22-
config BT_BUF_EVT_RX_COUNT
23-
default 16
24-
25-
config BT_BUF_ACL_TX_COUNT
26-
default 12 if SOC_MCXW727C
27-
default 8 if SOC_MCXW716C
28-
29-
if SHELL
30-
31-
config SHELL_STACK_SIZE
32-
default 4096
33-
34-
endif # SHELL
35-
36-
# Include intercore messaging component
37-
config NXP_RF_IMU
38-
default y
39-
40-
# Set the controller's public identity using NXP vendor command
41-
config BT_HCI_SET_PUBLIC_ADDR
42-
default y
43-
44-
# HCI RX buffers are received in ISR context. RX messages
45-
# need to be queued and processed by a dedicated thread
46-
config HCI_NXP_RX_THREAD
47-
default y
48-
49-
endif # BT
50-
51-
if IEEE802154
52-
53-
# Include intercore messaging component
54-
config NXP_RF_IMU
55-
default y
56-
57-
endif # IEEE802154
58-
5911
endif # SOC_FAMILY_MCXW

soc/nxp/mcx/mcxw/mcxw7xx/Kconfig.defconfig

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,52 @@ config SYS_CLOCK_HW_CYCLES_PER_SEC
1414
config MCUX_FLASH_K4_API
1515
default y
1616

17+
if BT
18+
19+
config MAIN_STACK_SIZE
20+
default 2560
21+
22+
config BT_LONG_WQ_STACK_SIZE
23+
default 2560
24+
25+
config SYSTEM_WORKQUEUE_STACK_SIZE
26+
default 2048
27+
28+
config BT_BUF_EVT_RX_COUNT
29+
default 16
30+
31+
config BT_BUF_ACL_TX_COUNT
32+
default 12 if SOC_MCXW727C
33+
default 8 if SOC_MCXW716C
34+
35+
if SHELL
36+
37+
config SHELL_STACK_SIZE
38+
default 4096
39+
40+
endif # SHELL
41+
42+
# Include intercore messaging component
43+
config NXP_RF_IMU
44+
default y
45+
46+
# Set the controller's public identity using NXP vendor command
47+
config BT_HCI_SET_PUBLIC_ADDR
48+
default y
49+
50+
# HCI RX buffers are received in ISR context. RX messages
51+
# need to be queued and processed by a dedicated thread
52+
config HCI_NXP_RX_THREAD
53+
default y
54+
55+
endif # BT
56+
57+
if IEEE802154
58+
59+
# Include intercore messaging component
60+
config NXP_RF_IMU
61+
default y
62+
63+
endif # IEEE802154
64+
1765
endif

0 commit comments

Comments
 (0)