Skip to content

Commit

Permalink
boards: arm: da1469x_dk_pro: Add board options for DC/DC
Browse files Browse the repository at this point in the history
This adds board options to enable DC/DC converter inside SoC.

Signed-off-by: Andrzej Kaczmarek <[email protected]>
Signed-off-by: Jerzy Kasenberg <[email protected]>
  • Loading branch information
andrzej-kaczmarek authored and kasjer committed Aug 25, 2023
1 parent 1a1db76 commit c82c49b
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 4 deletions.
19 changes: 19 additions & 0 deletions boards/arm/da1469x_dk_pro/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,22 @@

# Copyright (c) 2022 Renesas Electronics Corporation
# SPDX-License-Identifier: Apache-2.0

if BOARD_DA1469X_DK_PRO

config BOARD_ENABLE_DCDC
bool "MCU DC/DC converter"
select SOC_DCDC_DA1469X
default y

config BOARD_ENABLE_DCDC_1V8
bool "MCU DC/DC converter on 1V8 rail"
select SOC_DCDC_DA1469X_1V8
default y

config BOARD_ENABLE_DCDC_1V8P
bool "MCU DC/DC converter on 1V8P rail"
select SOC_DCDC_DA1469X_1V8P
default y

endif # BOARD_DA1469X_DK_PRO
4 changes: 0 additions & 4 deletions soc/arm/renesas_smartbond/da1469x/soc.c
Original file line number Diff line number Diff line change
Expand Up @@ -116,10 +116,6 @@ static void configure_dcdc(void)

void z_smartbond_restore_dcdc(void)
{
/*
* Enabling DCDC while VBAT is below 2.5 V renders system unstable even
* if VBUS is available. Enable DCDC only if VBAT is above minimal value.
*/
if (CRG_TOP->ANA_STATUS_REG & CRG_TOP_ANA_STATUS_REG_COMP_VBAT_HIGH_Msk) {
#if defined(CONFIG_PM)
DCDC->DCDC_V18_REG = dcdc_state.v18;
Expand Down

0 comments on commit c82c49b

Please sign in to comment.