exynos_mipi_dsi_common.h 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /*
  2. * Copyright (C) 2012 Samsung Electronics
  3. *
  4. * Author: InKi Dae <inki.dae@samsung.com>
  5. * Author: Donghwa Lee <dh09.lee@samsung.com>
  6. *
  7. * This program is free software; you can redistribute it and/or
  8. * modify it under the terms of the GNU General Public License as
  9. * published by the Free Software Foundation; either version 2 of
  10. * the License, or (at your option) any later version.
  11. *
  12. * This program is distributed in the hope that it will be useful,
  13. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. * GNU General Public License for more details.
  16. *
  17. * You should have received a copy of the GNU General Public License
  18. * along with this program; if not, write to the Free Software
  19. * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
  20. * MA 02111-1307 USA
  21. */
  22. #include <linux/fb.h>
  23. #ifndef _EXYNOS_MIPI_DSI_COMMON_H
  24. #define _EXYNOS_MIPI_DSI_COMMON_H
  25. int exynos_mipi_dsi_wr_data(struct mipi_dsim_device *dsim, unsigned int data_id,
  26. unsigned int data0, unsigned int data1);
  27. int exynos_mipi_dsi_pll_on(struct mipi_dsim_device *dsim, unsigned int enable);
  28. unsigned long exynos_mipi_dsi_change_pll(struct mipi_dsim_device *dsim,
  29. unsigned int pre_divider, unsigned int main_divider,
  30. unsigned int scaler);
  31. int exynos_mipi_dsi_set_clock(struct mipi_dsim_device *dsim,
  32. unsigned int byte_clk_sel, unsigned int enable);
  33. int exynos_mipi_dsi_init_dsim(struct mipi_dsim_device *dsim);
  34. int exynos_mipi_dsi_set_display_mode(struct mipi_dsim_device *dsim,
  35. struct mipi_dsim_config *dsim_info);
  36. int exynos_mipi_dsi_init_link(struct mipi_dsim_device *dsim);
  37. int exynos_mipi_dsi_set_hs_enable(struct mipi_dsim_device *dsim);
  38. int exynos_mipi_dsi_set_data_transfer_mode(struct mipi_dsim_device *dsim,
  39. unsigned int mode);
  40. int exynos_mipi_dsi_enable_frame_done_int(struct mipi_dsim_device *dsim,
  41. unsigned int enable);
  42. int exynos_mipi_dsi_get_frame_done_status(struct mipi_dsim_device *dsim);
  43. int exynos_mipi_dsi_clear_frame_done(struct mipi_dsim_device *dsim);
  44. #endif /* _EXYNOS_MIPI_DSI_COMMON_H */