coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
|
#include <console/console.h>
#include <device/device.h>
#include <device/i2c_simple.h>
#include <edid.h>
#include <string.h>
#include <delay.h>
#include <soc/addressmap.h>
#include <soc/clock.h>
#include <soc/display.h>
#include <soc/nvidia/tegra/i2c.h>
#include <soc/nvidia/tegra/dc.h>
#include <soc/nvidia/tegra/types.h>
#include <soc/nvidia/tegra/pwm.h>
#include <soc/nvidia/tegra/displayport.h>
#include <soc/sor.h>
#include <types.h>
#include "chip.h"
Go to the source code of this file.
Macros | |
#define | DO_FAST_LINK_TRAINING 0 |
Enumerations | |
enum | { DP_LT_SUCCESS = 0 , DP_LT_FAILED = -1 } |
Variables | |
struct tegra_dc | dc_data |
struct tegra_dc_dp_data | dp_data |
|
static |
Definition at line 1043 of file dp.c.
References BIOS_ERR, DP_LT_FAILED, DP_LT_SUCCESS, printk, tegra_dp_channel_eq_status(), tegra_dp_clock_recovery_status(), tegra_dp_lt_adjust(), tegra_dp_lt_config(), and tegra_dp_wait_aux_training().
Referenced by tegra_dp_channel_eq().
|
static |
Definition at line 1090 of file dp.c.
References DP_LT_FAILED, DP_LT_SUCCESS, memcmp(), memcpy(), tegra_dp_clock_recovery_status(), tegra_dp_lt_adjust(), tegra_dp_lt_config(), and tegra_dp_wait_aux_training().
Referenced by tegra_dp_clk_recovery().
|
static |
Definition at line 452 of file dp.c.
References BIOS_ERR, DP_LT_FAILED, DP_LT_SUCCESS, tegra_dc_dp_link_config::lane_count, tegra_dc_dp_link_config::link_bw, tegra_dc_dp_data::link_cfg, tegra_dc_dp_link_config::max_lane_count, tegra_dc_dp_link_config::max_link_bw, printk, SOR_LINK_SPEED_G1_62, SOR_LINK_SPEED_G2_7, and SOR_LINK_SPEED_G5_4.
Referenced by tegra_dp_lower_link_config().
Definition at line 1561 of file dp.c.
References ALIGN_UP, tegra_dc::base, BIOS_ERR, BIOS_INFO, BIOS_SPEW, BIOS_WARNING, device::chip_info, clock_configure_plld(), clock_configure_source, config, tegra_dc::config, dc_data, dp_enable(), dp_init(), KHz, MiB, NULL, NV_PWM_CSR_ENABLE_SHIFT, NV_PWM_CSR_PULSE_WIDTH_SHIFT, tegra_dc::out, pass_mode_info_to_payload(), PLLD, printk, tegra_dc_init(), TEGRA_PWM_BASE, update_display_mode(), update_window(), and WRITEL().
Definition at line 1487 of file dp.c.
References BIOS_ERR, config, tegra_dc::config, tegra_dc_dp_data::dc, soc_nvidia_tegra210_config::dp, DP_POWER_ON_MAX_TRIES, DPAUX_DP_AUXSTAT, DPAUX_DP_AUXSTAT_HPD_STATUS_PLUGGED, tegra_dc_dp_data::enabled, tegra_dc_dp_data::link_cfg, NV_DPCD_REV, NV_DPCD_SET_POWER, NV_DPCD_SET_POWER_VAL_D0_NORMAL, printk, retry, tegra_dc_dp_data::revision, tegra_dc_dp_data::sor, tegra_dc_dp_check_sink(), tegra_dc_dp_dpcd_read(), tegra_dc_dp_dpcd_write(), tegra_dc_dp_explore_link_cfg(), tegra_dc_dp_init_max_link_cfg(), tegra_dc_dpaux_enable(), tegra_dc_sor_attach(), tegra_dc_sor_enable_dp(), tegra_dc_sor_power_down_unused_lanes(), tegra_dc_sor_set_panel_power(), tegra_dc_sor_set_power_state(), tegra_dp_hpd_config(), tegra_dp_hpd_plug(), and tegra_dpaux_readl().
Referenced by display_startup().
Definition at line 1385 of file dp.c.
References tegra_dc_dp_data::aux_base, tegra_dc_sor_data::base, config, tegra_dc_dp_data::dc, tegra_dc_sor_data::dc, dp_data, tegra_dc_dp_data::enabled, tegra_dc_dp_link_config::is_valid, tegra_dc_dp_data::link_cfg, tegra_dc_sor_data::link_cfg, tegra_dc::out, tegra_dc_sor_data::pmc_base, tegra_dc_sor_data::portnum, tegra_dc_sor_data::power_is_up, tegra_dc_dp_data::sor, TEGRA_ARM_DPAUX, TEGRA_ARM_SOR, tegra_dp_update_config(), and TEGRA_PMC_BASE.
Referenced by display_startup().
|
static |
Definition at line 482 of file dp.c.
References tegra_dc_dp_link_config::active_count, tegra_dc_dp_link_config::active_frac, tegra_dc_dp_link_config::activepolarity, BIOS_INFO, tegra_dc_dp_link_config::bits_per_pixel, config, tegra_dc_dp_link_config::enhanced_framing, tegra_dc_dp_link_config::hblank_sym, tegra_dc_dp_link_config::is_valid, tegra_dc_dp_link_config::lane_count, tegra_dc_dp_link_config::link_bw, tegra_dc_dp_data::link_cfg, printk, tegra_dc_dp_dump_link_cfg(), tegra_dc_dp_link_config::tu_size, tegra_dc_dp_link_config::vblank_sym, and tegra_dc_dp_link_config::watermark.
Referenced by tegra_dc_dp_explore_link_cfg(), tegra_dc_dp_init_max_link_cfg(), and tegra_dp_lower_link_config().
|
static |
Definition at line 1457 of file dp.c.
References BIOS_ERR, config, FRAME_IN_MS, tegra_dc_dp_data::link_cfg, printk, tegra_dc_dp_data::sor, tegra_dc_detach(), tegra_dc_dp_explore_link_cfg(), tegra_dc_dp_sink_out_of_sync(), tegra_dc_sor_attach(), and tegra_dc_sor_set_power_state().
Referenced by dp_enable().
|
static |
Definition at line 328 of file dp.c.
References BIOS_ERR, DPAUX_DP_AUXCTL_CMD_AUXRD, printk, and tegra_dc_dpaux_read_chunk().
Referenced by dp_enable(), tegra_dc_dp_init_max_link_cfg(), tegra_dc_dp_sink_out_of_sync(), tegra_dp_channel_eq_status(), tegra_dp_clock_recovery_status(), tegra_dp_link_config(), and tegra_dp_lt_adjust().
|
static |
Definition at line 345 of file dp.c.
References BIOS_ERR, DPAUX_DP_AUXCTL_CMD_AUXWR, printk, and tegra_dc_dpaux_write_chunk().
Referenced by dp_enable(), tegra_dc_dp_set_assr(), tegra_dp_link_config(), tegra_dp_lt_config(), tegra_dp_set_lane_count(), tegra_dp_set_link_bandwidth(), and tegra_dp_tpg().
|
static |
Definition at line 415 of file dp.c.
References tegra_dc_dp_link_config::active_count, tegra_dc_dp_link_config::active_frac, tegra_dc_dp_link_config::activepolarity, BIOS_INFO, tegra_dc_dp_link_config::bits_per_pixel, tegra_dc_dp_link_config::enhanced_framing, tegra_dc_dp_link_config::hblank_sym, tegra_dc_dp_link_config::lane_count, tegra_dc_dp_link_config::link_bw, tegra_dc_dp_data::link_cfg, tegra_dc_dp_link_config::max_lane_count, tegra_dc_dp_link_config::max_link_bw, printk, tegra_dc_dp_link_config::scramble_ena, tegra_dc_dp_link_config::support_enhanced_framing, tegra_dc_dp_link_config::tu_size, tegra_dc_dp_link_config::vblank_sym, and tegra_dc_dp_link_config::watermark.
Referenced by tegra_dc_dp_calc_config(), and tegra_dc_dp_full_link_training().
|
static |
Definition at line 1298 of file dp.c.
References BIOS_ERR, config, EFAULT, EINVAL, tegra_dc_dp_link_config::is_valid, tegra_dc_dp_link_config::lane_count, tegra_dc_dp_link_config::link_bw, tegra_dc_dp_link_config::max_lane_count, tegra_dc_dp_link_config::max_link_bw, memcpy(), printk, tegra_dc_dp_calc_config(), tegra_dp_do_link_training(), and tegra_dp_link_config().
Referenced by dp_enable(), and tegra_dc_dp_check_sink().
|
static |
Definition at line 1132 of file dp.c.
References BIOS_ERR, BIOS_INFO, DP_LT_SUCCESS, driveCurrent_Level0, tegra_dc_dp_data::link_cfg, memset(), postCursor2_Level0, preEmphasis_Disabled, printk, tegra_dc_dp_data::sor, tegra_dc_dp_dump_link_cfg(), tegra_dp_channel_eq(), tegra_dp_clk_recovery(), tegra_dp_lower_link_config(), and tegra_sor_precharge_lanes().
Referenced by tegra_dp_do_link_training().
|
static |
Definition at line 652 of file dp.c.
References tegra_dc_dp_link_config::alt_scramber_reset_cap, tegra_dc_dp_link_config::aux_rd_interval, BIOS_INFO, tegra_dc_dp_link_config::bits_per_pixel, CHECK_RET, config, tegra_dc_dp_link_config::downspread, tegra_dc_dp_link_config::drive_current, tegra_dc_dp_link_config::enhanced_framing, tegra_dc_dp_link_config::lane_count, tegra_dc_dp_link_config::link_bw, tegra_dc_dp_data::link_cfg, tegra_dc_dp_link_config::max_lane_count, tegra_dc_dp_link_config::max_link_bw, NV_DPCD_EDP_CONFIG_CAP, NV_DPCD_EDP_CONFIG_CAP_ASC_RESET_YES, NV_DPCD_EDP_CONFIG_CAP_FRAMING_CHANGE_YES, NV_DPCD_MAX_DOWNSPREAD, NV_DPCD_MAX_DOWNSPREAD_VAL_0_5_PCT, NV_DPCD_MAX_LANE_COUNT, NV_DPCD_MAX_LANE_COUNT_ENHANCED_FRAMING_YES, NV_DPCD_MAX_LANE_COUNT_MASK, NV_DPCD_MAX_LANE_COUNT_TPS3_SUPPORTED_YES, NV_DPCD_MAX_LINK_BANDWIDTH, NV_DPCD_TRAINING_AUX_RD_INTERVAL, tegra_dc_dp_link_config::only_enhanced_framing, tegra_dc_dp_link_config::postcursor, tegra_dc_dp_link_config::preemphasis, printk, tegra_dc_dp_link_config::support_enhanced_framing, tegra_dc_dp_calc_config(), tegra_dc_dp_dpcd_read(), and tegra_dc_dp_link_config::tps3_supported.
Referenced by dp_enable().
|
static |
Definition at line 710 of file dp.c.
References CHECK_RET, NV_DPCD_EDP_CONFIG_SET, NV_DPCD_EDP_CONFIG_SET_ASC_RESET_DISABLE, NV_DPCD_EDP_CONFIG_SET_ASC_RESET_ENABLE, tegra_dc_dp_data::sor, tegra_dc_dp_dpcd_write(), and tegra_dc_sor_set_internal_panel().
Referenced by tegra_dp_link_config().
|
static |
Definition at line 1435 of file dp.c.
References BIOS_ERR, BIOS_INFO, mdelay(), NV_DPCD_SINK_STATUS, NV_DPCD_SINK_STATUS_PORT0_IN_SYNC, printk, and tegra_dc_dp_dpcd_read().
Referenced by tegra_dc_dp_check_sink().
|
static |
Definition at line 398 of file dp.c.
References DPAUX_HYBRID_PADCTL, DPAUX_HYBRID_PADCTL_AUX_CMH_V0_70, DPAUX_HYBRID_PADCTL_AUX_DRVI_SHIFT, DPAUX_HYBRID_PADCTL_AUX_DRVZ_OHM_50, DPAUX_HYBRID_PADCTL_AUX_INPUT_RCV_ENABLE, DPAUX_HYBRID_SPARE, DPAUX_HYBRID_SPARE_PAD_PWR_POWERUP, DPAUX_INTR_AUX, DPAUX_INTR_EN_AUX, and tegra_dpaux_writel().
Referenced by dp_enable(), and tegra_dp_update_config().
|
inlinestatic |
Definition at line 51 of file dp.c.
References BIOS_ERR, mask, printk, tegra_dpaux_readl(), and udelay().
Referenced by tegra_dpaux_wait_transaction().
|
static |
Definition at line 190 of file dp.c.
References addr, BIOS_ERR, BIOS_INFO, BIOS_SPEW, DP_AUX_DEFER_MAX_TRIES, DP_AUX_MAX_BYTES, DP_AUX_TIMEOUT_MAX_TRIES, DP_DPCP_RETRY_SLEEP_NS, DPAUX_DP_AUXADDR, DPAUX_DP_AUXCTL, DPAUX_DP_AUXCTL_CMD_AUXRD, DPAUX_DP_AUXCTL_CMD_I2CRD, DPAUX_DP_AUXCTL_CMD_I2CREQWSTAT, DPAUX_DP_AUXCTL_CMD_MASK, DPAUX_DP_AUXCTL_CMD_MOTRD, DPAUX_DP_AUXCTL_CMDLEN_FIELD, DPAUX_DP_AUXCTL_CMDLEN_SHIFT, DPAUX_DP_AUXCTL_TRANSACTREQ_PENDING, DPAUX_DP_AUXDATA_READ_W, DPAUX_DP_AUXSTAT, DPAUX_DP_AUXSTAT_HPD_STATUS_PLUGGED, DPAUX_DP_AUXSTAT_NO_STOP_ERROR_PENDING, DPAUX_DP_AUXSTAT_REPLY_M_MASK, DPAUX_DP_AUXSTAT_REPLYTYPE_ACK, DPAUX_DP_AUXSTAT_REPLYTYPE_DEFER, DPAUX_DP_AUXSTAT_REPLYTYPE_I2CDEFER, DPAUX_DP_AUXSTAT_REPLYTYPE_MASK, DPAUX_DP_AUXSTAT_RX_ERROR_PENDING, DPAUX_DP_AUXSTAT_SINKSTAT_ERROR_PENDING, DPAUX_DP_AUXSTAT_TIMEOUT_ERROR_PENDING, memcpy(), printk, tegra_dpaux_readl(), tegra_dpaux_wait_transaction(), tegra_dpaux_writel(), and udelay().
Referenced by tegra_dc_dp_dpcd_read(), and tegra_dc_i2c_aux_read().
|
static |
Definition at line 91 of file dp.c.
References addr, BIOS_ERR, BIOS_INFO, DP_AUX_DEFER_MAX_TRIES, DP_AUX_MAX_BYTES, DP_AUX_TIMEOUT_MAX_TRIES, DPAUX_DP_AUXADDR, DPAUX_DP_AUXCTL, DPAUX_DP_AUXCTL_CMD_AUXWR, DPAUX_DP_AUXCTL_CMD_I2CWR, DPAUX_DP_AUXCTL_CMD_MASK, DPAUX_DP_AUXCTL_CMD_MOTWR, DPAUX_DP_AUXCTL_CMDLEN_FIELD, DPAUX_DP_AUXCTL_CMDLEN_SHIFT, DPAUX_DP_AUXCTL_TRANSACTREQ_PENDING, DPAUX_DP_AUXDATA_WRITE_W, DPAUX_DP_AUXSTAT, DPAUX_DP_AUXSTAT_NO_STOP_ERROR_PENDING, DPAUX_DP_AUXSTAT_REPLY_M_MASK, DPAUX_DP_AUXSTAT_REPLYTYPE_ACK, DPAUX_DP_AUXSTAT_REPLYTYPE_DEFER, DPAUX_DP_AUXSTAT_REPLYTYPE_I2CDEFER, DPAUX_DP_AUXSTAT_REPLYTYPE_MASK, DPAUX_DP_AUXSTAT_RX_ERROR_PENDING, DPAUX_DP_AUXSTAT_SINKSTAT_ERROR_PENDING, DPAUX_DP_AUXSTAT_TIMEOUT_ERROR_PENDING, memcpy(), printk, tegra_dpaux_readl(), tegra_dpaux_wait_transaction(), tegra_dpaux_writel(), and udelay().
Referenced by tegra_dc_dp_dpcd_write(), and tegra_dc_i2c_aux_read().
|
static |
Definition at line 361 of file dp.c.
References addr, BIOS_ERR, DP_AUX_MAX_BYTES, DPAUX_DP_AUXCTL_CMD_I2CRD, DPAUX_DP_AUXCTL_CMD_MOTWR, MIN, printk, tegra_dc_dpaux_read_chunk(), and tegra_dc_dpaux_write_chunk().
Referenced by tegra_dp_update_config().
|
static |
Definition at line 1070 of file dp.c.
References _tegra_dp_channel_eq(), tegra_dc_dp_link_config::lane_count, tegra_dc_dp_data::link_cfg, tegra_dp_tpg(), tegra_dc_dp_link_config::tps3_supported, training_pattern_2, training_pattern_3, and training_pattern_disabled.
Referenced by tegra_dc_dp_full_link_training().
|
static |
Definition at line 780 of file dp.c.
References tegra_dc_dp_link_config::lane_count, tegra_dc_dp_data::link_cfg, NV_DPCD_LANE0_1_STATUS, NV_DPCD_LANE_ALIGN_STATUS_UPDATED, NV_DPCD_LANE_ALIGN_STATUS_UPDATED_DONE_YES, NV_DPCD_STATUS_LANEX_CHN_EQ_DONE_SHIFT, NV_DPCD_STATUS_LANEX_SYMBOL_LOCKED_SHFIT, NV_DPCD_STATUS_LANEXPLUS1_CHN_EQ_DONE_SHIFT, NV_DPCD_STATUS_LANEXPLUS1_SYMBOL_LOCKED_SHIFT, and tegra_dc_dp_dpcd_read().
Referenced by _tegra_dp_channel_eq().
|
static |
Definition at line 1116 of file dp.c.
References _tegra_dp_clk_recovery(), tegra_dc_dp_link_config::lane_count, tegra_dc_dp_data::link_cfg, tegra_dp_tpg(), tegra_dc_dp_link_config::tps3_supported, training_pattern_1, and training_pattern_disabled.
Referenced by tegra_dc_dp_full_link_training().
|
static |
Definition at line 814 of file dp.c.
References tegra_dc_dp_link_config::lane_count, tegra_dc_dp_data::link_cfg, NV_DPCD_LANE0_1_STATUS, NV_DPCD_STATUS_LANEX_CR_DONE_YES, NV_DPCD_STATUS_LANEXPLUS1_CR_DONE_YES, and tegra_dc_dp_dpcd_read().
Referenced by _tegra_dp_channel_eq(), and _tegra_dp_clk_recovery().
|
static |
Definition at line 1258 of file dp.c.
References BIOS_ERR, EFAULT, tegra_dc_dp_link_config::lane_count, tegra_dc_dp_link_config::link_bw, tegra_dc_sor_data::link_cfg, printk, tegra_dc_dp_data::sor, tegra_dc_dp_fast_link_training(), tegra_dc_dp_full_link_training(), tegra_dc_sor_read_link_config(), and tegra_dc_sor_set_voltage_swing().
Referenced by tegra_dc_dp_explore_link_cfg().
|
static |
Definition at line 1408 of file dp.c.
References config, DPAUX_HPD_CONFIG, DPAUX_HPD_CONFIG_UNPLUG_MIN_TIME_SHIFT, DPAUX_HPD_IRQ_CONFIG, tegra_dpaux_writel(), and val.
Referenced by dp_enable().
|
static |
Definition at line 1421 of file dp.c.
References DPAUX_DP_AUXSTAT, DPAUX_DP_AUXSTAT_HPD_STATUS_PLUGGED, tegra_dpaux_readl(), udelay(), and val.
Referenced by dp_enable().
|
static |
Definition at line 889 of file dp.c.
References tegra_dc_dp_link_config::alt_scramber_reset_cap, BIOS_ERR, DP_LT_FAILED, DP_LT_SUCCESS, tegra_dc_dp_link_config::lane_count, tegra_dc_dp_link_config::link_bw, tegra_dc_dp_data::link_cfg, NV_DPCD_SET_POWER, NV_DPCD_SET_POWER_VAL_D0_NORMAL, NV_DPCD_SET_POWER_VAL_D3_PWRDWN, printk, retry, tegra_dc_dp_data::sor, tegra_dc_dp_dpcd_read(), tegra_dc_dp_dpcd_write(), tegra_dc_dp_set_assr(), tegra_dc_sor_set_dp_linkctl(), tegra_dp_set_lane_count(), tegra_dp_set_link_bandwidth(), and training_pattern_none.
Referenced by tegra_dc_dp_explore_link_cfg(), and tegra_dp_lower_link_config().
|
static |
Definition at line 939 of file dp.c.
References _tegra_dp_lower_link_config(), tegra_dc::config, tegra_dc_dp_data::dc, DP_LT_FAILED, DP_LT_SUCCESS, tegra_dc_dp_link_config::is_valid, tegra_dc_dp_data::link_cfg, tegra_dc_dp_calc_config(), and tegra_dp_link_config().
Referenced by tegra_dc_dp_full_link_training().
|
static |
Definition at line 834 of file dp.c.
References tegra_dc_dp_link_config::lane_count, tegra_dc_dp_data::link_cfg, NV_DPCD_ADJUST_REQ_LANEX_DC_MASK, NV_DPCD_ADJUST_REQ_LANEX_DC_SHIFT, NV_DPCD_ADJUST_REQ_LANEX_PE_MASK, NV_DPCD_ADJUST_REQ_LANEX_PE_SHIFT, NV_DPCD_ADJUST_REQ_LANEXPLUS1_DC_MASK, NV_DPCD_ADJUST_REQ_LANEXPLUS1_DC_SHIFT, NV_DPCD_ADJUST_REQ_LANEXPLUS1_PE_MASK, NV_DPCD_ADJUST_REQ_LANEXPLUS1_PE_SHIFT, NV_DPCD_ADJUST_REQ_POST_CURSOR2, NV_DPCD_ADJUST_REQ_POST_CURSOR2_LANE_MASK, NV_DPCD_ADJUST_REQ_POST_CURSOR2_LANE_SHIFT, NV_DPCD_LANE0_1_ADJUST_REQ, and tegra_dc_dp_dpcd_read().
Referenced by _tegra_dp_channel_eq(), and _tegra_dp_clk_recovery().
|
static |
Definition at line 961 of file dp.c.
References BIOS_ERR, tegra_dc_dp_link_config::lane_count, tegra_dc_dp_data::link_cfg, mask, NV_DPCD_LANEX_SET2_PC2_MAX_REACHED_F, NV_DPCD_LANEX_SET2_PC2_MAX_REACHED_T, NV_DPCD_LANEX_SET2_PC2_SHIFT, NV_DPCD_LANEXPLUS1_SET2_PC2_MAX_REACHED_F, NV_DPCD_LANEXPLUS1_SET2_PC2_MAX_REACHED_T, NV_DPCD_LANEXPLUS1_SET2_PC2_SHIFT, NV_DPCD_TRAINING_LANE0_1_SET2, NV_DPCD_TRAINING_LANE0_SET, NV_DPCD_TRAINING_LANEX_SET_DC_MAX_REACHED_F, NV_DPCD_TRAINING_LANEX_SET_DC_MAX_REACHED_T, NV_DPCD_TRAINING_LANEX_SET_DC_SHIFT, NV_DPCD_TRAINING_LANEX_SET_PE_MAX_REACHED_F, NV_DPCD_TRAINING_LANEX_SET_PE_MAX_REACHED_T, NV_DPCD_TRAINING_LANEX_SET_PE_SHIFT, NV_SOR_PR_LANE0_DP_LANE2_MASK, NV_SOR_PR_LANE0_DP_LANE2_SHIFT, NV_SOR_PR_LANE1_DP_LANE1_MASK, NV_SOR_PR_LANE1_DP_LANE1_SHIFT, NV_SOR_PR_LANE2_DP_LANE0_MASK, NV_SOR_PR_LANE2_DP_LANE0_SHIFT, NV_SOR_PR_LANE3_DP_LANE3_MASK, NV_SOR_PR_LANE3_DP_LANE3_SHIFT, printk, tegra_dc_dp_data::sor, tegra_dc_dp_dpcd_write(), tegra_dp_disable_tx_pu(), tegra_dp_is_max_pc(), tegra_dp_is_max_pe(), tegra_dp_is_max_vs(), tegra_dp_pc_regs, tegra_dp_pe_regs, tegra_dp_set_pe_vs_pc(), tegra_dp_vs_regs, tegra_dc_dp_link_config::tps3_supported, udelay(), and val.
Referenced by _tegra_dp_channel_eq(), and _tegra_dp_clk_recovery().
|
static |
Definition at line 734 of file dp.c.
References CHECK_RET, tegra_dc_dp_link_config::enhanced_framing, tegra_dc_dp_link_config::lane_count, tegra_dc_dp_data::link_cfg, NV_DPCD_LANE_COUNT_SET, NV_DPCD_LANE_COUNT_SET_ENHANCEDFRAMING_T, tegra_dc_dp_data::sor, tegra_dc_dp_dpcd_write(), and tegra_dc_sor_set_lane_count().
Referenced by tegra_dp_link_config().
|
static |
Definition at line 726 of file dp.c.
References NV_DPCD_LINK_BANDWIDTH_SET, tegra_dc_dp_data::sor, tegra_dc_dp_dpcd_write(), and tegra_dc_sor_set_link_bandwidth().
Referenced by tegra_dp_link_config().
|
static |
Definition at line 879 of file dp.c.
References tegra_dc_dp_data::link_cfg, NV_DPCD_TRAINING_PATTERN_SET, NV_DPCD_TRAINING_PATTERN_SET_SC_DISABLED_F, NV_DPCD_TRAINING_PATTERN_SET_SC_DISABLED_T, tegra_dc_dp_data::sor, tegra_dc_dp_dpcd_write(), tegra_dc_sor_set_dp_linkctl(), and training_pattern_disabled.
Referenced by tegra_dp_channel_eq(), and tegra_dp_clk_recovery().
|
static |
Note edid->framebuffer_bits_per_pixel is currently hard-coded as 32, so we should keep the default value in device config.
EDID v1.3 panels may not have color depth info, so we need to check if these values are zero before updating config.
Definition at line 1334 of file dp.c.
References BIOS_ERR, BIOS_SPEW, buf, config, decode_edid(), EDID_CONFORMANT, edid_mode::ha, edid_mode::hbl, edid_mode::hso, edid_mode::hspw, edid::mode, edid::panel_bits_per_color, edid::panel_bits_per_pixel, edid_mode::pixel_clock, printk, tegra_dc_dpaux_enable(), tegra_dc_i2c_aux_read(), TEGRA_EDID_I2C_ADDRESS, edid_mode::va, edid_mode::vbl, edid_mode::vso, and edid_mode::vspw.
Referenced by dp_init().
|
inlinestatic |
Definition at line 867 of file dp.c.
References tegra_dc_dp_link_config::aux_rd_interval, tegra_dc_dp_data::link_cfg, mdelay(), and udelay().
Referenced by _tegra_dp_channel_eq(), and _tegra_dp_clk_recovery().
|
inlinestatic |
Definition at line 37 of file dp.c.
References addr, tegra_dc_dp_data::aux_base, and READL().
Referenced by dp_enable(), tegra_dc_dpaux_poll_register(), tegra_dc_dpaux_read_chunk(), tegra_dc_dpaux_write_chunk(), and tegra_dp_hpd_plug().
|
inlinestatic |
Definition at line 77 of file dp.c.
References BIOS_INFO, DP_AUX_TIMEOUT_MS, DPAUX_DP_AUXCTL, DPAUX_DP_AUXCTL_TRANSACTREQ_DONE, DPAUX_DP_AUXCTL_TRANSACTREQ_MASK, printk, and tegra_dc_dpaux_poll_register().
Referenced by tegra_dc_dpaux_read_chunk(), and tegra_dc_dpaux_write_chunk().
|
inlinestatic |
Definition at line 44 of file dp.c.
References addr, tegra_dc_dp_data::aux_base, val, and WRITEL().
Referenced by tegra_dc_dpaux_enable(), tegra_dc_dpaux_read_chunk(), tegra_dc_dpaux_write_chunk(), and tegra_dp_hpd_config().
struct tegra_dc dc_data |
Definition at line 1 of file dp.c.
Referenced by dp_display_startup().
struct tegra_dc_dp_data dp_data |