coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
edp.h File Reference
#include <edid.h>
Include dependency graph for edp.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  rk_edp_regs
 
struct  link_train
 
struct  rk_edp
 

Macros

#define VID_CAP_FUNC_EN_N   (0x1 << 6)
 
#define VID_FIFO_FUNC_EN_N   (0x1 << 5)
 
#define AUD_FIFO_FUNC_EN_N   (0x1 << 4)
 
#define AUD_FUNC_EN_N   (0x1 << 3)
 
#define HDCP_FUNC_EN_N   (0x1 << 2)
 
#define SW_FUNC_EN_N   (0x1 << 0)
 
#define SSC_FUNC_EN_N   (0x1 << 7)
 
#define AUX_FUNC_EN_N   (0x1 << 2)
 
#define SERDES_FIFO_FUNC_EN_N   (0x1 << 1)
 
#define LS_CLK_DOMAIN_FUNC_EN_N   (0x1 << 0)
 
#define VIDEO_EN   (0x1 << 7)
 
#define VIDEO_MUTE   (0x1 << 6)
 
#define IN_D_RANGE_MASK   (0x1 << 7)
 
#define IN_D_RANGE_SHIFT   (7)
 
#define IN_D_RANGE_CEA   (0x1 << 7)
 
#define IN_D_RANGE_VESA   (0x0 << 7)
 
#define IN_BPC_MASK   (0x7 << 4)
 
#define IN_BPC_SHIFT   (4)
 
#define IN_BPC_12_BITS   (0x3 << 4)
 
#define IN_BPC_10_BITS   (0x2 << 4)
 
#define IN_BPC_8_BITS   (0x1 << 4)
 
#define IN_BPC_6_BITS   (0x0 << 4)
 
#define IN_COLOR_F_MASK   (0x3 << 0)
 
#define IN_COLOR_F_SHIFT   (0)
 
#define IN_COLOR_F_YCBCR444   (0x2 << 0)
 
#define IN_COLOR_F_YCBCR422   (0x1 << 0)
 
#define IN_COLOR_F_RGB   (0x0 << 0)
 
#define IN_YC_COEFFI_MASK   (0x1 << 7)
 
#define IN_YC_COEFFI_SHIFT   (7)
 
#define IN_YC_COEFFI_ITU709   (0x1 << 7)
 
#define IN_YC_COEFFI_ITU601   (0x0 << 7)
 
#define VID_CHK_UPDATE_TYPE_MASK   (0x1 << 4)
 
#define VID_CHK_UPDATE_TYPE_SHIFT   (4)
 
#define VID_CHK_UPDATE_TYPE_1   (0x1 << 4)
 
#define VID_CHK_UPDATE_TYPE_0   (0x0 << 4)
 
#define BIST_EN   (0x1 << 3)
 
#define BIST_WH_64   (0x1 << 2)
 
#define BIST_WH_32   (0x0 << 2)
 
#define BIST_TYPE_COLR_BAR   (0x0 << 0)
 
#define BIST_TYPE_GRAY_BAR   (0x1 << 0)
 
#define BIST_TYPE_MOBILE_BAR   (0x2 << 0)
 
#define VID_HRES_TH(x)   (((x) & 0xf) << 4)
 
#define VID_VRES_TH(x)   (((x) & 0xf) << 0)
 
#define F_SEL   (0x1 << 4)
 
#define INTERACE_SCAN_CFG   (0x1 << 2)
 
#define INTERACD_SCAN_CFG_OFFSET   2
 
#define VSYNC_POLARITY_CFG   (0x1 << 1)
 
#define VSYNC_POLARITY_CFG_OFFSET   1
 
#define HSYNC_POLARITY_CFG   (0x1 << 0)
 
#define HSYNC_POLARITY_CFG_OFFSET   0
 
#define PD_INC_BG   (0x1 << 7)
 
#define PD_EXP_BG   (0x1 << 6)
 
#define PD_AUX   (0x1 << 5)
 
#define PD_PLL   (0x1 << 4)
 
#define PD_CH3   (0x1 << 3)
 
#define PD_CH2   (0x1 << 2)
 
#define PD_CH1   (0x1 << 1)
 
#define PD_CH0   (0x1 << 0)
 
#define LANE3_MAP_LOGIC_LANE_0   (0x0 << 6)
 
#define LANE3_MAP_LOGIC_LANE_1   (0x1 << 6)
 
#define LANE3_MAP_LOGIC_LANE_2   (0x2 << 6)
 
#define LANE3_MAP_LOGIC_LANE_3   (0x3 << 6)
 
#define LANE2_MAP_LOGIC_LANE_0   (0x0 << 4)
 
#define LANE2_MAP_LOGIC_LANE_1   (0x1 << 4)
 
#define LANE2_MAP_LOGIC_LANE_2   (0x2 << 4)
 
#define LANE2_MAP_LOGIC_LANE_3   (0x3 << 4)
 
#define LANE1_MAP_LOGIC_LANE_0   (0x0 << 2)
 
#define LANE1_MAP_LOGIC_LANE_1   (0x1 << 2)
 
#define LANE1_MAP_LOGIC_LANE_2   (0x2 << 2)
 
#define LANE1_MAP_LOGIC_LANE_3   (0x3 << 2)
 
#define LANE0_MAP_LOGIC_LANE_0   (0x0 << 0)
 
#define LANE0_MAP_LOGIC_LANE_1   (0x1 << 0)
 
#define LANE0_MAP_LOGIC_LANE_2   (0x2 << 0)
 
#define LANE0_MAP_LOGIC_LANE_3   (0x3 << 0)
 
#define SEL_24M   (0x1 << 3)
 
#define VSYNC_DET   (0x1 << 7)
 
#define PLL_LOCK_CHG   (0x1 << 6)
 
#define SPDIF_ERR   (0x1 << 5)
 
#define SPDIF_UNSTBL   (0x1 << 4)
 
#define VID_FORMAT_CHG   (0x1 << 3)
 
#define AUD_CLK_CHG   (0x1 << 2)
 
#define VID_CLK_CHG   (0x1 << 1)
 
#define SW_INT   (0x1 << 0)
 
#define ENC_EN_CHG   (0x1 << 6)
 
#define HW_BKSV_RDY   (0x1 << 3)
 
#define HW_SHA_DONE   (0x1 << 2)
 
#define HW_AUTH_STATE_CHG   (0x1 << 1)
 
#define HW_AUTH_DONE   (0x1 << 0)
 
#define AFIFO_UNDER   (0x1 << 7)
 
#define AFIFO_OVER   (0x1 << 6)
 
#define R0_CHK_FLAG   (0x1 << 5)
 
#define PSR_ACTIVE   (0x1 << 7)
 
#define PSR_INACTIVE   (0x1 << 6)
 
#define SPDIF_BI_PHASE_ERR   (0x1 << 5)
 
#define HOTPLUG_CHG   (0x1 << 2)
 
#define HPD_LOST   (0x1 << 1)
 
#define PLUG   (0x1 << 0)
 
#define INT_HPD   (0x1 << 6)
 
#define HW_LT_DONE   (0x1 << 5)
 
#define SINK_LOST   (0x1 << 3)
 
#define LINK_LOST   (0x1 << 2)
 
#define RPLY_RECEIV   (0x1 << 1)
 
#define AUX_ERR   (0x1 << 0)
 
#define SOFT_INT_CTRL   (0x1 << 2)
 
#define INT_POL   (0x1 << 0)
 
#define DET_STA   (0x1 << 2)
 
#define FORCE_DET   (0x1 << 1)
 
#define DET_CTRL   (0x1 << 0)
 
#define CHA_CRI(x)   (((x) & 0xf) << 4)
 
#define CHA_STA   (0x1 << 2)
 
#define FORCE_CHA   (0x1 << 1)
 
#define CHA_CTRL   (0x1 << 0)
 
#define HPD_STATUS   (0x1 << 6)
 
#define F_HPD   (0x1 << 5)
 
#define HPD_CTRL   (0x1 << 4)
 
#define HDCP_RDY   (0x1 << 3)
 
#define STRM_VALID   (0x1 << 2)
 
#define F_VALID   (0x1 << 1)
 
#define VALID_CTRL   (0x1 << 0)
 
#define FIX_M_AUD   (0x1 << 4)
 
#define ENHANCED   (0x1 << 3)
 
#define FIX_M_VID   (0x1 << 2)
 
#define M_VID_UPDATE_CTRL   (0x3 << 0)
 
#define LDO_OUTPUT_V_SEL_145   (2 << 6)
 
#define KVCO_DEFALUT   (1 << 4)
 
#define CHG_PUMP_CUR_SEL_5US   (1 << 2)
 
