mipi_csis.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /*
  2. * Copyright (C) 2010-2011 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. #ifndef __PLAT_SAMSUNG_MIPI_CSIS_H_
  11. #define __PLAT_SAMSUNG_MIPI_CSIS_H_ __FILE__
  12. struct platform_device;
  13. /**
  14. * struct s5p_platform_mipi_csis - platform data for S5P MIPI-CSIS driver
  15. * @clk_rate: bus clock frequency
  16. * @lanes: number of data lanes used
  17. * @alignment: data alignment in bits
  18. * @hs_settle: HS-RX settle time
  19. * @fixed_phy_vdd: false to enable external D-PHY regulator management in the
  20. * driver or true in case this regulator has no enable function
  21. * @phy_enable: pointer to a callback controlling D-PHY enable/reset
  22. */
  23. struct s5p_platform_mipi_csis {
  24. unsigned long clk_rate;
  25. u8 lanes;
  26. u8 alignment;
  27. u8 hs_settle;
  28. bool fixed_phy_vdd;
  29. int (*phy_enable)(struct platform_device *pdev, bool on);
  30. };
  31. /**
  32. * s5p_csis_phy_enable - global MIPI-CSI receiver D-PHY control
  33. * @pdev: MIPI-CSIS platform device
  34. * @on: true to enable D-PHY and deassert its reset
  35. * false to disable D-PHY
  36. */
  37. int s5p_csis_phy_enable(struct platform_device *pdev, bool on);
  38. #endif /* __PLAT_SAMSUNG_MIPI_CSIS_H_ */