]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - drivers/power/palmas.c
regulator: palmas: Add support for LDO1 regulator to provide 1.8V
[people/ms/u-boot.git] / drivers / power / palmas.c
index c813b21e6f1ef97f390477eed546b72e87dc8814..4e9895987cbf011d25a71d0137082716c1cac700 100644 (file)
@@ -50,10 +50,9 @@ int palmas_mmc1_poweron_ldo(uint voltage)
        int ret;
        /*
         * Currently valid for the dra7xx_evm board:
-        * Set TPS659038 LDO1 to 3.0 V
+        * Set TPS659038 LDO1 to 3.0 V or 1.8V
         */
-       val = LDO_VOLT_3V0;
-       ret = palmas_i2c_write_u8(TPS65903X_CHIP_P1, LDO1_VOLTAGE, val);
+       ret = palmas_i2c_write_u8(TPS65903X_CHIP_P1, LDO1_VOLTAGE, voltage);
        if (ret) {
                printf("tps65903x: could not set LDO1 voltage.\n");
                return ret;