mirror of
https://xff.cz/git/u-boot/
synced 2025-09-29 06:21:15 +02: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:
@@ -55,6 +55,7 @@ static int video_bridge_pre_probe(struct udevice *dev)
|
|||||||
&uc_priv->sleep, GPIOD_IS_OUT);
|
&uc_priv->sleep, GPIOD_IS_OUT);
|
||||||
if (ret) {
|
if (ret) {
|
||||||
debug("%s: Could not decode sleep-gpios (%d)\n", __func__, ret);
|
debug("%s: Could not decode sleep-gpios (%d)\n", __func__, ret);
|
||||||
|
if (ret != -ENOENT)
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
/*
|
/*
|
||||||
@@ -70,6 +71,7 @@ static int video_bridge_pre_probe(struct udevice *dev)
|
|||||||
GPIOD_IS_OUT);
|
GPIOD_IS_OUT);
|
||||||
if (ret) {
|
if (ret) {
|
||||||
debug("%s: Could not decode reset-gpios (%d)\n", __func__, ret);
|
debug("%s: Could not decode reset-gpios (%d)\n", __func__, ret);
|
||||||
|
if (ret != -ENOENT)
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
/*
|
/*
|
||||||
@@ -83,8 +85,9 @@ static int video_bridge_pre_probe(struct udevice *dev)
|
|||||||
*/
|
*/
|
||||||
ret = gpio_request_by_name(dev, "hotplug-gpios", 0, &uc_priv->hotplug,
|
ret = gpio_request_by_name(dev, "hotplug-gpios", 0, &uc_priv->hotplug,
|
||||||
GPIOD_IS_IN);
|
GPIOD_IS_IN);
|
||||||
if (ret && ret != -ENOENT) {
|
if (ret) {
|
||||||
debug("%s: Could not decode hotplug (%d)\n", __func__, ret);
|
debug("%s: Could not decode hotplug (%d)\n", __func__, ret);
|
||||||
|
if (ret != -ENOENT)
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user