power: regulator: Drop regulators_enable_boot_on/off()
Both regulators_enable_boot_on/off() are unused and superseded by regulator uclass regulator_post_probe(). Remove both functions. Signed-off-by: Marek Vasut <marex@denx.de>
This commit is contained in:
@@ -202,14 +202,6 @@ int board_late_init(void)
|
|||||||
|
|
||||||
int board_init(void)
|
int board_init(void)
|
||||||
{
|
{
|
||||||
int ret;
|
|
||||||
|
|
||||||
#ifdef CONFIG_DM_REGULATOR
|
|
||||||
ret = regulators_enable_boot_on(false);
|
|
||||||
if (ret)
|
|
||||||
debug("%s: Cannot enable boot on regulator\n", __func__);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -237,7 +237,6 @@ void __weak qcom_board_init(void)
|
|||||||
|
|
||||||
int board_init(void)
|
int board_init(void)
|
||||||
{
|
{
|
||||||
regulators_enable_boot_on(false);
|
|
||||||
show_psci_version();
|
show_psci_version();
|
||||||
qcom_of_fixup_nodes();
|
qcom_of_fixup_nodes();
|
||||||
qcom_board_init();
|
qcom_board_init();
|
||||||
|
@@ -187,9 +187,6 @@ int board_init(void)
|
|||||||
warmboot_prepare_code(TEGRA_LP0_ADDR, TEGRA_LP0_SIZE);
|
warmboot_prepare_code(TEGRA_LP0_ADDR, TEGRA_LP0_SIZE);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Set up boot-on regulators */
|
|
||||||
regulators_enable_boot_on(_DEBUG);
|
|
||||||
|
|
||||||
return nvidia_board_init();
|
return nvidia_board_init();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -23,11 +23,6 @@ int board_early_init_f(void)
|
|||||||
|
|
||||||
int board_early_init_r(void)
|
int board_early_init_r(void)
|
||||||
{
|
{
|
||||||
if (CONFIG_IS_ENABLED(DM_REGULATOR)) {
|
|
||||||
/* Check if any existing regulator should be turned down */
|
|
||||||
regulators_enable_boot_off(false);
|
|
||||||
}
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -16,7 +16,5 @@ int mmc_get_env_dev(void)
|
|||||||
|
|
||||||
int board_init(void)
|
int board_init(void)
|
||||||
{
|
{
|
||||||
regulators_enable_boot_on(_DEBUG);
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@@ -128,8 +128,6 @@ int board_init(void)
|
|||||||
|
|
||||||
setup_fec_clock();
|
setup_fec_clock();
|
||||||
|
|
||||||
regulators_enable_boot_on(_DEBUG);
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -112,8 +112,6 @@ int dh_setup_mac_address(void)
|
|||||||
|
|
||||||
int board_init(void)
|
int board_init(void)
|
||||||
{
|
{
|
||||||
regulators_enable_boot_on(_DEBUG);
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -622,8 +622,6 @@ static void board_init_regulator_av96(void)
|
|||||||
static void board_init_regulator(void)
|
static void board_init_regulator(void)
|
||||||
{
|
{
|
||||||
board_init_regulator_av96();
|
board_init_regulator_av96();
|
||||||
|
|
||||||
regulators_enable_boot_on(_DEBUG);
|
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
static inline int board_get_regulator_buck3_nvm_uv_av96(int *uv)
|
static inline int board_get_regulator_buck3_nvm_uv_av96(int *uv)
|
||||||
|
@@ -37,9 +37,6 @@ int checkboard(void)
|
|||||||
/* board dependent setup after realloc */
|
/* board dependent setup after realloc */
|
||||||
int board_init(void)
|
int board_init(void)
|
||||||
{
|
{
|
||||||
if (IS_ENABLED(CONFIG_DM_REGULATOR))
|
|
||||||
regulators_enable_boot_on(_DEBUG);
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -57,10 +57,6 @@ static int veyron_init(void)
|
|||||||
if (ret)
|
if (ret)
|
||||||
return log_msg_ret("s33", ret);
|
return log_msg_ret("s33", ret);
|
||||||
|
|
||||||
ret = regulators_enable_boot_on(false);
|
|
||||||
if (ret)
|
|
||||||
return log_msg_ret("boo", ret);
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
@@ -88,10 +88,6 @@ int exynos_power_init(void)
|
|||||||
if (ret == -ENODEV)
|
if (ret == -ENODEV)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
ret = regulators_enable_boot_on(false);
|
|
||||||
if (ret)
|
|
||||||
return ret;
|
|
||||||
|
|
||||||
ret = exynos_set_regulator("vdd_mif", 1100000);
|
ret = exynos_set_regulator("vdd_mif", 1100000);
|
||||||
if (ret)
|
if (ret)
|
||||||
return ret;
|
return ret;
|
||||||
|
@@ -665,8 +665,6 @@ int board_init(void)
|
|||||||
if (board_is_stm32mp15x_dk2())
|
if (board_is_stm32mp15x_dk2())
|
||||||
board_stm32mp15x_dk2_init();
|
board_stm32mp15x_dk2_init();
|
||||||
|
|
||||||
regulators_enable_boot_on(_DEBUG);
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* sysconf initialisation done only when U-Boot is running in secure
|
* sysconf initialisation done only when U-Boot is running in secure
|
||||||
* done in TF-A for TFABOOT.
|
* done in TF-A for TFABOOT.
|
||||||
|
@@ -526,16 +526,6 @@ static int regulator_post_probe(struct udevice *dev)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int regulators_enable_boot_on(bool verbose)
|
|
||||||
{
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
int regulators_enable_boot_off(bool verbose)
|
|
||||||
{
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
UCLASS_DRIVER(regulator) = {
|
UCLASS_DRIVER(regulator) = {
|
||||||
.id = UCLASS_REGULATOR,
|
.id = UCLASS_REGULATOR,
|
||||||
.name = "regulator",
|
.name = "regulator",
|
||||||
|
@@ -414,26 +414,6 @@ int regulator_get_mode(struct udevice *dev);
|
|||||||
*/
|
*/
|
||||||
int regulator_set_mode(struct udevice *dev, int mode_id);
|
int regulator_set_mode(struct udevice *dev, int mode_id);
|
||||||
|
|
||||||
/**
|
|
||||||
* regulators_enable_boot_on() - enable regulators needed for boot
|
|
||||||
*
|
|
||||||
* This enables all regulators which are marked to be on at boot time. This
|
|
||||||
* only works for regulators which don't have a range for voltage/current,
|
|
||||||
* since in that case it is not possible to know which value to use.
|
|
||||||
*
|
|
||||||
* This effectively calls regulator_autoset() for every regulator.
|
|
||||||
*/
|
|
||||||
int regulators_enable_boot_on(bool verbose);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* regulators_enable_boot_off() - disable regulators needed for boot
|
|
||||||
*
|
|
||||||
* This disables all regulators which are marked to be off at boot time.
|
|
||||||
*
|
|
||||||
* This effectively does nothing.
|
|
||||||
*/
|
|
||||||
int regulators_enable_boot_off(bool verbose);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* regulator_autoset: setup the voltage/current on a regulator
|
* regulator_autoset: setup the voltage/current on a regulator
|
||||||
*
|
*
|
||||||
@@ -617,11 +597,6 @@ static inline int regulator_set_mode(struct udevice *dev, int mode_id)
|
|||||||
return -ENOSYS;
|
return -ENOSYS;
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline int regulators_enable_boot_on(bool verbose)
|
|
||||||
{
|
|
||||||
return -ENOSYS;
|
|
||||||
}
|
|
||||||
|
|
||||||
static inline int regulator_autoset(struct udevice *dev)
|
static inline int regulator_autoset(struct udevice *dev)
|
||||||
{
|
{
|
||||||
return -ENOSYS;
|
return -ENOSYS;
|
||||||
|
Reference in New Issue
Block a user