diff options
author | Krzysztof Hałasa <khc@pm.waw.pl> | 2009-11-16 10:02:02 -0500 |
---|---|---|
committer | Krzysztof Hałasa <khc@pm.waw.pl> | 2009-12-05 10:58:39 -0500 |
commit | c1117c63d53cc269193d02383b4275ae5c4cbe49 (patch) | |
tree | ff7dc79d9f9653183fa34a6b4a15b702f70cc4b2 /arch/arm/mach-ixp4xx/nslu2-pci.c | |
parent | f89f44902af4b88e12c5d2c888915749362198e7 (diff) |
IXP4xx: move NSLU2 platform macros to the platform code.
Signed-off-by: Krzysztof Hałasa <khc@pm.waw.pl>
Diffstat (limited to 'arch/arm/mach-ixp4xx/nslu2-pci.c')
-rw-r--r-- | arch/arm/mach-ixp4xx/nslu2-pci.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/arch/arm/mach-ixp4xx/nslu2-pci.c b/arch/arm/mach-ixp4xx/nslu2-pci.c index 4429b8448b61..9665bb082107 100644 --- a/arch/arm/mach-ixp4xx/nslu2-pci.c +++ b/arch/arm/mach-ixp4xx/nslu2-pci.c | |||
@@ -18,10 +18,21 @@ | |||
18 | #include <linux/pci.h> | 18 | #include <linux/pci.h> |
19 | #include <linux/init.h> | 19 | #include <linux/init.h> |
20 | #include <linux/irq.h> | 20 | #include <linux/irq.h> |
21 | |||
22 | #include <asm/mach/pci.h> | 21 | #include <asm/mach/pci.h> |
23 | #include <asm/mach-types.h> | 22 | #include <asm/mach-types.h> |
24 | 23 | ||
24 | #define NSLU2_PCI_MAX_DEV 3 | ||
25 | #define NSLU2_PCI_IRQ_LINES 3 | ||
26 | |||
27 | /* PCI controller GPIO to IRQ pin mappings */ | ||
28 | #define NSLU2_PCI_INTA_PIN 11 | ||
29 | #define NSLU2_PCI_INTB_PIN 10 | ||
30 | #define NSLU2_PCI_INTC_PIN 9 | ||
31 | #define NSLU2_PCI_INTD_PIN 8 | ||
32 | #define IRQ_NSLU2_PCI_INTA IRQ_IXP4XX_GPIO11 | ||
33 | #define IRQ_NSLU2_PCI_INTB IRQ_IXP4XX_GPIO10 | ||
34 | #define IRQ_NSLU2_PCI_INTC IRQ_IXP4XX_GPIO9 | ||
35 | |||
25 | void __init nslu2_pci_preinit(void) | 36 | void __init nslu2_pci_preinit(void) |
26 | { | 37 | { |
27 | set_irq_type(IRQ_NSLU2_PCI_INTA, IRQ_TYPE_LEVEL_LOW); | 38 | set_irq_type(IRQ_NSLU2_PCI_INTA, IRQ_TYPE_LEVEL_LOW); |