2 * Copyright (C) 2018, STMicroelectronics - All Rights Reserved
4 * SPDX-License-Identifier: GPL-2.0+ BSD-3-Clause
14 #include <power/pmic.h>
15 #include <power/stpmu1.h>
16 #include <asm/arch/ddr.h>
18 void spl_board_init(void)
20 /* Keep vdd on during the reset cycle */
21 #if defined(CONFIG_PMIC_STPMU1) && defined(CONFIG_SPL_POWER_SUPPORT)
25 ret = uclass_get_device_by_driver(UCLASS_PMIC,
26 DM_GET_DRIVER(pmic_stpmu1), &dev);
29 STPMU1_MASK_RESET_BUCK,
30 STPMU1_MASK_RESET_BUCK3,
31 STPMU1_MASK_RESET_BUCK3);