Skip to content

Commit 1ceee76

Browse files
joerchancvinayak
authored andcommitted
[nrf fromtree] platform: nordic_nrf: Fix nrf9160 non-secure peripheral regression
Fix regression since target_cfg.c was refactored to a common file for nrf91 and nrf53. The I2S and PDM peripheral are not configured as non-secure peripherals. Change-Id: Ibc2c0caa0694458f2b0071976a7494a0d23f529b Signed-off-by: Joakim Andersson <[email protected]> (cherry picked from commit 3bd6fb8) (cherry picked from commit f2a4620) Signed-off-by: Joakim Andersson <[email protected]>
1 parent afd54b6 commit 1ceee76

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -826,9 +826,15 @@ enum tfm_plat_err_t spu_periph_init_cfg(void)
826826
spu_peripheral_config_non_secure((uint32_t)NRF_PWM1, false);
827827
spu_peripheral_config_non_secure((uint32_t)NRF_PWM2, false);
828828
spu_peripheral_config_non_secure((uint32_t)NRF_PWM3, false);
829+
#ifdef NRF_PDM
830+
spu_peripheral_config_non_secure((uint32_t)NRF_PDM, false);
831+
#endif
829832
#ifdef NRF_PDM0
830833
spu_peripheral_config_non_secure((uint32_t)NRF_PDM0, false);
831834
#endif
835+
#ifdef NRF_I2S
836+
spu_peripheral_config_non_secure((uint32_t)NRF_I2S, false);
837+
#endif
832838
#ifdef NRF_I2S0
833839
spu_peripheral_config_non_secure((uint32_t)NRF_I2S0, false);
834840
#endif

0 commit comments

Comments
 (0)