hw/mcu/nrf53: Enable DCDC on VREGH
If high voltage mode is used, we should also enable DCDC on VREGH.
@@ -46,6 +46,9 @@ hal_system_init(void)
#if MYNEWT_VAL(MCU_DCDC_ENABLED)
NRF_REGULATORS->VREGMAIN.DCDCEN = 1;
+ if (NRF_REGULATORS->MAINREGSTATUS & REGULATORS_MAINREGSTATUS_VREGH_Msk) {
+ NRF_REGULATORS->VREGH.DCDCEN = 1;
+ }
#if MYNEWT_VAL(BSP_NRF5340_NET_ENABLE)
NRF_REGULATORS->VREGRADIO.DCDCEN = 1;
