]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
board: samsung: odroid: drop exynos_power_init
authorHenrik Grimler <henrik@grimler.se>
Fri, 22 Aug 2025 18:33:33 +0000 (20:33 +0200)
committerPeng Fan <peng.fan@nxp.com>
Mon, 1 Sep 2025 02:33:09 +0000 (10:33 +0800)
exynos_power_init sets up regulators for the emmc and sdcard, but
these regulators are already marked as always-on and boot-on and hence
are handled already by the regulator-uclass. Since we currently try to
set them up twice we get error -114 (EALREADY) from exynos_power_init
on every boot:

    LDO20@VDDQ_EMMC_1.8V: set 1800000 uV; enabling (ret: -114)
    LDO22@VDDQ_EMMC_2.8V: set 2800000 uV; enabling (ret: -114)
    LDO21@TFLASH_2.8V: set 2800000 uV; enabling (ret: -114)

Remove the superfluous exynos_power_init to silence these errors.

Signed-off-by: Henrik Grimler <henrik@grimler.se>
Reviewed-by: Anand Moon <linux.amoon@gmail.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
board/samsung/odroid/odroid.c

index 84d6d919f07f33fa4122910db31973a97358f29d..a48b8e94b77ce9b10f3e1937020b4f33a28c30b1 100644 (file)
@@ -428,21 +428,6 @@ void exynos_init(void)
        board_gpio_init();
 }
 
-int exynos_power_init(void)
-{
-       const char *mmc_regulators[] = {
-               "VDDQ_EMMC_1.8V",
-               "VDDQ_EMMC_2.8V",
-               "TFLASH_2.8V",
-               NULL,
-       };
-
-       if (regulator_list_autoset(mmc_regulators, NULL, true))
-               pr_err("Unable to init all mmc regulators\n");
-
-       return 0;
-}
-
 #ifdef CONFIG_USB_GADGET
 static int s5pc210_phy_control(int on)
 {