2 * TQM8xx(L) board specific definitions
4 * Copyright (c) 1999,2000,2001 Wolfgang Denk (wd@denx.de)
7 #ifndef __MACH_TQM8xx_H
8 #define __MACH_TQM8xx_H
10 #include <linux/config.h>
12 #include <asm/ppcboot.h>
14 #define TQM_IMMR_BASE 0xFFF00000 /* phys. addr of IMMR */
15 #define TQM_IMAP_SIZE (64 * 1024) /* size of mapped area */
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 */
20 /*-----------------------------------------------------------------------
22 *-----------------------------------------------------------------------
25 #define PCMCIA_MEM_SIZE ( 64 << 20 )
27 #define MAX_HWIFS 1 /* overwrite default in include/asm-ppc/ide.h */
30 * Definitions for IDE0 Interface
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 */
44 #define IDE0_INTERRUPT 13
47 /* We don't use the 8259.
49 #define NR_8259_INTS 0
51 #endif /* __MACH_TQM8xx_H */