Commit 5f6fc8ad authored by Nikodem Kastelik's avatar Nikodem Kastelik Committed by Anas Nashif
Browse files

soc: nordic: nrf54l: tune configuration of DCDC regulator

DCDC regulator on nRF54L may not always works as intended.
Tune the fix addressing that.

Signed-off-by: default avatarNikodem Kastelik <nikodem.kastelik@nordicsemi.no>
parent b7fb1012
Loading
Loading
Loading
Loading
+2 −2
Changes for soc/nordic/nrf54l/soc.c: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -154,8 +154,8 @@ static int nordicsemi_nrf54l_init(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;
	if (*(uint32_t volatile *)0x00FFC334 <= 0x180A1D00) {
		*(uint32_t volatile *)0x50120640 = 0x1EA9E040;
	}
#endif
	nrf_regulators_vreg_enable_set(NRF_REGULATORS, NRF_REGULATORS_VREG_MAIN, true);