Skip to content

Commit

Permalink
[ARM] pxa: move pxa2xx chip selects definitions out of pxa-regs.h
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Eric Miao committed Mar 9, 2009
1 parent 5438614 commit b74d196
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 18 deletions.
12 changes: 0 additions & 12 deletions arch/arm/mach-pxa/include/mach/pxa-regs.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,6 @@

#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
*/
Expand Down
11 changes: 11 additions & 0 deletions arch/arm/mach-pxa/include/mach/pxa2xx-regs.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,17 @@

#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
*/
Expand Down
9 changes: 9 additions & 0 deletions arch/arm/mach-pxa/include/mach/pxa3xx-regs.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,15 @@

#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)
*/
Expand Down
3 changes: 1 addition & 2 deletions drivers/mtd/nand/cmx270_nand.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
3 changes: 1 addition & 2 deletions drivers/pcmcia/pxa2xx_mainstone.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,10 @@

#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"
Expand Down
3 changes: 1 addition & 2 deletions drivers/pcmcia/pxa2xx_trizeps4.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit b74d196

Please sign in to comment.