diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2012-10-22 09:43:00 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2013-04-14 19:21:12 -0400 |
commit | 9b28ee3c9122cea62f2db02f5bb1e1606bb343a6 (patch) | |
tree | 7092c63fa14f7e5162400ee5a571f92532bcab5c /include/media/omap3isp.h | |
parent | 4290fd1a5688f3510caa0625c62d73de568ed2c2 (diff) |
[media] omap3isp: Use the common clock framework
Expose the two ISP external clocks XCLKA and XCLKB as common clocks for
subdev drivers.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: Mike Turquette <mturquette@linaro.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'include/media/omap3isp.h')
-rw-r--r-- | include/media/omap3isp.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/include/media/omap3isp.h b/include/media/omap3isp.h index 95842696857f..c9d06d9f7e6e 100644 --- a/include/media/omap3isp.h +++ b/include/media/omap3isp.h | |||
@@ -29,10 +29,6 @@ | |||
29 | struct i2c_board_info; | 29 | struct i2c_board_info; |
30 | struct isp_device; | 30 | struct isp_device; |
31 | 31 | ||
32 | #define ISP_XCLK_NONE 0 | ||
33 | #define ISP_XCLK_A 1 | ||
34 | #define ISP_XCLK_B 2 | ||
35 | |||
36 | enum isp_interface_type { | 32 | enum isp_interface_type { |
37 | ISP_INTERFACE_PARALLEL, | 33 | ISP_INTERFACE_PARALLEL, |
38 | ISP_INTERFACE_CSI2A_PHY2, | 34 | ISP_INTERFACE_CSI2A_PHY2, |
@@ -153,7 +149,13 @@ struct isp_v4l2_subdevs_group { | |||
153 | } bus; /* gcc < 4.6.0 chokes on anonymous union initializers */ | 149 | } bus; /* gcc < 4.6.0 chokes on anonymous union initializers */ |
154 | }; | 150 | }; |
155 | 151 | ||
152 | struct isp_platform_xclk { | ||
153 | const char *dev_id; | ||
154 | const char *con_id; | ||
155 | }; | ||
156 | |||
156 | struct isp_platform_data { | 157 | struct isp_platform_data { |
158 | struct isp_platform_xclk xclks[2]; | ||
157 | struct isp_v4l2_subdevs_group *subdevs; | 159 | struct isp_v4l2_subdevs_group *subdevs; |
158 | void (*set_constraints)(struct isp_device *isp, bool enable); | 160 | void (*set_constraints)(struct isp_device *isp, bool enable); |
159 | }; | 161 | }; |