#define V2L_CUR_SEL_1MA   (1 << 0)
 
#define LOCK_DET_CNT_SEL_256   (2 << 5)
 
#define LOOP_FILTER_RESET   (0 << 4)
 
#define PALL_SSC_RESET   (0 << 3)
 
#define LOCK_DET_BYPASS   (0 << 2)
 
#define PLL_LOCK_DET_MODE   (0 << 1)
 
#define PLL_LOCK_DET_FORCE   (0 << 0)
 
#define REGULATOR_V_SEL_950MV   (2 << 4)
 
#define STANDBY_CUR_SEL   (0 << 3)
 
#define CHG_PUMP_INOUT_CTRL_1200MV   (1 << 1)
 
#define CHG_PUMP_INPUT_CTRL_OP   (0 << 0)
 
#define SSC_OFFSET   (0 << 6)
 
#define SSC_MODE   (1 << 4)
 
#define SSC_DEPTH   (9 << 0)
 
#define TX_SWING_PRE_EMP_MODE   (1 << 7)
 
#define PRE_DRIVER_PW_CTRL1   (0 << 5)
 
#define LP_MODE_CLK_REGULATOR   (0 << 4)
 
#define RESISTOR_MSB_CTRL   (0 << 3)
 
#define RESISTOR_CTRL   (7 << 0)
 
#define DP_AUX_COMMON_MODE   (0 << 4)
 
#define DP_AUX_EN   (0 << 3)
 
#define AUX_TERM_50OHM   (3 << 0)
 
#define DP_BG_OUT_SEL   (4 << 4)
 
#define DP_DB_CUR_CTRL   (0 << 3)
 
#define DP_BG_SEL   (1 << 2)
 
#define DP_RESISTOR_TUNE_BG   (2 << 0)
 
#define CH1_CH3_SWING_EMP_CTRL   (5 << 4)
 
#define CH0_CH2_SWING_EMP_CTRL   (5 << 0)
 
#define SCRAMBLING_DISABLE   (0x1 << 5)
 
#define SCRAMBLING_ENABLE   (0x0 << 5)
 
#define LINK_QUAL_PATTERN_SET_MASK   (0x7 << 2)
 
#define LINK_QUAL_PATTERN_SET_HBR2   (0x5 << 2)
 
#define LINK_QUAL_PATTERN_SET_80BIT   (0x4 << 2)
 
#define LINK_QUAL_PATTERN_SET_PRBS7   (0x3 << 2)
 
#define LINK_QUAL_PATTERN_SET_D10_2   (0x1 << 2)
 
#define LINK_QUAL_PATTERN_SET_DISABLE   (0x0 << 2)
 
#define SW_TRAINING_PATTERN_SET_MASK   (0x3 << 0)
 
#define SW_TRAINING_PATTERN_SET_PTN2   (0x2 << 0)
 
#define SW_TRAINING_PATTERN_SET_PTN1   (0x1 << 0)
 
#define SW_TRAINING_PATTERN_SET_DISABLE   (0x0 << 0)
 
#define HW_LT_ERR_CODE_MASK   0x70
 
#define HW_LT_ERR_CODE_SHIFT   4
 
#define HW_LT_EN   (0x1 << 0)
 
#define PLL_LOCK   (0x1 << 4)
 
#define F_PLL_LOCK   (0x1 << 3)
 
#define PLL_LOCK_CTRL   (0x1 << 2)
 
#define POLL_EN   (0x1 << 1)
 
#define PN_INV   (0x1 << 0)
 
#define AUX_BUSY   (0x1 << 4)
 
#define AUX_STATUS_MASK   (0xf << 0)
 
#define DEFER_CTRL_EN   (0x1 << 7)
 
#define DEFER_COUNT(x)   (((x) & 0x7f) << 0)
 
#define AUX_RX_COMM_I2C_DEFER   (0x2 << 2)
 
#define AUX_RX_COMM_AUX_DEFER   (0x2 << 0)
 
#define BUF_CLR   (0x1 << 7)
 
#define BUF_HAVE_DATA   (0x1 << 4)
 
#define BUF_DATA_COUNT(x)   (((x) & 0xf) << 0)
 
#define AUX_LENGTH(x)   (((x - 1) & 0xf) << 4)
 
#define AUX_TX_COMM_MASK   (0xf << 0)
 
#define AUX_TX_COMM_DP_TRANSACTION   (0x1 << 3)
 
#define AUX_TX_COMM_I2C_TRANSACTION   (0x0 << 3)
 
#define AUX_TX_COMM_MOT   (0x1 << 2)
 
#define AUX_TX_COMM_WRITE   (0x0 << 0)
 
#define AUX_TX_COMM_READ   (0x1 << 0)
 
#define PD_AUX_IDLE   (0x1 << 3)
 
#define ADDR_ONLY   (0x1 << 1)
 
#define AUX_EN   (0x1 << 0)
 
#define RST_DP_TX   (0x1 << 0)
 
#define TX_TERMINAL_CTRL_50_OHM   (0x1 << 4)
 
#define DRIVE_DVDD_BIT_1_0625V   (0x4 << 5)
 
#define VCO_BIT_600_MICRO   (0x5 << 0)
 
#define PD_RING_OSC   (0x1 << 6)
 
#define AUX_TERMINAL_CTRL_37_5_OHM   (0x0 << 4)
 
#define AUX_TERMINAL_CTRL_45_OHM   (0x1 << 4)
 
#define AUX_TERMINAL_CTRL_50_OHM   (0x2 << 4)
 
#define AUX_TERMINAL_CTRL_65_OHM   (0x3 << 4)
 
#define TX_CUR1_2X   (0x1 << 2)
 
#define TX_CUR_16_MA   (0x3 << 0)
 
#define DPCD_DPCD_REV   (0x0000)
 
#define DPCD_MAX_LINK_RATE   (0x0001)
 
#define DPCD_MAX_LANE_COUNT   (0x0002)
 
#define DP_MAX_LANE_COUNT_MASK   0x1f
 
#define DP_TPS3_SUPPORTED   (1 << 6)
 
#define DP_ENHANCED_FRAME_CAP   (1 << 7)
 
#define DPCD_LINK_BW_SET   (0x0100)
 
#define DPCD_LANE_COUNT_SET   (0x0101)
 
#define DPCD_TRAINING_PATTERN_SET   (0x0102)
 
#define DP_TRAINING_PATTERN_DISABLE   0
 
#define DP_TRAINING_PATTERN_1   1
 
#define DP_TRAINING_PATTERN_2   2
 
#define DP_TRAINING_PATTERN_3   3
 
#define DP_TRAINING_PATTERN_MASK   0x3
 
#define DPCD_TRAINING_LANE0_SET   (0x0103)
 
#define DP_TRAIN_VOLTAGE_SWING_MASK   0x3
 
#define DP_TRAIN_VOLTAGE_SWING_SHIFT   0
 
#define DP_TRAIN_MAX_SWING_REACHED   (1 << 2)
 
#define DP_TRAIN_VOLTAGE_SWING_400   (0 << 0)
 
#define DP_TRAIN_VOLTAGE_SWING_600   (1 << 0)
 
#define DP_TRAIN_VOLTAGE_SWING_800   (2 << 0)
 
#define DP_TRAIN_VOLTAGE_SWING_1200   (3 << 0)
 
#define DP_TRAIN_PRE_EMPHASIS_MASK   (3 << 3)
 
#define DP_TRAIN_PRE_EMPHASIS_0   (0 << 3)
 
#define DP_TRAIN_PRE_EMPHASIS_3_5   (1 << 3)
 
#define DP_TRAIN_PRE_EMPHASIS_6   (2 << 3)
 
#define DP_TRAIN_PRE_EMPHASIS_9_5   (3 << 3)
 
#define DP_TRAIN_PRE_EMPHASIS_SHIFT   3
 
#define DP_TRAIN_MAX_PRE_EMPHASIS_REACHED   (1 << 5)
 
#define DPCD_LANE0_1_STATUS   (0x0202)
 
#define DPCD_LANE2_3_STATUS   (0x0203)
 
#define DP_LANE_CR_DONE   (1 << 0)
 
#define DP_LANE_CHANNEL_EQ_DONE   (1 << 1)
 
#define DP_LANE_SYMBOL_LOCKED   (1 << 2)
 
#define DP_CHANNEL_EQ_BITS
 
#define DPCD_LANE_ALIGN_STATUS_UPDATED   (0x0204)
 
#define DP_INTERLANE_ALIGN_DONE   (1 << 0)
 
#define DP_DOWNSTREAM_PORT_STATUS_CHANGED   (1 << 6)
 
#define DP_LINK_STATUS_UPDATED   (1 << 7)
 
