Skip to content

Commit bca0909

Browse files
asmellbydkalowsk
authored andcommitted
soc: silabs: silabs_s2: Fix radio interrupt init condition
Radio interrupts were only initialized if CONFIG_ARM_SECURE_FIRMWARE=y, but should be initialized independently of security configuration. Move initialization from soc_prep_hook() to soc_early_init_hook(), there is no reason to configure interrupts earlier. Signed-off-by: Aksel Skauge Mellbye <[email protected]>
1 parent 396466e commit bca0909

File tree

1 file changed

+3
-4
lines changed
  • soc/silabs/silabs_s2

1 file changed

+3
-4
lines changed

soc/silabs/silabs_s2/soc.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@ void soc_early_init_hook(void)
5555
if (IS_ENABLED(CONFIG_PM)) {
5656
sl_power_manager_init();
5757
}
58+
if (IS_ENABLED(CONFIG_SOC_GECKO_USE_RAIL)) {
59+
rail_isr_installer();
60+
}
5861
}
5962

6063
#if defined(CONFIG_ARM_SECURE_FIRMWARE) && !defined(CONFIG_ARM_FIRMWARE_HAS_SECURE_ENTRY_FUNCS)
@@ -114,9 +117,5 @@ void soc_prep_hook(void)
114117

115118
IRQ_DIRECT_CONNECT(SMU_SECURE_IRQn, 0, smu_fault, 0);
116119
irq_enable(SMU_SECURE_IRQn);
117-
118-
if (IS_ENABLED(CONFIG_SOC_GECKO_USE_RAIL)) {
119-
rail_isr_installer();
120-
}
121120
#endif
122121
}

0 commit comments

Comments
 (0)