drm/rockchip: support setting specail pll for hdmi
authorMark Yao <mark.yao@rock-chips.com>
Mon, 12 Jun 2017 07:23:11 +0000 (15:23 +0800)
committerMark Yao <mark.yao@rock-chips.com>
Tue, 13 Jun 2017 01:20:59 +0000 (09:20 +0800)
commit10a90aa97ece1ec095073bebb8b764ea8cef51dc
tree9620af837f394440d7df6d67a06835a08a06fc71
parentc9ead0488755ae5567fd58ac7ee45db269475e7a
drm/rockchip: support setting specail pll for hdmi

In order to get lower jitter clock for hdmi tmds, Hardware
design that: direct get tmds clock from vpll, bypass vop.

This design can make hdmi good works, but also limit hdmi's
clock source, the vop which hdmi use need also assign to vpll,
and use same clock rate, it's hardware limitation.

This patch add a mechanism to select dclk's parent pll, then
can allocate correct pll for hdmi.

Change-Id: I9e3b4b6d3756c409782df0605706be4203d69a32
Signed-off-by: Mark Yao <mark.yao@rock-chips.com>
Suggested-by: Heiko Stuebner <heiko@sntech.de>
drivers/gpu/drm/rockchip/rockchip_drm_drv.c
drivers/gpu/drm/rockchip/rockchip_drm_drv.h
drivers/gpu/drm/rockchip/rockchip_drm_vop.c