diff options
Diffstat (limited to 'drivers/media/platform/omap3isp/ispcsiphy.h')
-rw-r--r-- | drivers/media/platform/omap3isp/ispcsiphy.h | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/drivers/media/platform/omap3isp/ispcsiphy.h b/drivers/media/platform/omap3isp/ispcsiphy.h new file mode 100644 index 000000000000..e93a661e65d9 --- /dev/null +++ b/drivers/media/platform/omap3isp/ispcsiphy.h | |||
@@ -0,0 +1,63 @@ | |||
1 | /* | ||
2 | * ispcsiphy.h | ||
3 | * | ||
4 | * TI OMAP3 ISP - CSI PHY module | ||
5 | * | ||
6 | * Copyright (C) 2010 Nokia Corporation | ||
7 | * Copyright (C) 2009 Texas Instruments, Inc. | ||
8 | * | ||
9 | * Contacts: Laurent Pinchart <laurent.pinchart@ideasonboard.com> | ||
10 | * Sakari Ailus <sakari.ailus@iki.fi> | ||
11 | * | ||
12 | * This program is free software; you can redistribute it and/or modify | ||
13 | * it under the terms of the GNU General Public License version 2 as | ||
14 | * published by the Free Software Foundation. | ||
15 | * | ||
16 | * This program is distributed in the hope that it will be useful, but | ||
17 | * WITHOUT ANY WARRANTY; without even the implied warranty of | ||
18 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
19 | * General Public License for more details. | ||
20 | * | ||
21 | * You should have received a copy of the GNU General Public License | ||
22 | * along with this program; if not, write to the Free Software | ||
23 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA | ||
24 | * 02110-1301 USA | ||
25 | */ | ||
26 | |||
27 | #ifndef OMAP3_ISP_CSI_PHY_H | ||
28 | #define OMAP3_ISP_CSI_PHY_H | ||
29 | |||
30 | #include <media/omap3isp.h> | ||
31 | |||
32 | struct isp_csi2_device; | ||
33 | struct regulator; | ||
34 | |||
35 | struct isp_csiphy_dphy_cfg { | ||
36 | u8 ths_term; | ||
37 | u8 ths_settle; | ||
38 | u8 tclk_term; | ||
39 | unsigned tclk_miss:1; | ||
40 | u8 tclk_settle; | ||
41 | }; | ||
42 | |||
43 | struct isp_csiphy { | ||
44 | struct isp_device *isp; | ||
45 | struct mutex mutex; /* serialize csiphy configuration */ | ||
46 | u8 phy_in_use; | ||
47 | struct isp_csi2_device *csi2; | ||
48 | struct regulator *vdd; | ||
49 | |||
50 | /* mem resources - enums as defined in enum isp_mem_resources */ | ||
51 | unsigned int cfg_regs; | ||
52 | unsigned int phy_regs; | ||
53 | |||
54 | u8 num_data_lanes; /* number of CSI2 Data Lanes supported */ | ||
55 | struct isp_csiphy_lanes_cfg lanes; | ||
56 | struct isp_csiphy_dphy_cfg dphy; | ||
57 | }; | ||
58 | |||
59 | int omap3isp_csiphy_acquire(struct isp_csiphy *phy); | ||
60 | void omap3isp_csiphy_release(struct isp_csiphy *phy); | ||
61 | int omap3isp_csiphy_init(struct isp_device *isp); | ||
62 | |||
63 | #endif /* OMAP3_ISP_CSI_PHY_H */ | ||