Skip to content

Commit 1fe6c77

Browse files
driver: misc: introduce silabs siwx91x network coprocessor driver
Actually, no driver is linked to the nwp (network coprocessor) device, which didn't allow us to check on a successful initialization for all the other options that depends on it (WiFi, BT, Power Management,...). This patch allows to declare the nwp as a device and to link all the ressources that the nwp needs to work properly (stack, irq, ...). Signed-off-by: Martin Hoff <[email protected]>
1 parent 169cf86 commit 1fe6c77

File tree

7 files changed

+601
-0
lines changed

7 files changed

+601
-0
lines changed

drivers/misc/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ add_subdirectory_ifdef(CONFIG_MCUX_FLEXIO mcux_flexio)
1313
add_subdirectory_ifdef(CONFIG_RENESAS_RA_EXTERNAL_INTERRUPT renesas_ra_external_interrupt)
1414
add_subdirectory_ifdef(CONFIG_RENESAS_RX_EXTERNAL_INTERRUPT renesas_rx_external_interrupt)
1515
add_subdirectory_ifdef(CONFIG_NXP_RTXXX_DSP_CTRL nxp_rtxxx_dsp_ctrl)
16+
add_subdirectory_ifdef(CONFIG_SILABS_SIWX91X_NWP silabs_siwx91x_nwp)
1617
add_subdirectory_ifdef(CONFIG_STM32N6_AXISRAM stm32n6_axisram)
1718

1819
add_subdirectory(interconn)

drivers/misc/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ source "drivers/misc/interconn/Kconfig"
1919
source "drivers/misc/renesas_ra_external_interrupt/Kconfig"
2020
source "drivers/misc/renesas_rx_external_interrupt/Kconfig"
2121
source "drivers/misc/nxp_rtxxx_dsp_ctrl/Kconfig"
22+
source "drivers/misc/silabs_siwx91x_nwp/Kconfig"
2223
source "drivers/misc/stm32n6_axisram/Kconfig"
2324
source "drivers/misc/nxp_inputmux/Kconfig"
2425

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
3+
zephyr_library()
4+
5+
zephyr_include_directories(.)
6+
7+
zephyr_library_sources_ifdef(CONFIG_SILABS_SIWX91X_NWP siwx91x_nwp.c)
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Copyright (c) 2025 Silicon Laboratories Inc.
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
config SILABS_SIWX91X_NWP
5+
bool "Silabs Network Coprocessor"
6+
depends on DT_HAS_SILABS_SIWX91X_NWP_ENABLED
7+
select POLL
8+
select DYNAMIC_THREAD
9+
select THREAD_NAME
10+
select THREAD_STACK_INFO
11+
select THREAD_MONITOR
12+
select INIT_STACKS
13+
select CMSIS_RTOS_V2
14+
help
15+
Add support for Network Coprocessor (also named NWP) presents on SiWx91x parts.
16+
17+
if SILABS_SIWX91X_NWP
18+
19+
config CMSIS_V2_THREAD_DYNAMIC_MAX_COUNT
20+
default 2
21+
22+
config CMSIS_V2_THREAD_DYNAMIC_STACK_SIZE
23+
default 1024
24+
25+
config CMSIS_V2_THREAD_MAX_STACK_SIZE
26+
default 2048
27+
28+
endif

0 commit comments

Comments
 (0)