1 /* 2 * TQM8xx(L) board specific definitions 3 * 4 * Copyright (c) 1999,2000,2001 Wolfgang Denk (wd@denx.de) 5 */ 6 7 #ifndef __MACH_TQM8xx_H 8 #define __MACH_TQM8xx_H 9 10 #include <linux/config.h> 11 12 #include <asm/ppcboot.h> 13 14 #define TQM_IMMR_BASE 0xFFF00000 /* phys. addr of IMMR */ 15 #define TQM_IMAP_SIZE (64 * 1024) /* size of mapped area */ 16 17 #define IMAP_ADDR TQM_IMMR_BASE /* physical base address of IMMR area */ 18 #define IMAP_SIZE TQM_IMAP_SIZE /* mapped size of IMMR area */ 19 20 /*----------------------------------------------------------------------- 21 * PCMCIA stuff 22 *----------------------------------------------------------------------- 23 * 24 */ 25 #define PCMCIA_MEM_SIZE ( 64 << 20 ) 26 27 #define MAX_HWIFS 1 /* overwrite default in include/asm-ppc/ide.h */ 28 29 /* 30 * Definitions for IDE0 Interface 31 */ 32 #define IDE0_BASE_OFFSET 0 33 #define IDE0_DATA_REG_OFFSET (PCMCIA_MEM_SIZE + 0x320) 34 #define IDE0_ERROR_REG_OFFSET (2 * PCMCIA_MEM_SIZE + 0x320 + 1) 35 #define IDE0_NSECTOR_REG_OFFSET (2 * PCMCIA_MEM_SIZE + 0x320 + 2) 36 #define IDE0_SECTOR_REG_OFFSET (2 * PCMCIA_MEM_SIZE + 0x320 + 3) 37 #define IDE0_LCYL_REG_OFFSET (2 * PCMCIA_MEM_SIZE + 0x320 + 4) 38 #define IDE0_HCYL_REG_OFFSET (2 * PCMCIA_MEM_SIZE + 0x320 + 5) 39 #define IDE0_SELECT_REG_OFFSET (2 * PCMCIA_MEM_SIZE + 0x320 + 6) 40 #define IDE0_STATUS_REG_OFFSET (2 * PCMCIA_MEM_SIZE + 0x320 + 7) 41 #define IDE0_CONTROL_REG_OFFSET 0x0106 42 #define IDE0_IRQ_REG_OFFSET 0x000A /* not used */ 43 44 #define IDE0_INTERRUPT 13 45 46 47 /* We don't use the 8259. 48 */ 49 #define NR_8259_INTS 0 50 51 #endif /* __MACH_TQM8xx_H */ 52