Commit 6cc78aa9 authored by Tomi Valkeinen's avatar Tomi Valkeinen

OMAPDSS: DSI: disable DDR_CLK_ALWAYS_ON when entering ULPS

ULPS cannot be entered if the DDR clk is enabled. Thus disable the DDR
clk before entering ULPS.
Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
parent 3b98409e
...@@ -3544,9 +3544,11 @@ static int dsi_enter_ulps(struct platform_device *dsidev) ...@@ -3544,9 +3544,11 @@ static int dsi_enter_ulps(struct platform_device *dsidev)
if (dsi->ulps_enabled) if (dsi->ulps_enabled)
return 0; return 0;
/* DDR_CLK_ALWAYS_ON */
if (REG_GET(dsidev, DSI_CLK_CTRL, 13, 13)) { if (REG_GET(dsidev, DSI_CLK_CTRL, 13, 13)) {
DSSERR("DDR_CLK_ALWAYS_ON enabled when entering ULPS\n"); dsi_if_enable(dsidev, 0);
return -EIO; REG_FLD_MOD(dsidev, DSI_CLK_CTRL, 0, 13, 13);
dsi_if_enable(dsidev, 1);
} }
dsi_sync_vc(dsidev, 0); dsi_sync_vc(dsidev, 0);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment