Skip to content

Commit

Permalink
[nrf fromlist] soc: nordic: nrf54l: add preliminary workaround for nR…
Browse files Browse the repository at this point in the history
…F54L anomaly 31

This workaround will be replaced with a variant
executed at SystemInit() level, once MDK implements it.

Upstream PR #: 82268

Signed-off-by: Nikodem Kastelik <[email protected]>
  • Loading branch information
nika-nordic committed Dec 2, 2024
1 parent 5915505 commit 0d8d7b8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions soc/nordic/nrf54l/soc.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
#endif
#include <soc/nrfx_coredep.h>

#include <nrf_erratas.h>
#include <system_nrf54l.h>

LOG_MODULE_REGISTER(soc, CONFIG_SOC_LOG_LEVEL);
Expand Down Expand Up @@ -154,6 +155,13 @@ static inline void power_and_clock_configuration(void)
}

#if (DT_PROP(DT_NODELABEL(vregmain), regulator_initial_mode) == NRF5X_REG_MODE_DCDC)
#if NRF54L_ERRATA_31_ENABLE_WORKAROUND
/* Workaround for Errata 31 */
if (nrf54l_errata_31()) {
*((volatile uint32_t *)0x50120624ul) = 20 | 1<<5;
*((volatile uint32_t *)0x5012063Cul) &= ~(1<<19);
}
#endif
nrf_regulators_vreg_enable_set(NRF_REGULATORS, NRF_REGULATORS_VREG_MAIN, true);
#endif

Expand Down

0 comments on commit 0d8d7b8

Please sign in to comment.