aboutsummaryrefslogtreecommitdiffstats
path: root/arch/ppc/platforms/pplus.h
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-16 18:20:36 -0400
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-16 18:20:36 -0400
commit1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (patch)
tree0bba044c4ce775e45a88a51686b5d9f90697ea9d /arch/ppc/platforms/pplus.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/pplus.h')
-rw-r--r--arch/ppc/platforms/pplus.h67
1 files changed, 67 insertions, 0 deletions
diff --git a/arch/ppc/platforms/pplus.h b/arch/ppc/platforms/pplus.h
new file mode 100644
index 000000000000..90f0cb2d409f
--- /dev/null
+++ b/arch/ppc/platforms/pplus.h
@@ -0,0 +1,67 @@
1/*
2 * arch/ppc/platforms/pplus.h
3 *
4 * Definitions for Motorola MCG Falcon/Raven & HAWK North Bridge & Memory ctlr.
5 *
6 * Author: Mark A. Greerinclude/asm-ppc/hawk.h
7 * mgreer@mvista.com
8 *
9 * Modified by Randy Vinson (rvinson@mvista.com)
10 *
11 * 2001-2004 (c) MontaVista, Software, Inc. This file is licensed under
12 * the terms of the GNU General Public License version 2. This program
13 * is licensed "as is" without any warranty of any kind, whether express
14 * or implied.
15 */
16
17#ifndef __PPC_PPLUS_H
18#define __PPC_PPLUS_H
19
20#include <asm/io.h>
21
22/*
23 * Due to limiations imposed by legacy hardware (primaryily IDE controllers),
24 * the PPLUS boards operate using a PReP address map.
25 *
26 * From Processor (physical) -> PCI:
27 * PCI Mem Space: 0xc0000000 - 0xfe000000 -> 0x00000000 - 0x3e000000 (768 MB)
28 * PCI I/O Space: 0x80000000 - 0x90000000 -> 0x00000000 - 0x10000000 (256 MB)
29 * Note: Must skip 0xfe000000-0xfe400000 for CONFIG_HIGHMEM/PKMAP area
30 *
31 * From PCI -> Processor (physical):
32 * System Memory: 0x80000000 -> 0x00000000
33 */
34
35#define PPLUS_ISA_MEM_BASE PREP_ISA_MEM_BASE
36#define PPLUS_ISA_IO_BASE PREP_ISA_IO_BASE
37
38/* PCI Memory space mapping info */
39#define PPLUS_PCI_MEM_SIZE 0x30000000U
40#define PPLUS_PROC_PCI_MEM_START PPLUS_ISA_MEM_BASE
41#define PPLUS_PROC_PCI_MEM_END (PPLUS_PROC_PCI_MEM_START + \
42 PPLUS_PCI_MEM_SIZE - 1)
43#define PPLUS_PCI_MEM_START 0x00000000U
44#define PPLUS_PCI_MEM_END (PPLUS_PCI_MEM_START + \
45 PPLUS_PCI_MEM_SIZE - 1)
46
47/* PCI I/O space mapping info */
48#define PPLUS_PCI_IO_SIZE 0x10000000U
49#define PPLUS_PROC_PCI_IO_START PPLUS_ISA_IO_BASE
50#define PPLUS_PROC_PCI_IO_END (PPLUS_PROC_PCI_IO_START + \
51 PPLUS_PCI_IO_SIZE - 1)
52#define PPLUS_PCI_IO_START 0x00000000U
53#define PPLUS_PCI_IO_END (PPLUS_PCI_IO_START + \
54 PPLUS_PCI_IO_SIZE - 1)
55/* System memory mapping info */
56#define PPLUS_PCI_DRAM_OFFSET PREP_PCI_DRAM_OFFSET
57#define PPLUS_PCI_PHY_MEM_OFFSET (PPLUS_ISA_MEM_BASE-PPLUS_PCI_MEM_START)
58
59/* Define base addresses for important sets of registers */
60#define PPLUS_HAWK_SMC_BASE 0xfef80000U
61#define PPLUS_HAWK_PPC_REG_BASE 0xfeff0000U
62#define PPLUS_SYS_CONFIG_REG 0xfef80400U
63#define PPLUS_L2_CONTROL_REG 0x8000081cU
64
65#define PPLUS_VGA_MEM_BASE 0xf0000000U
66
67#endif /* __PPC_PPLUS_H */