Donghwa Lee | b73a88b | 2012-07-02 01:16:02 +0000 | [diff] [blame] | 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 | |
| 22 | #ifndef _EXYNOS_EDP_LOWLEVEL_H |
| 23 | #define _EXYNOS_EDP_LOWLEVEL_H |
| 24 | |
| 25 | void exynos_dp_enable_video_bist(unsigned int enable); |
| 26 | void exynos_dp_enable_video_mute(unsigned int enable); |
| 27 | void exynos_dp_reset(void); |
| 28 | void exynos_dp_enable_sw_func(unsigned int enable); |
| 29 | unsigned int exynos_dp_set_analog_power_down(unsigned int block, u32 enable); |
| 30 | unsigned int exynos_dp_get_pll_lock_status(void); |
| 31 | int exynos_dp_init_analog_func(void); |
| 32 | void exynos_dp_init_hpd(void); |
| 33 | void exynos_dp_init_aux(void); |
| 34 | void exynos_dp_config_interrupt(void); |
| 35 | unsigned int exynos_dp_get_plug_in_status(void); |
| 36 | unsigned int exynos_dp_detect_hpd(void); |
| 37 | unsigned int exynos_dp_start_aux_transaction(void); |
| 38 | unsigned int exynos_dp_write_byte_to_dpcd(unsigned int reg_addr, |
| 39 | unsigned char data); |
| 40 | unsigned int exynos_dp_read_byte_from_dpcd(unsigned int reg_addr, |
| 41 | unsigned char *data); |
| 42 | unsigned int exynos_dp_write_bytes_to_dpcd(unsigned int reg_addr, |
| 43 | unsigned int count, |
| 44 | unsigned char data[]); |
| 45 | unsigned int exynos_dp_read_bytes_from_dpcd( unsigned int reg_addr, |
| 46 | unsigned int count, |
| 47 | unsigned char data[]); |
| 48 | int exynos_dp_select_i2c_device( unsigned int device_addr, |
| 49 | unsigned int reg_addr); |
| 50 | int exynos_dp_read_byte_from_i2c(unsigned int device_addr, |
| 51 | unsigned int reg_addr, unsigned int *data); |
| 52 | int exynos_dp_read_bytes_from_i2c(unsigned int device_addr, |
| 53 | unsigned int reg_addr, unsigned int count, |
| 54 | unsigned char edid[]); |
| 55 | void exynos_dp_reset_macro(void); |
| 56 | void exynos_dp_set_link_bandwidth(unsigned char bwtype); |
| 57 | unsigned char exynos_dp_get_link_bandwidth(void); |
| 58 | void exynos_dp_set_lane_count(unsigned char count); |
| 59 | unsigned int exynos_dp_get_lane_count(void); |
| 60 | unsigned char exynos_dp_get_lanex_pre_emphasis(unsigned char lanecnt); |
| 61 | void exynos_dp_set_lane_pre_emphasis(unsigned int level, |
| 62 | unsigned char lanecnt); |
| 63 | void exynos_dp_set_lanex_pre_emphasis(unsigned char request_val, |
| 64 | unsigned char lanecnt); |
| 65 | void exynos_dp_set_training_pattern(unsigned int pattern); |
| 66 | void exynos_dp_enable_enhanced_mode(unsigned char enable); |
| 67 | void exynos_dp_enable_scrambling(unsigned int enable); |
| 68 | int exynos_dp_init_video(void); |
| 69 | void exynos_dp_config_video_slave_mode(struct edp_video_info *video_info); |
| 70 | void exynos_dp_set_video_color_format(struct edp_video_info *video_info); |
| 71 | int exynos_dp_config_video_bist(struct edp_device_info *edp_info); |
| 72 | unsigned int exynos_dp_is_slave_video_stream_clock_on(void); |
| 73 | void exynos_dp_set_video_cr_mn(unsigned int type, unsigned int m_value, |
| 74 | unsigned int n_value); |
| 75 | void exynos_dp_set_video_timing_mode(unsigned int type); |
| 76 | void exynos_dp_enable_video_master(unsigned int enable); |
| 77 | void exynos_dp_start_video(void); |
| 78 | unsigned int exynos_dp_is_video_stream_on(void); |
| 79 | |
| 80 | #endif /* _EXYNOS_DP_LOWLEVEL_H */ |