patch-2.4.13 linux/include/asm-arm/arch-sa1100/pangolin.h

Next file: linux/include/asm-arm/arch-sa1100/uncompress.h
Previous file: linux/include/asm-arm/arch-sa1100/keyboard.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.12/linux/include/asm-arm/arch-sa1100/pangolin.h linux/include/asm-arm/arch-sa1100/pangolin.h
@@ -11,6 +11,7 @@
 #error "include <asm/hardware.h> instead"
 #endif
 
+#ifndef CONFIG_SA1100_PANGOLIN_PCMCIA_IDE
 
 /* GPIOs for which the generic definition doesn't say much */
 #define GPIO_CF_BUS_ON		GPIO_GPIO (3)
@@ -20,3 +21,41 @@
 
 #define IRQ_GPIO_CF_IRQ		IRQ_GPIO21
 #define IRQ_GPIO_CF_CD		IRQ_GPIO22
+
+#else
+/*
+ *  These definitions are for PCMCIA/IDE card
+ *
+ *  PSKTSEL = 0 ---> PCMCIA
+ *  PCMCIA_RESET = GPIO_7        ( output )( 0: normal   1: reset )
+ *  PCMCIA_IRQ = GPIO_24         ( input )
+ *  PCMCIA_CD = GPIO_25          ( input )
+ *
+ *  PSKTSEL = 1 ---> IDE port
+ *  IDE_IRQ = GPIO_23            ( input )
+ *
+ *  !!WARNING!!
+ *  When the PCMCIA/IDE card is inserted, the CF slot
+ *  should not have any card inserted!!
+ *
+ */
+
+#define GPIO_PCMCIA_RESET       GPIO_GPIO (7)
+#define GPIO_PCMCIA_IRQ         GPIO_GPIO (24)
+#define GPIO_PCMCIA_CD          GPIO_GPIO (25)
+#define GPIO_IDE_IRQ            GPIO_GPIO (8)
+
+#define IRQ_PCMCIA_IRQ          IRQ_GPIO24
+#define IRQ_PCMCIA_CD           IRQ_GPIO25
+#define IRQ_IDE_IRQ             IRQ_GPIO8
+
+#endif
+
+/*
+ * On board LAN chip
+ */
+#define PANGOLIN_LAN_ADDR      0x32000000
+#define PANGOLIN_LAN_RESET     GPIO_GPIO (8)
+#define PANGOLIN_LAN_IRQ       GPIO_GPIO (26)
+#define PANGOLIN_IRQ_LAN_IRQ   IRQ_GPIO26
+

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)