![]() |
coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
|
#include <console/console.h>
#include <delay.h>
#include <soc/dp.h>
#include <soc/fimd.h>
#include <soc/i2c.h>
#include <soc/power.h>
#include <soc/sysreg.h>
#include <string.h>
Go to the source code of this file.
Definition at line 52 of file dp.c.
References EDID_BLOCK_LENGTH.
Referenced by exynos_dp_read_edid().
|
static |
Definition at line 755 of file dp.c.
References BIOS_DEBUG, BIOS_ERR, CALCULATED_M, DP_DISABLE, exynos_dp_config_video_slave_mode(), exynos_dp_disable_video_bist(), exynos_dp_enable_video_master(), exynos_dp_enable_video_mute(), exynos_dp_get_pll_lock_status(), exynos_dp_is_slave_video_stream_clock_on(), exynos_dp_is_video_stream_on(), exynos_dp_set_video_color_format(), exynos_dp_set_video_cr_mn(), exynos_dp_set_video_timing_mode(), exynos_dp_start_video(), EXYNOS_DP_SUCCESS, edp_video_info::master_mode, mdelay(), PLL_LOCKED, printk, edp_device_info::video_info, and VIDEO_TIMING_FROM_CAPTURE.
Referenced by exynos_init_dp().
Definition at line 319 of file dp.c.
References BIOS_ERR, DPCD_ENHANCED_FRAME_EN, DPCD_LANE_COUNT_SET, DPCD_LN_COUNT_SET, exynos_dp_read_byte_from_dpcd(), EXYNOS_DP_SUCCESS, exynos_dp_write_byte_to_dpcd(), and printk.
Referenced by exynos_dp_set_enhanced_mode(), and exynos_init_dp().
Definition at line 735 of file dp.c.
References DP_DISABLE, DP_ENABLE, DPCD_SCRAMBLING_DISABLED, DPCD_TRAINING_PATTERN_SET, exynos_dp_enable_scrambling(), exynos_dp_read_byte_from_dpcd(), and exynos_dp_write_byte_to_dpcd().
Referenced by exynos_init_dp().
|
static |
Definition at line 412 of file dp.c.
References BIOS_ERR, DP_LT_FAIL, edp_device_info::dpcd_efc, exynos_dp_set_enhanced_mode(), EXYNOS_DP_SUCCESS, exynos_dp_training_pattern_dis(), edp_device_info::lt_info, edp_link_train_info::lt_status, and printk.
Referenced by exynos_dp_process_equalizer_training().
|
static |
Definition at line 151 of file dp.c.
References BIOS_ERR, BIOS_SPEW, buf, DP_DPCD_REV_10, DP_DPCD_REV_11, DP_LANE_BW_1_62, DP_LANE_BW_2_70, DP_LANE_CNT_1, DP_LANE_CNT_2, DP_LANE_CNT_4, DPCD_DPCD_REV, edp_device_info::dpcd_efc, DPCD_MAX_LANE_COUNT, DPCD_MAX_LINK_RATE, edp_device_info::dpcd_rev, exynos_dp_read_bytes_from_dpcd(), exynos_dp_read_edid(), EXYNOS_DP_SUCCESS, edp_device_info::lane_bw, edp_device_info::lane_cnt, memset(), printk, and edp_device_info::raw_edid.
Referenced by exynos_init_dp().
|
static |
Definition at line 34 of file dp.c.
References DP_ENABLE, exynos_dp_enable_sw_func(), exynos_dp_init_analog_func(), exynos_dp_init_aux(), exynos_dp_init_hpd(), exynos_dp_reset(), and EXYNOS_DP_SUCCESS.
Referenced by exynos_init_dp().
Definition at line 229 of file dp.c.
References exynos_dp_reset_macro(), exynos_dp_set_analog_power_down(), and POWER_ALL.
Referenced by exynos_dp_set_link_train().
|
static |
Definition at line 241 of file dp.c.
References BIOS_ERR, buf, edp_link_train_info::cr_loop, DP_LT_CR, DPCD_LINK_BW_SET, DPCD_PRE_EMPHASIS_SET_PATTERN_2_LEVEL_0, DPCD_SCRAMBLING_DISABLED, DPCD_SET_POWER_STATE_D0, DPCD_SINK_POWER_STATE, DPCD_TRAINING_PATTERN_1, DPCD_TRAINING_PATTERN_SET, DPCD_VOLTAGE_SWING_SET_PATTERN_1_LEVEL_0, edp_link_train_info::ep_loop, exynos_dp_set_lane_count(), exynos_dp_set_lane_pre_emphasis(), exynos_dp_set_link_bandwidth(), exynos_dp_set_training_pattern(), EXYNOS_DP_SUCCESS, exynos_dp_write_byte_to_dpcd(), exynos_dp_write_bytes_to_dpcd(), edp_device_info::lane_bw, edp_device_info::lane_cnt, edp_device_info::lt_info, edp_link_train_info::lt_status, PRE_EMPHASIS_LEVEL_0, printk, and TRAINING_PTN1.
Referenced by exynos_dp_sw_link_training().
|
static |
Definition at line 455 of file dp.c.
References BIOS_DEBUG, BIOS_ERR, buf, edp_link_train_info::cr_loop, DP_LANE_CNT_4, DP_LANE_STAT_CR_DONE, DP_LT_ET, DP_LT_FAIL, DPCD_SCRAMBLING_DISABLED, DPCD_TRAINING_LANE0_SET, DPCD_TRAINING_PATTERN_2, DPCD_TRAINING_PATTERN_SET, DRIVE_CURRENT_SET_0_GET, exynos_dp_get_lanex_pre_emphasis(), exynos_dp_read_dpcd_adj_req(), exynos_dp_read_dpcd_lane_stat(), exynos_dp_reduce_link_rate(), exynos_dp_set_lanex_pre_emphasis(), exynos_dp_set_training_pattern(), EXYNOS_DP_SUCCESS, exynos_dp_write_bytes_to_dpcd(), edp_device_info::lane_cnt, edp_device_info::lt_info, edp_link_train_info::lt_status, MAX_CR_LOOP, MAX_DRIVE_CURRENT_REACH_3, MAX_PRE_EMPHASIS_REACH_3, mdelay(), PRE_EMPHASIS_LEVEL_3, PRE_EMPHASIS_SET_0_GET, printk, TRAINING_PTN2, and VOLTAGE_LEVEL_3.
Referenced by exynos_dp_sw_link_training().
|
static |
Definition at line 560 of file dp.c.
References BIOS_DEBUG, BIOS_ERR, DP_LANE_BW_2_70, DP_LANE_CNT_4, DP_LANE_STAT_CE_DONE, DP_LANE_STAT_CR_DONE, DP_LANE_STAT_SYM_LOCK, DP_LT_FAIL, DP_LT_FINISHED, DPCD_INTERLANE_ALIGN_DONE, DPCD_LN_ALIGN_UPDATED, DPCD_TRAINING_LANE0_SET, edp_link_train_info::ep_loop, exynos_dp_equalizer_err_link(), exynos_dp_get_lane_count(), exynos_dp_get_link_bandwidth(), exynos_dp_read_byte_from_dpcd(), exynos_dp_read_dpcd_adj_req(), exynos_dp_read_dpcd_lane_stat(), exynos_dp_reduce_link_rate(), exynos_dp_set_lanex_pre_emphasis(), EXYNOS_DP_SUCCESS, exynos_dp_write_bytes_to_dpcd(), edp_device_info::lane_bw, edp_device_info::lane_cnt, edp_device_info::lt_info, edp_link_train_info::lt_status, MAX_DRIVE_CURRENT_REACH_3, MAX_EQ_LOOP, MAX_PRE_EMPHASIS_REACH_3, mdelay(), PRE_EMPHASIS_LEVEL_3, printk, and VOLTAGE_LEVEL_3.
Referenced by exynos_dp_sw_link_training().
|
static |
Definition at line 389 of file dp.c.
References BIOS_ERR, buf, DPCD_ADJUST_REQUEST_LANE0_1, exynos_dp_read_byte_from_dpcd(), EXYNOS_DP_SUCCESS, and printk.
Referenced by exynos_dp_process_clock_recovery(), and exynos_dp_process_equalizer_training().
|
static |
Definition at line 362 of file dp.c.
References BIOS_ERR, buf, DP_LANE_CNT_4, DPCD_LANE0_1_STATUS, exynos_dp_read_bytes_from_dpcd(), EXYNOS_DP_SUCCESS, edp_device_info::lane_cnt, and printk.
Referenced by exynos_dp_process_clock_recovery(), and exynos_dp_process_equalizer_training().
Definition at line 63 of file dp.c.
References BIOS_ERR, DPCD_TEST_EDID_CHECKSUM, DPCD_TEST_EDID_CHECKSUM_WRITE, DPCD_TEST_EDID_READ, DPCD_TEST_REQUEST, DPCD_TEST_RESPONSE, EDID_BLOCK_LENGTH, EDID_CHECKSUM, EDID_EXTENSION_FLAG, EDID_HEADER_PATTERN, exynos_dp_calc_edid_check_sum(), exynos_dp_read_byte_from_dpcd(), exynos_dp_read_byte_from_i2c(), exynos_dp_read_bytes_from_i2c(), exynos_dp_write_byte_to_dpcd(), I2C_EDID_DEVICE_ADDR, and printk.
Referenced by exynos_dp_handle_edid().
|
static |
Definition at line 431 of file dp.c.
References BIOS_ERR, DP_LANE_BW_1_62, DP_LANE_BW_2_70, DP_LT_FAIL, DP_LT_START, edp_device_info::dpcd_efc, exynos_dp_set_enhanced_mode(), EXYNOS_DP_SUCCESS, exynos_dp_training_pattern_dis(), edp_device_info::lane_bw, edp_device_info::lt_info, edp_link_train_info::lt_status, and printk.
Referenced by exynos_dp_process_clock_recovery(), and exynos_dp_process_equalizer_training().
Definition at line 347 of file dp.c.
References BIOS_ERR, exynos_dp_enable_enhanced_mode(), exynos_dp_enable_rx_to_enhanced_mode(), EXYNOS_DP_SUCCESS, and printk.
Referenced by exynos_dp_equalizer_err_link(), and exynos_dp_reduce_link_rate().
|
static |
Definition at line 722 of file dp.c.
References BIOS_ERR, exynos_dp_init_training(), EXYNOS_DP_SUCCESS, exynos_dp_sw_link_training(), and printk.
Referenced by exynos_init_dp().
|
static |
Definition at line 669 of file dp.c.
References BIOS_ERR, CH1_BLOCK, DP_LT_CR, DP_LT_ET, DP_LT_FAIL, DP_LT_FINISHED, DP_LT_START, exynos_dp_link_start(), exynos_dp_process_clock_recovery(), exynos_dp_process_equalizer_training(), exynos_dp_set_analog_power_down(), EXYNOS_DP_SUCCESS, edp_device_info::lane_cnt, edp_device_info::lt_info, edp_link_train_info::lt_status, and printk.
Referenced by exynos_dp_set_link_train().
Definition at line 303 of file dp.c.
References BIOS_ERR, DP_NONE, DPCD_TRAINING_PATTERN_DISABLED, DPCD_TRAINING_PATTERN_SET, exynos_dp_set_training_pattern(), EXYNOS_DP_SUCCESS, exynos_dp_write_byte_to_dpcd(), and printk.
Referenced by exynos_dp_equalizer_err_link(), and exynos_dp_reduce_link_rate().
int exynos_init_dp | ( | struct edp_device_info * | edp_info | ) |
Definition at line 841 of file dp.c.
References BIOS_DEBUG, BIOS_ERR, DP_ENABLE, dp_phy_control(), exynos_dp_config_video(), exynos_dp_enable_enhanced_mode(), exynos_dp_enable_rx_to_enhanced_mode(), exynos_dp_enable_scramble(), exynos_dp_handle_edid(), exynos_dp_init_dp(), exynos_dp_init_video(), exynos_dp_set_lane_count(), exynos_dp_set_link_bandwidth(), exynos_dp_set_link_train(), EXYNOS_DP_SUCCESS, edp_device_info::lane_bw, edp_device_info::lane_cnt, and printk.
Referenced by mainboard_init().