File tree Expand file tree Collapse file tree 2 files changed +38
-17
lines changed
boards/arm/nrf5340dk_nrf5340 Expand file tree Collapse file tree 2 files changed +38
-17
lines changed Original file line number Diff line number Diff line change 11# nRF5340 (P)DK board configuration
22
3- # Copyright (c) 2019 - 2020 Nordic Semiconductor ASA
3+ # Copyright (c) 2019 - 2021 Nordic Semiconductor ASA
44# SPDX-License-Identifier: Apache-2.0
55
6+ config IPM_NRFX
7+ default IPM
8+
9+ config RPMSG_SERVICE_DUAL_IPM_SUPPORT
10+ default RPMSG_SERVICE
11+
12+ if RPMSG_SERVICE_DUAL_IPM_SUPPORT
13+
14+ config IPM_MSG_CH_0_ENABLE
15+ default y
16+
17+ config IPM_MSG_CH_1_ENABLE
18+ default y
19+
20+ config RPMSG_SERVICE_IPM_TX_NAME
21+ default "IPM_0" if RPMSG_SERVICE_MODE_MASTER
22+ default "IPM_1" if RPMSG_SERVICE_MODE_REMOTE
23+
24+ config RPMSG_SERVICE_IPM_RX_NAME
25+ default "IPM_1" if RPMSG_SERVICE_MODE_MASTER
26+ default "IPM_0" if RPMSG_SERVICE_MODE_REMOTE
27+
28+ config IPM_MSG_CH_0_TX
29+ default RPMSG_SERVICE_MODE_MASTER
30+
31+ config IPM_MSG_CH_0_RX
32+ default RPMSG_SERVICE_MODE_REMOTE
33+
34+ config IPM_MSG_CH_1_TX
35+ default RPMSG_SERVICE_MODE_REMOTE
36+
37+ config IPM_MSG_CH_1_RX
38+ default RPMSG_SERVICE_MODE_MASTER
39+
40+ endif # RPMSG_SERVICE_DUAL_IPM_SUPPORT
41+
642if BOARD_NRF5340PDK_NRF5340_CPUAPP || BOARD_NRF5340PDK_NRF5340_CPUAPPNS || BOARD_NRF5340DK_NRF5340_CPUAPP || BOARD_NRF5340DK_NRF5340_CPUAPPNS
743
844config BOARD_ENABLE_DCDC_APP
Original file line number Diff line number Diff line change 11/*
2- * Copyright (c) 2019-2020 Nordic Semiconductor ASA.
2+ * Copyright (c) 2019-2021 Nordic Semiconductor ASA.
33 *
44 * SPDX-License-Identifier: Apache-2.0
55 */
1212
1313LOG_MODULE_REGISTER (nrf5340pdk_nrf5340_cpuapp , CONFIG_LOG_DEFAULT_LEVEL );
1414
15- /* Shared memory definitions */
16- #if DT_HAS_CHOSEN (zephyr_ipc_shm )
17- #define SHM_NODE DT_CHOSEN(zephyr_ipc_shm)
18- #define SHM_BASE_ADDRESS DT_REG_ADDR(SHM_NODE)
19- #define SHM_SIZE DT_REG_SIZE(SHM_NODE)
20- #endif
21-
2215#if !defined(CONFIG_TRUSTED_EXECUTION_NONSECURE )
2316
2417/* This should come from DTS, possibly an overlay. */
@@ -83,14 +76,6 @@ static int remoteproc_mgr_boot(const struct device *dev)
8376 * this case do the remainder of actions to properly configure and
8477 * boot the Network MCU.
8578 */
86- #if defined(SHM_BASE_ADDRESS ) && (SHM_BASE_ADDRESS != 0 )
87-
88- /* Initialize inter-processor shared memory block to zero. It is
89- * assumed that the application image has access to the shared
90- * memory at this point (see #24147).
91- */
92- memset ((void * ) SHM_BASE_ADDRESS , 0 , SHM_SIZE );
93- #endif
9479
9580 /* Release the Network MCU, 'Release force off signal' */
9681 NRF_RESET -> NETWORK .FORCEOFF = RESET_NETWORK_FORCEOFF_FORCEOFF_Release ;
You can’t perform that action at this time.
0 commit comments