ARM: OMAP4+: Use common scratchpad SAR RAM offsets for all architectures
authorTero Kristo <t-kristo@ti.com>
Wed, 6 Feb 2013 13:09:20 +0000 (18:39 +0530)
committerSantosh Shilimkar <santosh.shilimkar@ti.com>
Thu, 28 Mar 2013 07:25:58 +0000 (12:55 +0530)
Choose the common scratch pad offsets, so that same offsets can work for
OMAP4 and OMAP5 devices. It simplifies code and also allows the re-use as
is on OMAP5 devices. Note that these offsets are used by low power
code for various power state management. They are not hardware register
offsets.

Signed-off-by: Tero Kristo <t-kristo@ti.com>
Signed-off-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
arch/arm/mach-omap2/omap4-sar-layout.h

index e170fe8..6822d0a 100644 (file)
 #define SAR_BANK4_OFFSET               0x3000
 
 /* Scratch pad memory offsets from SAR_BANK1 */
-#define SCU_OFFSET0                            0xd00
-#define SCU_OFFSET1                            0xd04
-#define OMAP_TYPE_OFFSET                       0xd10
-#define L2X0_SAVE_OFFSET0                      0xd14
-#define L2X0_SAVE_OFFSET1                      0xd18
-#define L2X0_AUXCTRL_OFFSET                    0xd1c
-#define L2X0_PREFETCH_CTRL_OFFSET              0xd20
+#define SCU_OFFSET0                            0xfe4
+#define SCU_OFFSET1                            0xfe8
+#define OMAP_TYPE_OFFSET                       0xfec
+#define L2X0_SAVE_OFFSET0                      0xff0
+#define L2X0_SAVE_OFFSET1                      0xff4
+#define L2X0_AUXCTRL_OFFSET                    0xff8
+#define L2X0_PREFETCH_CTRL_OFFSET              0xffc
 
 /* CPUx Wakeup Non-Secure Physical Address offsets in SAR_BANK3 */
 #define CPU0_WAKEUP_NS_PA_ADDR_OFFSET          0xa04