upload tizen1.0 source
[kernel/linux-2.6.36.git] / arch / arm / plat-s5p / include / plat / mipi_csis.h
1 /*
2  * Copyright (C) 2010 Samsung Electronics, Co. Ltd
3  *
4  * S5P series MIPI CSI slave device support
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License version 2 as
8  * published by the Free Software Foundation.
9  */
10
11 #ifndef PLAT_S5P_MIPI_CSIS_H_
12 #define PLAT_S5P_MIPI_CSIS_H_ __FILE__
13
14 struct platform_device;
15
16 /**
17  * struct s5p_platform_mipi_csis - platform data for MIPI-CSIS
18  * @clk_rate: bus clock frequency
19  * @lanes: number of data lanes used
20  * @alignment: data alignment in bits
21  * @hs_settle: HS-RX settle time
22  */
23 struct s5p_platform_mipi_csis {
24         unsigned long clk_rate;
25         u8 lanes;
26         u8 alignment;
27         u8 hs_settle;
28         int (*phy_enable)(struct platform_device *pdev, bool on);
29 };
30
31 /**
32  * struct s5p_csis_phy_control - global MIPI-CSIS PHY control
33  * @pdev: platform device the mipi phy state is to be changed for
34  * @on: true to enable CSIS PHY and assert its reset,
35  *      false will disable the PHY and put into reset state
36  */
37 int s5p_csis_phy_enable(struct platform_device *pdev, bool on);
38
39 #endif /* PLAT_S5P_MIPI_CSIS_H_ */