mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-29 16:10:58 +00:00
rockchip: rk3288: Add error debugging to veyron_init()
Add a debug() statement so we can see when something goes wrong with the regulator. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
3238474b8f
commit
6f06ef57bb
1 changed files with 3 additions and 1 deletions
|
@ -86,8 +86,10 @@ static int veyron_init(void)
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
ret = regulator_get_by_platname("vdd_arm", &dev);
|
ret = regulator_get_by_platname("vdd_arm", &dev);
|
||||||
if (ret)
|
if (ret) {
|
||||||
|
debug("Cannot set regulator name\n");
|
||||||
return ret;
|
return ret;
|
||||||
|
}
|
||||||
|
|
||||||
/* Slowly raise to max CPU voltage to prevent overshoot */
|
/* Slowly raise to max CPU voltage to prevent overshoot */
|
||||||
ret = regulator_set_value(dev, 1200000);
|
ret = regulator_set_value(dev, 1200000);
|
||||||
|
|
Loading…
Reference in a new issue