#define DPCD_ADJUST_REQUEST_LANE0_1   (0x0206)
 
#define DPCD_ADJUST_REQUEST_LANE2_3   (0x0207)
 
#define DP_ADJUST_VOLTAGE_SWING_LANE0_MASK   0x03
 
#define DP_ADJUST_VOLTAGE_SWING_LANE0_SHIFT   0
 
#define DP_ADJUST_PRE_EMPHASIS_LANE0_MASK   0x0c
 
#define DP_ADJUST_PRE_EMPHASIS_LANE0_SHIFT   2
 
#define DP_ADJUST_VOLTAGE_SWING_LANE1_MASK   0x30
 
#define DP_ADJUST_VOLTAGE_SWING_LANE1_SHIFT   4
 
#define DP_ADJUST_PRE_EMPHASIS_LANE1_MASK   0xc0
 
#define DP_ADJUST_PRE_EMPHASIS_LANE1_SHIFT   6
 
#define DPCD_TEST_REQUEST   (0x0218)
 
#define DPCD_TEST_RESPONSE   (0x0260)
 
#define DPCD_TEST_EDID_CHECKSUM   (0x0261)
 
#define DPCD_LINK_POWER_STATE   (0x0600)
 
#define DP_SET_POWER_D0   0x1
 
#define DP_SET_POWER_D3   0x2
 
#define DP_SET_POWER_MASK   0x3
 
#define AUX_ADDR_7_0(x)   (((x) >> 0) & 0xff)
 
#define AUX_ADDR_15_8(x)   (((x) >> 8) & 0xff)
 
#define AUX_ADDR_19_16(x)   (((x) >> 16) & 0x0f)
 
#define STREAM_ON_TIMEOUT   100
 
#define PLL_LOCK_TIMEOUT   10
 
#define DP_INIT_TRIES   10
 
#define EDID_ADDR   0x50
 
#define EDID_LENGTH   0x80
 
#define EDID_HEADER   0x00
 
#define EDID_EXTENSION_FLAG   0x7e
 

Enumerations

enum  dpcd_request { DPCD_READ , DPCD_WRITE }
 
enum  dp_irq_type { DP_IRQ_TYPE_HP_CABLE_IN , DP_IRQ_TYPE_HP_CABLE_OUT , DP_IRQ_TYPE_HP_CHANGE , DP_IRQ_TYPE_UNKNOWN }
 
enum  color_coefficient { COLOR_YCBCR601 , COLOR_YCBCR709 , COLOR_YCBCR601 , COLOR_YCBCR709 }
 
enum  dynamic_range { VESA , CEA , VESA , CEA }
 
enum  pll_status {
  DP_PLL_UNLOCKED , DP_PLL_LOCKED , PLL_UNLOCKED , PLL_LOCKED ,
  PLL_UNLOCKED = 0 , PLL_LOCKED
}
 
enum  clock_recovery_m_value_type { CALCULATED_M , REGISTER_M , CALCULATED_M , REGISTER_M }
 
enum  video_timing_recognition_type { VIDEO_TIMING_FROM_CAPTURE , VIDEO_TIMING_FROM_REGISTER }
 
enum  pattern_set {
  PRBS7 , D10_2 , TRAINING_PTN1 , TRAINING_PTN2 ,
  DP_NONE
}
 
enum  color_space {
  CS_RGB , CS_YCBCR422 , CS_YCBCR444 , COLOR_RGB ,
  COLOR_YCBCR422 , COLOR_YCBCR444
}
 
enum  color_depth {
  COLOR_6 , COLOR_8 , COLOR_10 , COLOR_12 ,
  COLOR_6 , COLOR_8 , COLOR_10 , COLOR_12
}
 
enum  link_rate_type { LINK_RATE_1_62GBPS = 0x06 , LINK_RATE_2_70GBPS = 0x0a }
 
enum  link_lane_count_type { LANE_CNT1 = 1 , LANE_CNT2 = 2 , LANE_CNT4 = 4 }
 
enum  link_training_state {
  LT_START , LT_CLK_RECOVERY , LT_EQ_TRAINING , FINISHED ,
  FAILED
}
 
enum  voltage_swing_level { VOLTAGE_LEVEL_0 , VOLTAGE_LEVEL_1 , VOLTAGE_LEVEL_2 , VOLTAGE_LEVEL_3 }
 
enum  pre_emphasis_level {
  PRE_EMPHASIS_LEVEL_0 , PRE_EMPHASIS_LEVEL_1 , PRE_EMPHASIS_LEVEL_2 , PRE_EMPHASIS_LEVEL_3 ,
  PRE_EMPHASIS_LEVEL_0 , PRE_EMPHASIS_LEVEL_1 , PRE_EMPHASIS_LEVEL_2 , PRE_EMPHASIS_LEVEL_3
}
 
enum  analog_power_block {
  AUX_BLOCK , CH0_BLOCK , CH1_BLOCK , CH2_BLOCK ,
  CH3_BLOCK , ANALOG_TOTAL , POWER_ALL , AUX_BLOCK ,
  CH0_BLOCK , CH1_BLOCK , CH2_BLOCK , CH3_BLOCK ,
  ANALOG_TOTAL , POWER_ALL
}
 

Functions

 check_member (rk_edp_regs, pll_reg_5, 0xa00)
 
int rk_edp_prepare (void)
 
int rk_edp_enable (void)
 
void rk_edp_init (void)
 
int rk_edp_get_edid (struct edid *edid)
 

Macro Definition Documentation

◆ ADDR_ONLY

#define ADDR_ONLY   (0x1 << 1)

Definition at line 422 of file edp.h.

◆ AFIFO_OVER

#define AFIFO_OVER   (0x1 << 6)

Definition at line 272 of file edp.h.

◆ AFIFO_UNDER

#define AFIFO_UNDER   (0x1 << 7)

Definition at line 271 of file edp.h.

◆ AUD_CLK_CHG

#define AUD_CLK_CHG   (0x1 << 2)

Definition at line 259 of file edp.h.

◆ AUD_FIFO_FUNC_EN_N

#define AUD_FIFO_FUNC_EN_N   (0x1 << 4)

Definition at line 159 of file edp.h.

◆ AUD_FUNC_EN_N

#define AUD_FUNC_EN_N   (0x1 << 3)

Definition at line 160 of file edp.h.

◆ AUX_ADDR_15_8

#define AUX_ADDR_15_8 (   x)    (((x) >> 8) & 0xff)

Definition at line 514 of file edp.h.

◆ AUX_ADDR_19_16

#define AUX_ADDR_19_16 (   x)    (((x) >> 16) & 0x0f)

Definition at line 515 of file edp.h.

◆ AUX_ADDR_7_0

#define AUX_ADDR_7_0 (   x)    (((x) >> 0) & 0xff)

Definition at line 513 of file edp.h.

◆ AUX_BUSY

#define AUX_BUSY   (0x1 << 4)

Definition at line 395 of file edp.h.

◆ AUX_EN

#define AUX_EN   (0x1 << 0)

Definition at line 423 of file edp.h.

◆ AUX_ERR

#define AUX_ERR   (0x1 << 0)

Definition at line 289 of file edp.h.

◆ AUX_FUNC_EN_N

#define AUX_FUNC_EN_N   (0x1 << 2)

Definition at line 166 of file edp.h.

◆ AUX_LENGTH

#define AUX_LENGTH (   x)    (((x - 1) & 0xf) << 4)

Definition at line 412 of file edp.h.

◆ AUX_RX_COMM_AUX_DEFER

#define AUX_RX_COMM_AUX_DEFER   (0x2 << 0)

Definition at line 404 of file edp.h.

◆ AUX_RX_COMM_I2C_DEFER

#define AUX_RX_COMM_I2C_DEFER   (0x2 << 2)

Definition at line 403 of file edp.h.

◆ AUX_STATUS_MASK

#define AUX_STATUS_MASK   (0xf << 0)

Definition at line 396 of file edp.h.

◆ AUX_TERM_50OHM

#define AUX_TERM_50OHM   (3 << 0)

Definition at line 356 of file edp.h.

◆ AUX_TERMINAL_CTRL_37_5_OHM

#define AUX_TERMINAL_CTRL_37_5_OHM   (0x0 << 4)

Definition at line 437 of file edp.h.

◆ AUX_TERMINAL_CTRL_45_OHM

#define AUX_TERMINAL_CTRL_45_OHM   (0x1 << 4)

Definition at line 438 of file edp.h.

◆ AUX_TERMINAL_CTRL_50_OHM

#define AUX_TERMINAL_CTRL_50_OHM   (0x2 << 4)

Definition at line 439 of file edp.h.

