summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/omap-smp.c
diff options
context:
space:
mode:
authorEduardo Valentin <eduardo.valentin@ti.com>2011-04-13 18:21:07 +0300
committerPaul Walmsley <paul@pwsan.com>2011-04-20 12:43:56 -0600
commita8ae645c014bc01090367de84f7601ad11628971 (patch)
tree4bcc02380c30f59695593ce088acdc81047cd825 /arch/arm/mach-omap2/omap-smp.c
parent8bc2e98bcb280009cb0f85ce64e5f79b1669f9ff (diff)
downloadtalos-obmc-linux-a8ae645c014bc01090367de84f7601ad11628971.tar.gz
talos-obmc-linux-a8ae645c014bc01090367de84f7601ad11628971.zip
OMAP3: PM: Do not rely on ROM code to restore CM_AUTOIDLE_PLL.AUTO_PERIPH_DPLL
As per OMAP3 erratum (i671), ROM code adds extra latencies while restoring CM_AUTOIDLE_PLL register, if AUTO_PERIPH_DPLL is equal to 1. This patch stores 0's in scratchpad content area corresponding to AUTO_PERIPH_DPLL, to prevent ROM code to try to lock per DPLL, since it won't respect proper programing scheme. This register is then stored in prcm context. The saving and restore is now done by kernel side. Here follow the erratum description DESCRIPTION After OFF mode transition, among many restorations, the ROM Code restores the CM_AUTOIDLE_PLL register, and after that, it tries to relock the PER DPLL. In case the restoration data stored in scratchpad memory contains a field CM_AUTOIDLE_PLL.AUTO_PERIPH_DPLL = 1, then the way the ROM Code restores and locks the PER DPLL does not respect the PER DPLL programming scheme. In that case, the DPLL might not lock. Meanwhile, when trying to lock the PER DPLL, the ROM Code does not hang. Only extra latencies are introduced at wake-up. WORKAROUND When saving the context-restore structure in scratchpad memory, in order to respect the PER DPLL programming scheme, it is advised to store 0 in the CM_AUTOIDLE_PLL.AUTO_PERIPH_DPLL field of the saved structure. After wake-up, the application should store in CM_AUTOIDLE_PLL register the right desired value. Signed-off-by: Eduardo Valentin <eduardo.valentin@ti.com> Signed-off-by: Paul Walmsley <paul@pwsan.com>
Diffstat (limited to 'arch/arm/mach-omap2/omap-smp.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud