From 96708c328119a6339ab6cd4935fbd4d734db7feb Mon Sep 17 00:00:00 2001 From: Chaoyi Chen Date: Wed, 10 Apr 2024 18:57:31 +0800 Subject: [PATCH] drm/rockchip: lvds: use mode crtc_* timing for hardware config The mode contains two copies of timings, first are the plain and origin timings, this should keep unchanged, the second are copy from the first timing by add some computed and special fixup, this is associate with hardware. Signed-off-by: Chaoyi Chen Change-Id: I219f440c922847f0b0affaaaa268161213fa5f78 --- drivers/gpu/drm/rockchip/rockchip_lvds.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/rockchip/rockchip_lvds.c b/drivers/gpu/drm/rockchip/rockchip_lvds.c index fca6d6291b3e..1e4866df62cb 100644 --- a/drivers/gpu/drm/rockchip/rockchip_lvds.c +++ b/drivers/gpu/drm/rockchip/rockchip_lvds.c @@ -545,7 +545,7 @@ static void rk3288_lvds_enable(struct rockchip_lvds *lvds) RK3288_LVDS_CON_SELECT(lvds->format); if (lvds->dual_channel) { - u32 h_bp = mode->htotal - mode->hsync_start; + u32 h_bp = mode->crtc_htotal - mode->crtc_hsync_start; val |= RK3288_LVDS_CON_ENABLE_2(1) | RK3288_LVDS_CON_ENABLE_1(1) |