public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* rockchip: correctly set vop0 or vop1
@ 2020-06-07 18:36 Patrick Wildt
  2020-06-08  8:18 ` Arnaud Patard
  2020-06-28  1:50 ` Kever Yang
  0 siblings, 2 replies; 8+ messages in thread
From: Patrick Wildt @ 2020-06-07 18:36 UTC (permalink / raw)
  To: u-boot

The EDP_LCDC_SEL bit has to be set correctly to select vop0 or
vop1, but so far we have set it in both conditions, which is not
correct.

Can someone verify this is the correct way round?  vop1 -> set,
vop0 -> clear?

Signed-off-by: Patrick Wildt <patrick@blueri.se>

diff --git a/drivers/video/rockchip/rk_edp.c b/drivers/video/rockchip/rk_edp.c
index 92188be9275..000bd481408 100644
--- a/drivers/video/rockchip/rk_edp.c
+++ b/drivers/video/rockchip/rk_edp.c
@@ -1062,7 +1062,8 @@ static int rk_edp_probe(struct udevice *dev)
 	rk_setreg(&priv->grf->soc_con12, 1 << 4);
 
 	/* select epd signal from vop0 or vop1 */
-	rk_setreg(&priv->grf->soc_con6, (vop_id == 1) ? (1 << 5) : (1 << 5));
+	rk_clrsetreg(&priv->grf->soc_con6, (1 << 5),
+	    (vop_id == 1) ? (1 << 5) : (0 << 5));
 
 	rockchip_edp_wait_hpd(priv);
 

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2020-06-28  2:24 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-06-07 18:36 rockchip: correctly set vop0 or vop1 Patrick Wildt
2020-06-08  8:18 ` Arnaud Patard
2020-06-08 11:10   ` Patrick Wildt
2020-06-08 12:24     ` Arnaud Patard
2020-06-08 12:39       ` Patrick Wildt
2020-06-27 12:56         ` Kever Yang
2020-06-28  2:24           ` Andy Yan
2020-06-28  1:50 ` Kever Yang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox