exynos_dp_lowlevel.h 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. /*
  2. * Copyright (C) 2012 Samsung Electronics
  3. *
  4. * Author: Donghwa Lee <dh09.lee@samsung.com>
  5. *
  6. * This program is free software; you can redistribute it and/or
  7. * modify it under the terms of the GNU General Public License as
  8. * published by the Free Software Foundation; either version 2 of
  9. * the License, or (at your option) any later version.
  10. *
  11. * This program is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. * GNU General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU General Public License
  17. * along with this program; if not, write to the Free Software
  18. * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
  19. * MA 02111-1307 USA
  20. */
  21. #ifndef _EXYNOS_EDP_LOWLEVEL_H
  22. #define _EXYNOS_EDP_LOWLEVEL_H
  23. void exynos_dp_enable_video_bist(unsigned int enable);
  24. void exynos_dp_enable_video_mute(unsigned int enable);
  25. void exynos_dp_reset(void);
  26. void exynos_dp_enable_sw_func(unsigned int enable);
  27. unsigned int exynos_dp_set_analog_power_down(unsigned int block, u32 enable);
  28. unsigned int exynos_dp_get_pll_lock_status(void);
  29. int exynos_dp_init_analog_func(void);
  30. void exynos_dp_init_hpd(void);
  31. void exynos_dp_init_aux(void);
  32. void exynos_dp_config_interrupt(void);
  33. unsigned int exynos_dp_get_plug_in_status(void);
  34. unsigned int exynos_dp_detect_hpd(void);
  35. unsigned int exynos_dp_start_aux_transaction(void);
  36. unsigned int exynos_dp_write_byte_to_dpcd(unsigned int reg_addr,
  37. unsigned char data);
  38. unsigned int exynos_dp_read_byte_from_dpcd(unsigned int reg_addr,
  39. unsigned char *data);
  40. unsigned int exynos_dp_write_bytes_to_dpcd(unsigned int reg_addr,
  41. unsigned int count,
  42. unsigned char data[]);
  43. unsigned int exynos_dp_read_bytes_from_dpcd( unsigned int reg_addr,
  44. unsigned int count,
  45. unsigned char data[]);
  46. int exynos_dp_select_i2c_device( unsigned int device_addr,
  47. unsigned int reg_addr);
  48. int exynos_dp_read_byte_from_i2c(unsigned int device_addr,
  49. unsigned int reg_addr, unsigned int *data);
  50. int exynos_dp_read_bytes_from_i2c(unsigned int device_addr,
  51. unsigned int reg_addr, unsigned int count,
  52. unsigned char edid[]);
  53. void exynos_dp_reset_macro(void);
  54. void exynos_dp_set_link_bandwidth(unsigned char bwtype);
  55. unsigned char exynos_dp_get_link_bandwidth(void);
  56. void exynos_dp_set_lane_count(unsigned char count);
  57. unsigned int exynos_dp_get_lane_count(void);
  58. unsigned char exynos_dp_get_lanex_pre_emphasis(unsigned char lanecnt);
  59. void exynos_dp_set_lane_pre_emphasis(unsigned int level,
  60. unsigned char lanecnt);
  61. void exynos_dp_set_lanex_pre_emphasis(unsigned char request_val,
  62. unsigned char lanecnt);
  63. void exynos_dp_set_training_pattern(unsigned int pattern);
  64. void exynos_dp_enable_enhanced_mode(unsigned char enable);
  65. void exynos_dp_enable_scrambling(unsigned int enable);
  66. int exynos_dp_init_video(void);
  67. void exynos_dp_config_video_slave_mode(struct edp_video_info *video_info);
  68. void exynos_dp_set_video_color_format(struct edp_video_info *video_info);
  69. int exynos_dp_config_video_bist(struct edp_device_info *edp_info);
  70. unsigned int exynos_dp_is_slave_video_stream_clock_on(void);
  71. void exynos_dp_set_video_cr_mn(unsigned int type, unsigned int m_value,
  72. unsigned int n_value);
  73. void exynos_dp_set_video_timing_mode(unsigned int type);
  74. void exynos_dp_enable_video_master(unsigned int enable);
  75. void exynos_dp_start_video(void);
  76. unsigned int exynos_dp_is_video_stream_on(void);
  77. void exynos_dp_set_base_addr(void);
  78. #endif /* _EXYNOS_DP_LOWLEVEL_H */