hdmitx: parse colorattribute from uboot [2/2]
authorZongdong Jiao <zongdong.jiao@amlogic.com>
Thu, 29 Nov 2018 11:00:46 +0000 (19:00 +0800)
committerZongdong Jiao <zongdong.jiao@amlogic.com>
Wed, 5 Dec 2018 03:13:23 +0000 (11:13 +0800)
commit2c29197920c85093b1982de77cdfa8293ccbf008
tree7139f7a969a9987e4c1736faed95e0b0c4c3f17a
parent6b68ab0158d76cb3fcb8fcb7ed0dda0543de664c
hdmitx: parse colorattribute from uboot [2/2]

PD#SWPL-2181

Problem:
For some Rx, if the Tx cold boots up, the HPD can't be got in uboot.
That is to say, the output mode is CVBS in uboot, even HDMI cable is
connected. And during kernel boots up, it will reset to hdmi mode.
During the Android boots up, it will set to hdmi mode again. Twice
hdmi mode setting may cause TV flicks.

Solution:
Add parsing colorattribute from uboot and assign $attr to prevent
the second Android mode setting.

Verify:
S905X/P212

Change-Id: I665227bc3e8481acb40c34dde2f5cb3c633c64a2
Signed-off-by: Zongdong Jiao <zongdong.jiao@amlogic.com>
drivers/amlogic/media/vout/hdmitx/hdmi_tx_20/hdmi_tx_main.c