Skip to content

Commit

Permalink
[nrf fromlist] soc: nordic: nrf54l: fix configuration of DCDC regulator
Browse files Browse the repository at this point in the history
DCDC regulator on nRF54L may not always works as intended.
Apply a fix addressing that.

Upstream PR #: 80635

Signed-off-by: Nikodem Kastelik <[email protected]>
(cherry picked from commit d59b845)
  • Loading branch information
nika-nordic authored and rlubos committed Oct 31, 2024
1 parent 7d013c9 commit 4240ce8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions soc/nordic/nrf54l/soc.c
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,11 @@ static inline void power_and_clock_configuration(void)
}

#if (DT_PROP(DT_NODELABEL(vregmain), regulator_initial_mode) == NRF5X_REG_MODE_DCDC)
#if defined(__CORTEX_M) && !defined(NRF_TRUSTZONE_NONSECURE) && defined(__ARM_FEATURE_CMSE)
if (*(uint32_t *)0x00FFC334 <= 0x180A1D00) {
*(uint32_t *)0x50120640 = 0x1FAAE85C;
}
#endif
nrf_regulators_vreg_enable_set(NRF_REGULATORS, NRF_REGULATORS_VREG_MAIN, true);
#endif

Expand Down

0 comments on commit 4240ce8

Please sign in to comment.