soc: nordic: nrf52: fix used define for enabling DCDC converter
Use the correct define for checking if the DCDC converter shall be
enabled.
This resolves the opposite behavior where boards that enable the DCDC
converter uses the LDO and boards where LDO is used they enable the
DCDC.
Fixes: e189fb0720
("soc: nordic: nrf52: add support for DT-based
regulators config")
Signed-off-by: Sean Nyekjaer <sean@geanix.com>
This commit is contained in:
parent
13eb7a1ee2
commit
d218a2d73e
1 changed files with 2 additions and 2 deletions
|
@ -32,8 +32,8 @@ static int nordicsemi_nrf52_init(void)
|
||||||
NRF_NVMC->ICACHECNF = NVMC_ICACHECNF_CACHEEN_Msk;
|
NRF_NVMC->ICACHECNF = NVMC_ICACHECNF_CACHEEN_Msk;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(CONFIG_SOC_DCDC_NRF52X) || \
|
#if defined(CONFIG_SOC_DCDC_NRF52X) || (DT_PROP(DT_INST(0, nordic_nrf5x_regulator), \
|
||||||
(DT_PROP(DT_INST(0, nordic_nrf5x_regulator), regulator_initial_mode) == NRF_REG_MODE_DCDC)
|
regulator_initial_mode) == NRF5X_REG_MODE_DCDC)
|
||||||
nrf_power_dcdcen_set(NRF_POWER, true);
|
nrf_power_dcdcen_set(NRF_POWER, true);
|
||||||
#endif
|
#endif
|
||||||
#if NRF_POWER_HAS_DCDCEN_VDDH && (defined(CONFIG_SOC_DCDC_NRF52X_HV) || \
|
#if NRF_POWER_HAS_DCDCEN_VDDH && (defined(CONFIG_SOC_DCDC_NRF52X_HV) || \
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue