|
| 1 | +# Private config options for openamp sample app |
| 2 | + |
| 3 | +# Copyright (c) 2021 Carlo Caione < [email protected]> |
| 4 | +# SPDX-License-Identifier: Apache-2.0 |
| 5 | + |
| 6 | +# Workaround for not being able to have commas in macro arguments |
| 7 | +DT_CHOSEN_Z_IPC_SHM := zephyr,ipc_shm |
| 8 | +DT_CHOSEN_Z_IPC_TX := zephyr,ipc_tx |
| 9 | +DT_CHOSEN_Z_IPC_RX := zephyr,ipc_rx |
| 10 | + |
| 11 | +config OPENAMP_IPC_SHM_BASE_ADDRESS |
| 12 | + hex |
| 13 | + default "$(dt_chosen_reg_addr_hex,$(DT_CHOSEN_Z_IPC_SHM))" |
| 14 | + help |
| 15 | + This option specifies base address of the memory region to |
| 16 | + be used for the OpenAMP IPC shared memory |
| 17 | + |
| 18 | +config OPENAMP_IPC_SHM_SIZE |
| 19 | + hex |
| 20 | + default "$(dt_chosen_reg_size_hex,$(DT_CHOSEN_Z_IPC_SHM))" |
| 21 | + help |
| 22 | + This option specifies size of the memory region to be used |
| 23 | + for the OpenAMP IPC shared memory |
| 24 | + |
| 25 | +config OPENAMP_IPC_DEV_TX_NAME |
| 26 | + string |
| 27 | + default "$(dt_chosen_label,$(DT_CHOSEN_Z_IPC_TX))" if !IPM_NRFX |
| 28 | + default "IPM_1" if (IPM_NRFX && OPENAMP_MASTER) |
| 29 | + default "IPM_0" if (IPM_NRFX && OPENAMP_SLAVE) |
| 30 | + help |
| 31 | + This option specifies the device name for the IPC device to be used (TX) |
| 32 | + |
| 33 | +config OPENAMP_IPC_DEV_RX_NAME |
| 34 | + string |
| 35 | + default "$(dt_chosen_label,$(DT_CHOSEN_Z_IPC_RX))" if !IPM_NRFX |
| 36 | + default "IPM_0" if (IPM_NRFX && OPENAMP_MASTER) |
| 37 | + default "IPM_1" if (IPM_NRFX && OPENAMP_SLAVE) |
| 38 | + help |
| 39 | + This option specifies the device name for the IPC device to be used (RX) |
| 40 | + |
| 41 | +source "Kconfig.zephyr" |
0 commit comments