]> git.baikalelectronics.ru Git - kernel.git/commit
OMAP3: PM: Force write last pad config register into save area
authorTero Kristo <tero.kristo@nokia.com>
Tue, 17 Nov 2009 16:34:53 +0000 (18:34 +0200)
committerKevin Hilman <khilman@deeprootsystems.com>
Thu, 21 Jan 2010 02:16:07 +0000 (18:16 -0800)
commite9e286537b908429183a84c4c7835a148d206a13
tree42877b2692289947315573f915aecba1fbfa7360
parente97167b76a821c52fbc66c793126f49da51da59f
OMAP3: PM: Force write last pad config register into save area

Due to OMAP3 erratas 1.157, 1.185 the save of the last pad register
(ETK_D14 and ETK_D15) can fail sometimes when there is simultaneous
OCP access to the SCM register area. Fixed by writing the last
register to the save area.

Also, optimized the delay loop for the HW save to include an udelay(1),
which limits the number of unnecessary HW accesses to SCM register area
during the save.

Signed-off-by: Tero Kristo <tero.kristo@nokia.com>
Acked-by: Nishanth Menon <nm@ti.com>
Reviewed-by: Anand Gadiyar <gadiyar@ti.com>
Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
arch/arm/mach-omap2/pm34xx.c