soc: MCXW71: Add BLE support
- Add IMU regions - Add HCI definition - Add config when BT is enabled Signed-off-by: Yassine El Aissaoui <yassine.elaissaoui@nxp.com>
This commit is contained in:
parent
89709ee382
commit
ad8b62413d
5 changed files with 64 additions and 5 deletions
|
@ -1,4 +1,4 @@
|
|||
# Copyright 2023 NXP
|
||||
# Copyright 2023-2024 NXP
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
|
@ -7,3 +7,5 @@ zephyr_sources(soc.c mcxw71_platform_init.S)
|
|||
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)
|
||||
|
|
|
@ -12,4 +12,20 @@ config SYS_CLOCK_HW_CYCLES_PER_SEC
|
|||
config MCUX_FLASH_K4_API
|
||||
default y
|
||||
|
||||
if BT
|
||||
|
||||
# Include intercore messaging component
|
||||
config NXP_RF_IMU
|
||||
default y
|
||||
|
||||
# Set the controller's public identity using NXP vendor command
|
||||
config BT_HCI_SET_PUBLIC_ADDR
|
||||
default y
|
||||
|
||||
# HCI RX buffers are received in ISR context. RX messages
|
||||
# need to be queued and processed by a dedicated thread
|
||||
config HCI_NXP_RX_THREAD
|
||||
default y
|
||||
|
||||
endif # BT
|
||||
endif # SOC_SERIES_MCXW
|
||||
|
|
18
soc/nxp/mcx/mcxw/sections.ld
Normal file
18
soc/nxp/mcx/mcxw/sections.ld
Normal file
|
@ -0,0 +1,18 @@
|
|||
/*
|
||||
* Copyright 2024 NXP
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
/* NOINIT section for rpmsg_sh_mem */
|
||||
.noinit_rpmsg_sh_mem (NOLOAD) : ALIGN(4)
|
||||
{
|
||||
__RPMSG_SH_MEM_START__ = .;
|
||||
PROVIDE(rpmsg_sh_mem_start = __RPMSG_SH_MEM_START__);
|
||||
|
||||
*(.noinit.$rpmsg_sh_mem*)
|
||||
. = ALIGN(4) ;
|
||||
__RPMSG_SH_MEM_END__ = .;
|
||||
PROVIDE(rpmsg_sh_mem_end = __RPMSG_SH_MEM_END__);
|
||||
|
||||
} > rpmsg_sh_mem
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2023 NXP
|
||||
* Copyright 2023-2024 NXP
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
|
@ -10,4 +10,6 @@
|
|||
|
||||
#define PORT_MUX_GPIO kPORT_MuxAsGpio
|
||||
|
||||
#define ble_hci_handler RF_IMU0_IRQHandler
|
||||
|
||||
#endif /* _SOC__H_ */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue