diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2009-03-13 05:08:20 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-03-30 11:43:21 -0400 |
commit | 28f59339f72d191e24e0f97f156a481dd5c3db65 (patch) | |
tree | cab5091aa980cb54073b73687771df6a51e71b02 /include/media/soc_camera.h | |
parent | 97215cbd1bc3cc32a2a1b3a94b003c3cbcf95683 (diff) |
V4L/DVB (11030): 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 <s.hauer@pengutronix.de>
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'include/media/soc_camera.h')
-rw-r--r-- | include/media/soc_camera.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/media/soc_camera.h b/include/media/soc_camera.h index 013c81875d76..b44fa0952ad9 100644 --- a/include/media/soc_camera.h +++ b/include/media/soc_camera.h | |||
@@ -102,6 +102,13 @@ struct soc_camera_link { | |||
102 | /* Optional callbacks to power on or off and reset the sensor */ | 102 | /* Optional callbacks to power on or off and reset the sensor */ |
103 | int (*power)(struct device *, int); | 103 | int (*power)(struct device *, int); |
104 | int (*reset)(struct device *); | 104 | int (*reset)(struct device *); |
105 | /* | ||
106 | * some platforms may support different data widths than the sensors | ||
107 | * native ones due to different data line routing. Let the board code | ||
108 | * overwrite the width flags. | ||
109 | */ | ||
110 | int (*set_bus_param)(struct soc_camera_link *, unsigned long flags); | ||
111 | unsigned long (*query_bus_param)(struct soc_camera_link *); | ||
105 | }; | 112 | }; |
106 | 113 | ||
107 | static inline struct soc_camera_device *to_soc_camera_dev(struct device *dev) | 114 | static inline struct soc_camera_device *to_soc_camera_dev(struct device *dev) |