video: rockchip: hdmi: v2: get phy register setting from dts
authorZheng Yang <zhengyang@rock-chips.com>
Thu, 8 Oct 2015 06:36:23 +0000 (14:36 +0800)
committerZheng Yang <zhengyang@rock-chips.com>
Thu, 8 Oct 2015 08:45:40 +0000 (16:45 +0800)
commitfa03aa63c8e1094feecd11eb0edf3423b46ebdac
treeb56f85608cf84e9b6fc55f58b9009c0d8c5eef93
parent98c09006747c9354ea5d7b0c4f0cf6e2355193df
video: rockchip: hdmi: v2: get phy register setting from dts

We can configurate phy setting in dts node "rockchip,phy_table"
with following format:

<maxfreq pre-emphasis slopeboost clklevel data0level data1level data2level>

Phy setting table must list from low freq to high freq and cover
all supported frequency, for example:

&hdmi {
status = "okay";
rockchip,phy_table =
<165000000 0 0 17 17 17 17>,
<340000000 0 0 14 17 17 17>,
<594000000 0 0 9 17 17 17>;
};

If dts node is not exist, we use default setting defined in code.

Change-Id: I06731419057a2a8cf4d210bf566b1206edc39ea1
Signed-off-by: Zheng Yang <zhengyang@rock-chips.com>
drivers/video/rockchip/hdmi/rockchip-hdmiv2/rockchip_hdmiv2.c
drivers/video/rockchip/hdmi/rockchip-hdmiv2/rockchip_hdmiv2.h
drivers/video/rockchip/hdmi/rockchip-hdmiv2/rockchip_hdmiv2_hw.c
drivers/video/rockchip/hdmi/rockchip-hdmiv2/rockchip_hdmiv2_hw.h