[ARM] pxa: move pxa2xx chip selects definitions out of pxa-regs.h
authorEric Miao <eric.miao@marvell.com>
Tue, 20 Jan 2009 02:31:55 +0000 (10:31 +0800)
committerEric Miao <eric.miao@marvell.com>
Mon, 9 Mar 2009 13:22:40 +0000 (21:22 +0800)
The definitions of PXA_CS<x>_PHYS are really PXA2xx specific and should
be moved out of pxa-regs.h. As an illustration, the PXA3xx static chip
selects definitions are added into pxa3xx-regs.h.

Signed-off-by: Eric Miao <eric.miao@marvell.com>
arch/arm/mach-pxa/include/mach/pxa-regs.h
arch/arm/mach-pxa/include/mach/pxa2xx-regs.h
arch/arm/mach-pxa/include/mach/pxa3xx-regs.h
drivers/mtd/nand/cmx270_nand.c
drivers/pcmcia/pxa2xx_mainstone.c
drivers/pcmcia/pxa2xx_trizeps4.c

index 044929aa0b486394aef2df70b5a887c274a1a821..7e1e33a41b81ad4fd72084c4d299811942e8395c 100644 (file)
 
 #include <mach/hardware.h>
 
-/*
- * PXA Chip selects
- */
-
-#define PXA_CS0_PHYS   0x00000000
-#define PXA_CS1_PHYS   0x04000000
-#define PXA_CS2_PHYS   0x08000000
-#define PXA_CS3_PHYS   0x0C000000
-#define PXA_CS4_PHYS   0x10000000
-#define PXA_CS5_PHYS   0x14000000
-
-
 /*
  * Real Time Clock
  */
index 0b4ffd05a39a6312e020207109989dfaf54b312d..2f834de5b748109d122f375a14354051b2d7ab72 100644 (file)
 
 #include <mach/pxa-regs.h>
 
+/*
+ * PXA Chip selects
+ */
+
+#define PXA_CS0_PHYS   0x00000000
+#define PXA_CS1_PHYS   0x04000000
+#define PXA_CS2_PHYS   0x08000000
+#define PXA_CS3_PHYS   0x0C000000
+#define PXA_CS4_PHYS   0x10000000
+#define PXA_CS5_PHYS   0x14000000
+
 /*
  * Memory controller
  */
index 15b3b0be7f58dc589c12db5fbc704a18183444d4..7d1a059b3d43991b61f324655ac0f1f046d0d841 100644 (file)
 
 #include <mach/hardware.h>
 
+/*
+ * Static Chip Selects
+ */
+
+#define PXA300_CS0_PHYS                (0x00000000)    /* PXA300/PXA310 _only_ */
+#define PXA300_CS1_PHYS                (0x30000000)    /* PXA300/PXA310 _only_ */
+#define PXA3xx_CS2_PHYS                (0x10000000)
+#define PXA3xx_CS3_PHYS                (0x14000000)
+
 /*
  * Oscillator Configuration Register (OSCC)
  */
index fa129c09bca8b8fc8f7613176b0e255891dcb80d..10081e656a6f11d63d76e99544e98e0a5dfd7249 100644 (file)
@@ -26,8 +26,7 @@
 #include <asm/irq.h>
 #include <asm/mach-types.h>
 
-#include <mach/hardware.h>
-#include <mach/pxa-regs.h>
+#include <mach/pxa2xx-regs.h>
 
 #define GPIO_NAND_CS   (11)
 #define GPIO_NAND_RB   (89)
index 877001db4916c809d4e51356bd9dc84613ac6c7d..1138551ba8f61fb8f77669b9c2fcb0dea0cf5645 100644 (file)
 
 #include <pcmcia/ss.h>
 
-#include <mach/hardware.h>
 #include <asm/mach-types.h>
 #include <asm/irq.h>
 
-#include <mach/pxa-regs.h>
+#include <mach/pxa2xx-regs.h>
 #include <mach/mainstone.h>
 
 #include "soc_common.h"
index 36c7a0b324d24f49b27a0074eb434fec43cccbad..e0e5cb339b4a8e41e1f046af7a4c8eab561ed8a3 100644 (file)
@@ -22,8 +22,7 @@
 #include <asm/mach-types.h>
 #include <asm/irq.h>
 
-#include <mach/hardware.h>
-#include <mach/pxa-regs.h>
+#include <mach/pxa2xx-regs.h>
 #include <mach/trizeps4.h>
 
 #include "soc_common.h"