◆ AUX_TERMINAL_CTRL_65_OHM

#define AUX_TERMINAL_CTRL_65_OHM   (0x3 << 4)

Definition at line 440 of file edp.h.

◆ AUX_TX_COMM_DP_TRANSACTION

#define AUX_TX_COMM_DP_TRANSACTION   (0x1 << 3)

Definition at line 414 of file edp.h.

◆ AUX_TX_COMM_I2C_TRANSACTION

#define AUX_TX_COMM_I2C_TRANSACTION   (0x0 << 3)

Definition at line 415 of file edp.h.

◆ AUX_TX_COMM_MASK

#define AUX_TX_COMM_MASK   (0xf << 0)

Definition at line 413 of file edp.h.

◆ AUX_TX_COMM_MOT

#define AUX_TX_COMM_MOT   (0x1 << 2)

Definition at line 416 of file edp.h.

◆ AUX_TX_COMM_READ

#define AUX_TX_COMM_READ   (0x1 << 0)

Definition at line 418 of file edp.h.

◆ AUX_TX_COMM_WRITE

#define AUX_TX_COMM_WRITE   (0x0 << 0)

Definition at line 417 of file edp.h.

◆ BIST_EN

#define BIST_EN   (0x1 << 3)

Definition at line 202 of file edp.h.

◆ BIST_TYPE_COLR_BAR

#define BIST_TYPE_COLR_BAR   (0x0 << 0)

Definition at line 205 of file edp.h.

◆ BIST_TYPE_GRAY_BAR

#define BIST_TYPE_GRAY_BAR   (0x1 << 0)

Definition at line 206 of file edp.h.

◆ BIST_TYPE_MOBILE_BAR

#define BIST_TYPE_MOBILE_BAR   (0x2 << 0)

Definition at line 207 of file edp.h.

◆ BIST_WH_32

#define BIST_WH_32   (0x0 << 2)

Definition at line 204 of file edp.h.

◆ BIST_WH_64

#define BIST_WH_64   (0x1 << 2)

Definition at line 203 of file edp.h.

◆ BUF_CLR

#define BUF_CLR   (0x1 << 7)

Definition at line 407 of file edp.h.

◆ BUF_DATA_COUNT

#define BUF_DATA_COUNT (   x)    (((x) & 0xf) << 0)

Definition at line 409 of file edp.h.

◆ BUF_HAVE_DATA

#define BUF_HAVE_DATA   (0x1 << 4)

Definition at line 408 of file edp.h.

◆ CH0_CH2_SWING_EMP_CTRL

#define CH0_CH2_SWING_EMP_CTRL   (5 << 0)

Definition at line 366 of file edp.h.

◆ CH1_CH3_SWING_EMP_CTRL

#define CH1_CH3_SWING_EMP_CTRL   (5 << 4)

Definition at line 365 of file edp.h.

◆ CHA_CRI

#define CHA_CRI (   x)    (((x) & 0xf) << 4)

Definition at line 301 of file edp.h.

◆ CHA_CTRL

#define CHA_CTRL   (0x1 << 0)

Definition at line 304 of file edp.h.

◆ CHA_STA

#define CHA_STA   (0x1 << 2)

Definition at line 302 of file edp.h.

◆ CHG_PUMP_CUR_SEL_5US

#define CHG_PUMP_CUR_SEL_5US   (1 << 2)

Definition at line 324 of file edp.h.

◆ CHG_PUMP_INOUT_CTRL_1200MV

#define CHG_PUMP_INOUT_CTRL_1200MV   (1 << 1)

Definition at line 338 of file edp.h.

◆ CHG_PUMP_INPUT_CTRL_OP

#define CHG_PUMP_INPUT_CTRL_OP   (0 << 0)

Definition at line 339 of file edp.h.

◆ DEFER_COUNT

#define DEFER_COUNT (   x)    (((x) & 0x7f) << 0)

Definition at line 400 of file edp.h.

◆ DEFER_CTRL_EN

#define DEFER_CTRL_EN   (0x1 << 7)

Definition at line 399 of file edp.h.

◆ DET_CTRL

#define DET_CTRL   (0x1 << 0)

Definition at line 298 of file edp.h.

◆ DET_STA

#define DET_STA   (0x1 << 2)

Definition at line 296 of file edp.h.

◆ DP_ADJUST_PRE_EMPHASIS_LANE0_MASK

#define DP_ADJUST_PRE_EMPHASIS_LANE0_MASK   0x0c

Definition at line 498 of file edp.h.

◆ DP_ADJUST_PRE_EMPHASIS_LANE0_SHIFT

#define DP_ADJUST_PRE_EMPHASIS_LANE0_SHIFT   2

Definition at line 499 of file edp.h.

◆ DP_ADJUST_PRE_EMPHASIS_LANE1_MASK

#define DP_ADJUST_PRE_EMPHASIS_LANE1_MASK   0xc0

Definition at line 502 of file edp.h.

◆ DP_ADJUST_PRE_EMPHASIS_LANE1_SHIFT

#define DP_ADJUST_PRE_EMPHASIS_LANE1_SHIFT   6

Definition at line 503 of file edp.h.

◆ DP_ADJUST_VOLTAGE_SWING_LANE0_MASK

#define DP_ADJUST_VOLTAGE_SWING_LANE0_MASK   0x03

Definition at line 496 of file edp.h.

◆ DP_ADJUST_VOLTAGE_SWING_LANE0_SHIFT

#define DP_ADJUST_VOLTAGE_SWING_LANE0_SHIFT   0

Definition at line 497 of file edp.h.

◆ DP_ADJUST_VOLTAGE_SWING_LANE1_MASK

#define DP_ADJUST_VOLTAGE_SWING_LANE1_MASK   0x30

Definition at line 500 of file edp.h.

◆ DP_ADJUST_VOLTAGE_SWING_LANE1_SHIFT

#define DP_ADJUST_VOLTAGE_SWING_LANE1_SHIFT   4

Definition at line 501 of file edp.h.

◆ DP_AUX_COMMON_MODE

#define DP_AUX_COMMON_MODE   (0 << 4)

Definition at line 354 of file edp.h.

◆ DP_AUX_EN

#define DP_AUX_EN   (0 << 3)

Definition at line 355 of file edp.h.

◆ DP_BG_OUT_SEL

#define DP_BG_OUT_SEL   (4 << 4)

Definition at line 359 of file edp.h.

◆ DP_BG_SEL

#define DP_BG_SEL   (1 << 2)

Definition at line 361 of file edp.h.

◆ DP_CHANNEL_EQ_BITS

#define DP_CHANNEL_EQ_BITS
Value:
DP_LANE_CHANNEL_EQ_DONE |\
DP_LANE_SYMBOL_LOCKED)
#define DP_LANE_CR_DONE
Definition: edp.h:482

Definition at line 485 of file edp.h.

◆ DP_DB_CUR_CTRL

#define DP_DB_CUR_CTRL   (0 << 3)

Definition at line 360 of file edp.h.

◆ DP_DOWNSTREAM_PORT_STATUS_CHANGED

#define DP_DOWNSTREAM_PORT_STATUS_CHANGED   (1 << 6)

Definition at line 491 of file edp.h.

◆ DP_ENHANCED_FRAME_CAP

#define DP_ENHANCED_FRAME_CAP   (1 << 7)

Definition at line 450 of file edp.h.

◆ DP_INIT_TRIES

#define DP_INIT_TRIES   10

Definition at line 519 of file edp.h.

◆ DP_INTERLANE_ALIGN_DONE

#define DP_INTERLANE_ALIGN_DONE   (1 << 0)

Definition at line 490 of file edp.h.

◆ DP_LANE_CHANNEL_EQ_DONE

#define DP_LANE_CHANNEL_EQ_DONE   (1 << 1)

Definition at line 483 of file edp.h.

◆ DP_LANE_CR_DONE

#define DP_LANE_CR_DONE   (1 << 0)

Definition at line 482 of file edp.h.

◆ DP_LANE_SYMBOL_LOCKED

#define DP_LANE_SYMBOL_LOCKED   (1 << 2)

Definition at line 484 of file edp.h.

◆ DP_LINK_STATUS_UPDATED

#define DP_LINK_STATUS_UPDATED   (1 << 7)

Definition at line 492 of file edp.h.

◆ DP_MAX_LANE_COUNT_MASK

#define DP_MAX_LANE_COUNT_MASK   0x1f

Definition at line 448 of file edp.h.

◆ DP_RESISTOR_TUNE_BG

#define DP_RESISTOR_TUNE_BG   (2 << 0)

Definition at line 362 of file edp.h.

◆ DP_SET_POWER_D0

#define DP_SET_POWER_D0   0x1

Definition at line 509 of file edp.h.

