rockchip: rk3399: use regulators_enable_boot_on() to init regulator
[oweals/u-boot.git] / board / rockchip / evb_rk3399 / evb-rk3399.c
index 362fa0bc6e27c097524254c7baee084f4b38f170..6561c4fbd3de5d4fbb83d66d5682739c92a4fe66 100644 (file)
@@ -40,10 +40,9 @@ int board_init(void)
                goto out;
        }
 
-       /* rk3399 need init vdd_center to get correct output voltage */
-       ret = regulator_get_by_platname("vdd_center", &regulator);
+       ret = regulators_enable_boot_on(false);
        if (ret)
-               debug("%s: Cannot get vdd_center regulator\n", __func__);
+               debug("%s: Cannot enable boot on regulator\n", __func__);
 
        ret = regulator_get_by_platname("vcc5v0_host", &regulator);
        if (ret) {