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 10#ifndef __ASM_ARCH_HARDWARE_H 11#error "include <asm/hardware.h> instead" 12#endif 13 14#include <linux/config.h> 15 16#ifndef CONFIG_SA1100_PANGOLIN_PCMCIA_IDE 17 18/* GPIOs for which the generic definition doesn't say much */ 19#define GPIO_CF_BUS_ON GPIO_GPIO (3) 20#define GPIO_CF_RESET GPIO_GPIO (2) 21#define GPIO_CF_CD GPIO_GPIO (22) 22#define GPIO_CF_IRQ GPIO_GPIO (21) 23 24#define IRQ_GPIO_CF_IRQ IRQ_GPIO21 25#define IRQ_GPIO_CF_CD IRQ_GPIO22 26 27#else 28/* 29 * These definitions are for PCMCIA/IDE card 30 * 31 * PSKTSEL = 0 ---> PCMCIA 32 * PCMCIA_RESET = GPIO_7 ( output )( 0: normal 1: reset ) 33 * PCMCIA_IRQ = GPIO_24 ( input ) 34 * PCMCIA_CD = GPIO_25 ( input ) 35 * 36 * PSKTSEL = 1 ---> IDE port 37 * IDE_IRQ = GPIO_23 ( input ) 38 * 39 * !!WARNING!! 40 * When the PCMCIA/IDE card is inserted, the CF slot 41 * should not have any card inserted!! 42 * 43 */ 44 45#define GPIO_PCMCIA_RESET GPIO_GPIO (7) 46#define GPIO_PCMCIA_IRQ GPIO_GPIO (24) 47#define GPIO_PCMCIA_CD GPIO_GPIO (25) 48#define GPIO_IDE_IRQ GPIO_GPIO (8) 49 50#define IRQ_PCMCIA_IRQ IRQ_GPIO24 51#define IRQ_PCMCIA_CD IRQ_GPIO25 52#define IRQ_IDE_IRQ IRQ_GPIO8 53 54#endif 55 56/* 57 * On board LAN chip 58 */ 59#define PANGOLIN_LAN_ADDR 0x32000000 60#define PANGOLIN_LAN_RESET GPIO_GPIO (8) 61#define PANGOLIN_LAN_IRQ GPIO_GPIO (26) 62#define PANGOLIN_IRQ_LAN_IRQ IRQ_GPIO26 63 64