[U-Boot] [PATCH v2 21/28] rockchip: video: Take the vop device out of standby

Simon Glass sjg at chromium.org
Wed May 31 23:57:29 UTC 2017


On reset the standby bit is clear, but if U-Boot is chain-loaded from
another boot loader it may be set. Clear it before starting up video so
that it works correctly.

Signed-off-by: Simon Glass <sjg at chromium.org>
---

Changes in v2: None

 drivers/video/rockchip/rk_vop.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/video/rockchip/rk_vop.c b/drivers/video/rockchip/rk_vop.c
index b9b0b296ca..d970aae524 100644
--- a/drivers/video/rockchip/rk_vop.c
+++ b/drivers/video/rockchip/rk_vop.c
@@ -104,6 +104,9 @@ void rkvop_mode_set(struct rk3288_vop *regs,
 	uint flags;
 	int mode_flags;
 
+	/* remove from standby */
+	rk_clrreg(&regs->sys_ctrl, V_STANDBY_EN(1));
+
 	switch (mode) {
 	case VOP_MODE_HDMI:
 		clrsetbits_le32(&regs->sys_ctrl, M_ALL_OUT_EN,
-- 
2.13.0.219.gdb65acc882-goog



More information about the U-Boot mailing list