bluetooth: controller: openisa/RV32M1: enable the BLE SW controller
This patch updates the config files required to enable the BLE SW defined controller to be built on RV32M1 SoCs. Only the split version is supported. Signed-off-by: George Stefan <george.stefan@nxp.com> Signed-off-by: Radu Alexe <radu.alexe@nxp.com> Signed-off-by: Ionut Ursescu <ionut.ursescu@nxp.com>
This commit is contained in:
parent
b063456015
commit
d87aaa6107
2 changed files with 63 additions and 1 deletions
|
@ -62,6 +62,10 @@ if(CONFIG_BT_LL_SW_SPLIT)
|
|||
CONFIG_BT_LLL_VENDOR_NORDIC
|
||||
ll_sw/nordic/lll/lll.c
|
||||
)
|
||||
zephyr_library_sources_ifdef(
|
||||
CONFIG_BT_LLL_VENDOR_OPENISA
|
||||
ll_sw/openisa/lll/lll.c
|
||||
)
|
||||
if(CONFIG_BT_BROADCASTER)
|
||||
zephyr_library_sources(
|
||||
ll_sw/ull_adv.c
|
||||
|
@ -74,6 +78,10 @@ if(CONFIG_BT_LL_SW_SPLIT)
|
|||
CONFIG_BT_LLL_VENDOR_NORDIC
|
||||
ll_sw/nordic/lll/lll_adv.c
|
||||
)
|
||||
zephyr_library_sources_ifdef(
|
||||
CONFIG_BT_LLL_VENDOR_OPENISA
|
||||
ll_sw/openisa/lll/lll_adv.c
|
||||
)
|
||||
endif()
|
||||
if(CONFIG_BT_OBSERVER)
|
||||
zephyr_library_sources(
|
||||
|
@ -83,6 +91,10 @@ if(CONFIG_BT_LL_SW_SPLIT)
|
|||
CONFIG_BT_LLL_VENDOR_NORDIC
|
||||
ll_sw/nordic/lll/lll_scan.c
|
||||
)
|
||||
zephyr_library_sources_ifdef(
|
||||
CONFIG_BT_LLL_VENDOR_OPENISA
|
||||
ll_sw/openisa/lll/lll_scan.c
|
||||
)
|
||||
endif()
|
||||
if(CONFIG_BT_CONN)
|
||||
zephyr_library_sources(
|
||||
|
@ -93,6 +105,11 @@ if(CONFIG_BT_LL_SW_SPLIT)
|
|||
ll_sw/nordic/lll/lll_clock.c
|
||||
ll_sw/nordic/lll/lll_conn.c
|
||||
)
|
||||
zephyr_library_sources_ifdef(
|
||||
CONFIG_BT_LLL_VENDOR_OPENISA
|
||||
ll_sw/openisa/lll/lll_clock.c
|
||||
ll_sw/openisa/lll/lll_conn.c
|
||||
)
|
||||
if(CONFIG_BT_PERIPHERAL)
|
||||
zephyr_library_sources(
|
||||
ll_sw/ull_slave.c
|
||||
|
@ -101,6 +118,10 @@ if(CONFIG_BT_LL_SW_SPLIT)
|
|||
CONFIG_BT_LLL_VENDOR_NORDIC
|
||||
ll_sw/nordic/lll/lll_slave.c
|
||||
)
|
||||
zephyr_library_sources_ifdef(
|
||||
CONFIG_BT_LLL_VENDOR_OPENISA
|
||||
ll_sw/openisa/lll/lll_slave.c
|
||||
)
|
||||
endif()
|
||||
if(CONFIG_BT_CENTRAL)
|
||||
zephyr_library_sources(
|
||||
|
@ -110,6 +131,10 @@ if(CONFIG_BT_LL_SW_SPLIT)
|
|||
CONFIG_BT_LLL_VENDOR_NORDIC
|
||||
ll_sw/nordic/lll/lll_master.c
|
||||
)
|
||||
zephyr_library_sources_ifdef(
|
||||
CONFIG_BT_LLL_VENDOR_OPENISA
|
||||
ll_sw/openisa/lll/lll_master.c
|
||||
)
|
||||
endif()
|
||||
if(CONFIG_BT_CTLR_SCHED_ADVANCED)
|
||||
zephyr_library_sources(
|
||||
|
@ -136,7 +161,20 @@ if(CONFIG_BT_LL_SW_SPLIT)
|
|||
zephyr_library_sources_ifdef(
|
||||
CONFIG_BT_CTLR_PROFILE_ISR
|
||||
ll_sw/nordic/lll/lll_prof.c
|
||||
)
|
||||
)
|
||||
endif()
|
||||
if(CONFIG_BT_LLL_VENDOR_OPENISA)
|
||||
zephyr_library_include_directories(
|
||||
ll_sw/openisa/lll
|
||||
)
|
||||
zephyr_library_sources_ifdef(
|
||||
CONFIG_BT_CTLR_DTM
|
||||
ll_sw/openisa/lll/lll_test.c
|
||||
)
|
||||
zephyr_library_sources_ifdef(
|
||||
CONFIG_BT_CTLR_PROFILE_ISR
|
||||
ll_sw/openisa/lll/lll_test.c
|
||||
)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
|
@ -154,6 +192,15 @@ zephyr_library_sources_ifdef(
|
|||
ll_sw/nordic/hal/nrf5/ticker.c
|
||||
)
|
||||
|
||||
zephyr_library_sources_ifdef(
|
||||
CONFIG_SOC_OPENISA_RV32M1_RISCV32
|
||||
ll_sw/openisa/hal/RV32M1/cntr.c
|
||||
ll_sw/openisa/hal/RV32M1/ecb.c
|
||||
ll_sw/openisa/hal/RV32M1/radio/radio.c
|
||||
ll_sw/openisa/hal/RV32M1/mayfly.c
|
||||
ll_sw/openisa/hal/RV32M1/ticker.c
|
||||
)
|
||||
|
||||
zephyr_library_include_directories(
|
||||
.
|
||||
include
|
||||
|
@ -167,6 +214,13 @@ if(CONFIG_SOC_COMPATIBLE_NRF)
|
|||
)
|
||||
endif()
|
||||
|
||||
if(CONFIG_SOC_OPENISA_RV32M1_RISCV32)
|
||||
zephyr_library_include_directories(
|
||||
ll_sw/openisa
|
||||
hci/openisa
|
||||
)
|
||||
endif()
|
||||
|
||||
zephyr_library_compile_options_ifdef(
|
||||
CONFIG_BT_CTLR_FAST_ENC
|
||||
${OPTIMIZE_FOR_SPEED_FLAG}
|
||||
|
|
|
@ -48,6 +48,14 @@ config BT_LLL_VENDOR_NORDIC
|
|||
help
|
||||
Use Nordic Lower Link Layer implementation.
|
||||
|
||||
config BT_LLL_VENDOR_OPENISA
|
||||
bool "Use OpenISA LLL"
|
||||
depends on BT_LL_SW_SPLIT && SOC_OPENISA_RV32M1_RISCV32
|
||||
select BT_HAS_HCI_VS
|
||||
default y
|
||||
help
|
||||
Use OpenISA Lower Link Layer implementation.
|
||||
|
||||
comment "BLE Controller configuration"
|
||||
|
||||
config BT_CTLR_CRYPTO
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue