Skip to content

Commit

Permalink
[noup] nordic_nrf: 54l: Add TIMER00 config for regression tests
Browse files Browse the repository at this point in the history
fixup! [nrf noup] platform: nordic_nrf: Add support for 54l

Adding missing definitions for UART ports to build the regression tests

Ref: NCSDK-27431
Signed-off-by: Markus Swarowsky <[email protected]>
  • Loading branch information
mswarowsky committed May 29, 2024
1 parent 27cf237 commit 8ad5f2f
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 2 deletions.
7 changes: 7 additions & 0 deletions platform/ext/target/nordic_nrf/common/core/target_cfg.c
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,13 @@ struct platform_data_t tfm_peripheral_timer0 = {
};
#endif

#if TFM_PERIPHERAL_TIMER00_SECURE
struct platform_data_t tfm_peripheral_timer00 = {
NRF_TIMER00_S_BASE,
NRF_TIMER00_S_BASE + (sizeof(NRF_TIMER_Type) - 1),
};
#endif

#if TFM_PERIPHERAL_TIMER1_SECURE
struct platform_data_t tfm_peripheral_timer1 = {
NRF_TIMER1_S_BASE,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@

#ifndef TFM_PERIPHERAL_TIMER00_SECURE
#define TFM_PERIPHERAL_TIMER00_SECURE 0
#endif

#ifndef TFM_PERIPHERAL_UARTE00_SECURE
#define TFM_PERIPHERAL_UARTE00_SECURE 0
#endif
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ extern "C" {

#define TFM_TIMER0_IRQ (NRFX_IRQ_NUMBER_GET(NRF_TIMER0))

extern struct platform_data_t tfm_peripheral_timer0;
extern struct platform_data_t tfm_peripheral_timer00;

#define TFM_PERIPHERAL_TIMER0 (&tfm_peripheral_timer0)
#define TFM_PERIPHERAL_TIMER00 (&tfm_peripheral_timer00)

/*
* Quantized default IRQ priority, the value is:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ extern "C" {
#define TFM_PERIPHERAL_UARTE30_SECURE 1
#endiff

#if TFM_PARTITION_SLIH_TEST || TFM_PARTITION_FLIH_TEST
#define TFM_PERIPHERAL_TIMER00_SECURE 1
#endif


#if defined(NRF54L15_ENGA_XXAA)
#include <tfm_peripherals_config_nrf54l15.h>
Expand Down

0 comments on commit 8ad5f2f

Please sign in to comment.