ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-2.6.6.tar.bz2
[linux-2.6.git] / arch / ppc / platforms / prpmc750.h
1 /*
2  * include/asm-ppc/platforms/prpmc750.h
3  *
4  * Definitions for Motorola PrPMC750 board support
5  *
6  * Author: Matt Porter <mporter@mvista.com>
7  *
8  * Copyright 2001 MontaVista Software Inc.
9  *
10  * This program is free software; you can redistribute  it and/or modify it
11  * under  the terms of  the GNU General  Public License as published by the
12  * Free Software Foundation;  either version 2 of the  License, or (at your
13  * option) any later version.
14  */
15
16 #ifdef __KERNEL__
17 #ifndef __ASM_PRPMC750_H__
18 #define __ASM_PRPMC750_H__
19
20 #include <linux/serial_reg.h>
21
22 /*
23  * Due to limiations imposed by legacy hardware (primaryily IDE controllers),
24  * the PrPMC750 carrier board operates 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 PRPMC750_ISA_IO_BASE            PREP_ISA_IO_BASE
36 #define PRPMC750_ISA_MEM_BASE           PREP_ISA_MEM_BASE
37
38 /* PCI Memory space mapping info */
39 #define PRPMC750_PCI_MEM_SIZE           0x30000000U
40 #define PRPMC750_PROC_PCI_MEM_START     PRPMC750_ISA_MEM_BASE
41 #define PRPMC750_PROC_PCI_MEM_END       (PRPMC750_PROC_PCI_MEM_START +  \
42                                          PRPMC750_PCI_MEM_SIZE - 1)
43 #define PRPMC750_PCI_MEM_START          0x00000000U
44 #define PRPMC750_PCI_MEM_END            (PRPMC750_PCI_MEM_START +       \
45                                          PRPMC750_PCI_MEM_SIZE - 1)
46
47 /* PCI I/O space mapping info */
48 #define PRPMC750_PCI_IO_SIZE            0x10000000U
49 #define PRPMC750_PROC_PCI_IO_START      PRPMC750_ISA_IO_BASE
50 #define PRPMC750_PROC_PCI_IO_END        (PRPMC750_PROC_PCI_IO_START +   \
51                                          PRPMC750_PCI_IO_SIZE - 1)
52 #define PRPMC750_PCI_IO_START           0x00000000U
53 #define PRPMC750_PCI_IO_END             (PRPMC750_PCI_IO_START +        \
54                                          PRPMC750_PCI_IO_SIZE - 1)
55
56 /* System memory mapping info */
57 #define PRPMC750_PCI_DRAM_OFFSET        PREP_PCI_DRAM_OFFSET
58 #define PRPMC750_PCI_PHY_MEM_OFFSET     (PRPMC750_ISA_MEM_BASE-PRPMC750_PCI_MEM_START)
59
60 /* Register address definitions */
61 #define PRPMC750_HAWK_SMC_BASE          0xfef80000U
62 #define PRPMC750_HAWK_PPC_REG_BASE      0xfeff0000U
63
64 #define PRPMC750_BASE_BAUD              1843200
65 #define PRPMC750_SERIAL_0               0xfef88000
66 #define PRPMC750_SERIAL_0_DLL           (PRPMC750_SERIAL_0 + (UART_DLL << 4))
67 #define PRPMC750_SERIAL_0_DLM           (PRPMC750_SERIAL_0 + (UART_DLM << 4))
68 #define PRPMC750_SERIAL_0_LCR           (PRPMC750_SERIAL_0 + (UART_LCR << 4))
69
70 #define PRPMC750_STATUS_REG             0xfef88080
71 #define PRPMC750_BAUDOUT_MASK           0x02
72 #define PRPMC750_MONARCH_MASK           0x01
73
74 #define PRPMC750_MODRST_REG             0xfef880a0
75 #define PRPMC750_MODRST_MASK            0x01
76
77 #define PRPMC750_PIRQ_REG               0xfef880b0
78 #define PRPMC750_SEL1_MASK              0x02
79 #define PRPMC750_SEL0_MASK              0x01
80
81 #define PRPMC750_TBEN_REG               0xfef880c0
82 #define PRPMC750_TBEN_MASK              0x01
83
84 #endif                          /* __ASM_PRPMC750_H__ */
85 #endif                          /* __KERNEL__ */