drm/rockchip: return a true clock rate to adjusted_mode
authorChris Zhong <zyw@rock-chips.com>
Wed, 6 Jan 2016 04:03:53 +0000 (12:03 +0800)
committerMark Yao <mark.yao@rock-chips.com>
Wed, 6 Jan 2016 05:51:09 +0000 (13:51 +0800)
commitb59b8de3149736e5094cb786978a1ba8d6d55b34
tree932624f6f1c833f38744c1ecef3266ea8e2c9f8c
parentc11b8989635166c5a1e6aac1853a847bd664f8db
drm/rockchip: return a true clock rate to adjusted_mode

Since the mipi dsi driver need to use the clock of vop to make the
calculation of Blanking. But sometimes the clock driver can not set a
accurate clock_rate for vop, get it by clk_round_rate before mode_set,
so we can get the true value.

Signed-off-by: Chris Zhong <zyw@rock-chips.com>
Acked-by: Mark Yao <mark.yao@rock-chips.com>
drivers/gpu/drm/rockchip/rockchip_drm_vop.c