From c82c49b26f156f184ea7833f33d659f08a007543 Mon Sep 17 00:00:00 2001 From: Andrzej Kaczmarek Date: Wed, 26 Jul 2023 13:22:22 +0200 Subject: [PATCH] boards: arm: da1469x_dk_pro: Add board options for DC/DC This adds board options to enable DC/DC converter inside SoC. Signed-off-by: Andrzej Kaczmarek Signed-off-by: Jerzy Kasenberg --- boards/arm/da1469x_dk_pro/Kconfig | 19 +++++++++++++++++++ soc/arm/renesas_smartbond/da1469x/soc.c | 4 ---- 2 files changed, 19 insertions(+), 4 deletions(-) diff --git a/boards/arm/da1469x_dk_pro/Kconfig b/boards/arm/da1469x_dk_pro/Kconfig index 0bca6654e153abc..8e397c3ec7578b9 100644 --- a/boards/arm/da1469x_dk_pro/Kconfig +++ b/boards/arm/da1469x_dk_pro/Kconfig @@ -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 diff --git a/soc/arm/renesas_smartbond/da1469x/soc.c b/soc/arm/renesas_smartbond/da1469x/soc.c index 05302e3cb046917..68672beb390e9ce 100644 --- a/soc/arm/renesas_smartbond/da1469x/soc.c +++ b/soc/arm/renesas_smartbond/da1469x/soc.c @@ -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;