Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 306283
b: refs/heads/master
c: fe6adc1
h: refs/heads/master
i:
  306281: 05e68d3
  306279: c5c8ee0
v: v3
  • Loading branch information
Sakari Ailus authored and Mauro Carvalho Chehab committed May 14, 2012
1 parent 3d7437a commit c7113e8
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 14 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: da39257f0bc5a5780735abb8c8031e20a701d49a
refs/heads/master: fe6adc1991b6ce0f6d1c4ca74ec9f02d2d8cb3b4
15 changes: 2 additions & 13 deletions trunk/drivers/media/video/omap3isp/ispcsiphy.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,22 +27,11 @@
#ifndef OMAP3_ISP_CSI_PHY_H
#define OMAP3_ISP_CSI_PHY_H

#include <media/omap3isp.h>

struct isp_csi2_device;
struct regulator;

struct csiphy_lane {
u8 pos;
u8 pol;
};

#define ISP_CSIPHY2_NUM_DATA_LANES 2
#define ISP_CSIPHY1_NUM_DATA_LANES 1

struct isp_csiphy_lanes_cfg {
struct csiphy_lane data[ISP_CSIPHY2_NUM_DATA_LANES];
struct csiphy_lane clk;
};

struct isp_csiphy_dphy_cfg {
u8 ths_term;
u8 ths_settle;
Expand Down
25 changes: 25 additions & 0 deletions trunk/include/media/omap3isp.h
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,29 @@ enum {
ISP_CCP2_MODE_CCP2 = 1,
};

/**
* struct isp_csiphy_lane: CCP2/CSI2 lane position and polarity
* @pos: position of the lane
* @pol: polarity of the lane
*/
struct isp_csiphy_lane {
u8 pos;
u8 pol;
};

#define ISP_CSIPHY1_NUM_DATA_LANES 1
#define ISP_CSIPHY2_NUM_DATA_LANES 2

/**
* struct isp_csiphy_lanes_cfg - CCP2/CSI2 lane configuration
* @data: Configuration of one or two data lanes
* @clk: Clock lane configuration
*/
struct isp_csiphy_lanes_cfg {
struct isp_csiphy_lane data[ISP_CSIPHY2_NUM_DATA_LANES];
struct isp_csiphy_lane clk;
};

/**
* struct isp_ccp2_platform_data - CCP2 interface platform data
* @strobe_clk_pol: Strobe/clock polarity
Expand All @@ -109,6 +132,7 @@ struct isp_ccp2_platform_data {
unsigned int ccp2_mode:1;
unsigned int phy_layer:1;
unsigned int vpclk_div:2;
struct isp_csiphy_lanes_cfg lanecfg;
};

/**
Expand All @@ -119,6 +143,7 @@ struct isp_ccp2_platform_data {
struct isp_csi2_platform_data {
unsigned crc:1;
unsigned vpclk_div:2;
struct isp_csiphy_lanes_cfg lanecfg;
};

struct isp_subdev_i2c_board_info {
Expand Down

0 comments on commit c7113e8

Please sign in to comment.