Lines Matching full:edp
47 struct bdb_edp *edp; in parse_edp() local
52 edp = find_section(bdb, BDB_EDP); in parse_edp()
54 dev_priv->edp.bpp = 18; in parse_edp()
55 if (!edp) { in parse_edp()
56 if (dev_priv->edp.support) { in parse_edp()
57 DRM_DEBUG_KMS("No eDP BDB found but eDP panel supported, assume %dbpp panel color depth.\n", in parse_edp()
58 dev_priv->edp.bpp); in parse_edp()
64 switch ((edp->color_depth >> (panel_type * 2)) & 3) { in parse_edp()
66 dev_priv->edp.bpp = 18; in parse_edp()
69 dev_priv->edp.bpp = 24; in parse_edp()
72 dev_priv->edp.bpp = 30; in parse_edp()
76 /* Get the eDP sequencing and link info */ in parse_edp()
77 edp_pps = &edp->power_seqs[panel_type]; in parse_edp()
78 edp_link_params = &edp->link_params[panel_type]; in parse_edp()
80 dev_priv->edp.pps = *edp_pps; in parse_edp()
82 DRM_DEBUG_KMS("EDP timing in vbt t1_t3 %d t8 %d t9 %d t10 %d t11_t12 %d\n", in parse_edp()
83 dev_priv->edp.pps.t1_t3, dev_priv->edp.pps.t8, in parse_edp()
84 dev_priv->edp.pps.t9, dev_priv->edp.pps.t10, in parse_edp()
85 dev_priv->edp.pps.t11_t12); in parse_edp()
87 dev_priv->edp.rate = edp_link_params->rate ? DP_LINK_BW_2_7 : in parse_edp()
91 dev_priv->edp.lanes = 1; in parse_edp()
94 dev_priv->edp.lanes = 2; in parse_edp()
98 dev_priv->edp.lanes = 4; in parse_edp()
101 DRM_DEBUG_KMS("VBT reports EDP: Lane_count %d, Lane_rate %d, Bpp %d\n", in parse_edp()
102 dev_priv->edp.lanes, dev_priv->edp.rate, dev_priv->edp.bpp); in parse_edp()
106 dev_priv->edp.preemphasis = DP_TRAIN_PRE_EMPH_LEVEL_0; in parse_edp()
109 dev_priv->edp.preemphasis = DP_TRAIN_PRE_EMPH_LEVEL_1; in parse_edp()
112 dev_priv->edp.preemphasis = DP_TRAIN_PRE_EMPH_LEVEL_2; in parse_edp()
115 dev_priv->edp.preemphasis = DP_TRAIN_PRE_EMPH_LEVEL_3; in parse_edp()
120 dev_priv->edp.vswing = DP_TRAIN_VOLTAGE_SWING_LEVEL_0; in parse_edp()
123 dev_priv->edp.vswing = DP_TRAIN_VOLTAGE_SWING_LEVEL_1; in parse_edp()
126 dev_priv->edp.vswing = DP_TRAIN_VOLTAGE_SWING_LEVEL_2; in parse_edp()
129 dev_priv->edp.vswing = DP_TRAIN_VOLTAGE_SWING_LEVEL_3; in parse_edp()
132 DRM_DEBUG_KMS("VBT reports EDP: VSwing %d, Preemph %d\n", in parse_edp()
133 dev_priv->edp.vswing, dev_priv->edp.preemphasis); in parse_edp()
424 dev_priv->edp.support = 1; in parse_driver_features()