dm: regulator: print init voltage
Change-Id: I266a76f43485eac8770e51787985b93992ef0668 Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
This commit is contained in:
parent
fe9a00a206
commit
a538876eeb
|
|
@ -249,8 +249,13 @@ int regulator_autoset(struct udevice *dev)
|
|||
|
||||
if (uc_pdata->flags & REGULATOR_FLAG_AUTOSET_UV)
|
||||
ret = regulator_set_value(dev, uc_pdata->min_uV);
|
||||
if (uc_pdata->init_uV > 0)
|
||||
if (uc_pdata->init_uV > 0) {
|
||||
ret = regulator_set_value(dev, uc_pdata->init_uV);
|
||||
if (!ret)
|
||||
printf("regulator(%s) init %d uV\n",
|
||||
dev->name, uc_pdata->init_uV);
|
||||
}
|
||||
|
||||
if (!ret && (uc_pdata->flags & REGULATOR_FLAG_AUTOSET_UA))
|
||||
ret = regulator_set_current(dev, uc_pdata->min_uA);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue