diff options
author | Krzysztof Hałasa <khc@pm.waw.pl> | 2009-11-16 21:53:53 (GMT) |
---|---|---|
committer | Krzysztof Hałasa <khc@pm.waw.pl> | 2009-12-05 15:58:40 (GMT) |
commit | 914e7bc28ee2c7083a7b81ffaa789f703eb5f974 (patch) | |
tree | 4f09fa08eec7ca96749001389314e3468d6c2b9c /arch/arm/mach-ixp4xx/fsg-pci.c | |
parent | 395e71276cd394c103931bfb60ceec9a97c0eaee (diff) | |
download | linux-914e7bc28ee2c7083a7b81ffaa789f703eb5f974.tar.xz |
IXP4xx: move FSG platform macros to the platform code.
Signed-off-by: Krzysztof Hałasa <khc@pm.waw.pl>
Diffstat (limited to 'arch/arm/mach-ixp4xx/fsg-pci.c')
-rw-r--r-- | arch/arm/mach-ixp4xx/fsg-pci.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/arch/arm/mach-ixp4xx/fsg-pci.c b/arch/arm/mach-ixp4xx/fsg-pci.c index ca12a9c..2a1701b 100644 --- a/arch/arm/mach-ixp4xx/fsg-pci.c +++ b/arch/arm/mach-ixp4xx/fsg-pci.c @@ -19,10 +19,20 @@ #include <linux/pci.h> #include <linux/init.h> #include <linux/irq.h> - #include <asm/mach/pci.h> #include <asm/mach-types.h> +#define FSG_PCI_MAX_DEV 3 +#define FSG_PCI_IRQ_LINES 3 + +/* PCI controller GPIO to IRQ pin mappings */ +#define FSG_PCI_INTA_PIN 6 +#define FSG_PCI_INTB_PIN 7 +#define FSG_PCI_INTC_PIN 5 +#define IRQ_FSG_PCI_INTA IRQ_IXP4XX_GPIO6 +#define IRQ_FSG_PCI_INTB IRQ_IXP4XX_GPIO7 +#define IRQ_FSG_PCI_INTC IRQ_IXP4XX_GPIO5 + void __init fsg_pci_preinit(void) { set_irq_type(IRQ_FSG_PCI_INTA, IRQ_TYPE_LEVEL_LOW); |