Skip to content

Commit 426bf81

Browse files
committed
[nrf fromtree] platform: nordic_nrf: nrf7120: switch to uart20
Change to use from uart00 to uart20 in npse. Change-Id: Ia6971598b97982edb49dda0eb6116ee640611eb9 Signed-off-by: Travis Lam <[email protected]> (cherry picked from commit 0f6ade4902a6e3e8a7afc5c4560feb7560af123d)
1 parent 5a12632 commit 426bf81

File tree

3 files changed

+9
-15
lines changed

3 files changed

+9
-15
lines changed

platform/ext/target/nordic_nrf/common/core/target_cfg.h

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -59,18 +59,12 @@
5959
/* Only UART20 and UART30 are supported for TF-M tests, which are the
6060
* Non-secure applications build via the TF-M build system
6161
*/
62-
#if defined(NRF54L_SERIES)
62+
#if defined(NRF54L_SERIES) || defined(NRF71_SERIES)
6363
#if NRF_SECURE_UART_INSTANCE == 20
6464
#define NS_DRIVER_STDIO Driver_USART30
6565
#else
6666
#define NS_DRIVER_STDIO Driver_USART20
6767
#endif
68-
#elif defined(NRF71_SERIES)
69-
#if defined(NRF_SECURE_UART_INSTANCE) && (NRF_SECURE_UART_INSTANCE == 00)
70-
#define NS_DRIVER_STDIO Driver_USART30
71-
#else
72-
#define NS_DRIVER_STDIO Driver_USART00
73-
#endif
7468
#else
7569
#define NS_DRIVER_STDIO Driver_USART0
7670
#endif /* NRF54L_SERIES or NRF71_SERIES */

platform/ext/target/nordic_nrf/common/nrf7120/config.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
include(${PLATFORM_PATH}/common/core/config.cmake)
1010

11-
set(SECURE_UART30 ON CACHE BOOL "Enable secure UART" FORCE)
11+
set(SECURE_UART30 ON CACHE BOOL "Enable secure UART")
1212
set(BL2 OFF CACHE BOOL "Whether to build BL2" FORCE)
1313
set(NRF_NS_SECONDARY OFF CACHE BOOL "Enable non-secure secondary partition" FORCE)
14-
set(NRF_SECURE_UART_INSTANCE 30 CACHE STRING "The UART instance number to use for secure UART" FORCE)
14+
set(NRF_SECURE_UART_INSTANCE 30 CACHE STRING "The UART instance number to use for secure UART")

platform/ext/target/nordic_nrf/nrf7120dk_nrf7120_cpuapp/RTE_Device.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@
1717
#ifndef __RTE_DEVICE_H
1818
#define __RTE_DEVICE_H
1919

20-
#define RTE_USART00 1
20+
#define RTE_USART20 1
2121

22-
#define RTE_USART00_PINS \
22+
#define RTE_USART20_PINS \
2323
{ \
24-
NRF_PSEL(UART_TX, 2, 2),\
25-
NRF_PSEL(UART_RX, 2, 0),\
26-
NRF_PSEL(UART_RTS, 2, 5),\
27-
NRF_PSEL(UART_CTS, 2, 4),\
24+
NRF_PSEL(UART_TX, 1, 4),\
25+
NRF_PSEL(UART_RX, 1, 5),\
26+
NRF_PSEL(UART_RTS, 1, 6),\
27+
NRF_PSEL(UART_CTS, 1, 7),\
2828
}
2929

3030

0 commit comments

Comments
 (0)