diff options
author | Peter 'p2' De Schrijver <peter.de-schrijver@nokia.com> | 2010-12-20 15:05:07 -0500 |
---|---|---|
committer | Kevin Hilman <khilman@deeprootsystems.com> | 2010-12-21 17:45:51 -0500 |
commit | c4236d2e7913d18d058a018f0d19473eb6a11a3c (patch) | |
tree | b90600a00f6dd27eb03f7a278a5959a5f7d5b6a6 /arch/arm/mach-omap2/pm34xx.c | |
parent | 458e999eb14a301d4176783c8fcb277f5d009b4e (diff) |
OMAP3630: PM: Disable L2 cache while invalidating L2 cache
While coming out of MPU OSWR/OFF states, L2 controller is reseted.
The reset behavior is implementation specific as per ARMv7 TRM and
hence $L2 needs to be invalidated before it's use. Since the
AUXCTRL register is also reconfigured, disable L2 cache before
invalidating it and re-enables it afterwards. This is as per
Cortex-A8 ARM documentation.
Currently this is identified as being needed on OMAP3630 as the
disable/enable is done from "public side" while, on OMAP3430, this
is done in the "secure side".
Cc: Kevin Hilman <khilman@deeprootsystems.com>
Cc: Tony Lindgren <tony@atomide.com>
Acked-by: Jean Pihet <j-pihet@ti.com>
Acked-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
[nm@ti.com: ported to 2.6.37-rc2, added hooks to enable the logic only on 3630]
Signed-off-by: Nishanth Menon <nm@ti.com>
Signed-off-by: Eduardo Valentin <eduardo.valentin@nokia.com>
Signed-off-by: Peter 'p2' De Schrijver <peter.de-schrijver@nokia.com>
Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
Diffstat (limited to 'arch/arm/mach-omap2/pm34xx.c')
-rw-r--r-- | arch/arm/mach-omap2/pm34xx.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/arm/mach-omap2/pm34xx.c b/arch/arm/mach-omap2/pm34xx.c index 7dbc00005464..96e309d44e14 100644 --- a/arch/arm/mach-omap2/pm34xx.c +++ b/arch/arm/mach-omap2/pm34xx.c | |||
@@ -996,8 +996,11 @@ void omap_push_sram_idle(void) | |||
996 | 996 | ||
997 | static void __init pm_errata_configure(void) | 997 | static void __init pm_errata_configure(void) |
998 | { | 998 | { |
999 | if (cpu_is_omap3630()) | 999 | if (cpu_is_omap3630()) { |
1000 | pm34xx_errata |= PM_RTA_ERRATUM_i608; | 1000 | pm34xx_errata |= PM_RTA_ERRATUM_i608; |
1001 | /* Enable the l2 cache toggling in sleep logic */ | ||
1002 | enable_omap3630_toggle_l2_on_restore(); | ||
1003 | } | ||
1001 | } | 1004 | } |
1002 | 1005 | ||
1003 | static int __init omap3_pm_init(void) | 1006 | static int __init omap3_pm_init(void) |