1 // SPDX-License-Identifier: GPL-2.0+
3 * (C) Copyright 2016 Rockchip Electronics Co., Ltd
8 #include <asm/arch-rockchip/periph.h>
9 #include <power/regulator.h>
11 #ifndef CONFIG_SPL_BUILD
12 int board_early_init_f(void)
14 struct udevice *regulator;
17 ret = regulator_get_by_platname("vcc5v0_host", ®ulator);
19 debug("%s vcc5v0_host init fail! ret %d\n", __func__, ret);
23 ret = regulator_set_enable(regulator, true);
25 debug("%s vcc5v0-host-en set fail! ret %d\n", __func__, ret);