Skip to content

Commit 9042ad0

Browse files
nika-nordicjukkar
authored andcommitted
[nrf fromlist] soc: nordic: nrf54l: add preliminary workaround for nRF54L 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]> (cherry picked from commit 9bb619d)
1 parent aaa933a commit 9042ad0

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

soc/nordic/nrf54l/soc.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
#endif
3939
#include <soc/nrfx_coredep.h>
4040

41+
#include <nrf_erratas.h>
4142
#include <system_nrf54l.h>
4243

4344
LOG_MODULE_REGISTER(soc, CONFIG_SOC_LOG_LEVEL);
@@ -154,6 +155,13 @@ static inline void power_and_clock_configuration(void)
154155
}
155156

156157
#if (DT_PROP(DT_NODELABEL(vregmain), regulator_initial_mode) == NRF5X_REG_MODE_DCDC)
158+
#if NRF54L_ERRATA_31_ENABLE_WORKAROUND
159+
/* Workaround for Errata 31 */
160+
if (nrf54l_errata_31()) {
161+
*((volatile uint32_t *)0x50120624ul) = 20 | 1<<5;
162+
*((volatile uint32_t *)0x5012063Cul) &= ~(1<<19);
163+
}
164+
#endif
157165
nrf_regulators_vreg_enable_set(NRF_REGULATORS, NRF_REGULATORS_VREG_MAIN, true);
158166
#endif
159167

0 commit comments

Comments
 (0)