omap4430panda: enable clock gating for M6_DPLL_CORE
authorAaron Carroll <aaronc@cse.unsw.edu.au>
Fri, 28 Jan 2011 19:22:12 +0000 (00:52 +0530)
committerAnand Gadiyar <gadiyar@ti.com>
Fri, 28 Jan 2011 19:22:12 +0000 (00:52 +0530)
The M6 clock from the core DPLL supplies a clock to the debug domain.
After the core DPLL is locked, the M6 clock appears to stop if clock
gating has been *disabled* for that output (reason unknown).  This
breaks JTAG debugging.

This patch enables clock gating on M6_DPLL_CORE before locking the
core DPLL, so the debugger continues to work.

Signed-off-by: Aaron Carroll <aaronc@cse.unsw.edu.au>
Signed-off-by: Anand Gadiyar <gadiyar@ti.com>
board/omap4430panda/clock.c

index 792e5d6..2256b32 100644 (file)
@@ -445,7 +445,7 @@ static void configure_core_dpll(clk_index)
                sr32(CM_DIV_M3_DPLL_CORE, 8, 1, 0x1);
                sr32(CM_DIV_M4_DPLL_CORE, 8, 1, 0x1);
                sr32(CM_DIV_M5_DPLL_CORE, 8, 1, 0x1);
-               sr32(CM_DIV_M6_DPLL_CORE, 8, 1, 0x1);
+               sr32(CM_DIV_M6_DPLL_CORE, 8, 1, 0x0);
                sr32(CM_DIV_M7_DPLL_CORE, 8, 1, 0x1);
        }
 
@@ -504,7 +504,7 @@ void configure_core_dpll_no_lock(void)
                sr32(CM_DIV_M3_DPLL_CORE, 8, 1, 0x1);
                sr32(CM_DIV_M4_DPLL_CORE, 8, 1, 0x1);
                sr32(CM_DIV_M5_DPLL_CORE, 8, 1, 0x1);
-               sr32(CM_DIV_M6_DPLL_CORE, 8, 1, 0x1);
+               sr32(CM_DIV_M6_DPLL_CORE, 8, 1, 0x0);
                sr32(CM_DIV_M7_DPLL_CORE, 8, 1, 0x1);
 //     }