dsi_io_v2.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. /* Copyright (c) 2013, The Linux Foundation. All rights reserved.
  2. *
  3. * This program is free software; you can redistribute it and/or modify
  4. * it under the terms of the GNU General Public License version 2 and
  5. * only version 2 as published by the Free Software Foundation.
  6. *
  7. * This program is distributed in the hope that it will be useful,
  8. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. * GNU General Public License for more details.
  11. *
  12. */
  13. #ifndef DSI_IO_V2_H
  14. #define DSI_IO_V2_H
  15. #include "mdss_panel.h"
  16. void msm_dsi_ahb_ctrl(int enable);
  17. int msm_dsi_io_init(struct platform_device *dev,
  18. struct dss_module_power *mp);
  19. void msm_dsi_io_deinit(struct platform_device *dev,
  20. struct dss_module_power *mp);
  21. int msm_dsi_clk_init(struct platform_device *dev);
  22. void msm_dsi_clk_deinit(void);
  23. int msm_dsi_prepare_clocks(void);
  24. int msm_dsi_unprepare_clocks(void);
  25. int msm_dsi_clk_set_rate(unsigned long esc_rate,
  26. unsigned long dsi_rate,
  27. unsigned long byte_rate,
  28. unsigned long pixel_rate);
  29. int msm_dsi_clk_enable(void);
  30. int msm_dsi_clk_disable(void);
  31. int msm_dsi_phy_init(unsigned char *ctrl_base,
  32. struct mdss_panel_data *pdata);
  33. void msm_dsi_phy_sw_reset(unsigned char *ctrl_base);
  34. void msm_dsi_phy_off(unsigned char *ctrl_base);
  35. #endif /* DSI_IO_V2_H */