diff options
author | Krzysztof Hałasa <khc@pm.waw.pl> | 2009-11-16 09:24:41 -0500 |
---|---|---|
committer | Krzysztof Hałasa <khc@pm.waw.pl> | 2009-12-05 10:58:39 -0500 |
commit | 9bf4d676898b1f083a7ee20a0c6aacf2886eb49d (patch) | |
tree | 78e3a9b9e3dcae5e127165d795fe9248e6260793 /arch/arm/mach-ixp4xx/ixdp425-pci.c | |
parent | ed5b9fa0d1c5ad1e01ff56b9acd3ff52bc783f66 (diff) |
IXP4xx: move IXDP425 platform macros to the platform code.
Signed-off-by: Krzysztof Hałasa <khc@pm.waw.pl>
Diffstat (limited to 'arch/arm/mach-ixp4xx/ixdp425-pci.c')
-rw-r--r-- | arch/arm/mach-ixp4xx/ixdp425-pci.c | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/arch/arm/mach-ixp4xx/ixdp425-pci.c b/arch/arm/mach-ixp4xx/ixdp425-pci.c index 64c29aacaac9..dc8b5884875c 100644 --- a/arch/arm/mach-ixp4xx/ixdp425-pci.c +++ b/arch/arm/mach-ixp4xx/ixdp425-pci.c | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * arch/arm/mach-ixp4xx/ixdp425-pci.c | 2 | * arch/arm/mach-ixp4xx/ixdp425-pci.c |
3 | * | 3 | * |
4 | * IXDP425 board-level PCI initialization | 4 | * IXDP425 board-level PCI initialization |
5 | * | 5 | * |
@@ -19,12 +19,25 @@ | |||
19 | #include <linux/init.h> | 19 | #include <linux/init.h> |
20 | #include <linux/irq.h> | 20 | #include <linux/irq.h> |
21 | #include <linux/delay.h> | 21 | #include <linux/delay.h> |
22 | |||
23 | #include <asm/mach/pci.h> | 22 | #include <asm/mach/pci.h> |
24 | #include <asm/irq.h> | 23 | #include <asm/irq.h> |
25 | #include <mach/hardware.h> | 24 | #include <mach/hardware.h> |
26 | #include <asm/mach-types.h> | 25 | #include <asm/mach-types.h> |
27 | 26 | ||
27 | #define IXDP425_PCI_MAX_DEV 4 | ||
28 | #define IXDP425_PCI_IRQ_LINES 4 | ||
29 | |||
30 | /* PCI controller GPIO to IRQ pin mappings */ | ||
31 | #define IXDP425_PCI_INTA_PIN 11 | ||
32 | #define IXDP425_PCI_INTB_PIN 10 | ||
33 | #define IXDP425_PCI_INTC_PIN 9 | ||
34 | #define IXDP425_PCI_INTD_PIN 8 | ||
35 | |||
36 | #define IRQ_IXDP425_PCI_INTA IRQ_IXP4XX_GPIO11 | ||
37 | #define IRQ_IXDP425_PCI_INTB IRQ_IXP4XX_GPIO10 | ||
38 | #define IRQ_IXDP425_PCI_INTC IRQ_IXP4XX_GPIO9 | ||
39 | #define IRQ_IXDP425_PCI_INTD IRQ_IXP4XX_GPIO8 | ||
40 | |||
28 | void __init ixdp425_pci_preinit(void) | 41 | void __init ixdp425_pci_preinit(void) |
29 | { | 42 | { |
30 | set_irq_type(IRQ_IXDP425_PCI_INTA, IRQ_TYPE_LEVEL_LOW); | 43 | set_irq_type(IRQ_IXDP425_PCI_INTA, IRQ_TYPE_LEVEL_LOW); |