From: John Ogness Date: Wed, 23 Feb 2011 03:00:47 +0000 (-0700) Subject: OMAP2/3: clock: fix fint calculation for DPLL_FREQSEL X-Git-Tag: v2.6.38-rc7~6^2^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ea68c00e2623bb5b001c2117a4dcca4754781b4e;p=pandora-kernel.git OMAP2/3: clock: fix fint calculation for DPLL_FREQSEL In OMAP35X TRM Rev 2010-05 Figure 7-18 "DPLL With EMI Reduction Feature", it is shown that the internal frequency is calculated by CLK_IN/(N+1). However, the value passed to _dpll_test_fint() is already "N+1" since Linux is using the values to divide by. In the technical reference manual, "N" is referring to the divider's register value (0-127). During power management testing, it was observed that programming the wrong jitter correction value can cause the system to become unstable and eventually crash. Signed-off-by: John Ogness [paul@pwsan.com: added second paragraph to commit message] Signed-off-by: Paul Walmsley --- Reading git-diff-tree failed