mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-05 10:31:46 +09:00
drm/bridge: analogix_dp: add support for rate R216/R243/R324/R432
R216/R243/R324/R432 are the new recommended link rates in eDP v1.4, which may be read from DPCD SUPPORTED_LINK_RATES (0x00010h through 0x0001fh). And set the link rate by DPCD LINK_BW_SET(0x00100h). Signed-off-by: Damon Ding <damon.ding@rock-chips.com> Change-Id: I2d46c910bc763f1dac282a2156f9daec88d60cac
This commit is contained in:
@@ -660,6 +660,11 @@ static bool analogix_dp_link_config_validate(u8 link_rate, u8 lane_count)
|
||||
case DP_LINK_BW_1_62:
|
||||
case DP_LINK_BW_2_7:
|
||||
case DP_LINK_BW_5_4:
|
||||
/* Supported link rate in eDP 1.4 */
|
||||
case EDP_LINK_BW_2_16:
|
||||
case EDP_LINK_BW_2_43:
|
||||
case EDP_LINK_BW_3_24:
|
||||
case EDP_LINK_BW_4_32:
|
||||
break;
|
||||
default:
|
||||
return false;
|
||||
|
||||
@@ -35,6 +35,12 @@
|
||||
#define DPCD_VOLTAGE_SWING_SET(x) (((x) & 0x3) << 0)
|
||||
#define DPCD_VOLTAGE_SWING_GET(x) (((x) >> 0) & 0x3)
|
||||
|
||||
/* Supported link rate in eDP 1.4 */
|
||||
#define EDP_LINK_BW_2_16 0x08
|
||||
#define EDP_LINK_BW_2_43 0x09
|
||||
#define EDP_LINK_BW_3_24 0x0c
|
||||
#define EDP_LINK_BW_4_32 0x10
|
||||
|
||||
struct gpio_desc;
|
||||
|
||||
enum link_lane_count_type {
|
||||
|
||||
Reference in New Issue
Block a user