~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/include/linux/platform_data/media/omap4iss.h

Version: ~ [ linux-6.11.5 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.58 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.114 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.169 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.228 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.284 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.322 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /* SPDX-License-Identifier: GPL-2.0 */
  2 #ifndef ARCH_ARM_PLAT_OMAP4_ISS_H
  3 #define ARCH_ARM_PLAT_OMAP4_ISS_H
  4 
  5 #include <linux/i2c.h>
  6 
  7 struct iss_device;
  8 
  9 enum iss_interface_type {
 10         ISS_INTERFACE_CSI2A_PHY1,
 11         ISS_INTERFACE_CSI2B_PHY2,
 12 };
 13 
 14 /**
 15  * struct iss_csiphy_lane: CSI2 lane position and polarity
 16  * @pos: position of the lane
 17  * @pol: polarity of the lane
 18  */
 19 struct iss_csiphy_lane {
 20         u8 pos;
 21         u8 pol;
 22 };
 23 
 24 #define ISS_CSIPHY1_NUM_DATA_LANES      4
 25 #define ISS_CSIPHY2_NUM_DATA_LANES      1
 26 
 27 /**
 28  * struct iss_csiphy_lanes_cfg - CSI2 lane configuration
 29  * @data: Configuration of one or two data lanes
 30  * @clk: Clock lane configuration
 31  */
 32 struct iss_csiphy_lanes_cfg {
 33         struct iss_csiphy_lane data[ISS_CSIPHY1_NUM_DATA_LANES];
 34         struct iss_csiphy_lane clk;
 35 };
 36 
 37 /**
 38  * struct iss_csi2_platform_data - CSI2 interface platform data
 39  * @crc: Enable the cyclic redundancy check
 40  * @vpclk_div: Video port output clock control
 41  */
 42 struct iss_csi2_platform_data {
 43         unsigned crc:1;
 44         unsigned vpclk_div:2;
 45         struct iss_csiphy_lanes_cfg lanecfg;
 46 };
 47 
 48 struct iss_subdev_i2c_board_info {
 49         struct i2c_board_info *board_info;
 50         int i2c_adapter_id;
 51 };
 52 
 53 struct iss_v4l2_subdevs_group {
 54         struct iss_subdev_i2c_board_info *subdevs;
 55         enum iss_interface_type interface;
 56         union {
 57                 struct iss_csi2_platform_data csi2;
 58         } bus; /* gcc < 4.6.0 chokes on anonymous union initializers */
 59 };
 60 
 61 struct iss_platform_data {
 62         struct iss_v4l2_subdevs_group *subdevs;
 63         void (*set_constraints)(struct iss_device *iss, bool enable);
 64 };
 65 
 66 #endif
 67 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php