◆ DP_SET_POWER_D3

#define DP_SET_POWER_D3   0x2

Definition at line 510 of file edp.h.

◆ DP_SET_POWER_MASK

#define DP_SET_POWER_MASK   0x3

Definition at line 511 of file edp.h.

◆ DP_TPS3_SUPPORTED

#define DP_TPS3_SUPPORTED   (1 << 6)

Definition at line 449 of file edp.h.

◆ DP_TRAIN_MAX_PRE_EMPHASIS_REACHED

#define DP_TRAIN_MAX_PRE_EMPHASIS_REACHED   (1 << 5)

Definition at line 478 of file edp.h.

◆ DP_TRAIN_MAX_SWING_REACHED

#define DP_TRAIN_MAX_SWING_REACHED   (1 << 2)

Definition at line 465 of file edp.h.

◆ DP_TRAIN_PRE_EMPHASIS_0

#define DP_TRAIN_PRE_EMPHASIS_0   (0 << 3)

Definition at line 472 of file edp.h.

◆ DP_TRAIN_PRE_EMPHASIS_3_5

#define DP_TRAIN_PRE_EMPHASIS_3_5   (1 << 3)

Definition at line 473 of file edp.h.

◆ DP_TRAIN_PRE_EMPHASIS_6

#define DP_TRAIN_PRE_EMPHASIS_6   (2 << 3)

Definition at line 474 of file edp.h.

◆ DP_TRAIN_PRE_EMPHASIS_9_5

#define DP_TRAIN_PRE_EMPHASIS_9_5   (3 << 3)

Definition at line 475 of file edp.h.

◆ DP_TRAIN_PRE_EMPHASIS_MASK

#define DP_TRAIN_PRE_EMPHASIS_MASK   (3 << 3)

Definition at line 471 of file edp.h.

◆ DP_TRAIN_PRE_EMPHASIS_SHIFT

#define DP_TRAIN_PRE_EMPHASIS_SHIFT   3

Definition at line 477 of file edp.h.

◆ DP_TRAIN_VOLTAGE_SWING_1200

#define DP_TRAIN_VOLTAGE_SWING_1200   (3 << 0)

Definition at line 469 of file edp.h.

◆ DP_TRAIN_VOLTAGE_SWING_400

#define DP_TRAIN_VOLTAGE_SWING_400   (0 << 0)

Definition at line 466 of file edp.h.

◆ DP_TRAIN_VOLTAGE_SWING_600

#define DP_TRAIN_VOLTAGE_SWING_600   (1 << 0)

Definition at line 467 of file edp.h.

◆ DP_TRAIN_VOLTAGE_SWING_800

#define DP_TRAIN_VOLTAGE_SWING_800   (2 << 0)

Definition at line 468 of file edp.h.

◆ DP_TRAIN_VOLTAGE_SWING_MASK

#define DP_TRAIN_VOLTAGE_SWING_MASK   0x3

Definition at line 463 of file edp.h.

◆ DP_TRAIN_VOLTAGE_SWING_SHIFT

#define DP_TRAIN_VOLTAGE_SWING_SHIFT   0

Definition at line 464 of file edp.h.

◆ DP_TRAINING_PATTERN_1

#define DP_TRAINING_PATTERN_1   1

Definition at line 457 of file edp.h.

◆ DP_TRAINING_PATTERN_2

#define DP_TRAINING_PATTERN_2   2

Definition at line 458 of file edp.h.

◆ DP_TRAINING_PATTERN_3

#define DP_TRAINING_PATTERN_3   3

Definition at line 459 of file edp.h.

◆ DP_TRAINING_PATTERN_DISABLE

#define DP_TRAINING_PATTERN_DISABLE   0

Definition at line 456 of file edp.h.

◆ DP_TRAINING_PATTERN_MASK

#define DP_TRAINING_PATTERN_MASK   0x3

Definition at line 460 of file edp.h.

◆ DPCD_ADJUST_REQUEST_LANE0_1

#define DPCD_ADJUST_REQUEST_LANE0_1   (0x0206)

Definition at line 494 of file edp.h.

◆ DPCD_ADJUST_REQUEST_LANE2_3

#define DPCD_ADJUST_REQUEST_LANE2_3   (0x0207)

Definition at line 495 of file edp.h.

◆ DPCD_DPCD_REV

#define DPCD_DPCD_REV   (0x0000)

Definition at line 445 of file edp.h.

◆ DPCD_LANE0_1_STATUS

#define DPCD_LANE0_1_STATUS   (0x0202)

Definition at line 480 of file edp.h.

◆ DPCD_LANE2_3_STATUS

#define DPCD_LANE2_3_STATUS   (0x0203)

Definition at line 481 of file edp.h.

◆ DPCD_LANE_ALIGN_STATUS_UPDATED

#define DPCD_LANE_ALIGN_STATUS_UPDATED   (0x0204)

Definition at line 489 of file edp.h.

◆ DPCD_LANE_COUNT_SET

#define DPCD_LANE_COUNT_SET   (0x0101)

Definition at line 453 of file edp.h.

◆ DPCD_LINK_BW_SET

#define DPCD_LINK_BW_SET   (0x0100)

Definition at line 452 of file edp.h.

◆ DPCD_LINK_POWER_STATE

#define DPCD_LINK_POWER_STATE   (0x0600)

Definition at line 508 of file edp.h.

◆ DPCD_MAX_LANE_COUNT

#define DPCD_MAX_LANE_COUNT   (0x0002)

Definition at line 447 of file edp.h.

◆ DPCD_MAX_LINK_RATE

#define DPCD_MAX_LINK_RATE   (0x0001)

Definition at line 446 of file edp.h.

◆ DPCD_TEST_EDID_CHECKSUM

#define DPCD_TEST_EDID_CHECKSUM   (0x0261)

Definition at line 507 of file edp.h.

◆ DPCD_TEST_REQUEST

#define DPCD_TEST_REQUEST   (0x0218)

Definition at line 505 of file edp.h.

◆ DPCD_TEST_RESPONSE

#define DPCD_TEST_RESPONSE   (0x0260)

Definition at line 506 of file edp.h.

◆ DPCD_TRAINING_LANE0_SET

#define DPCD_TRAINING_LANE0_SET   (0x0103)

Definition at line 462 of file edp.h.

◆ DPCD_TRAINING_PATTERN_SET

#define DPCD_TRAINING_PATTERN_SET   (0x0102)

Definition at line 455 of file edp.h.

◆ DRIVE_DVDD_BIT_1_0625V

#define DRIVE_DVDD_BIT_1_0625V   (0x4 << 5)

Definition at line 432 of file edp.h.

◆ EDID_ADDR

#define EDID_ADDR   0x50

Definition at line 521 of file edp.h.

◆ EDID_EXTENSION_FLAG

#define EDID_EXTENSION_FLAG   0x7e

Definition at line 524 of file edp.h.

◆ EDID_HEADER

#define EDID_HEADER   0x00

Definition at line 523 of file edp.h.

◆ EDID_LENGTH

#define EDID_LENGTH   0x80

Definition at line 522 of file edp.h.

◆ ENC_EN_CHG

#define ENC_EN_CHG   (0x1 << 6)

Definition at line 264 of file edp.h.

◆ ENHANCED

#define ENHANCED   (0x1 << 3)

Definition at line 317 of file edp.h.

◆ F_HPD

#define F_HPD   (0x1 << 5)

Definition at line 308 of file edp.h.

◆ F_PLL_LOCK

#define F_PLL_LOCK   (0x1 << 3)

Definition at line 389 of file edp.h.

◆ F_SEL

#define F_SEL   (0x1 << 4)

Definition at line 214 of file edp.h.

◆ F_VALID

#define F_VALID   (0x1 << 1)

Definition at line 312 of file edp.h.

◆ FIX_M_AUD

#define FIX_M_AUD   (0x1 << 4)

Definition at line 316 of file edp.h.

◆ FIX_M_VID

#define FIX_M_VID   (0x1 << 2)

Definition at line 318 of file edp.h.

◆ FORCE_CHA

#define FORCE_CHA   (0x1 << 1)

Definition at line 303 of file edp.h.

◆ FORCE_DET

#define FORCE_DET   (0x1 << 1)

Definition at line 297 of file edp.h.

◆ HDCP_FUNC_EN_N

#define HDCP_FUNC_EN_N   (0x1 << 2)

Definition at line 161 of file edp.h.

◆ HDCP_RDY

#define HDCP_RDY   (0x1 << 3)

Definition at line 310 of file edp.h.

◆ HOTPLUG_CHG

#define HOTPLUG_CHG   (0x1 << 2)

Definition at line 279 of file edp.h.

