video: Work around lack of pinctrl
We haven't quite got pinctrl ready to apply to mainline. We don't want to GPIO pull-up/down support to the driver model GPIO layer either. So work around this for now. We can address this when pinctrl is complete. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
801ab9e93c
commit
5eaeadaa3a
|
@ -57,22 +57,30 @@ static int video_bridge_pre_probe(struct udevice *dev)
|
||||||
debug("%s: Could not decode sleep-gpios (%d)\n", __func__, ret);
|
debug("%s: Could not decode sleep-gpios (%d)\n", __func__, ret);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
ret = dm_gpio_set_pull(&uc_priv->sleep, GPIO_PULL_NONE);
|
/*
|
||||||
if (ret) {
|
* Drop this for now as we do not have driver model pinctrl support
|
||||||
debug("%s: Could not set sleep pull value\n", __func__);
|
*
|
||||||
return ret;
|
* ret = dm_gpio_set_pull(&uc_priv->sleep, GPIO_PULL_NONE);
|
||||||
}
|
* if (ret) {
|
||||||
|
* debug("%s: Could not set sleep pull value\n", __func__);
|
||||||
|
* return ret;
|
||||||
|
* }
|
||||||
|
*/
|
||||||
ret = gpio_request_by_name(dev, "reset-gpios", 0, &uc_priv->reset,
|
ret = gpio_request_by_name(dev, "reset-gpios", 0, &uc_priv->reset,
|
||||||
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);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
ret = dm_gpio_set_pull(&uc_priv->reset, GPIO_PULL_NONE);
|
/*
|
||||||
if (ret) {
|
* Drop this for now as we do not have driver model pinctrl support
|
||||||
debug("%s: Could not set reset pull value\n", __func__);
|
*
|
||||||
return ret;
|
* ret = dm_gpio_set_pull(&uc_priv->reset, GPIO_PULL_NONE);
|
||||||
}
|
* if (ret) {
|
||||||
|
* debug("%s: Could not set reset pull value\n", __func__);
|
||||||
|
* return ret;
|
||||||
|
* }
|
||||||
|
*/
|
||||||
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 && ret != -ENOENT) {
|
||||||
|
|
Loading…
Reference in New Issue