mirror of https://gitee.com/openkylin/linux.git
OMAP: DSS2: DSI: enable scp clock in dsi_dump_regs()
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>
This commit is contained in:
parent
a0ce4ccc60
commit
5bdd3c9a7d
|
@ -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);
|
||||
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue