diff options
author | Krzysztof Hałasa <khc@pm.waw.pl> | 2009-11-16 16:53:53 -0500 |
---|---|---|
committer | Krzysztof Hałasa <khc@pm.waw.pl> | 2009-12-05 10:58:40 -0500 |
commit | 914e7bc28ee2c7083a7b81ffaa789f703eb5f974 (patch) | |
tree | 4f09fa08eec7ca96749001389314e3468d6c2b9c /arch/arm/mach-ixp4xx | |
parent | 395e71276cd394c103931bfb60ceec9a97c0eaee (diff) |
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')
-rw-r--r-- | arch/arm/mach-ixp4xx/fsg-pci.c | 12 | ||||
-rw-r--r-- | arch/arm/mach-ixp4xx/fsg-setup.c | 8 | ||||
-rw-r--r-- | arch/arm/mach-ixp4xx/include/mach/fsg.h | 50 | ||||
-rw-r--r-- | arch/arm/mach-ixp4xx/include/mach/hardware.h | 1 | ||||
-rw-r--r-- | arch/arm/mach-ixp4xx/include/mach/irqs.h | 7 |
5 files changed, 18 insertions, 60 deletions
diff --git a/arch/arm/mach-ixp4xx/fsg-pci.c b/arch/arm/mach-ixp4xx/fsg-pci.c index ca12a9ca0830..2a1701bb3671 100644 --- a/arch/arm/mach-ixp4xx/fsg-pci.c +++ b/arch/arm/mach-ixp4xx/fsg-pci.c | |||
@@ -19,10 +19,20 @@ | |||
19 | #include <linux/pci.h> | 19 | #include <linux/pci.h> |
20 | #include <linux/init.h> | 20 | #include <linux/init.h> |
21 | #include <linux/irq.h> | 21 | #include <linux/irq.h> |
22 | |||
23 | #include <asm/mach/pci.h> | 22 | #include <asm/mach/pci.h> |
24 | #include <asm/mach-types.h> | 23 | #include <asm/mach-types.h> |
25 | 24 | ||
25 | #define FSG_PCI_MAX_DEV 3 | ||
26 | #define FSG_PCI_IRQ_LINES 3 | ||
27 | |||
28 | /* PCI controller GPIO to IRQ pin mappings */ | ||
29 | #define FSG_PCI_INTA_PIN 6 | ||
30 | #define FSG_PCI_INTB_PIN 7 | ||
31 | #define FSG_PCI_INTC_PIN 5 | ||
32 | #define IRQ_FSG_PCI_INTA IRQ_IXP4XX_GPIO6 | ||
33 | #define IRQ_FSG_PCI_INTB IRQ_IXP4XX_GPIO7 | ||
34 | #define IRQ_FSG_PCI_INTC IRQ_IXP4XX_GPIO5 | ||
35 | |||
26 | void __init fsg_pci_preinit(void) | 36 | void __init fsg_pci_preinit(void) |
27 | { | 37 | { |
28 | set_irq_type(IRQ_FSG_PCI_INTA, IRQ_TYPE_LEVEL_LOW); | 38 | set_irq_type(IRQ_FSG_PCI_INTA, IRQ_TYPE_LEVEL_LOW); |
diff --git a/arch/arm/mach-ixp4xx/fsg-setup.c b/arch/arm/mach-ixp4xx/fsg-setup.c index 5add22fc9899..e7f4befba422 100644 --- a/arch/arm/mach-ixp4xx/fsg-setup.c +++ b/arch/arm/mach-ixp4xx/fsg-setup.c | |||
@@ -24,12 +24,18 @@ | |||
24 | #include <linux/i2c.h> | 24 | #include <linux/i2c.h> |
25 | #include <linux/i2c-gpio.h> | 25 | #include <linux/i2c-gpio.h> |
26 | #include <linux/io.h> | 26 | #include <linux/io.h> |
27 | |||
28 | #include <asm/mach-types.h> | 27 | #include <asm/mach-types.h> |
29 | #include <asm/mach/arch.h> | 28 | #include <asm/mach/arch.h> |
30 | #include <asm/mach/flash.h> | 29 | #include <asm/mach/flash.h> |
31 | #include <asm/gpio.h> | 30 | #include <asm/gpio.h> |
32 | 31 | ||
32 | #define FSG_SDA_PIN 12 | ||
33 | #define FSG_SCL_PIN 13 | ||
34 | |||
35 | #define FSG_SB_GPIO 4 /* sync button */ | ||
36 | #define FSG_RB_GPIO 9 /* reset button */ | ||
37 | #define FSG_UB_GPIO 10 /* usb button */ | ||
38 | |||
33 | static struct flash_platform_data fsg_flash_data = { | 39 | static struct flash_platform_data fsg_flash_data = { |
34 | .map_name = "cfi_probe", | 40 | .map_name = "cfi_probe", |
35 | .width = 2, | 41 | .width = 2, |
diff --git a/arch/arm/mach-ixp4xx/include/mach/fsg.h b/arch/arm/mach-ixp4xx/include/mach/fsg.h deleted file mode 100644 index 1f02b7e22a13..000000000000 --- a/arch/arm/mach-ixp4xx/include/mach/fsg.h +++ /dev/null | |||
@@ -1,50 +0,0 @@ | |||
1 | /* | ||
2 | * arch/arm/mach-ixp4xx/include/mach/fsg.h | ||
3 | * | ||
4 | * Freecom FSG-3 platform specific definitions | ||
5 | * | ||
6 | * Author: Rod Whitby <rod@whitby.id.au> | ||
7 | * Author: Tomasz Chmielewski <mangoo@wpkg.org> | ||
8 | * Maintainers: http://www.nslu2-linux.org | ||
9 | * | ||
10 | * Based on coyote.h by | ||
11 | * Copyright 2004 (c) MontaVista, Software, Inc. | ||
12 | * | ||
13 | * This file is licensed under the terms of the GNU General Public | ||
14 | * License version 2. This program is licensed "as is" without any | ||
15 | * warranty of any kind, whether express or implied. | ||
16 | */ | ||
17 | |||
18 | #ifndef __ASM_ARCH_HARDWARE_H__ | ||
19 | #error "Do not include this directly, instead #include <mach/hardware.h>" | ||
20 | #endif | ||
21 | |||
22 | #define FSG_SDA_PIN 12 | ||
23 | #define FSG_SCL_PIN 13 | ||
24 | |||
25 | /* | ||
26 | * FSG PCI IRQs | ||
27 | */ | ||
28 | #define FSG_PCI_MAX_DEV 3 | ||
29 | #define FSG_PCI_IRQ_LINES 3 | ||
30 | |||
31 | |||
32 | /* PCI controller GPIO to IRQ pin mappings */ | ||
33 | #define FSG_PCI_INTA_PIN 6 | ||
34 | #define FSG_PCI_INTB_PIN 7 | ||
35 | #define FSG_PCI_INTC_PIN 5 | ||
36 | |||
37 | /* Buttons */ | ||
38 | |||
39 | #define FSG_SB_GPIO 4 /* sync button */ | ||
40 | #define FSG_RB_GPIO 9 /* reset button */ | ||
41 | #define FSG_UB_GPIO 10 /* usb button */ | ||
42 | |||
43 | /* LEDs */ | ||
44 | |||
45 | #define FSG_LED_WLAN_BIT 0 | ||
46 | #define FSG_LED_WAN_BIT 1 | ||
47 | #define FSG_LED_SATA_BIT 2 | ||
48 | #define FSG_LED_USB_BIT 4 | ||
49 | #define FSG_LED_RING_BIT 5 | ||
50 | #define FSG_LED_SYNC_BIT 7 | ||
diff --git a/arch/arm/mach-ixp4xx/include/mach/hardware.h b/arch/arm/mach-ixp4xx/include/mach/hardware.h index 555b8e19c532..8558073c0658 100644 --- a/arch/arm/mach-ixp4xx/include/mach/hardware.h +++ b/arch/arm/mach-ixp4xx/include/mach/hardware.h | |||
@@ -45,6 +45,5 @@ | |||
45 | 45 | ||
46 | /* Platform specific details */ | 46 | /* Platform specific details */ |
47 | #include "prpmc1100.h" | 47 | #include "prpmc1100.h" |
48 | #include "fsg.h" | ||
49 | 48 | ||
50 | #endif /* _ASM_ARCH_HARDWARE_H */ | 49 | #endif /* _ASM_ARCH_HARDWARE_H */ |
diff --git a/arch/arm/mach-ixp4xx/include/mach/irqs.h b/arch/arm/mach-ixp4xx/include/mach/irqs.h index 20053beb90a5..e256997bb58e 100644 --- a/arch/arm/mach-ixp4xx/include/mach/irqs.h +++ b/arch/arm/mach-ixp4xx/include/mach/irqs.h | |||
@@ -78,11 +78,4 @@ | |||
78 | #define IRQ_PRPMC1100_PCI_INTC IRQ_IXP4XX_GPIO9 | 78 | #define IRQ_PRPMC1100_PCI_INTC IRQ_IXP4XX_GPIO9 |
79 | #define IRQ_PRPMC1100_PCI_INTD IRQ_IXP4XX_GPIO8 | 79 | #define IRQ_PRPMC1100_PCI_INTD IRQ_IXP4XX_GPIO8 |
80 | 80 | ||
81 | /* | ||
82 | * Freecom FSG-3 Board IRQs | ||
83 | */ | ||
84 | #define IRQ_FSG_PCI_INTA IRQ_IXP4XX_GPIO6 | ||
85 | #define IRQ_FSG_PCI_INTB IRQ_IXP4XX_GPIO7 | ||
86 | #define IRQ_FSG_PCI_INTC IRQ_IXP4XX_GPIO5 | ||
87 | |||
88 | #endif | 81 | #endif |