diff options
author | Tom Rini <trini@konsulko.com> | 2019-07-14 09:05:20 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2019-07-14 09:05:20 -0400 |
commit | 6070ef409c1018860e8dd1f077297546d9d80115 (patch) | |
tree | ff914035d376420d37fd2d3d1ad0877220eed9c6 /drivers/power/regulator/regulator-uclass.c | |
parent | a9758ece08bceb60634145c2126582e5d282bd09 (diff) | |
parent | ae8d23a668755d804748a1cf848426b28338b3d5 (diff) | |
download | u-boot-6070ef409c1018860e8dd1f077297546d9d80115.tar.gz |
Merge branch '2019-07-12-master-imports'
- First round of TI Davinci updates
- Some OMAP3 DM updates
- Other misc updates
Diffstat (limited to 'drivers/power/regulator/regulator-uclass.c')
-rw-r--r-- | drivers/power/regulator/regulator-uclass.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/power/regulator/regulator-uclass.c b/drivers/power/regulator/regulator-uclass.c index 9118b8eb39..76be95bcd1 100644 --- a/drivers/power/regulator/regulator-uclass.c +++ b/drivers/power/regulator/regulator-uclass.c @@ -238,6 +238,9 @@ int regulator_autoset(struct udevice *dev) if (!uc_pdata->always_on && !uc_pdata->boot_on) return -EMEDIUMTYPE; + if (uc_pdata->type == REGULATOR_TYPE_FIXED) + return regulator_set_enable(dev, true); + if (uc_pdata->flags & REGULATOR_FLAG_AUTOSET_UV) ret = regulator_set_value(dev, uc_pdata->min_uV); if (!ret && (uc_pdata->flags & REGULATOR_FLAG_AUTOSET_UA)) |