1/* SPDX-License-Identifier: GPL-2.0 */ 2/* 3 * Information for the Marvell Armada MMP camera 4 */ 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 14struct mmp_camera_platform_data { 15 struct platform_device *i2c_device; 16 int sensor_power_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; 29}; 30