◆ HPD_CTRL

#define HPD_CTRL   (0x1 << 4)

Definition at line 309 of file edp.h.

◆ HPD_LOST

#define HPD_LOST   (0x1 << 1)

Definition at line 280 of file edp.h.

◆ HPD_STATUS

#define HPD_STATUS   (0x1 << 6)

Definition at line 307 of file edp.h.

◆ HSYNC_POLARITY_CFG

#define HSYNC_POLARITY_CFG   (0x1 << 0)

Definition at line 219 of file edp.h.

◆ HSYNC_POLARITY_CFG_OFFSET

#define HSYNC_POLARITY_CFG_OFFSET   0

Definition at line 220 of file edp.h.

◆ HW_AUTH_DONE

#define HW_AUTH_DONE   (0x1 << 0)

Definition at line 268 of file edp.h.

◆ HW_AUTH_STATE_CHG

#define HW_AUTH_STATE_CHG   (0x1 << 1)

Definition at line 267 of file edp.h.

◆ HW_BKSV_RDY

#define HW_BKSV_RDY   (0x1 << 3)

Definition at line 265 of file edp.h.

◆ HW_LT_DONE

#define HW_LT_DONE   (0x1 << 5)

Definition at line 285 of file edp.h.

◆ HW_LT_EN

#define HW_LT_EN   (0x1 << 0)

Definition at line 385 of file edp.h.

◆ HW_LT_ERR_CODE_MASK

#define HW_LT_ERR_CODE_MASK   0x70

Definition at line 383 of file edp.h.

◆ HW_LT_ERR_CODE_SHIFT

#define HW_LT_ERR_CODE_SHIFT   4

Definition at line 384 of file edp.h.

◆ HW_SHA_DONE

#define HW_SHA_DONE   (0x1 << 2)

Definition at line 266 of file edp.h.

◆ IN_BPC_10_BITS

#define IN_BPC_10_BITS   (0x2 << 4)

Definition at line 182 of file edp.h.

◆ IN_BPC_12_BITS

#define IN_BPC_12_BITS   (0x3 << 4)

Definition at line 181 of file edp.h.

◆ IN_BPC_6_BITS

#define IN_BPC_6_BITS   (0x0 << 4)

Definition at line 184 of file edp.h.

◆ IN_BPC_8_BITS

#define IN_BPC_8_BITS   (0x1 << 4)

Definition at line 183 of file edp.h.

◆ IN_BPC_MASK

#define IN_BPC_MASK   (0x7 << 4)

Definition at line 179 of file edp.h.

◆ IN_BPC_SHIFT

#define IN_BPC_SHIFT   (4)

Definition at line 180 of file edp.h.

◆ IN_COLOR_F_MASK

#define IN_COLOR_F_MASK   (0x3 << 0)

Definition at line 185 of file edp.h.

◆ IN_COLOR_F_RGB

#define IN_COLOR_F_RGB   (0x0 << 0)

Definition at line 189 of file edp.h.

◆ IN_COLOR_F_SHIFT

#define IN_COLOR_F_SHIFT   (0)

Definition at line 186 of file edp.h.

◆ IN_COLOR_F_YCBCR422

#define IN_COLOR_F_YCBCR422   (0x1 << 0)

Definition at line 188 of file edp.h.

◆ IN_COLOR_F_YCBCR444

#define IN_COLOR_F_YCBCR444   (0x2 << 0)

Definition at line 187 of file edp.h.

◆ IN_D_RANGE_CEA

#define IN_D_RANGE_CEA   (0x1 << 7)

Definition at line 177 of file edp.h.

◆ IN_D_RANGE_MASK

#define IN_D_RANGE_MASK   (0x1 << 7)

Definition at line 175 of file edp.h.

◆ IN_D_RANGE_SHIFT

#define IN_D_RANGE_SHIFT   (7)

Definition at line 176 of file edp.h.

◆ IN_D_RANGE_VESA

#define IN_D_RANGE_VESA   (0x0 << 7)

Definition at line 178 of file edp.h.

◆ IN_YC_COEFFI_ITU601

#define IN_YC_COEFFI_ITU601   (0x0 << 7)

Definition at line 195 of file edp.h.

◆ IN_YC_COEFFI_ITU709

#define IN_YC_COEFFI_ITU709   (0x1 << 7)

Definition at line 194 of file edp.h.

◆ IN_YC_COEFFI_MASK

#define IN_YC_COEFFI_MASK   (0x1 << 7)

Definition at line 192 of file edp.h.

◆ IN_YC_COEFFI_SHIFT

#define IN_YC_COEFFI_SHIFT   (7)

Definition at line 193 of file edp.h.

◆ INT_HPD

#define INT_HPD   (0x1 << 6)

Definition at line 284 of file edp.h.

◆ INT_POL

#define INT_POL   (0x1 << 0)

Definition at line 293 of file edp.h.

◆ INTERACD_SCAN_CFG_OFFSET

#define INTERACD_SCAN_CFG_OFFSET   2

Definition at line 216 of file edp.h.

◆ INTERACE_SCAN_CFG

#define INTERACE_SCAN_CFG   (0x1 << 2)

Definition at line 215 of file edp.h.

◆ KVCO_DEFALUT

#define KVCO_DEFALUT   (1 << 4)

Definition at line 323 of file edp.h.

◆ LANE0_MAP_LOGIC_LANE_0

#define LANE0_MAP_LOGIC_LANE_0   (0x0 << 0)

Definition at line 245 of file edp.h.

◆ LANE0_MAP_LOGIC_LANE_1

#define LANE0_MAP_LOGIC_LANE_1   (0x1 << 0)

Definition at line 246 of file edp.h.

◆ LANE0_MAP_LOGIC_LANE_2

#define LANE0_MAP_LOGIC_LANE_2   (0x2 << 0)

Definition at line 247 of file edp.h.

◆ LANE0_MAP_LOGIC_LANE_3

#define LANE0_MAP_LOGIC_LANE_3   (0x3 << 0)

Definition at line 248 of file edp.h.

◆ LANE1_MAP_LOGIC_LANE_0

#define LANE1_MAP_LOGIC_LANE_0   (0x0 << 2)

Definition at line 241 of file edp.h.

◆ LANE1_MAP_LOGIC_LANE_1

#define LANE1_MAP_LOGIC_LANE_1   (0x1 << 2)

Definition at line 242 of file edp.h.

◆ LANE1_MAP_LOGIC_LANE_2

#define LANE1_MAP_LOGIC_LANE_2   (0x2 << 2)

Definition at line 243 of file edp.h.

◆ LANE1_MAP_LOGIC_LANE_3

#define LANE1_MAP_LOGIC_LANE_3   (0x3 << 2)

Definition at line 244 of file edp.h.

◆ LANE2_MAP_LOGIC_LANE_0

#define LANE2_MAP_LOGIC_LANE_0   (0x0 << 4)

Definition at line 237 of file edp.h.

◆ LANE2_MAP_LOGIC_LANE_1

#define LANE2_MAP_LOGIC_LANE_1   (0x1 << 4)

Definition at line 238 of file edp.h.

◆ LANE2_MAP_LOGIC_LANE_2

#define LANE2_MAP_LOGIC_LANE_2   (0x2 << 4)

Definition at line 239 of file edp.h.

◆ LANE2_MAP_LOGIC_LANE_3

#define LANE2_MAP_LOGIC_LANE_3   (0x3 << 4)

Definition at line 240 of file edp.h.

◆ LANE3_MAP_LOGIC_LANE_0

#define LANE3_MAP_LOGIC_LANE_0   (0x0 << 6)

Definition at line 233 of file edp.h.

◆ LANE3_MAP_LOGIC_LANE_1

#define LANE3_MAP_LOGIC_LANE_1   (0x1 << 6)

Definition at line 234 of file edp.h.

◆ LANE3_MAP_LOGIC_LANE_2

#define LANE3_MAP_LOGIC_LANE_2   (0x2 << 6)

Definition at line 235 of file edp.h.

◆ LANE3_MAP_LOGIC_LANE_3

#define LANE3_MAP_LOGIC_LANE_3   (0x3 << 6)

Definition at line 236 of file edp.h.

◆ LDO_OUTPUT_V_SEL_145

#define LDO_OUTPUT_V_SEL_145   (2 << 6)

Definition at line 322 of file edp.h.

◆ LINK_LOST

#define LINK_LOST   (0x1 << 2)

Definition at line 287 of file edp.h.

◆ LINK_QUAL_PATTERN_SET_80BIT

#define LINK_QUAL_PATTERN_SET_80BIT   (0x4 << 2)

Definition at line 373 of file edp.h.

◆ LINK_QUAL_PATTERN_SET_D10_2

