OMAP3 clock: only unlock SDRC DLL if SDRC clk < 83MHz
commit4519c2bf433b97d091635eb51e4ba8ffa1c84d62
authorPaul Walmsley <paul@pwsan.com>
Tue, 12 May 2009 23:26:32 +0000 (12 17:26 -0600)
committerpaul <paul@twilight.(none)>
Tue, 12 May 2009 23:27:10 +0000 (12 17:27 -0600)
tree0b36fc5e39c6a29005783c74f727c953c75e2198
parentb2abb271a5705bc80478e79d95fc9f3babc2605c
OMAP3 clock: only unlock SDRC DLL if SDRC clk < 83MHz

According to the 34xx TRM Rev. K section 11.2.4.4.11.1 "Purpose of the
DLL/CDL Module," the SDRC delay-locked-loop can be locked at any SDRC
clock frequency from 83MHz to 166MHz.  CDP code unconditionally
unlocked the DLL whenever shifting to a lower SDRC speed, but this
seems unnecessary and error-prone, as the DLL is no longer able to
compensate for process, voltage, and temperature variations.  Instead,
only unlock the DLL when the SDRC clock rate would be less than 83MHz.

Signed-off-by: Paul Walmsley <paul@pwsan.com>
arch/arm/mach-omap2/clock34xx.c
arch/arm/mach-omap2/sram34xx.S
arch/arm/plat-omap/include/mach/sram.h
arch/arm/plat-omap/sram.c