mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 23:24:38 +00:00
video: bridge: Allow GPIOs to be optional
Some video bridges will not have GPIOs to control reset, etc. Allow these to be optional. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
68dcdc99c5
commit
d4bf91ada1
1 changed files with 7 additions and 4 deletions
|
@ -55,7 +55,8 @@ static int video_bridge_pre_probe(struct udevice *dev)
|
|||
&uc_priv->sleep, GPIOD_IS_OUT);
|
||||
if (ret) {
|
||||
debug("%s: Could not decode sleep-gpios (%d)\n", __func__, ret);
|
||||
return ret;
|
||||
if (ret != -ENOENT)
|
||||
return ret;
|
||||
}
|
||||
/*
|
||||
* Drop this for now as we do not have driver model pinctrl support
|
||||
|
@ -70,7 +71,8 @@ static int video_bridge_pre_probe(struct udevice *dev)
|
|||
GPIOD_IS_OUT);
|
||||
if (ret) {
|
||||
debug("%s: Could not decode reset-gpios (%d)\n", __func__, ret);
|
||||
return ret;
|
||||
if (ret != -ENOENT)
|
||||
return ret;
|
||||
}
|
||||
/*
|
||||
* Drop this for now as we do not have driver model pinctrl support
|
||||
|
@ -83,9 +85,10 @@ static int video_bridge_pre_probe(struct udevice *dev)
|
|||
*/
|
||||
ret = gpio_request_by_name(dev, "hotplug-gpios", 0, &uc_priv->hotplug,
|
||||
GPIOD_IS_IN);
|
||||
if (ret && ret != -ENOENT) {
|
||||
if (ret) {
|
||||
debug("%s: Could not decode hotplug (%d)\n", __func__, ret);
|
||||
return ret;
|
||||
if (ret != -ENOENT)
|
||||
return ret;
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
|
Loading…
Reference in a new issue