Skip to content

Commit af8d655

Browse files
mattia-moffadanielinux
authored andcommitted
Fix non-tz build again
1 parent da99222 commit af8d655

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

hal/nrf54l.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ static void hal_handle_approtect(void)
382382
#endif
383383
}
384384

385-
#if TZ_SECURE()
385+
#ifdef TZEN
386386
/* Make a single peripheral non-secure */
387387
static void spu_periph_set_ns(uint32_t periph_s_addr)
388388
{
@@ -473,7 +473,7 @@ static void periph_unsecure(void)
473473
spu_periph_set_ns(GPIO_P0_S_BASE);
474474
spu_gpio_pins_set_ns(SPU30_BASE, 0);
475475
}
476-
#endif /* TZ_SECURE() */
476+
#endif /* TZEN */
477477

478478
void hal_init(void)
479479
{
@@ -486,7 +486,7 @@ void hal_init(void)
486486
clock_init();
487487
#endif
488488

489-
#if TZ_SECURE()
489+
#ifdef TZEN
490490
hal_tz_init();
491491
#endif
492492

@@ -500,7 +500,7 @@ void hal_prepare_boot(void)
500500
{
501501
clock_deinit();
502502

503-
#if TZ_SECURE()
503+
#ifdef TZEN
504504
periph_unsecure();
505505
DSB();
506506
ISB();

0 commit comments

Comments
 (0)