Skip to content

Commit

Permalink
IXP4xx: move FSG platform macros to the platform code.
Browse files Browse the repository at this point in the history
Signed-off-by: Krzysztof Hałasa <khc@pm.waw.pl>
  • Loading branch information
Krzysztof Hałasa committed Dec 5, 2009
1 parent 395e712 commit 914e7bc
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 60 deletions.
12 changes: 11 additions & 1 deletion arch/arm/mach-ixp4xx/fsg-pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
8 changes: 7 additions & 1 deletion arch/arm/mach-ixp4xx/fsg-setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,18 @@
#include <linux/i2c.h>
#include <linux/i2c-gpio.h>
#include <linux/io.h>

#include <asm/mach-types.h>
#include <asm/mach/arch.h>
#include <asm/mach/flash.h>
#include <asm/gpio.h>

#define FSG_SDA_PIN 12
#define FSG_SCL_PIN 13

#define FSG_SB_GPIO 4 /* sync button */
#define FSG_RB_GPIO 9 /* reset button */
#define FSG_UB_GPIO 10 /* usb button */

static struct flash_platform_data fsg_flash_data = {
.map_name = "cfi_probe",
.width = 2,
Expand Down
50 changes: 0 additions & 50 deletions arch/arm/mach-ixp4xx/include/mach/fsg.h

This file was deleted.

1 change: 0 additions & 1 deletion arch/arm/mach-ixp4xx/include/mach/hardware.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,5 @@

/* Platform specific details */
#include "prpmc1100.h"
#include "fsg.h"

#endif /* _ASM_ARCH_HARDWARE_H */
7 changes: 0 additions & 7 deletions arch/arm/mach-ixp4xx/include/mach/irqs.h
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,4 @@
#define IRQ_PRPMC1100_PCI_INTC IRQ_IXP4XX_GPIO9
#define IRQ_PRPMC1100_PCI_INTD IRQ_IXP4XX_GPIO8

/*
* Freecom FSG-3 Board IRQs
*/
#define IRQ_FSG_PCI_INTA IRQ_IXP4XX_GPIO6
#define IRQ_FSG_PCI_INTB IRQ_IXP4XX_GPIO7
#define IRQ_FSG_PCI_INTC IRQ_IXP4XX_GPIO5

#endif
7 changes: 7 additions & 0 deletions drivers/leds/leds-fsg.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,13 @@
#include <mach/hardware.h>
#include <asm/io.h>

#define FSG_LED_WLAN_BIT 0
#define FSG_LED_WAN_BIT 1
#define FSG_LED_SATA_BIT 2
#define FSG_LED_USB_BIT 4
#define FSG_LED_RING_BIT 5
#define FSG_LED_SYNC_BIT 7

static short __iomem *latch_address;
static unsigned short latch_value;

Expand Down

0 comments on commit 914e7bc

Please sign in to comment.