2010-12-17 13:08:07 +07:00
|
|
|
/*
|
2011-03-10 19:52:27 +07:00
|
|
|
* Copyright (C) 2010-2011 Samsung Electronics Co., Ltd.
|
2010-12-17 13:08:07 +07:00
|
|
|
*
|
|
|
|
* S5P series MIPI CSI slave device support
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
|
|
* published by the Free Software Foundation.
|
|
|
|
*/
|
|
|
|
|
2011-09-28 19:06:52 +07:00
|
|
|
#ifndef __PLAT_SAMSUNG_MIPI_CSIS_H_
|
|
|
|
#define __PLAT_SAMSUNG_MIPI_CSIS_H_ __FILE__
|
2010-12-17 13:08:07 +07:00
|
|
|
|
2011-03-10 19:53:36 +07:00
|
|
|
struct platform_device;
|
|
|
|
|
2010-12-17 13:08:07 +07:00
|
|
|
/**
|
2011-03-10 19:52:27 +07:00
|
|
|
* struct s5p_platform_mipi_csis - platform data for S5P MIPI-CSIS driver
|
2010-12-17 13:08:07 +07:00
|
|
|
* @clk_rate: bus clock frequency
|
|
|
|
* @lanes: number of data lanes used
|
|
|
|
* @alignment: data alignment in bits
|
|
|
|
* @hs_settle: HS-RX settle time
|
2011-03-10 19:53:36 +07:00
|
|
|
* @fixed_phy_vdd: false to enable external D-PHY regulator management in the
|
|
|
|
* driver or true in case this regulator has no enable function
|
|
|
|
* @phy_enable: pointer to a callback controlling D-PHY enable/reset
|
2010-12-17 13:08:07 +07:00
|
|
|
*/
|
|
|
|
struct s5p_platform_mipi_csis {
|
|
|
|
unsigned long clk_rate;
|
|
|
|
u8 lanes;
|
|
|
|
u8 alignment;
|
|
|
|
u8 hs_settle;
|
2011-03-10 19:53:36 +07:00
|
|
|
bool fixed_phy_vdd;
|
|
|
|
int (*phy_enable)(struct platform_device *pdev, bool on);
|
2010-12-17 13:08:07 +07:00
|
|
|
};
|
|
|
|
|
2011-03-10 19:53:36 +07:00
|
|
|
/**
|
|
|
|
* s5p_csis_phy_enable - global MIPI-CSI receiver D-PHY control
|
|
|
|
* @pdev: MIPI-CSIS platform device
|
|
|
|
* @on: true to enable D-PHY and deassert its reset
|
|
|
|
* false to disable D-PHY
|
|
|
|
*/
|
|
|
|
int s5p_csis_phy_enable(struct platform_device *pdev, bool on);
|
|
|
|
|
2011-09-28 19:06:52 +07:00
|
|
|
#endif /* __PLAT_SAMSUNG_MIPI_CSIS_H_ */
|