diff options
author | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-16 18:20:36 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-16 18:20:36 -0400 |
commit | 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (patch) | |
tree | 0bba044c4ce775e45a88a51686b5d9f90697ea9d /arch/ppc/platforms/lwmon.h |
Linux-2.6.12-rc2v2.6.12-rc2
Initial git repository build. I'm not bothering with the full history,
even though we have it. We can create a separate "historical" git
archive of that later if we want to, and in the meantime it's about
3.2GB when imported into git - space that would just make the early
git days unnecessarily complicated, when we don't have a lot of good
infrastructure for it.
Let it rip!
Diffstat (limited to 'arch/ppc/platforms/lwmon.h')
-rw-r--r-- | arch/ppc/platforms/lwmon.h | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/arch/ppc/platforms/lwmon.h b/arch/ppc/platforms/lwmon.h new file mode 100644 index 000000000000..995bf5112df0 --- /dev/null +++ b/arch/ppc/platforms/lwmon.h | |||
@@ -0,0 +1,60 @@ | |||
1 | /* | ||
2 | * Liebherr LWMON board specific definitions | ||
3 | * | ||
4 | * Copyright (c) 2001 Wolfgang Denk (wd@denx.de) | ||
5 | */ | ||
6 | |||
7 | #ifndef __MACH_LWMON_H | ||
8 | #define __MACH_LWMON_H | ||
9 | |||
10 | #include <linux/config.h> | ||
11 | |||
12 | #include <asm/ppcboot.h> | ||
13 | |||
14 | #define IMAP_ADDR 0xFFF00000 /* physical base address of IMMR area */ | ||
15 | #define IMAP_SIZE (64 * 1024) /* mapped size of IMMR area */ | ||
16 | |||
17 | /*----------------------------------------------------------------------- | ||
18 | * PCMCIA stuff | ||
19 | *----------------------------------------------------------------------- | ||
20 | * | ||
21 | */ | ||
22 | #define PCMCIA_MEM_SIZE ( 64 << 20 ) | ||
23 | |||
24 | #define MAX_HWIFS 1 /* overwrite default in include/asm-ppc/ide.h */ | ||
25 | |||
26 | /* | ||
27 | * Definitions for IDE0 Interface | ||
28 | */ | ||
29 | #define IDE0_BASE_OFFSET 0 | ||
30 | #define IDE0_DATA_REG_OFFSET (PCMCIA_MEM_SIZE + 0x320) | ||
31 | #define IDE0_ERROR_REG_OFFSET (2 * PCMCIA_MEM_SIZE + 0x320 + 1) | ||
32 | #define IDE0_NSECTOR_REG_OFFSET (2 * PCMCIA_MEM_SIZE + 0x320 + 2) | ||
33 | #define IDE0_SECTOR_REG_OFFSET (2 * PCMCIA_MEM_SIZE + 0x320 + 3) | ||
34 | #define IDE0_LCYL_REG_OFFSET (2 * PCMCIA_MEM_SIZE + 0x320 + 4) | ||
35 | #define IDE0_HCYL_REG_OFFSET (2 * PCMCIA_MEM_SIZE + 0x320 + 5) | ||
36 | #define IDE0_SELECT_REG_OFFSET (2 * PCMCIA_MEM_SIZE + 0x320 + 6) | ||
37 | #define IDE0_STATUS_REG_OFFSET (2 * PCMCIA_MEM_SIZE + 0x320 + 7) | ||
38 | #define IDE0_CONTROL_REG_OFFSET 0x0106 | ||
39 | #define IDE0_IRQ_REG_OFFSET 0x000A /* not used */ | ||
40 | |||
41 | #define IDE0_INTERRUPT 13 | ||
42 | |||
43 | /* | ||
44 | * Definitions for I2C devices | ||
45 | */ | ||
46 | #define I2C_ADDR_AUDIO 0x28 /* Audio volume control */ | ||
47 | #define I2C_ADDR_SYSMON 0x2E /* LM87 System Monitor */ | ||
48 | #define I2C_ADDR_RTC 0x51 /* PCF8563 RTC */ | ||
49 | #define I2C_ADDR_POWER_A 0x52 /* PCMCIA/USB power switch, channel A */ | ||
50 | #define I2C_ADDR_POWER_B 0x53 /* PCMCIA/USB power switch, channel B */ | ||
51 | #define I2C_ADDR_KEYBD 0x56 /* PIC LWE keyboard */ | ||
52 | #define I2C_ADDR_PICIO 0x57 /* PIC IO Expander */ | ||
53 | #define I2C_ADDR_EEPROM 0x58 /* EEPROM AT24C164 */ | ||
54 | |||
55 | |||
56 | /* We don't use the 8259. | ||
57 | */ | ||
58 | #define NR_8259_INTS 0 | ||
59 | |||
60 | #endif /* __MACH_LWMON_H */ | ||