drm/rockchip: hdmi: fix parse phy table error
authorZheng Yang <zhengyang@rock-chips.com>
Fri, 4 Aug 2017 11:04:06 +0000 (19:04 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Mon, 7 Aug 2017 10:40:02 +0000 (18:40 +0800)
The value of sym_ctr and term is reversed.

Change-Id: I29adaf9a8590ff27c912d22e2370db2ef5b2c305
Signed-off-by: Zheng Yang <zhengyang@rock-chips.com>
drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c

index dc96d95b533f9b7aeed03f2ecda492086677cddc..d23c1761d0eb406ecbd90ae4176905759599a0d9 100644 (file)
@@ -284,8 +284,8 @@ static int rockchip_hdmi_update_phy_table(struct rockchip_hdmi *hdmi,
                        rockchip_phy_config[i].mpixelclock = (u64)config[i * 4];
                else
                        rockchip_phy_config[i].mpixelclock = ~0UL;
-               rockchip_phy_config[i].term = (u16)config[i * 4 + 1];
-               rockchip_phy_config[i].sym_ctr = (u16)config[i * 4 + 2];
+               rockchip_phy_config[i].sym_ctr = (u16)config[i * 4 + 1];
+               rockchip_phy_config[i].term = (u16)config[i * 4 + 2];
                rockchip_phy_config[i].vlev_ctr = (u16)config[i * 4 + 3];
        }