diff options
author | Jean Pihet <j-pihet@ti.com> | 2010-12-18 10:44:42 -0500 |
---|---|---|
committer | Kevin Hilman <khilman@deeprootsystems.com> | 2010-12-21 17:45:56 -0500 |
commit | b4b36fd94e4ca99b3258ff24c2c58cdde67085e0 (patch) | |
tree | 08d87923e309a726a2836ecddf7d04a52633c6d0 /arch/arm/plat-omap/sram.c | |
parent | d3cdfd2a15d87d040a5f553231b979fbc28b98e7 (diff) |
OMAP2+: use global values for the SRAM PA addresses
The SRAM PA addresses are locally defined and used at
different places, i.e. SRAM management code and idle sleep code.
The macros are now defined at a centralized place, for
easier maintenance.
Tested on N900 and Beagleboard with full RET and OFF modes,
using cpuidle and suspend.
Signed-off-by: Jean Pihet <j-pihet@ti.com>
Acked-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Tested-by: Nishanth Menon<nm@ti.com>
Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
Diffstat (limited to 'arch/arm/plat-omap/sram.c')
-rw-r--r-- | arch/arm/plat-omap/sram.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/arch/arm/plat-omap/sram.c b/arch/arm/plat-omap/sram.c index 74dac419d328..86f3eb720f0c 100644 --- a/arch/arm/plat-omap/sram.c +++ b/arch/arm/plat-omap/sram.c | |||
@@ -41,15 +41,12 @@ | |||
41 | 41 | ||
42 | #define OMAP1_SRAM_PA 0x20000000 | 42 | #define OMAP1_SRAM_PA 0x20000000 |
43 | #define OMAP1_SRAM_VA VMALLOC_END | 43 | #define OMAP1_SRAM_VA VMALLOC_END |
44 | #define OMAP2_SRAM_PA 0x40200000 | 44 | #define OMAP2_SRAM_PUB_PA (OMAP2_SRAM_PA + 0xf800) |
45 | #define OMAP2_SRAM_PUB_PA 0x4020f800 | ||
46 | #define OMAP2_SRAM_VA 0xfe400000 | 45 | #define OMAP2_SRAM_VA 0xfe400000 |
47 | #define OMAP2_SRAM_PUB_VA (OMAP2_SRAM_VA + 0x800) | 46 | #define OMAP2_SRAM_PUB_VA (OMAP2_SRAM_VA + 0x800) |
48 | #define OMAP3_SRAM_PA 0x40200000 | ||
49 | #define OMAP3_SRAM_VA 0xfe400000 | 47 | #define OMAP3_SRAM_VA 0xfe400000 |
50 | #define OMAP3_SRAM_PUB_PA 0x40208000 | 48 | #define OMAP3_SRAM_PUB_PA (OMAP3_SRAM_PA + 0x8000) |
51 | #define OMAP3_SRAM_PUB_VA (OMAP3_SRAM_VA + 0x8000) | 49 | #define OMAP3_SRAM_PUB_VA (OMAP3_SRAM_VA + 0x8000) |
52 | #define OMAP4_SRAM_PA 0x40300000 | ||
53 | #define OMAP4_SRAM_VA 0xfe400000 | 50 | #define OMAP4_SRAM_VA 0xfe400000 |
54 | #define OMAP4_SRAM_PUB_PA (OMAP4_SRAM_PA + 0x4000) | 51 | #define OMAP4_SRAM_PUB_PA (OMAP4_SRAM_PA + 0x4000) |
55 | #define OMAP4_SRAM_PUB_VA (OMAP4_SRAM_VA + 0x4000) | 52 | #define OMAP4_SRAM_PUB_VA (OMAP4_SRAM_VA + 0x4000) |