Skip to content
Snippets Groups Projects
Commit e4ab3d71 authored by Simon Glass's avatar Simon Glass
Browse files

rockchip: video: Correct HDMI data source selection


This code currently always selects the second source. It only worked
because both sources are set up.

With the change to only init video devices that are present in the stdout
environment variable, this fails. Fix it.

Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
parent ae804cf4
No related branches found
No related tags found
No related merge requests found
...@@ -899,7 +899,8 @@ static int rk_hdmi_probe(struct udevice *dev) ...@@ -899,7 +899,8 @@ static int rk_hdmi_probe(struct udevice *dev)
rk_setreg(&priv->grf->soc_con6, 1 << 15); rk_setreg(&priv->grf->soc_con6, 1 << 15);
/* hdmi data from vop id */ /* hdmi data from vop id */
rk_setreg(&priv->grf->soc_con6, (vop_id == 1) ? (1 << 4) : (1 << 4)); rk_clrsetreg(&priv->grf->soc_con6, 1 << 4,
(vop_id == 1) ? (1 << 4) : 0);
ret = hdmi_wait_for_hpd(priv->regs); ret = hdmi_wait_for_hpd(priv->regs);
if (ret < 0) { if (ret < 0) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment