ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-2.6.6.tar.bz2
[linux-2.6.git] / include / asm-arm / arch-sa1100 / pangolin.h
1 /*
2  * linux/include/asm-arm/arch-sa1100/pangolin.h
3  *
4  * Created 2000/08/25 by Murphy Chen <murphy@mail.dialogue.com.tw>
5  *
6  * This file contains the hardware specific definitions for Pangolin
7  *
8  */
9 #ifndef __ASM_ARCH_HARDWARE_H
10 #error "include <asm/hardware.h> instead"
11 #endif
12
13 #include <linux/config.h>
14
15 #ifndef CONFIG_SA1100_PANGOLIN_PCMCIA_IDE
16
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)
22
23 #define IRQ_GPIO_CF_IRQ         IRQ_GPIO21
24 #define IRQ_GPIO_CF_CD          IRQ_GPIO22
25
26 #else
27 /*
28  *  These definitions are for PCMCIA/IDE card
29  *
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 )
34  *
35  *  PSKTSEL = 1 ---> IDE port
36  *  IDE_IRQ = GPIO_23            ( input )
37  *
38  *  !!WARNING!!
39  *  When the PCMCIA/IDE card is inserted, the CF slot
40  *  should not have any card inserted!!
41  *
42  */
43
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)
48
49 #define IRQ_PCMCIA_IRQ          IRQ_GPIO24
50 #define IRQ_PCMCIA_CD           IRQ_GPIO25
51 #define IRQ_IDE_IRQ             IRQ_GPIO8
52
53 #endif
54
55 /*
56  * On board LAN chip
57  */
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
62