Commit 0e8b86b6 authored by Damon Ding's avatar Damon Ding Committed by Dmitry Baryshkov
Browse files

drm/bridge: analogix_dp: Add support for RK3588



Expand enum analogix_dp_devtype with RK3588_EDP, and add max_link_rate
and max_lane_count configs for it.

Reviewed-by: default avatarDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: default avatarDamon Ding <damon.ding@rock-chips.com>
Link: https://lore.kernel.org/r/20250310104114.2608063-11-damon.ding@rock-chips.com


Signed-off-by: default avatarDmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
parent f8551462
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1505,6 +1505,10 @@ static int analogix_dp_dt_parse_pdata(struct analogix_dp_device *dp)
		video_info->max_link_rate = 0x0A;
		video_info->max_lane_count = 0x04;
		break;
	case RK3588_EDP:
		video_info->max_link_rate = 0x14;
		video_info->max_lane_count = 0x04;
		break;
	case EXYNOS_DP:
		/*
		 * NOTE: those property parseing code is used for
+2 −1
Original line number Diff line number Diff line
@@ -16,11 +16,12 @@ enum analogix_dp_devtype {
	EXYNOS_DP,
	RK3288_DP,
	RK3399_EDP,
	RK3588_EDP,
};

static inline bool is_rockchip(enum analogix_dp_devtype type)
{
	return type == RK3288_DP || type == RK3399_EDP;
	return type == RK3288_DP || type == RK3399_EDP || type == RK3588_EDP;
}

struct analogix_dp_plat_data {