Skip to content

Commit

Permalink
OMAP: DSS2: DSI: enable scp clock in dsi_dump_regs()
Browse files Browse the repository at this point in the history
OMAP4 requires SCP clocks enabled to access DSI PLL registers and DSI COMPLEXIO
registers. Enable scp clock before accessing the registers and disable it before
exiting dsi_dump_regs().

Signed-off-by: Archit Taneja <archit@ti.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
  • Loading branch information
Archit Taneja authored and Tomi Valkeinen committed May 11, 2011
1 parent a0ce4cc commit 5bdd3c9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/video/omap2/dss/dsi.c
Original file line number Diff line number Diff line change
Expand Up @@ -1718,6 +1718,7 @@ void dsi_dump_regs(struct seq_file *s)
#define DUMPREG(r) seq_printf(s, "%-35s %08x\n", #r, dsi_read_reg(r))

dss_clk_enable(DSS_CLK_ICK | DSS_CLK_FCK);
dsi_enable_scp_clk();

DUMPREG(DSI_REVISION);
DUMPREG(DSI_SYSCONFIG);
Expand Down Expand Up @@ -1789,6 +1790,7 @@ void dsi_dump_regs(struct seq_file *s)
DUMPREG(DSI_PLL_CONFIGURATION1);
DUMPREG(DSI_PLL_CONFIGURATION2);

dsi_disable_scp_clk();
dss_clk_disable(DSS_CLK_ICK | DSS_CLK_FCK);
#undef DUMPREG
}
Expand Down

0 comments on commit 5bdd3c9

Please sign in to comment.