Go to the documentation of this file.
13 #ifndef __PPC_KERNEL_MPC10X_H
14 #define __PPC_KERNEL_MPC10X_H
17 #include <asm/pci-bridge.h>
40 #define MPC10X_BRIDGE_106 ((PCI_DEVICE_ID_MOTOROLA_MPC106 << 16) | \
41 PCI_VENDOR_ID_MOTOROLA)
42 #define MPC10X_BRIDGE_8240 ((0x0003 << 16) | PCI_VENDOR_ID_MOTOROLA)
43 #define MPC10X_BRIDGE_107 ((0x0004 << 16) | PCI_VENDOR_ID_MOTOROLA)
44 #define MPC10X_BRIDGE_8245 ((0x0006 << 16) | PCI_VENDOR_ID_MOTOROLA)
47 #define MPC10X_MEM_MAP_A 1
48 #define MPC10X_MEM_MAP_B 2
51 #define MPC10X_MAPA_CNFG_ADDR 0x80000cf8
52 #define MPC10X_MAPA_CNFG_DATA 0x80000cfc
54 #define MPC10X_MAPA_ISA_IO_BASE 0x80000000
55 #define MPC10X_MAPA_ISA_MEM_BASE 0xc0000000
56 #define MPC10X_MAPA_DRAM_OFFSET 0x80000000
58 #define MPC10X_MAPA_PCI_INTACK_ADDR 0xbffffff0
59 #define MPC10X_MAPA_PCI_IO_START 0x00000000
60 #define MPC10X_MAPA_PCI_IO_END (0x00800000 - 1)
61 #define MPC10X_MAPA_PCI_MEM_START 0x00000000
62 #define MPC10X_MAPA_PCI_MEM_END (0x20000000 - 1)
64 #define MPC10X_MAPA_PCI_MEM_OFFSET (MPC10X_MAPA_ISA_MEM_BASE - \
65 MPC10X_MAPA_PCI_MEM_START)
68 #define MPC10X_MAPB_CNFG_ADDR 0xfec00000
69 #define MPC10X_MAPB_CNFG_DATA 0xfee00000
71 #define MPC10X_MAPB_ISA_IO_BASE 0xfe000000
72 #define MPC10X_MAPB_ISA_MEM_BASE 0x80000000
73 #define MPC10X_MAPB_DRAM_OFFSET 0x00000000
75 #define MPC10X_MAPB_PCI_INTACK_ADDR 0xfef00000
76 #define MPC10X_MAPB_PCI_IO_START 0x00000000
77 #define MPC10X_MAPB_PCI_IO_END (0x00c00000 - 1)
78 #define MPC10X_MAPB_PCI_MEM_START 0x80000000
79 #define MPC10X_MAPB_PCI_MEM_END (0xc0000000 - 1)
81 #define MPC10X_MAPB_PCI_MEM_OFFSET (MPC10X_MAPB_ISA_MEM_BASE - \
82 MPC10X_MAPB_PCI_MEM_START)
85 #define MPC10X_SETUP_HOSE(hose, map) { \
86 (hose)->pci_mem_offset = MPC10X_MAP##map##_PCI_MEM_OFFSET; \
87 (hose)->io_space.start = MPC10X_MAP##map##_PCI_IO_START; \
88 (hose)->io_space.end = MPC10X_MAP##map##_PCI_IO_END; \
89 (hose)->mem_space.start = MPC10X_MAP##map##_PCI_MEM_START; \
90 (hose)->mem_space.end = MPC10X_MAP##map##_PCI_MEM_END; \
91 (hose)->io_base_virt = (void *)MPC10X_MAP##map##_ISA_IO_BASE; \
96 #define MPC10X_CFG_PIR_REG 0x09
97 #define MPC10X_CFG_PIR_HOST_BRIDGE 0x00
98 #define MPC10X_CFG_PIR_AGENT 0x01
100 #define MPC10X_CFG_EUMBBAR 0x78
102 #define MPC10X_CFG_PICR1_REG 0xa8
103 #define MPC10X_CFG_PICR1_ADDR_MAP_MASK 0x00010000
104 #define MPC10X_CFG_PICR1_ADDR_MAP_A 0x00010000
105 #define MPC10X_CFG_PICR1_ADDR_MAP_B 0x00000000
106 #define MPC10X_CFG_PICR1_SPEC_PCI_RD 0x00000004
107 #define MPC10X_CFG_PICR1_ST_GATH_EN 0x00000040
109 #define MPC10X_CFG_PICR2_REG 0xac
110 #define MPC10X_CFG_PICR2_COPYBACK_OPT 0x00000001
112 #define MPC10X_CFG_MAPB_OPTIONS_REG 0xe0
113 #define MPC10X_CFG_MAPB_OPTIONS_CFAE 0x80
114 #define MPC10X_CFG_MAPB_OPTIONS_PFAE 0x40
115 #define MPC10X_CFG_MAPB_OPTIONS_DR 0x20
116 #define MPC10X_CFG_MAPB_OPTIONS_PCICH 0x08
117 #define MPC10X_CFG_MAPB_OPTIONS_PROCCH 0x04
120 #define MPC10X_MCTLR_MEM_START_1 0x80
121 #define MPC10X_MCTLR_MEM_START_2 0x84
122 #define MPC10X_MCTLR_EXT_MEM_START_1 0x88
123 #define MPC10X_MCTLR_EXT_MEM_START_2 0x8c
125 #define MPC10X_MCTLR_MEM_END_1 0x90
126 #define MPC10X_MCTLR_MEM_END_2 0x94
127 #define MPC10X_MCTLR_EXT_MEM_END_1 0x98
128 #define MPC10X_MCTLR_EXT_MEM_END_2 0x9c
130 #define MPC10X_MCTLR_MEM_BANK_ENABLES 0xa0
133 #define MPC10X_EUMB_SIZE 0x00100000
135 #define MPC10X_EUMB_MU_OFFSET 0x00000000
136 #define MPC10X_EUMB_MU_SIZE 0x00001000
137 #define MPC10X_EUMB_DMA_OFFSET 0x00001000
138 #define MPC10X_EUMB_DMA_SIZE 0x00001000
139 #define MPC10X_EUMB_ATU_OFFSET 0x00002000
140 #define MPC10X_EUMB_ATU_SIZE 0x00001000
141 #define MPC10X_EUMB_I2C_OFFSET 0x00003000
142 #define MPC10X_EUMB_I2C_SIZE 0x00001000
143 #define MPC10X_EUMB_DUART_OFFSET 0x00004000
144 #define MPC10X_EUMB_DUART_SIZE 0x00001000
145 #define MPC10X_EUMB_EPIC_OFFSET 0x00040000
146 #define MPC10X_EUMB_EPIC_SIZE 0x00030000
147 #define MPC10X_EUMB_PM_OFFSET 0x000fe000
148 #define MPC10X_EUMB_PM_SIZE 0x00001000
149 #define MPC10X_EUMB_WP_OFFSET 0x000ff000
150 #define MPC10X_EUMB_WP_SIZE 0x00001000
157 #define MPC10X_MAPA_EUMB_BASE (ioremap_base - MPC10X_EUMB_SIZE)
158 #define MPC10X_MAPB_EUMB_BASE MPC10X_MAPA_EUMB_BASE
172 uint phys_eumb_base);