2 * Copyright (C) 2010 Samsung Electronics, Co. Ltd
4 * S5P series MIPI CSI slave device support
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.
11 #ifndef PLAT_S5P_MIPI_CSIS_H_
12 #define PLAT_S5P_MIPI_CSIS_H_ __FILE__
14 struct platform_device;
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
23 struct s5p_platform_mipi_csis {
24 unsigned long clk_rate;
28 int (*phy_enable)(struct platform_device *pdev, bool on);
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
37 int s5p_csis_phy_enable(struct platform_device *pdev, bool on);
39 #endif /* PLAT_S5P_MIPI_CSIS_H_ */