Skip to content

Commit 4f165c1

Browse files
committed
[nrf fromlist] cpuconf: SYS_INIT for booting rad from app
SYS_INIT for booting rad from app. Upstream PR #: 88908 Signed-off-by: Sebastian Bøe <[email protected]>
1 parent 8ec6ca0 commit 4f165c1

File tree

3 files changed

+30
-0
lines changed

3 files changed

+30
-0
lines changed

soc/nordic/nrf54h/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ if(CONFIG_ARM)
99
endif()
1010

1111
zephyr_library_sources_ifdef(CONFIG_PM_S2RAM pm_s2ram.c)
12+
zephyr_library_sources_ifdef(CONFIG_SOC_NRF54H20_CPURAD_ENABLE cpurad_mgmt.c)
1213

1314
zephyr_include_directories(.)
1415

soc/nordic/nrf54h/Kconfig

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,13 @@ config SOC_NRF54H20_CPURAD_COMMON
6363
select HAS_PM
6464
select HAS_POWEROFF
6565

66+
config SOC_NRF54H20_CPURAD_ENABLE
67+
bool "NRF54H20 Radio core is enabled at boot time"
68+
default y if NRF_802154_SER_HOST
69+
help
70+
This option enables releasing the Radio 'force off' signal, which
71+
as a consequence will power up the Radio core during system boot.
72+
6673
config SOC_NRF54H20_CPURAD
6774
select SOC_NRF54H20_CPURAD_COMMON
6875

soc/nordic/nrf54h/cpurad_mgmt.c

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
/*
2+
* Copyright (c) 2025 Nordic Semiconductor ASA
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
/**
8+
* @file Nordic Semiconductor nRF54h20 processors family management helper for the radio core.
9+
*/
10+
11+
#include <zephyr/init.h>
12+
13+
#include <ironside/se/cpuconf.h>
14+
15+
static int nrf54h20_cpurad_init(void)
16+
{
17+
uint32_t dummy = 0xbadcafe;
18+
19+
return ironside_se_cpuconf_boot_radiocore((uint8_t*)&dummy, sizeof(dummy));
20+
}
21+
22+
SYS_INIT(nrf54h20_cpurad_init, POST_KERNEL, CONFIG_KERNEL_INIT_PRIORITY_DEVICE);

0 commit comments

Comments
 (0)