mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-02 09:46:37 +03:00
rockchip: io-domain: Add debug logging for regulators during probe
Log the value of the regulators during initialization of the IO-domain driver to aid in debugging GPIO voltage configuration problems. Signed-off-by: Justin Klaassen <justin@tidylabs.net> Reviewed-by: Quentin Schulz <quentin.schulz@cherry.de> Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
This commit is contained in:
committed by
Kever Yang
parent
4aa110d73e
commit
81a26131bd
@@ -344,8 +344,10 @@ static int rockchip_iodomain_probe(struct udevice *dev)
|
||||
continue;
|
||||
|
||||
ret = device_get_supply_regulator(dev, supply_name, ®);
|
||||
if (ret)
|
||||
if (ret) {
|
||||
dev_dbg(dev, "%s: Regulator not found\n", supply_name);
|
||||
continue;
|
||||
}
|
||||
|
||||
ret = regulator_autoset(reg);
|
||||
if (ret && ret != -EALREADY && ret != -EMEDIUMTYPE &&
|
||||
@@ -353,6 +355,7 @@ static int rockchip_iodomain_probe(struct udevice *dev)
|
||||
continue;
|
||||
|
||||
uV = regulator_get_value(reg);
|
||||
dev_dbg(dev, "%s: Regulator %s at %d uV\n", supply_name, reg->name, uV);
|
||||
if (uV <= 0)
|
||||
continue;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user