diff options
author | Tom Rini <trini@konsulko.com> | 2020-02-11 07:32:44 -0500 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2020-02-11 07:32:44 -0500 |
commit | ae347120eed8204b1fdf018ddf79131964e57016 (patch) | |
tree | a0fe584e7276a077cd8cd5f2300c84676e41763c /drivers | |
parent | 4e5c4683b7a54090323043ab9a67772baeecb1b1 (diff) | |
parent | 2aa69c9b9d4511d35b372715d6ea4ccebb75a526 (diff) | |
download | u-boot-ae347120eed8204b1fdf018ddf79131964e57016.tar.gz |
Merge branch '2020-02-10-master-imports'
- Regulator fix
- Documentation fix
- Correct LOGLEVEL range
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/power/regulator/regulator-uclass.c | 3 | ||||
-rw-r--r-- | drivers/power/regulator/regulator_common.c | 5 |
2 files changed, 3 insertions, 5 deletions
diff --git a/drivers/power/regulator/regulator-uclass.c b/drivers/power/regulator/regulator-uclass.c index 90961de95c..c9d26344d7 100644 --- a/drivers/power/regulator/regulator-uclass.c +++ b/drivers/power/regulator/regulator-uclass.c @@ -464,6 +464,9 @@ static int regulator_pre_probe(struct udevice *dev) (uc_pdata->min_uA == uc_pdata->max_uA)) uc_pdata->flags |= REGULATOR_FLAG_AUTOSET_UA; + if (uc_pdata->boot_on) + regulator_set_enable(dev, uc_pdata->boot_on); + return 0; } diff --git a/drivers/power/regulator/regulator_common.c b/drivers/power/regulator/regulator_common.c index 939efb2c0d..33b73b7c2f 100644 --- a/drivers/power/regulator/regulator_common.c +++ b/drivers/power/regulator/regulator_common.c @@ -12,16 +12,11 @@ int regulator_common_ofdata_to_platdata(struct udevice *dev, struct regulator_common_platdata *dev_pdata, const char *enable_gpio_name) { struct gpio_desc *gpio; - struct dm_regulator_uclass_platdata *uc_pdata; int flags = GPIOD_IS_OUT; int ret; - uc_pdata = dev_get_uclass_platdata(dev); - if (!dev_read_bool(dev, "enable-active-high")) flags |= GPIOD_ACTIVE_LOW; - if (uc_pdata->boot_on) - flags |= GPIOD_IS_OUT_ACTIVE; /* Get optional enable GPIO desc */ gpio = &dev_pdata->gpio; |