Browse Source

nxp: combine MONOLITHIC_BT and MONOLITHIC_IEEE802154

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 <axel.lebourhis@nxp.com>
pull/82778/head
Axel Le Bourhis 7 months ago committed by Benjamin Cabé
parent
commit
5dfd41e51a
  1. 12
      modules/Kconfig.mcux
  2. 2
      samples/bluetooth/central_ht/sample.yaml
  3. 2
      samples/bluetooth/peripheral_ht/sample.yaml
  4. 2
      soc/nxp/rw/Kconfig
  5. 6
      soc/nxp/rw/Kconfig.defconfig
  6. 4
      soc/nxp/rw/firmwares.ld
  7. 2
      tests/bluetooth/tester/testcase.yaml
  8. 2
      west.yml

12
modules/Kconfig.mcux

@ -364,10 +364,10 @@ config HAS_MCUX_XBARA @@ -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"
@ -381,11 +381,11 @@ config NXP_MONOLITHIC_WIFI @@ -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

2
samples/bluetooth/central_ht/sample.yaml

@ -19,4 +19,4 @@ tests: @@ -19,4 +19,4 @@ tests:
- rd_rw612_bga
- frdm_rw612
extra_configs:
- CONFIG_NXP_MONOLITHIC_BT=n
- CONFIG_NXP_MONOLITHIC_NBU=n

2
samples/bluetooth/peripheral_ht/sample.yaml

@ -31,4 +31,4 @@ tests: @@ -31,4 +31,4 @@ tests:
- rd_rw612_bga
- frdm_rw612
extra_configs:
- CONFIG_NXP_MONOLITHIC_BT=n
- CONFIG_NXP_MONOLITHIC_NBU=n

2
soc/nxp/rw/Kconfig

@ -17,7 +17,7 @@ config SOC_SERIES_RW6XX @@ -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

6
soc/nxp/rw/Kconfig.defconfig

@ -14,10 +14,10 @@ config SYS_CLOCK_HW_CYCLES_PER_SEC @@ -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

4
soc/nxp/rw/firmwares.ld

@ -15,7 +15,7 @@ KEEP(*(.fw_cpu1)) @@ -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
tests/bluetooth/tester/testcase.yaml

@ -15,7 +15,7 @@ tests: @@ -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:

2
west.yml

@ -199,7 +199,7 @@ manifest: @@ -199,7 +199,7 @@ manifest:
groups:
- hal
- name: hal_nxp
revision: 97855e494cad74d567c1937b22e0930584ab7025
revision: c9f73c70d921b3fdea0c646bd76a2a4f5a23e7f0
path: modules/hal/nxp
groups:
- hal

Loading…
Cancel
Save