initial commit with v2.6.9
[linux-2.6.9-moxart.git] / include / asm-arm / arch-sa1100 / pangolin.h
blob889585365762324c2cff5263fcf0109ac0b3c302
1 /*
2 * linux/include/asm-arm/arch-sa1100/pangolin.h
4 * Created 2000/08/25 by Murphy Chen <murphy@mail.dialogue.com.tw>
6 * This file contains the hardware specific definitions for Pangolin
8 */
9 #ifndef __ASM_ARCH_HARDWARE_H
10 #error "include <asm/hardware.h> instead"
11 #endif
13 #include <linux/config.h>
15 #ifndef CONFIG_SA1100_PANGOLIN_PCMCIA_IDE
17 /* GPIOs for which the generic definition doesn't say much */
18 #define GPIO_CF_BUS_ON GPIO_GPIO (3)
19 #define GPIO_CF_RESET GPIO_GPIO (2)
20 #define GPIO_CF_CD GPIO_GPIO (22)
21 #define GPIO_CF_IRQ GPIO_GPIO (21)
23 #define IRQ_GPIO_CF_IRQ IRQ_GPIO21
24 #define IRQ_GPIO_CF_CD IRQ_GPIO22
26 #else
28 * These definitions are for PCMCIA/IDE card
30 * PSKTSEL = 0 ---> PCMCIA
31 * PCMCIA_RESET = GPIO_7 ( output )( 0: normal 1: reset )
32 * PCMCIA_IRQ = GPIO_24 ( input )
33 * PCMCIA_CD = GPIO_25 ( input )
35 * PSKTSEL = 1 ---> IDE port
36 * IDE_IRQ = GPIO_23 ( input )
38 * !!WARNING!!
39 * When the PCMCIA/IDE card is inserted, the CF slot
40 * should not have any card inserted!!
44 #define GPIO_PCMCIA_RESET GPIO_GPIO (7)
45 #define GPIO_PCMCIA_IRQ GPIO_GPIO (24)
46 #define GPIO_PCMCIA_CD GPIO_GPIO (25)
47 #define GPIO_IDE_IRQ GPIO_GPIO (8)
49 #define IRQ_PCMCIA_IRQ IRQ_GPIO24
50 #define IRQ_PCMCIA_CD IRQ_GPIO25
51 #define IRQ_IDE_IRQ IRQ_GPIO8
53 #endif
56 * On board LAN chip
58 #define PANGOLIN_LAN_ADDR 0x32000000
59 #define PANGOLIN_LAN_RESET GPIO_GPIO (8)
60 #define PANGOLIN_LAN_IRQ GPIO_GPIO (26)
61 #define PANGOLIN_IRQ_LAN_IRQ IRQ_GPIO26