Skip to contentSkip to conversation

media: vpif: request enable-gpios

PATCH In review Bartosz Golaszewski 1 participant 2 messages Feb 22, 2017 – Feb 28, 2017 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 media: vpif: request enable-gpios

This change is needed to make vpif capture work on the da850-evm board where the capture function must be selected on the UI expander.

---
 drivers/media/platform/davinci/vpif_capture.c | 7 +++++++
 1 file changed, 7 insertions(+)
drivers/media/platform/davinci/vpif_capture.c +7 -0
index b62a399..7dea358 100644
@@ -24,6 +24,7 @@
 #include <linux/interrupt.h>
 #include <linux/platform_device.h>
 #include <linux/slab.h>
+#include <linux/gpio/consumer.h>
 
 #include <media/v4l2-ioctl.h>
 
@@ -1433,6 +1434,7 @@ static __init int vpif_probe(struct platform_device *pdev)
 {
 	struct vpif_subdev_info *subdevdata;
 	struct i2c_adapter *i2c_adap;
+	struct gpio_descs *descs;
 	struct resource *res;
 	int subdev_count;
 	int res_idx = 0;
@@ -1443,6 +1445,11 @@ static __init int vpif_probe(struct platform_device *pdev)
 		return -EINVAL;
 	}
 
+	descs = devm_gpiod_get_array_optional(&pdev->dev,
+					      "enable", GPIOD_OUT_HIGH);
+	if (IS_ERR(descs))
+		dev_err(&pdev->dev, "Error requesting enable GPIOs\n");
+
 	vpif_dev = &pdev->dev;
 
 	err = initialize_vpif();
Signature · 1 line
2.9.3
#1 lore raw

2017-02-22 14:27 GMT+01:00 Bartosz Golaszewski <[email protected]>:

Quoted 8 lines

This change is needed to make vpif capture work on the da850-evm board where the capture function must be selected on the UI expander.

---
 drivers/media/platform/davinci/vpif_capture.c | 7 +++++++
 1 file changed, 7 insertions(+)

Disregard this patch - we need to determine a better solution for this functionality.

Thanks,
Bartosz