diff options
author | Kevin Hilman <khilman@deeprootsystems.com> | 2010-10-08 18:43:45 -0400 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2010-10-11 13:02:03 -0400 |
commit | de65815860f187cb43551bc833bf9d72720faa01 (patch) | |
tree | 4b5e77915006be3ea6db18b39e69e58a0d465b18 /arch/arm/mach-omap2/pm34xx.c | |
parent | a7c887510073b2f403e123f2befa40bf93554df9 (diff) |
OMAP3: PM: fix scratchpad memory accesses for off-mode
Commit 914bab936fe0388a529079679e2f137aa4ff548d (OMAP: mach-omap2: Fix
incorrect assignment warnings) changed a pointer from 'u32 *' to
'void *' without also fixing up the pointer arithmetic.
Fix the scratchpad offsets so they are byte offsets instead of
word offsets and thus work correctly with a void pointer base.
Special thanks to Jean Pihet for taking the time track down this
problem and propose an initial solution.
Tested with off-idle and off-suspend on 36xx/Zoom3 and 34xx/omap3evm.
Cc: Manjunath Kondaiah G <manjugk@ti.com>
Reported-by: Jean Pihet <jean.pihet@newoldbits.com>
Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
Tested-by: Jean Pihet <jean.pihet@newoldbits.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap2/pm34xx.c')
-rw-r--r-- | arch/arm/mach-omap2/pm34xx.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/arm/mach-omap2/pm34xx.c b/arch/arm/mach-omap2/pm34xx.c index 8c8f1acd3526..75c0cd13ad8e 100644 --- a/arch/arm/mach-omap2/pm34xx.c +++ b/arch/arm/mach-omap2/pm34xx.c | |||
@@ -50,9 +50,9 @@ | |||
50 | #include "control.h" | 50 | #include "control.h" |
51 | 51 | ||
52 | /* Scratchpad offsets */ | 52 | /* Scratchpad offsets */ |
53 | #define OMAP343X_TABLE_ADDRESS_OFFSET 0x31 | 53 | #define OMAP343X_TABLE_ADDRESS_OFFSET 0xc4 |
54 | #define OMAP343X_TABLE_VALUE_OFFSET 0x30 | 54 | #define OMAP343X_TABLE_VALUE_OFFSET 0xc0 |
55 | #define OMAP343X_CONTROL_REG_VALUE_OFFSET 0x32 | 55 | #define OMAP343X_CONTROL_REG_VALUE_OFFSET 0xc8 |
56 | 56 | ||
57 | struct power_state { | 57 | struct power_state { |
58 | struct powerdomain *pwrdm; | 58 | struct powerdomain *pwrdm; |