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:
Damon Ding
2024-05-21 15:12:16 +08:00
parent 31702584f8
commit 617e6880cd
2 changed files with 11 additions and 0 deletions

View File

@@ -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;

View File

@@ -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 {