Javi Martin
unread,Jun 9, 2011, 5:15:37 AM6/9/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to x-loader
Hi,
he problem happens inside the function "prcm_init()". The code gets
stuck in the indicated line (572) waiting for DPLL4 ( ST_PERIPH_CLK)
to be locked, but that won't happen.
The problem occurs after a warm reset (software) and not after a POR
(cold reset hardware).
I am using commit 04b1732220078d47c18a84cbafc52e45db71f13d
---
board/omap3530beagle/omap3530beagle.c: line 572
if (beagle_revision() == REVISION_XM) {
sr32(CM_CLKSEL3_PLL, 0, 5, CORE_DPLL_PARAM_M2); /* set M2
*/
sr32(CM_CLKSEL2_PLL, 8, 11, CORE_DPLL_PARAM_M); /* set m */
sr32(CM_CLKSEL2_PLL, 0, 7, CORE_DPLL_PARAM_N); /* set n */
} else {
sr32(CM_CLKSEL3_PLL, 0, 5, dpll_param_p->m2); /* set M2 */
sr32(CM_CLKSEL2_PLL, 8, 11, dpll_param_p->m); /* set m */
sr32(CM_CLKSEL2_PLL, 0, 7, dpll_param_p->n); /* set n */
}
sr32(CM_CLKEN_PLL, 20, 4, dpll_param_p->fsel); /* FREQSEL */
sr32(CM_CLKEN_PLL, 16, 3, PLL_LOCK); /* lock mode */
wait_on_value(BIT1, 2, CM_IDLEST_CKGEN, LDELAY); <--- here it gets
stuck
---