aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-ixp4xx/coyote-pci.c
diff options
context:
space:
mode:
authorKrzysztof Hałasa <khc@pm.waw.pl>2009-11-16 09:57:41 -0500
committerKrzysztof Hałasa <khc@pm.waw.pl>2009-12-05 10:58:39 -0500
commitf89f44902af4b88e12c5d2c888915749362198e7 (patch)
tree326caa45390cbacf6f54b0977b85a47f023b6a20 /arch/arm/mach-ixp4xx/coyote-pci.c
parentec66969685ecf04e8a5036369702fa9aec07cc17 (diff)
IXP4xx: move Coyote platform macros to the platform code.
Signed-off-by: Krzysztof Hałasa <khc@pm.waw.pl>
Diffstat (limited to 'arch/arm/mach-ixp4xx/coyote-pci.c')
-rw-r--r--arch/arm/mach-ixp4xx/coyote-pci.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/arch/arm/mach-ixp4xx/coyote-pci.c b/arch/arm/mach-ixp4xx/coyote-pci.c
index efddf01ed17b..624f8fe83c45 100644
--- a/arch/arm/mach-ixp4xx/coyote-pci.c
+++ b/arch/arm/mach-ixp4xx/coyote-pci.c
@@ -18,13 +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-types.h> 21#include <asm/mach-types.h>
23#include <mach/hardware.h> 22#include <mach/hardware.h>
24#include <asm/irq.h> 23#include <asm/irq.h>
25
26#include <asm/mach/pci.h> 24#include <asm/mach/pci.h>
27 25
26#define COYOTE_PCI_SLOT0_DEVID 14
27#define COYOTE_PCI_SLOT1_DEVID 15
28
29/* PCI controller GPIO to IRQ pin mappings */
30#define COYOTE_PCI_SLOT0_PIN 6
31#define COYOTE_PCI_SLOT1_PIN 11
32
33#define IRQ_COYOTE_PCI_SLOT0 IRQ_IXP4XX_GPIO6
34#define IRQ_COYOTE_PCI_SLOT1 IRQ_IXP4XX_GPIO11
35
28void __init coyote_pci_preinit(void) 36void __init coyote_pci_preinit(void)
29{ 37{
30 set_irq_type(IRQ_COYOTE_PCI_SLOT0, IRQ_TYPE_LEVEL_LOW); 38 set_irq_type(IRQ_COYOTE_PCI_SLOT0, IRQ_TYPE_LEVEL_LOW);