The patch number 11030 was added via Guennadi Liakhovetski
<[email protected]>
to http://linuxtv.org/hg/v4l-dvb master development tree.
Kernel patches in this development tree may be modified to be backward
compatible with older kernels. Compatibility modifications will be
removed before inclusion into the mainstream Kernel
If anyone has any objections, please let us know by sending a message to:
Linux Media Mailing List <[email protected]>
------
From: Sascha Hauer <[email protected]>
soc-camera: add board hook to specify the buswidth for camera sensors
Camera sensors have a native bus width say support, but on some
boards not all sensor data lines are connected to the image
interface and thus support a different bus width than the sensors
native one. Some boards even have a bus driver which dynamically
switches between different bus widths with a GPIO.
This patch adds a hook which board code can use to support different
bus widths.
Signed-off-by: Sascha Hauer <[email protected]>
Signed-off-by: Guennadi Liakhovetski <[email protected]>
---
include/media/soc_camera.h | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
linux/include/media/soc_camera.h | 7 +++++++
1 file changed, 7 insertions(+)
diff -r 3f7ae26420d1 -r 661a6a0ccc4e linux/include/media/soc_camera.h
--- a/linux/include/media/soc_camera.h Fri Mar 13 10:08:20 2009 +0100
+++ b/linux/include/media/soc_camera.h Fri Mar 13 10:08:20 2009 +0100
@@ -102,6 +102,13 @@ struct soc_camera_link {
/* Optional callbacks to power on or off and reset the sensor */
int (*power)(struct device *, int);
int (*reset)(struct device *);
+ /*
+ * some platforms may support different data widths than the sensors
+ * native ones due to different data line routing. Let the board code
+ * overwrite the width flags.
+ */
+ int (*set_bus_param)(struct soc_camera_link *, unsigned long flags);
+ unsigned long (*query_bus_param)(struct soc_camera_link *);
};
static inline struct soc_camera_device *to_soc_camera_dev(struct device *dev)
---
Patch is available at:
http://linuxtv.org/hg/v4l-dvb/rev/661a6a0ccc4e8fec4b0919eda044b318af76a94b
_______________________________________________
linuxtv-commits mailing list
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits