File tree 3 files changed +52
-3
lines changed
platform/ext/target/nordic_nrf/common/core 3 files changed +52
-3
lines changed Original file line number Diff line number Diff line change 34
34
35
35
#define ARM_USART_DRV_VERSION ARM_DRIVER_VERSION_MAJOR_MINOR(2, 2)
36
36
37
- #if RTE_USART0 || RTE_USART1 || RTE_USART2 || RTE_USART3
37
+ #if RTE_USART0 || RTE_USART1 || RTE_USART2 || RTE_USART3 || RTE_USART20 || RTE_USART22
38
38
39
39
#define PSEL_DISCONNECTED 0xFFFFFFFFUL
40
40
@@ -422,4 +422,13 @@ DRIVER_USART(2);
422
422
DRIVER_USART (3 );
423
423
#endif
424
424
425
- #endif /* RTE_USART0 || RTE_USART1 || RTE_USART2 || RTE_USART3 */
425
+ // TODO: NCSDK-25009: Support choosing an instance for TF-M
426
+ #if RTE_USART20
427
+ DRIVER_USART (20 );
428
+ #endif
429
+
430
+ #if RTE_USART22
431
+ DRIVER_USART (22 );
432
+ #endif
433
+
434
+ #endif /* RTE_USART0 || RTE_USART1 || etc. */
Original file line number Diff line number Diff line change 35
35
#include <RTE_Device.h>
36
36
37
37
#if RTE_FLASH0
38
+
39
+ #include <nrf.h>
40
+
41
+ #if defined(NRF_NVMC_S )
38
42
#define NRFX_NVMC_ENABLED 1
43
+ #elif defined(NRF_RRAMC_S )
44
+ #define NRFX_RRAMC_ENABLED 1
45
+ #else
46
+ #error "Unrecognized platform"
39
47
#endif
40
48
41
- #if RTE_USART0 || RTE_USART1 || RTE_USART2 || RTE_USART3
49
+ #endif /* RTE_FLASH0 */
50
+
51
+ #if RTE_USART0 || RTE_USART1 || RTE_USART2 || RTE_USART3 || RTE_USART20 || RTE_USART22
42
52
#define NRFX_UARTE_ENABLED 1
43
53
#endif
44
54
#if RTE_USART0
54
64
#define NRFX_UARTE3_ENABLED 1
55
65
#endif
56
66
67
+ // TODO: NCSDK-25009: Moonlight: Make it possible to use different UARTS with TF-M
68
+ #if RTE_USART20
69
+ #define NRFX_UARTE20_ENABLED 1
70
+ #endif
71
+ #if RTE_USART22
72
+ #define NRFX_UARTE22_ENABLED 1
73
+ #endif
74
+
57
75
/*
58
76
* For chips with TrustZone support, MDK provides CMSIS-Core peripheral
59
77
* accessing symbols in two flavors, with secure and non-secure base address
72
90
#include <nrfx_config_nrf5340_application.h>
73
91
#elif defined(NRF91_SERIES )
74
92
#include <nrfx_config_nrf91.h>
93
+ #elif defined(NRF54L15_ENGA_XXAA )
94
+ #include <nrfx_config_nrf54l15_application.h>
75
95
#else
76
96
#error "Unknown device."
77
97
#endif
Original file line number Diff line number Diff line change 35
35
#include "tfm_plat_defs.h"
36
36
#include "region_defs.h"
37
37
38
+ // TODO: NCSDK-25009: Support configuring which UART is used by TF-M on nrf54L
39
+
40
+ #if NRF_SECURE_UART_INSTANCE == 0
41
+ #define TFM_DRIVER_STDIO Driver_USART0
42
+ #elif NRF_SECURE_UART_INSTANCE == 1
38
43
#define TFM_DRIVER_STDIO Driver_USART1
44
+ #elif NRF_SECURE_UART_INSTANCE == 22
45
+ #define TFM_DRIVER_STDIO Driver_USART22
46
+ #endif
47
+
48
+ #ifdef NRF54L15_ENGA_XXAA
49
+ #define NS_DRIVER_STDIO Driver_USART20
50
+ #else
39
51
#define NS_DRIVER_STDIO Driver_USART0
52
+ #endif
40
53
41
54
/**
42
55
* \brief Store the addresses of memory regions
@@ -92,6 +105,13 @@ enum tfm_plat_err_t spu_periph_init_cfg(void);
92
105
*/
93
106
void spu_clear_irq (void );
94
107
108
+ /**
109
+ * \brief Configures memory permissions via the MPC.
110
+ *
111
+ * \return Returns values as specified by the \ref tfm_plat_err_t
112
+ */
113
+ enum tfm_plat_err_t nrf_mpc_init_cfg (void );
114
+
95
115
/**
96
116
* \brief Configures SAU and IDAU.
97
117
*/
You can’t perform that action at this time.
0 commit comments