video: rockchip: hdmi: introduce vic flag HDMI_UBOOT_NOT_INIT

If uboot_vic has HDMI_UBOOT_NOT_INIT flag, it means uboot just
pass the preset vic value, registers has not been set in uboot.
If not, hdmi has been power up in uboot, should not operate phy
register again.

Change-Id: I64f48bd878ec124a94f25a752a74dc9bae502b2b
Signed-off-by: Zheng Yang <zhengyang@rock-chips.com>
This commit is contained in:
Zheng Yang
2015-09-02 18:13:42 +08:00
committed by Gerrit Code Review
parent 3acd23a8a0
commit 468345a502
2 changed files with 8 additions and 2 deletions

View File

@@ -485,8 +485,11 @@ struct hdmi *rockchip_hdmi_register(struct hdmi_property *property,
hdmi->hotplug = HDMI_HPD_REMOVED;
hdmi->autoset = HDMI_AUTO_CONFIG;
if (uboot_vic > 0) {
hdmi->vic = uboot_vic;
hdmi->uboot = 1;
hdmi->vic = uboot_vic & HDMI_UBOOT_VIC_MASK;
if (uboot_vic & HDMI_UBOOT_NOT_INIT)
hdmi->uboot = 0;
else
hdmi->uboot = 1;
hdmi->autoset = 0;
} else if (hdmi->autoset) {
hdmi->vic = 0;

View File

@@ -17,6 +17,9 @@
#define HDMI_TYPE_MASK (0xFF << 8)
#define HDMI_MAX_ID 4
#define HDMI_UBOOT_NOT_INIT (1 << 16)
#define HDMI_UBOOT_VIC_MASK 0xFFFF
/* HDMI video information code according CEA-861-F */
enum hdmi_video_infomation_code {
HDMI_640X480P_60HZ = 1,