aboutsummaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2017-05-31 17:57:29 -0600
committerSimon Glass <sjg@chromium.org>2017-06-09 13:45:33 -0600
commit6b5a09aa385693f5921a96d93197f5c40e7f37f7 (patch)
tree6b9ceb2b662c83c3ba50e9d3cc8282e53e516c76 /drivers
parentf418676e9ab8b7ec5496fc83fe8ab2b92b26a58e (diff)
downloadu-boot-6b5a09aa385693f5921a96d93197f5c40e7f37f7.zip
u-boot-6b5a09aa385693f5921a96d93197f5c40e7f37f7.tar.gz
u-boot-6b5a09aa385693f5921a96d93197f5c40e7f37f7.tar.bz2
rockchip: video: Take the vop device out of standby
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@chromium.org> Acked-by: Anatolij Gustschin <agust@denx.de> Squashed in 'rockchip: video: fix taking the VOP device out of standby': Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/video/rockchip/rk_vop.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/video/rockchip/rk_vop.c b/drivers/video/rockchip/rk_vop.c
index 9343796..c979049 100644
--- a/drivers/video/rockchip/rk_vop.c
+++ b/drivers/video/rockchip/rk_vop.c
@@ -105,6 +105,9 @@ static void rkvop_enable_output(struct udevice *dev, enum vop_modes mode)
struct rk_vop_priv *priv = dev_get_priv(dev);
struct rk3288_vop *regs = priv->regs;
+ /* remove from standby */
+ clrbits_le32(&regs->sys_ctrl, V_STANDBY_EN(1));
+
switch (mode) {
case VOP_MODE_HDMI:
clrsetbits_le32(&regs->sys_ctrl, M_ALL_OUT_EN,