#define LINK_QUAL_PATTERN_SET_D10_2   (0x1 << 2)

Definition at line 375 of file edp.h.

◆ LINK_QUAL_PATTERN_SET_DISABLE

#define LINK_QUAL_PATTERN_SET_DISABLE   (0x0 << 2)

Definition at line 376 of file edp.h.

◆ LINK_QUAL_PATTERN_SET_HBR2

#define LINK_QUAL_PATTERN_SET_HBR2   (0x5 << 2)

Definition at line 372 of file edp.h.

◆ LINK_QUAL_PATTERN_SET_MASK

#define LINK_QUAL_PATTERN_SET_MASK   (0x7 << 2)

Definition at line 371 of file edp.h.

◆ LINK_QUAL_PATTERN_SET_PRBS7

#define LINK_QUAL_PATTERN_SET_PRBS7   (0x3 << 2)

Definition at line 374 of file edp.h.

◆ LOCK_DET_BYPASS

#define LOCK_DET_BYPASS   (0 << 2)

Definition at line 331 of file edp.h.

◆ LOCK_DET_CNT_SEL_256

#define LOCK_DET_CNT_SEL_256   (2 << 5)

Definition at line 328 of file edp.h.

◆ LOOP_FILTER_RESET

#define LOOP_FILTER_RESET   (0 << 4)

Definition at line 329 of file edp.h.

◆ LP_MODE_CLK_REGULATOR

#define LP_MODE_CLK_REGULATOR   (0 << 4)

Definition at line 349 of file edp.h.

◆ LS_CLK_DOMAIN_FUNC_EN_N

#define LS_CLK_DOMAIN_FUNC_EN_N   (0x1 << 0)

Definition at line 168 of file edp.h.

◆ M_VID_UPDATE_CTRL

#define M_VID_UPDATE_CTRL   (0x3 << 0)

Definition at line 319 of file edp.h.

◆ PALL_SSC_RESET

#define PALL_SSC_RESET   (0 << 3)

Definition at line 330 of file edp.h.

◆ PD_AUX

#define PD_AUX   (0x1 << 5)

Definition at line 225 of file edp.h.

◆ PD_AUX_IDLE

#define PD_AUX_IDLE   (0x1 << 3)

Definition at line 421 of file edp.h.

◆ PD_CH0

#define PD_CH0   (0x1 << 0)

Definition at line 230 of file edp.h.

◆ PD_CH1

#define PD_CH1   (0x1 << 1)

Definition at line 229 of file edp.h.

◆ PD_CH2

#define PD_CH2   (0x1 << 2)

Definition at line 228 of file edp.h.

◆ PD_CH3

#define PD_CH3   (0x1 << 3)

Definition at line 227 of file edp.h.

◆ PD_EXP_BG

#define PD_EXP_BG   (0x1 << 6)

Definition at line 224 of file edp.h.

◆ PD_INC_BG

#define PD_INC_BG   (0x1 << 7)

Definition at line 223 of file edp.h.

◆ PD_PLL

#define PD_PLL   (0x1 << 4)

Definition at line 226 of file edp.h.

◆ PD_RING_OSC

#define PD_RING_OSC   (0x1 << 6)

Definition at line 436 of file edp.h.

◆ PLL_LOCK

#define PLL_LOCK   (0x1 << 4)

Definition at line 388 of file edp.h.

◆ PLL_LOCK_CHG

#define PLL_LOCK_CHG   (0x1 << 6)

Definition at line 255 of file edp.h.

◆ PLL_LOCK_CTRL

#define PLL_LOCK_CTRL   (0x1 << 2)

Definition at line 390 of file edp.h.

◆ PLL_LOCK_DET_FORCE

#define PLL_LOCK_DET_FORCE   (0 << 0)

Definition at line 333 of file edp.h.

◆ PLL_LOCK_DET_MODE

#define PLL_LOCK_DET_MODE   (0 << 1)

Definition at line 332 of file edp.h.

◆ PLL_LOCK_TIMEOUT

#define PLL_LOCK_TIMEOUT   10

Definition at line 518 of file edp.h.

◆ PLUG

#define PLUG   (0x1 << 0)

Definition at line 281 of file edp.h.

◆ PN_INV

#define PN_INV   (0x1 << 0)

Definition at line 392 of file edp.h.

◆ POLL_EN

#define POLL_EN   (0x1 << 1)

Definition at line 391 of file edp.h.

◆ PRE_DRIVER_PW_CTRL1

#define PRE_DRIVER_PW_CTRL1   (0 << 5)

Definition at line 348 of file edp.h.

◆ PSR_ACTIVE

#define PSR_ACTIVE   (0x1 << 7)

Definition at line 276 of file edp.h.

◆ PSR_INACTIVE

#define PSR_INACTIVE   (0x1 << 6)

Definition at line 277 of file edp.h.

◆ R0_CHK_FLAG

#define R0_CHK_FLAG   (0x1 << 5)

Definition at line 273 of file edp.h.

◆ REGULATOR_V_SEL_950MV

#define REGULATOR_V_SEL_950MV   (2 << 4)

Definition at line 336 of file edp.h.

◆ RESISTOR_CTRL

#define RESISTOR_CTRL   (7 << 0)

Definition at line 351 of file edp.h.

◆ RESISTOR_MSB_CTRL

#define RESISTOR_MSB_CTRL   (0 << 3)

Definition at line 350 of file edp.h.

◆ RPLY_RECEIV

#define RPLY_RECEIV   (0x1 << 1)

Definition at line 288 of file edp.h.

◆ RST_DP_TX

#define RST_DP_TX   (0x1 << 0)

Definition at line 426 of file edp.h.

◆ SCRAMBLING_DISABLE

#define SCRAMBLING_DISABLE   (0x1 << 5)

Definition at line 369 of file edp.h.

◆ SCRAMBLING_ENABLE

#define SCRAMBLING_ENABLE   (0x0 << 5)

Definition at line 370 of file edp.h.

◆ SEL_24M

#define SEL_24M   (0x1 << 3)

Definition at line 251 of file edp.h.

◆ SERDES_FIFO_FUNC_EN_N

#define SERDES_FIFO_FUNC_EN_N   (0x1 << 1)

Definition at line 167 of file edp.h.

◆ SINK_LOST

#define SINK_LOST   (0x1 << 3)

Definition at line 286 of file edp.h.

◆ SOFT_INT_CTRL

#define SOFT_INT_CTRL   (0x1 << 2)

Definition at line 292 of file edp.h.

◆ SPDIF_BI_PHASE_ERR

#define SPDIF_BI_PHASE_ERR   (0x1 << 5)

Definition at line 278 of file edp.h.

◆ SPDIF_ERR

#define SPDIF_ERR   (0x1 << 5)

Definition at line 256 of file edp.h.

◆ SPDIF_UNSTBL

#define SPDIF_UNSTBL   (0x1 << 4)

Definition at line 257 of file edp.h.

◆ SSC_DEPTH

#define SSC_DEPTH   (9 << 0)

Definition at line 344 of file edp.h.

◆ SSC_FUNC_EN_N

#define SSC_FUNC_EN_N   (0x1 << 7)

Definition at line 165 of file edp.h.

◆ SSC_MODE

#define SSC_MODE   (1 << 4)

Definition at line 343 of file edp.h.

◆ SSC_OFFSET

#define SSC_OFFSET   (0 << 6)

Definition at line 342 of file edp.h.

◆ STANDBY_CUR_SEL

#define STANDBY_CUR_SEL   (0 << 3)

Definition at line 337 of file edp.h.

◆ STREAM_ON_TIMEOUT

#define STREAM_ON_TIMEOUT   100

Definition at line 517 of file edp.h.

◆ STRM_VALID

#define STRM_VALID   (0x1 << 2)

Definition at line 311 of file edp.h.

◆ SW_FUNC_EN_N

#define SW_FUNC_EN_N   (0x1 << 0)

Definition at line 162 of file edp.h.

◆ SW_INT

#define SW_INT   (0x1 << 0)

Definition at line 261 of file edp.h.

◆ SW_TRAINING_PATTERN_SET_DISABLE

#define SW_TRAINING_PATTERN_SET_DISABLE   (0x0 << 0)

Definition at line 380 of file edp.h.

◆ SW_TRAINING_PATTERN_SET_MASK

#define SW_TRAINING_PATTERN_SET_MASK   (0x3 << 0)

Definition at line 377 of file edp.h.

◆ SW_TRAINING_PATTERN_SET_PTN1

#define SW_TRAINING_PATTERN_SET_PTN1   (0x1 << 0)

Definition at line 379 of file edp.h.

◆ SW_TRAINING_PATTERN_SET_PTN2

