mipi-csis.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. /*
  2. * Copyright (C) 2010 - 2012 Samsung Electronics Co., Ltd.
  3. *
  4. * Samsung S5P/Exynos SoC series MIPI CSIS 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. /**
  13. * struct s5p_platform_mipi_csis - platform data for S5P MIPI-CSIS driver
  14. * @clk_rate: bus clock frequency
  15. * @wclk_source: CSI wrapper clock selection: 0 - bus clock, 1 - ext. SCLK_CAM
  16. * @lanes: number of data lanes used
  17. * @hs_settle: HS-RX settle time
  18. */
  19. struct s5p_platform_mipi_csis {
  20. unsigned long clk_rate;
  21. u8 wclk_source;
  22. u8 lanes;
  23. u8 hs_settle;
  24. };
  25. /**
  26. * s5p_csis_phy_enable - global MIPI-CSI receiver D-PHY control
  27. * @id: MIPI-CSIS harware instance index (0...1)
  28. * @on: true to enable D-PHY and deassert its reset
  29. * false to disable D-PHY
  30. * @return: 0 on success, or negative error code on failure
  31. */
  32. int s5p_csis_phy_enable(int id, bool on);
  33. #endif /* __PLAT_SAMSUNG_MIPI_CSIS_H_ */