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 <chaoyi.chen@rock-chips.com>
Change-Id: I219f440c922847f0b0affaaaa268161213fa5f78
This commit is contained in:
Chaoyi Chen
2024-04-10 18:57:31 +08:00
committed by Tao Huang
parent a10da2195c
commit 96708c3281

View File

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