#define SW_TRAINING_PATTERN_SET_PTN2   (0x2 << 0)

Definition at line 378 of file edp.h.

◆ TX_CUR1_2X

#define TX_CUR1_2X   (0x1 << 2)

Definition at line 441 of file edp.h.

◆ TX_CUR_16_MA

#define TX_CUR_16_MA   (0x3 << 0)

Definition at line 442 of file edp.h.

◆ TX_SWING_PRE_EMP_MODE

#define TX_SWING_PRE_EMP_MODE   (1 << 7)

Definition at line 347 of file edp.h.

◆ TX_TERMINAL_CTRL_50_OHM

#define TX_TERMINAL_CTRL_50_OHM   (0x1 << 4)

Definition at line 429 of file edp.h.

◆ V2L_CUR_SEL_1MA

#define V2L_CUR_SEL_1MA   (1 << 0)

Definition at line 325 of file edp.h.

◆ VALID_CTRL

#define VALID_CTRL   (0x1 << 0)

Definition at line 313 of file edp.h.

◆ VCO_BIT_600_MICRO

#define VCO_BIT_600_MICRO   (0x5 << 0)

Definition at line 433 of file edp.h.

◆ VID_CAP_FUNC_EN_N

#define VID_CAP_FUNC_EN_N   (0x1 << 6)

Definition at line 157 of file edp.h.

◆ VID_CHK_UPDATE_TYPE_0

#define VID_CHK_UPDATE_TYPE_0   (0x0 << 4)

Definition at line 199 of file edp.h.

◆ VID_CHK_UPDATE_TYPE_1

#define VID_CHK_UPDATE_TYPE_1   (0x1 << 4)

Definition at line 198 of file edp.h.

◆ VID_CHK_UPDATE_TYPE_MASK

#define VID_CHK_UPDATE_TYPE_MASK   (0x1 << 4)

Definition at line 196 of file edp.h.

◆ VID_CHK_UPDATE_TYPE_SHIFT

#define VID_CHK_UPDATE_TYPE_SHIFT   (4)

Definition at line 197 of file edp.h.

◆ VID_CLK_CHG

#define VID_CLK_CHG   (0x1 << 1)

Definition at line 260 of file edp.h.

◆ VID_FIFO_FUNC_EN_N

#define VID_FIFO_FUNC_EN_N   (0x1 << 5)

Definition at line 158 of file edp.h.

◆ VID_FORMAT_CHG

#define VID_FORMAT_CHG   (0x1 << 3)

Definition at line 258 of file edp.h.

◆ VID_HRES_TH

#define VID_HRES_TH (   x)    (((x) & 0xf) << 4)

Definition at line 210 of file edp.h.

◆ VID_VRES_TH

#define VID_VRES_TH (   x)    (((x) & 0xf) << 0)

Definition at line 211 of file edp.h.

◆ VIDEO_EN

#define VIDEO_EN   (0x1 << 7)

Definition at line 171 of file edp.h.

◆ VIDEO_MUTE

#define VIDEO_MUTE   (0x1 << 6)

Definition at line 172 of file edp.h.

◆ VSYNC_DET

#define VSYNC_DET   (0x1 << 7)

Definition at line 254 of file edp.h.

◆ VSYNC_POLARITY_CFG

#define VSYNC_POLARITY_CFG   (0x1 << 1)

Definition at line 217 of file edp.h.

◆ VSYNC_POLARITY_CFG_OFFSET

#define VSYNC_POLARITY_CFG_OFFSET   1

Definition at line 218 of file edp.h.

Enumeration Type Documentation

◆ analog_power_block

Enumerator
AUX_BLOCK 
CH0_BLOCK 
CH1_BLOCK 
CH2_BLOCK 
CH3_BLOCK 
ANALOG_TOTAL 
POWER_ALL 
AUX_BLOCK 
CH0_BLOCK 
CH1_BLOCK 
CH2_BLOCK 
CH3_BLOCK 
ANALOG_TOTAL 
POWER_ALL 

Definition at line 617 of file edp.h.

◆ clock_recovery_m_value_type

Enumerator
CALCULATED_M 
REGISTER_M 
CALCULATED_M 
REGISTER_M 

Definition at line 553 of file edp.h.

◆ color_coefficient

Enumerator
COLOR_YCBCR601 
COLOR_YCBCR709 
COLOR_YCBCR601 
COLOR_YCBCR709 

Definition at line 538 of file edp.h.

◆ color_depth

Enumerator
COLOR_6 
COLOR_8 
COLOR_10 
COLOR_12 
COLOR_6 
COLOR_8 
COLOR_10 
COLOR_12 

Definition at line 577 of file edp.h.

◆ color_space

Enumerator
CS_RGB 
CS_YCBCR422 
CS_YCBCR444 
COLOR_RGB 
COLOR_YCBCR422 
COLOR_YCBCR444 

Definition at line 571 of file edp.h.

◆ dp_irq_type

Enumerator
DP_IRQ_TYPE_HP_CABLE_IN 
DP_IRQ_TYPE_HP_CABLE_OUT 
DP_IRQ_TYPE_HP_CHANGE 
DP_IRQ_TYPE_UNKNOWN 

Definition at line 531 of file edp.h.

◆ dpcd_request

Enumerator
DPCD_READ 
DPCD_WRITE 

Definition at line 526 of file edp.h.

◆ dynamic_range

Enumerator
VESA 
CEA 
VESA 
CEA 

Definition at line 543 of file edp.h.

◆ link_lane_count_type

Enumerator
LANE_CNT1 
LANE_CNT2 
LANE_CNT4 

Definition at line 589 of file edp.h.

◆ link_rate_type

Enumerator
LINK_RATE_1_62GBPS 
LINK_RATE_2_70GBPS 

Definition at line 584 of file edp.h.

◆ link_training_state

Enumerator
LT_START 
LT_CLK_RECOVERY 
LT_EQ_TRAINING 
FINISHED 
FAILED 

Definition at line 595 of file edp.h.

◆ pattern_set

Enumerator
PRBS7 
D10_2 
TRAINING_PTN1 
TRAINING_PTN2 
DP_NONE 

Definition at line 563 of file edp.h.

◆ pll_status

enum pll_status
Enumerator
DP_PLL_UNLOCKED 
DP_PLL_LOCKED 
PLL_UNLOCKED 
PLL_LOCKED 
PLL_UNLOCKED 
PLL_LOCKED 

Definition at line 548 of file edp.h.

◆ pre_emphasis_level

Enumerator
PRE_EMPHASIS_LEVEL_0 
PRE_EMPHASIS_LEVEL_1 
PRE_EMPHASIS_LEVEL_2 
PRE_EMPHASIS_LEVEL_3 
PRE_EMPHASIS_LEVEL_0 
PRE_EMPHASIS_LEVEL_1 
PRE_EMPHASIS_LEVEL_2 
PRE_EMPHASIS_LEVEL_3 

Definition at line 610 of file edp.h.

◆ video_timing_recognition_type

Enumerator
VIDEO_TIMING_FROM_CAPTURE 
VIDEO_TIMING_FROM_REGISTER 

Definition at line 558 of file edp.h.

◆ voltage_swing_level

Enumerator
VOLTAGE_LEVEL_0 
VOLTAGE_LEVEL_1 
VOLTAGE_LEVEL_2 
VOLTAGE_LEVEL_3 

Definition at line 603 of file edp.h.

Function Documentation

◆ check_member()

check_member ( rk_edp_regs  ,
pll_reg_5  ,
0xa00   
)

◆ rk_edp_enable()

int rk_edp_enable ( void  )

Definition at line 986 of file edp.c.

References rk_edp::regs, rk_edp_is_video_stream_on(), setbits32, rk_edp_regs::video_ctl_1, and VIDEO_EN.

Referenced by rk_display_init().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ rk_edp_get_edid()

int rk_edp_get_edid ( struct edid edid)

Definition at line 954 of file edp.c.

References rk_edp_read_edid().

Referenced by rk_display_init().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ rk_edp_init()

void rk_edp_init ( void  )

Definition at line 994 of file edp.c.

References EDP_BASE, rk_edp::regs, rk_edp_enable_sw_function(), rk_edp_init_analog_func(), rk_edp_init_aux(), rk_edp_init_interrupt(), rk_edp_init_refclk(), and rk_edp_wait_hpd().

Referenced by rk_display_init().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ rk_edp_prepare()

int rk_edp_prepare ( void  )

Definition at line 969 of file edp.c.

References BIOS_ERR, printk, rk_edp_config_video(), rk_edp_init_video(), and rk_edp_set_link_train().

Referenced by rk_display_init().

Here is the call graph for this function:
Here is the caller graph for this function: