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