boards: arm: nrf5340_dk: Enable DC/DC by default
Since the nRF5340 DK contains the required DC/DC circuitry, enable it by default while keeping it configurable. This reduces power consumption in application core , network core and high voltage use. Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
This commit is contained in:
parent
483adc984e
commit
29a1bbd24a
3 changed files with 46 additions and 0 deletions
|
@ -5,6 +5,21 @@
|
|||
|
||||
if BOARD_NRF5340_DK_NRF5340_CPUAPP || BOARD_NRF5340_DK_NRF5340_CPUAPPNS
|
||||
|
||||
config BOARD_ENABLE_DCDC_APP
|
||||
bool "Enable Application MCU DCDC converter"
|
||||
select SOC_DCDC_NRF53X_APP
|
||||
default y
|
||||
|
||||
config BOARD_ENABLE_DCDC_NET
|
||||
bool "Enable Network MCU DCDC converter"
|
||||
select SOC_DCDC_NRF53X_NET
|
||||
default y
|
||||
|
||||
config BOARD_ENABLE_DCDC_HV
|
||||
bool "Enable High Voltage DCDC converter"
|
||||
select SOC_DCDC_NRF53X_HV
|
||||
default y
|
||||
|
||||
endif # BOARD_NRF5340_DK_NRF5340_CPUAPP || BOARD_NRF5340_DK_NRF5340_CPUAPPNS
|
||||
|
||||
if BOARD_NRF5340_DK_NRF5340_CPUNET
|
||||
|
|
|
@ -89,6 +89,27 @@ config SOC_NRF5340_CPUNET_QKAA
|
|||
|
||||
endchoice
|
||||
|
||||
|
||||
if SOC_NRF5340_CPUAPP
|
||||
|
||||
config SOC_DCDC_NRF53X_APP
|
||||
bool
|
||||
help
|
||||
Enable nRF53 series System on Chip Application MCU DC/DC converter.
|
||||
|
||||
config SOC_DCDC_NRF53X_NET
|
||||
bool
|
||||
help
|
||||
Enable nRF53 series System on Chip Network MCU DC/DC converter.
|
||||
|
||||
config SOC_DCDC_NRF53X_HV
|
||||
bool
|
||||
help
|
||||
Enable nRF53 series System on Chip High Voltage DC/DC converter.
|
||||
|
||||
endif # SOC_NRF5340_CPUAPP
|
||||
|
||||
|
||||
config NRF_ENABLE_CACHE
|
||||
bool "Enable cache"
|
||||
depends on (SOC_NRF5340_CPUAPP && !TRUSTED_EXECUTION_NONSECURE) \
|
||||
|
|
|
@ -59,6 +59,16 @@ static int nordicsemi_nrf53_init(struct device *arg)
|
|||
*((u32_t *)0x500046D0) = 0x1;
|
||||
#endif
|
||||
|
||||
#if defined(CONFIG_SOC_DCDC_NRF53X_APP)
|
||||
NRF_REGULATORS->VREGMAIN.DCDCEN = 1;
|
||||
#endif
|
||||
#if defined(CONFIG_SOC_DCDC_NRF53X_NET)
|
||||
NRF_REGULATORS->VREGRADIO.DCDCEN = 1;
|
||||
#endif
|
||||
#if defined(CONFIG_SOC_DCDC_NRF53X_HV)
|
||||
NRF_REGULATORS->VREGH.DCDCEN = 1;
|
||||
#endif
|
||||
|
||||
/* Install default handler that simply resets the CPU
|
||||
* if configured in the kernel, NOP otherwise
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue