|
7 | 7 | if BUILD_WITH_TFM || IS_SPM |
8 | 8 | menu "Trusted Execution Non-Secure" |
9 | 9 |
|
| 10 | +menu "TF-M UART pins" |
| 11 | + visible if BUILD_WITH_TFM |
| 12 | + |
| 13 | +config TFM_SECURE_UART1 |
| 14 | + bool |
| 15 | + select NRF_UARTE1_SECURE |
| 16 | + |
| 17 | +config TFM_UART0_TXD_PIN |
| 18 | + int "UART0 TXD pin" |
| 19 | + default 29 if BOARD_NRF9160DK_NRF9160_NS |
| 20 | + default 20 if BOARD_NRF5340DK_NRF5340_CPUAPP_NS |
| 21 | + default 4294967295 # 0xffffffff i.e. disconnected |
| 22 | + help |
| 23 | + The GPIO pin the TFM build system will use for UART0 TXD pin. |
| 24 | + UART0 is used by TF-M as the log output for the non-secure image. |
| 25 | + |
| 26 | + Note: The non-secure image is only ever used when running the |
| 27 | + TF-M regression tests. |
| 28 | + |
| 29 | +config TFM_UART0_RXD_PIN |
| 30 | + int "UART0 RXD pin" |
| 31 | + default 28 if BOARD_NRF9160DK_NRF9160_NS |
| 32 | + default 22 if BOARD_NRF5340DK_NRF5340_CPUAPP_NS |
| 33 | + default 4294967295 # 0xffffffff i.e. disconnected |
| 34 | + help |
| 35 | + The GPIO pin the TFM build system will use for UART0 RXD pin. |
| 36 | + UART0 is used by TF-M as the log output for the non-secure image. |
| 37 | + |
| 38 | + Note: The non-secure image is only ever used when running the |
| 39 | + TF-M regression tests. |
| 40 | + |
| 41 | +config TFM_UART0_RTS_PIN |
| 42 | + int "UART0 RTS pin" |
| 43 | + default 27 if BOARD_NRF9160DK_NRF9160_NS |
| 44 | + default 19 if BOARD_NRF5340DK_NRF5340_CPUAPP_NS |
| 45 | + default 4294967295 # 0xffffffff i.e. disconnected |
| 46 | + help |
| 47 | + The GPIO pin the TFM build system will use for UART0 RTS pin. |
| 48 | + UART0 is used by TF-M as the log output for the non-secure image. |
| 49 | + |
| 50 | + Note: The non-secure image is only ever used when running the |
| 51 | + TF-M regression tests. |
| 52 | + |
| 53 | +config TFM_UART0_CTS_PIN |
| 54 | + int "UART0 CTS pin" |
| 55 | + default 26 if BOARD_NRF9160DK_NRF9160_NS |
| 56 | + default 21 if BOARD_NRF5340DK_NRF5340_CPUAPP_NS |
| 57 | + default 4294967295 # 0xffffffff i.e. disconnected |
| 58 | + help |
| 59 | + The GPIO pin the TFM build system will use for UART0 CTS pin. |
| 60 | + UART0 is used by TF-M as the log output for the non-secure image. |
| 61 | + |
| 62 | + Note: The non-secure image is only ever used when running the |
| 63 | + TF-M regression tests. |
| 64 | + |
| 65 | +config TFM_UART1_TXD_PIN |
| 66 | + int "UART1 TXD pin" |
| 67 | + depends on TFM_SECURE_UART1 |
| 68 | + default 1 if BOARD_NRF9160DK_NRF9160_NS |
| 69 | + default 25 if BOARD_NRF5340DK_NRF5340_CPUAPP_NS |
| 70 | + default 4294967295 # 0xffffffff i.e. disconnected |
| 71 | + help |
| 72 | + The GPIO pin the TFM build system will use for UART1 TXD pin. |
| 73 | + UART1 is used by TF-M as the log output for the secure image. |
| 74 | + |
| 75 | +config TFM_UART1_RXD_PIN |
| 76 | + int "UART1 RXD pin" |
| 77 | + depends on TFM_SECURE_UART1 |
| 78 | + default 0 if BOARD_NRF9160DK_NRF9160_NS |
| 79 | + default 26 if BOARD_NRF5340DK_NRF5340_CPUAPP_NS |
| 80 | + default 4294967295 # 0xffffffff i.e. disconnected |
| 81 | + help |
| 82 | + The GPIO pin the TFM build system will use for UART1 RXD pin. |
| 83 | + UART1 is used by TF-M as the log output for the secure image. |
| 84 | + |
| 85 | +endmenu |
| 86 | + |
10 | 87 | menu "Peripheral Secure mapping" |
11 | 88 |
|
12 | 89 | rsource "${ZEPHYR_BASE}/modules/hal_nordic/Kconfig.dt" |
|
0 commit comments