aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/platform_data
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@s-opensource.com>2018-04-05 12:03:05 -0400
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2018-04-17 05:03:37 -0400
commit8b4aa4d8dc283a408eb14ca5e27e0a9a689c2e5a (patch)
treec13de380359015b00b4502045a9d0f0180088108 /include/linux/platform_data
parentb29c0ddad64e6f7d9c0a29e68333c0b25d3eacdd (diff)
media: mmp-camera.h: add missing platform data
Those definitions used to be part of the original patch: https://patchwork.kernel.org/patch/2815221/ But, somehow, nobody ever noticed until today. Years later, Arnd discovered that mmp-camera driver doesn't build and make it depend on BROKEN. Add the missing bits here, in order to remove BROKEN dependency. Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'include/linux/platform_data')
-rw-r--r--include/linux/platform_data/media/mmp-camera.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/include/linux/platform_data/media/mmp-camera.h b/include/linux/platform_data/media/mmp-camera.h
index 83804028115c..d2d3a443eedf 100644
--- a/include/linux/platform_data/media/mmp-camera.h
+++ b/include/linux/platform_data/media/mmp-camera.h
@@ -3,8 +3,27 @@
3 * Information for the Marvell Armada MMP camera 3 * Information for the Marvell Armada MMP camera
4 */ 4 */
5 5
6#include <media/v4l2-mediabus.h>
7
8enum dphy3_algo {
9 DPHY3_ALGO_DEFAULT = 0,
10 DPHY3_ALGO_PXA910,
11 DPHY3_ALGO_PXA2128
12};
13
6struct mmp_camera_platform_data { 14struct mmp_camera_platform_data {
7 struct platform_device *i2c_device; 15 struct platform_device *i2c_device;
8 int sensor_power_gpio; 16 int sensor_power_gpio;
9 int sensor_reset_gpio; 17 int sensor_reset_gpio;
18 enum v4l2_mbus_type bus_type;
19 int mclk_min; /* The minimal value of MCLK */
20 int mclk_src; /* which clock source the MCLK derives from */
21 int mclk_div; /* Clock Divider Value for MCLK */
22 /*
23 * MIPI support
24 */
25 int dphy[3]; /* DPHY: CSI2_DPHY3, CSI2_DPHY5, CSI2_DPHY6 */
26 enum dphy3_algo dphy3_algo; /* algos for calculate CSI2_DPHY3 */
27 int lane; /* ccic used lane number; 0 means DVP mode */
28 int lane_clk;
10}; 29};