Skip to content

Commit

Permalink
nxp: combine MONOLITHIC_BT and MONOLITHIC_IEEE802154
Browse files Browse the repository at this point in the history
Combine BLE and 802.15.4 monolithic build under a single config to make
it less error prone.
The choice between a BLE/802.15.4 combo firmware and a BLE only firmware
is done depending on the Soc (like RW610 vs RW612).

Signed-off-by: Axel Le Bourhis <[email protected]>
  • Loading branch information
axelnxp authored and kartben committed Dec 10, 2024
1 parent 03b936f commit 5dfd41e
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 16 deletions.
12 changes: 6 additions & 6 deletions modules/Kconfig.mcux
Original file line number Diff line number Diff line change
Expand Up @@ -364,10 +364,10 @@ config HAS_MCUX_XBARA
help
Set if the XBARA module is present on the SoC.

config HAS_NXP_MONOLITHIC_BT
config HAS_NXP_MONOLITHIC_NBU
bool
help
Set if the platform supports the monolithic build for BT applications.
Set if the platform supports the monolithic build for BT/15.4 applications.

config NXP_FW_LOADER
bool "Include firmware loader component"
Expand All @@ -381,11 +381,11 @@ config NXP_MONOLITHIC_WIFI
If enabled, the WiFi firmware used by the device will be linked with the
application directly.

config NXP_MONOLITHIC_BT
bool "BT firmware monolithic build"
depends on HAS_NXP_MONOLITHIC_BT
config NXP_MONOLITHIC_NBU
bool "Narrowband Unit (BT/15.4) firmware monolithic build"
depends on HAS_NXP_MONOLITHIC_NBU
help
If enabled, the BT firmware used by the device will be linked with the
If enabled, the NBU firmware used by the device will be linked with the
application directly.

config NXP_RF_IMU
Expand Down
2 changes: 1 addition & 1 deletion samples/bluetooth/central_ht/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ tests:
- rd_rw612_bga
- frdm_rw612
extra_configs:
- CONFIG_NXP_MONOLITHIC_BT=n
- CONFIG_NXP_MONOLITHIC_NBU=n
2 changes: 1 addition & 1 deletion samples/bluetooth/peripheral_ht/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ tests:
- rd_rw612_bga
- frdm_rw612
extra_configs:
- CONFIG_NXP_MONOLITHIC_BT=n
- CONFIG_NXP_MONOLITHIC_NBU=n
2 changes: 1 addition & 1 deletion soc/nxp/rw/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ config SOC_SERIES_RW6XX
select HAS_MCUX_FLEXCOMM
select HAS_MCUX_CACHE
select HAS_PM
select HAS_NXP_MONOLITHIC_BT
select HAS_NXP_MONOLITHIC_NBU
select SOC_EARLY_INIT_HOOK

if SOC_SERIES_RW6XX
Expand Down
6 changes: 3 additions & 3 deletions soc/nxp/rw/Kconfig.defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ config SYS_CLOCK_HW_CYCLES_PER_SEC
default 1000000 if MCUX_OS_TIMER
default 260000000 if CORTEX_M_SYSTICK

if BT
config NXP_MONOLITHIC_NBU
default y if (BT || IEEE802154)

config NXP_MONOLITHIC_BT
default y
if BT

config HCI_NXP_ENABLE_AUTO_SLEEP
default y
Expand Down
4 changes: 2 additions & 2 deletions soc/nxp/rw/firmwares.ld
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ KEEP(*(.fw_cpu1))
. += 4;
#endif

#if defined(CONFIG_NXP_MONOLITHIC_BT)
#if defined(CONFIG_NXP_MONOLITHIC_NBU)
. = ALIGN(4);
KEEP(*(.fw_cpu2_ble))
KEEP(*(.fw_cpu2))
#endif
2 changes: 1 addition & 1 deletion tests/bluetooth/tester/testcase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ tests:
- rd_rw612_bga
- frdm_rw612
extra_configs:
- CONFIG_NXP_MONOLITHIC_BT=n
- CONFIG_NXP_MONOLITHIC_NBU=n
bluetooth.general.tester_le_audio:
build_only: true
platform_allow:
Expand Down
2 changes: 1 addition & 1 deletion west.yml
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ manifest:
groups:
- hal
- name: hal_nxp
revision: 97855e494cad74d567c1937b22e0930584ab7025
revision: c9f73c70d921b3fdea0c646bd76a2a4f5a23e7f0
path: modules/hal/nxp
groups:
- hal
Expand Down

0 comments on commit 5dfd41e

Please sign in to comment.