Jon Loeliger | 5c8aa97 | 2006-04-26 17:58:56 -0500 | [diff] [blame] | 1 | /* |
| 2 | * MPC86xx Internal Memory Map |
| 3 | * |
Kumar Gala | 3cdbd00 | 2011-01-04 17:07:54 -0600 | [diff] [blame] | 4 | * Copyright 2004, 2011 Freescale Semiconductor |
Jon Loeliger | 5c8aa97 | 2006-04-26 17:58:56 -0500 | [diff] [blame] | 5 | * Jeff Brown (Jeffrey@freescale.com) |
| 6 | * Srikanth Srinivasan (srikanth.srinivasan@freescale.com) |
| 7 | * |
| 8 | */ |
| 9 | |
| 10 | #ifndef __IMMAP_86xx__ |
| 11 | #define __IMMAP_86xx__ |
| 12 | |
York Sun | a21803d | 2013-11-18 10:29:32 -0800 | [diff] [blame] | 13 | #include <fsl_immap.h> |
Jon Loeliger | 3ec4c08 | 2006-10-20 17:16:35 -0500 | [diff] [blame] | 14 | #include <asm/types.h> |
Peter Tyser | 4c82e72 | 2009-05-21 12:09:59 -0500 | [diff] [blame] | 15 | #include <asm/fsl_dma.h> |
Becky Bruce | 0d4cee1 | 2010-06-17 11:37:20 -0500 | [diff] [blame] | 16 | #include <asm/fsl_lbc.h> |
Jon Loeliger | 3ec4c08 | 2006-10-20 17:16:35 -0500 | [diff] [blame] | 17 | #include <asm/fsl_i2c.h> |
Jon Loeliger | 5c8aa97 | 2006-04-26 17:58:56 -0500 | [diff] [blame] | 18 | |
| 19 | /* Local-Access Registers and MCM Registers(0x0000-0x2000) */ |
| 20 | typedef struct ccsr_local_mcm { |
| 21 | uint ccsrbar; /* 0x0 - Control Configuration Status Registers Base Address Register */ |
| 22 | char res1[4]; |
| 23 | uint altcbar; /* 0x8 - Alternate Configuration Base Address Register */ |
| 24 | char res2[4]; |
| 25 | uint altcar; /* 0x10 - Alternate Configuration Attribute Register */ |
| 26 | char res3[12]; |
| 27 | uint bptr; /* 0x20 - Boot Page Translation Register */ |
| 28 | char res4[3044]; |
| 29 | uint lawbar0; /* 0xc08 - Local Access Window 0 Base Address Register */ |
| 30 | char res5[4]; |
| 31 | uint lawar0; /* 0xc10 - Local Access Window 0 Attributes Register */ |
| 32 | char res6[20]; |
| 33 | uint lawbar1; /* 0xc28 - Local Access Window 1 Base Address Register */ |
| 34 | char res7[4]; |
| 35 | uint lawar1; /* 0xc30 - Local Access Window 1 Attributes Register */ |
| 36 | char res8[20]; |
| 37 | uint lawbar2; /* 0xc48 - Local Access Window 2 Base Address Register */ |
| 38 | char res9[4]; |
| 39 | uint lawar2; /* 0xc50 - Local Access Window 2 Attributes Register */ |
| 40 | char res10[20]; |
| 41 | uint lawbar3; /* 0xc68 - Local Access Window 3 Base Address Register */ |
| 42 | char res11[4]; |
| 43 | uint lawar3; /* 0xc70 - Local Access Window 3 Attributes Register */ |
| 44 | char res12[20]; |
| 45 | uint lawbar4; /* 0xc88 - Local Access Window 4 Base Address Register */ |
| 46 | char res13[4]; |
| 47 | uint lawar4; /* 0xc90 - Local Access Window 4 Attributes Register */ |
| 48 | char res14[20]; |
| 49 | uint lawbar5; /* 0xca8 - Local Access Window 5 Base Address Register */ |
| 50 | char res15[4]; |
| 51 | uint lawar5; /* 0xcb0 - Local Access Window 5 Attributes Register */ |
| 52 | char res16[20]; |
| 53 | uint lawbar6; /* 0xcc8 - Local Access Window 6 Base Address Register */ |
| 54 | char res17[4]; |
| 55 | uint lawar6; /* 0xcd0 - Local Access Window 6 Attributes Register */ |
| 56 | char res18[20]; |
| 57 | uint lawbar7; /* 0xce8 - Local Access Window 7 Base Address Register */ |
| 58 | char res19[4]; |
| 59 | uint lawar7; /* 0xcf0 - Local Access Window 7 Attributes Register */ |
Jon Loeliger | 20836d4 | 2006-05-19 13:22:44 -0500 | [diff] [blame] | 60 | char res20[20]; |
Jon Loeliger | 5c8aa97 | 2006-04-26 17:58:56 -0500 | [diff] [blame] | 61 | uint lawbar8; /* 0xd08 - Local Access Window 8 Base Address Register */ |
| 62 | char res21[4]; |
| 63 | uint lawar8; /* 0xd10 - Local Access Window 8 Attributes Register */ |
| 64 | char res22[20]; |
| 65 | uint lawbar9; /* 0xd28 - Local Access Window 9 Base Address Register */ |
| 66 | char res23[4]; |
Jon Loeliger | fcccf8a | 2006-10-10 17:16:04 -0500 | [diff] [blame] | 67 | uint lawar9; /* 0xd30 - Local Access Window 9 Attributes Register */ |
Jon Loeliger | 20836d4 | 2006-05-19 13:22:44 -0500 | [diff] [blame] | 68 | char res24[716]; |
Jon Loeliger | 5c8aa97 | 2006-04-26 17:58:56 -0500 | [diff] [blame] | 69 | uint abcr; /* 0x1000 - MCM CCB Address Configuration Register */ |
| 70 | char res25[4]; |
Jon Loeliger | fcccf8a | 2006-10-10 17:16:04 -0500 | [diff] [blame] | 71 | uint dbcr; /* 0x1008 - MCM MPX data bus Configuration Register */ |
| 72 | char res26[4]; |
| 73 | uint pcr; /* 0x1010 - MCM CCB Port Configuration Register */ |
| 74 | char res27[44]; |
| 75 | uint hpmr0; /* 0x1040 - MCM HPM Threshold Count Register 0 */ |
| 76 | uint hpmr1; /* 0x1044 - MCM HPM Threshold Count Register 1 */ |
| 77 | uint hpmr2; /* 0x1048 - MCM HPM Threshold Count Register 2 */ |
| 78 | uint hpmr3; /* 0x104c - MCM HPM Threshold Count Register 3 */ |
| 79 | char res28[16]; |
| 80 | uint hpmr4; /* 0x1060 - MCM HPM Threshold Count Register 4 */ |
| 81 | uint hpmr5; /* 0x1064 - MCM HPM Threshold Count Register 5 */ |
| 82 | uint hpmccr; /* 0x1068 - MCM HPM Cycle Count Register */ |
| 83 | char res29[3476]; |
Jon Loeliger | 5c8aa97 | 2006-04-26 17:58:56 -0500 | [diff] [blame] | 84 | uint edr; /* 0x1e00 - MCM Error Detect Register */ |
| 85 | char res30[4]; |
| 86 | uint eer; /* 0x1e08 - MCM Error Enable Register */ |
| 87 | uint eatr; /* 0x1e0c - MCM Error Attributes Capture Register */ |
| 88 | uint eladr; /* 0x1e10 - MCM Error Low Address Capture Register */ |
Jon Loeliger | fcccf8a | 2006-10-10 17:16:04 -0500 | [diff] [blame] | 89 | uint ehadr; /* 0x1e14 - MCM Error High Address Capture Register */ |
Jon Loeliger | 5c8aa97 | 2006-04-26 17:58:56 -0500 | [diff] [blame] | 90 | char res31[488]; |
| 91 | } ccsr_local_mcm_t; |
| 92 | |
Jon Loeliger | 5c8aa97 | 2006-04-26 17:58:56 -0500 | [diff] [blame] | 93 | /* Daul I2C Registers(0x3000-0x4000) */ |
Jon Loeliger | 5c8aa97 | 2006-04-26 17:58:56 -0500 | [diff] [blame] | 94 | typedef struct ccsr_i2c { |
mario.six@gdsys.cc | 7d43b4e | 2016-04-25 08:31:01 +0200 | [diff] [blame] | 95 | struct fsl_i2c_base i2c[2]; |
| 96 | u8 res[4096 - 2 * sizeof(struct fsl_i2c_base)]; |
Jon Loeliger | 5c8aa97 | 2006-04-26 17:58:56 -0500 | [diff] [blame] | 97 | } ccsr_i2c_t; |
| 98 | |
| 99 | /* DUART Registers(0x4000-0x5000) */ |
| 100 | typedef struct ccsr_duart { |
| 101 | char res1[1280]; |
| 102 | u_char urbr1_uthr1_udlb1;/* 0x4500 - URBR1, UTHR1, UDLB1 with the same address offset of 0x04500 */ |
| 103 | u_char uier1_udmb1; /* 0x4501 - UIER1, UDMB1 with the same address offset of 0x04501 */ |
| 104 | u_char uiir1_ufcr1_uafr1;/* 0x4502 - UIIR1, UFCR1, UAFR1 with the same address offset of 0x04502 */ |
| 105 | u_char ulcr1; /* 0x4503 - UART1 Line Control Register */ |
| 106 | u_char umcr1; /* 0x4504 - UART1 Modem Control Register */ |
| 107 | u_char ulsr1; /* 0x4505 - UART1 Line Status Register */ |
| 108 | u_char umsr1; /* 0x4506 - UART1 Modem Status Register */ |
| 109 | u_char uscr1; /* 0x4507 - UART1 Scratch Register */ |
| 110 | char res2[8]; |
| 111 | u_char udsr1; /* 0x4510 - UART1 DMA Status Register */ |
| 112 | char res3[239]; |
| 113 | u_char urbr2_uthr2_udlb2;/* 0x4600 - URBR2, UTHR2, UDLB2 with the same address offset of 0x04600 */ |
| 114 | u_char uier2_udmb2; /* 0x4601 - UIER2, UDMB2 with the same address offset of 0x04601 */ |
| 115 | u_char uiir2_ufcr2_uafr2;/* 0x4602 - UIIR2, UFCR2, UAFR2 with the same address offset of 0x04602 */ |
| 116 | u_char ulcr2; /* 0x4603 - UART2 Line Control Register */ |
| 117 | u_char umcr2; /* 0x4604 - UART2 Modem Control Register */ |
| 118 | u_char ulsr2; /* 0x4605 - UART2 Line Status Register */ |
| 119 | u_char umsr2; /* 0x4606 - UART2 Modem Status Register */ |
| 120 | u_char uscr2; /* 0x4607 - UART2 Scratch Register */ |
| 121 | char res4[8]; |
| 122 | u_char udsr2; /* 0x4610 - UART2 DMA Status Register */ |
| 123 | char res5[2543]; |
| 124 | } ccsr_duart_t; |
| 125 | |
Jon Loeliger | 5c8aa97 | 2006-04-26 17:58:56 -0500 | [diff] [blame] | 126 | /* PCI Express Registers(0x8000-0x9000) and (0x9000-0xA000) */ |
| 127 | typedef struct ccsr_pex { |
| 128 | uint cfg_addr; /* 0x8000 - PEX Configuration Address Register */ |
| 129 | uint cfg_data; /* 0x8004 - PEX Configuration Data Register */ |
Jon Loeliger | fcccf8a | 2006-10-10 17:16:04 -0500 | [diff] [blame] | 130 | char res1[4]; |
Jon Loeliger | 5c8aa97 | 2006-04-26 17:58:56 -0500 | [diff] [blame] | 131 | uint out_comp_to; /* 0x800C - PEX Outbound Completion Timeout Register */ |
| 132 | char res2[16]; |
| 133 | uint pme_msg_det; /* 0x8020 - PEX PME & message detect register */ |
| 134 | uint pme_msg_int_en; /* 0x8024 - PEX PME & message interrupt enable register */ |
Jin Zhengxiong-R64188 | 377d596 | 2006-06-27 18:11:54 +0800 | [diff] [blame] | 135 | uint pme_msg_dis; /* 0x8028 - PEX PME & message disable register */ |
| 136 | uint pm_command; /* 0x802c - PEX PM Command register */ |
| 137 | char res3[3016]; |
| 138 | uint block_rev1; /* 0x8bf8 - PEX Block Revision register 1 */ |
| 139 | uint block_rev2; /* 0x8bfc - PEX Block Revision register 2 */ |
Jon Loeliger | 5c8aa97 | 2006-04-26 17:58:56 -0500 | [diff] [blame] | 140 | uint potar0; /* 0x8c00 - PEX Outbound Transaction Address Register 0 */ |
| 141 | uint potear0; /* 0x8c04 - PEX Outbound Translation Extended Address Register 0 */ |
Jin Zhengxiong-R64188 | 377d596 | 2006-06-27 18:11:54 +0800 | [diff] [blame] | 142 | char res4[8]; |
Jon Loeliger | 5c8aa97 | 2006-04-26 17:58:56 -0500 | [diff] [blame] | 143 | uint powar0; /* 0x8c10 - PEX Outbound Window Attributes Register 0 */ |
Jin Zhengxiong-R64188 | 377d596 | 2006-06-27 18:11:54 +0800 | [diff] [blame] | 144 | char res5[12]; |
Jon Loeliger | 5c8aa97 | 2006-04-26 17:58:56 -0500 | [diff] [blame] | 145 | uint potar1; /* 0x8c20 - PEX Outbound Transaction Address Register 1 */ |
| 146 | uint potear1; /* 0x8c24 - PEX Outbound Translation Extended Address Register 1 */ |
| 147 | uint powbar1; /* 0x8c28 - PEX Outbound Window Base Address Register 1 */ |
Jin Zhengxiong-R64188 | 377d596 | 2006-06-27 18:11:54 +0800 | [diff] [blame] | 148 | char res6[4]; |
Jon Loeliger | 5c8aa97 | 2006-04-26 17:58:56 -0500 | [diff] [blame] | 149 | uint powar1; /* 0x8c30 - PEX Outbound Window Attributes Register 1 */ |
Jin Zhengxiong-R64188 | 377d596 | 2006-06-27 18:11:54 +0800 | [diff] [blame] | 150 | char res7[12]; |
Jon Loeliger | 5c8aa97 | 2006-04-26 17:58:56 -0500 | [diff] [blame] | 151 | uint potar2; /* 0x8c40 - PEX Outbound Transaction Address Register 2 */ |
| 152 | uint potear2; /* 0x8c44 - PEX Outbound Translation Extended Address Register 2 */ |
| 153 | uint powbar2; /* 0x8c48 - PEX Outbound Window Base Address Register 2 */ |
Jin Zhengxiong-R64188 | 377d596 | 2006-06-27 18:11:54 +0800 | [diff] [blame] | 154 | char res8[4]; |
Jon Loeliger | 5c8aa97 | 2006-04-26 17:58:56 -0500 | [diff] [blame] | 155 | uint powar2; /* 0x8c50 - PEX Outbound Window Attributes Register 2 */ |
Jin Zhengxiong-R64188 | 377d596 | 2006-06-27 18:11:54 +0800 | [diff] [blame] | 156 | char res9[12]; |
Jon Loeliger | 5c8aa97 | 2006-04-26 17:58:56 -0500 | [diff] [blame] | 157 | uint potar3; /* 0x8c60 - PEX Outbound Transaction Address Register 3 */ |
| 158 | uint potear3; /* 0x8c64 - PEX Outbound Translation Extended Address Register 3 */ |
| 159 | uint powbar3; /* 0x8c68 - PEX Outbound Window Base Address Register 3 */ |
Jin Zhengxiong-R64188 | 377d596 | 2006-06-27 18:11:54 +0800 | [diff] [blame] | 160 | char res10[4]; |
Jon Loeliger | 5c8aa97 | 2006-04-26 17:58:56 -0500 | [diff] [blame] | 161 | uint powar3; /* 0x8c70 - PEX Outbound Window Attributes Register 3 */ |
Jin Zhengxiong-R64188 | 377d596 | 2006-06-27 18:11:54 +0800 | [diff] [blame] | 162 | char res11[12]; |
Jon Loeliger | 5c8aa97 | 2006-04-26 17:58:56 -0500 | [diff] [blame] | 163 | uint potar4; /* 0x8c80 - PEX Outbound Transaction Address Register 4 */ |
| 164 | uint potear4; /* 0x8c84 - PEX Outbound Translation Extended Address Register 4 */ |
| 165 | uint powbar4; /* 0x8c88 - PEX Outbound Window Base Address Register 4 */ |
Jin Zhengxiong-R64188 | 377d596 | 2006-06-27 18:11:54 +0800 | [diff] [blame] | 166 | char res12[4]; |
Jon Loeliger | 5c8aa97 | 2006-04-26 17:58:56 -0500 | [diff] [blame] | 167 | uint powar4; /* 0x8c90 - PEX Outbound Window Attributes Register 4 */ |
Jin Zhengxiong-R64188 | 377d596 | 2006-06-27 18:11:54 +0800 | [diff] [blame] | 168 | char res13[12]; |
| 169 | char res14[256]; |
Jon Loeliger | 5c8aa97 | 2006-04-26 17:58:56 -0500 | [diff] [blame] | 170 | uint pitar3; /* 0x8da0 - PEX Inbound Translation Address Register 3 */ |
| 171 | char res15[4]; |
| 172 | uint piwbar3; /* 0x8da8 - PEX Inbound Window Base Address Register 3 */ |
| 173 | uint piwbear3; /* 0x8dac - PEX Inbound Window Base Extended Address Register 3 */ |
| 174 | uint piwar3; /* 0x8db0 - PEX Inbound Window Attributes Register 3 */ |
| 175 | char res16[12]; |
| 176 | uint pitar2; /* 0x8dc0 - PEX Inbound Translation Address Register 2 */ |
Jon Loeliger | fcccf8a | 2006-10-10 17:16:04 -0500 | [diff] [blame] | 177 | char res17[4]; |
Jon Loeliger | 5c8aa97 | 2006-04-26 17:58:56 -0500 | [diff] [blame] | 178 | uint piwbar2; /* 0x8dc8 - PEX Inbound Window Base Address Register 2 */ |
| 179 | uint piwbear2; /* 0x8dcc - PEX Inbound Window Base Extended Address Register 2 */ |
| 180 | uint piwar2; /* 0x8dd0 - PEX Inbound Window Attributes Register 2 */ |
| 181 | char res18[12]; |
| 182 | uint pitar1; /* 0x8de0 - PEX Inbound Translation Address Register 1 */ |
Jin Zhengxiong-R64188 | 377d596 | 2006-06-27 18:11:54 +0800 | [diff] [blame] | 183 | char res19[4]; |
Jon Loeliger | 5c8aa97 | 2006-04-26 17:58:56 -0500 | [diff] [blame] | 184 | uint piwbar1; /* 0x8de8 - PEX Inbound Window Base Address Register 1 */ |
Jin Zhengxiong-R64188 | 377d596 | 2006-06-27 18:11:54 +0800 | [diff] [blame] | 185 | uint piwbear1; |
Jon Loeliger | 5c8aa97 | 2006-04-26 17:58:56 -0500 | [diff] [blame] | 186 | uint piwar1; /* 0x8df0 - PEX Inbound Window Attributes Register 1 */ |
Jin Zhengxiong-R64188 | 377d596 | 2006-06-27 18:11:54 +0800 | [diff] [blame] | 187 | char res20[12]; |
Jon Loeliger | 5c8aa97 | 2006-04-26 17:58:56 -0500 | [diff] [blame] | 188 | uint pedr; /* 0x8e00 - PEX Error Detect Register */ |
Jin Zhengxiong-R64188 | 377d596 | 2006-06-27 18:11:54 +0800 | [diff] [blame] | 189 | char res21[4]; |
| 190 | uint peer; /* 0x8e08 - PEX Error Interrupt Enable Register */ |
| 191 | char res22[4]; |
| 192 | uint pecdr; /* 0x8e10 - PEX Error Disable Register */ |
| 193 | char res23[12]; |
| 194 | uint peer_stat; /* 0x8e20 - PEX Error Capture Status Register */ |
| 195 | char res24[4]; |
| 196 | uint perr_cap0; /* 0x8e28 - PEX Error Capture Register 0 */ |
| 197 | uint perr_cap1; /* 0x8e2c - PEX Error Capture Register 1 */ |
| 198 | uint perr_cap2; /* 0x8e30 - PEX Error Capture Register 2 */ |
| 199 | uint perr_cap3; /* 0x8e34 - PEX Error Capture Register 3 */ |
| 200 | char res25[452]; |
| 201 | char res26[4]; |
Jon Loeliger | 5c8aa97 | 2006-04-26 17:58:56 -0500 | [diff] [blame] | 202 | } ccsr_pex_t; |
| 203 | |
| 204 | /* Hyper Transport Register Block (0xA000-0xB000) */ |
| 205 | typedef struct ccsr_ht { |
Jon Loeliger | fcccf8a | 2006-10-10 17:16:04 -0500 | [diff] [blame] | 206 | uint hcfg_addr; /* 0xa000 - HT Configuration Address register */ |
| 207 | uint hcfg_data; /* 0xa004 - HT Configuration Data register */ |
Jon Loeliger | 5c8aa97 | 2006-04-26 17:58:56 -0500 | [diff] [blame] | 208 | char res1[3064]; |
Jon Loeliger | fcccf8a | 2006-10-10 17:16:04 -0500 | [diff] [blame] | 209 | uint howtar0; /* 0xac00 - HT Outbound Window 0 Translation register */ |
Jon Loeliger | 5c8aa97 | 2006-04-26 17:58:56 -0500 | [diff] [blame] | 210 | char res2[12]; |
Jon Loeliger | fcccf8a | 2006-10-10 17:16:04 -0500 | [diff] [blame] | 211 | uint howar0; /* 0xac10 - HT Outbound Window 0 Attributes register */ |
| 212 | char res3[12]; |
| 213 | uint howtar1; /* 0xac20 - HT Outbound Window 1 Translation register */ |
| 214 | char res4[4]; |
| 215 | uint howbar1; /* 0xac28 - HT Outbound Window 1 Base Address register */ |
| 216 | char res5[4]; |
| 217 | uint howar1; /* 0xac30 - HT Outbound Window 1 Attributes register */ |
| 218 | char res6[12]; |
| 219 | uint howtar2; /* 0xac40 - HT Outbound Window 2 Translation register */ |
| 220 | char res7[4]; |
| 221 | uint howbar2; /* 0xac48 - HT Outbound Window 2 Base Address register */ |
| 222 | char res8[4]; |
| 223 | uint howar2; /* 0xac50 - HT Outbound Window 2 Attributes register */ |
| 224 | char res9[12]; |
| 225 | uint howtar3; /* 0xac60 - HT Outbound Window 3 Translation register */ |
| 226 | char res10[4]; |
| 227 | uint howbar3; /* 0xac68 - HT Outbound Window 3 Base Address register */ |
| 228 | char res11[4]; |
| 229 | uint howar3; /* 0xac70 - HT Outbound Window 3 Attributes register */ |
| 230 | char res12[12]; |
| 231 | uint howtar4; /* 0xac80 - HT Outbound Window 4 Translation register */ |
| 232 | char res13[4]; |
| 233 | uint howbar4; /* 0xac88 - HT Outbound Window 4 Base Address register */ |
| 234 | char res14[4]; |
| 235 | uint howar4; /* 0xac90 - HT Outbound Window 4 Attributes register */ |
| 236 | char res15[236]; |
| 237 | uint hiwtar4; /* 0xad80 - HT Inbound Window 4 Translation register */ |
| 238 | char res16[4]; |
| 239 | uint hiwbar4; /* 0xad88 - HT Inbound Window 4 Base Address register */ |
| 240 | char res17[4]; |
| 241 | uint hiwar4; /* 0xad90 - HT Inbound Window 4 Attributes register */ |
| 242 | char res18[12]; |
| 243 | uint hiwtar3; /* 0xada0 - HT Inbound Window 3 Translation register */ |
| 244 | char res19[4]; |
| 245 | uint hiwbar3; /* 0xada8 - HT Inbound Window 3 Base Address register */ |
| 246 | char res20[4]; |
| 247 | uint hiwar3; /* 0xadb0 - HT Inbound Window 3 Attributes register */ |
| 248 | char res21[12]; |
| 249 | uint hiwtar2; /* 0xadc0 - HT Inbound Window 2 Translation register */ |
| 250 | char res22[4]; |
| 251 | uint hiwbar2; /* 0xadc8 - HT Inbound Window 2 Base Address register */ |
| 252 | char res23[4]; |
| 253 | uint hiwar2; /* 0xadd0 - HT Inbound Window 2 Attributes register */ |
| 254 | char res24[12]; |
| 255 | uint hiwtar1; /* 0xade0 - HT Inbound Window 1 Translation register */ |
| 256 | char res25[4]; |
| 257 | uint hiwbar1; /* 0xade8 - HT Inbound Window 1 Base Address register */ |
| 258 | char res26[4]; |
| 259 | uint hiwar1; /* 0xadf0 - HT Inbound Window 1 Attributes register */ |
| 260 | char res27[12]; |
| 261 | uint hedr; /* 0xae00 - HT Error Detect register */ |
| 262 | char res28[4]; |
| 263 | uint heier; /* 0xae08 - HT Error Interrupt Enable register */ |
| 264 | char res29[4]; |
| 265 | uint hecdr; /* 0xae10 - HT Error Capture Disbale register */ |
| 266 | char res30[12]; |
| 267 | uint hecsr; /* 0xae20 - HT Error Capture Status register */ |
| 268 | char res31[4]; |
| 269 | uint hec0; /* 0xae28 - HT Error Capture 0 register */ |
| 270 | uint hec1; /* 0xae2c - HT Error Capture 1 register */ |
| 271 | uint hec2; /* 0xae30 - HT Error Capture 2 register */ |
| 272 | char res32[460]; |
Jon Loeliger | 5c8aa97 | 2006-04-26 17:58:56 -0500 | [diff] [blame] | 273 | } ccsr_ht_t; |
| 274 | |
| 275 | /* DMA Registers(0x2_1000-0x2_2000) */ |
| 276 | typedef struct ccsr_dma { |
| 277 | char res1[256]; |
Peter Tyser | 4c82e72 | 2009-05-21 12:09:59 -0500 | [diff] [blame] | 278 | struct fsl_dma dma[4]; |
Jon Loeliger | 5c8aa97 | 2006-04-26 17:58:56 -0500 | [diff] [blame] | 279 | uint dgsr; /* 0x21300 - DMA General Status Register */ |
Peter Tyser | 4c82e72 | 2009-05-21 12:09:59 -0500 | [diff] [blame] | 280 | char res2[3324]; |
Jon Loeliger | 5c8aa97 | 2006-04-26 17:58:56 -0500 | [diff] [blame] | 281 | } ccsr_dma_t; |
| 282 | |
| 283 | /* tsec1-4: 24000-28000 */ |
| 284 | typedef struct ccsr_tsec { |
Wolfgang Denk | a1be476 | 2008-05-20 16:00:29 +0200 | [diff] [blame] | 285 | uint id; /* 0x24000 - Controller ID Register */ |
Jon Loeliger | 5c8aa97 | 2006-04-26 17:58:56 -0500 | [diff] [blame] | 286 | char res1[12]; |
| 287 | uint ievent; /* 0x24010 - Interrupt Event Register */ |
| 288 | uint imask; /* 0x24014 - Interrupt Mask Register */ |
| 289 | uint edis; /* 0x24018 - Error Disabled Register */ |
| 290 | char res2[4]; |
| 291 | uint ecntrl; /* 0x24020 - Ethernet Control Register */ |
Jon Loeliger | fcccf8a | 2006-10-10 17:16:04 -0500 | [diff] [blame] | 292 | char res2_1[4]; |
Jon Loeliger | 5c8aa97 | 2006-04-26 17:58:56 -0500 | [diff] [blame] | 293 | uint ptv; /* 0x24028 - Pause Time Value Register */ |
| 294 | uint dmactrl; /* 0x2402c - DMA Control Register */ |
| 295 | uint tbipa; /* 0x24030 - TBI PHY Address Register */ |
| 296 | char res3[88]; |
| 297 | uint fifo_tx_thr; /* 0x2408c - FIFO transmit threshold register */ |
| 298 | char res4[8]; |
| 299 | uint fifo_tx_starve; /* 0x24098 - FIFO transmit starve register */ |
| 300 | uint fifo_tx_starve_shutoff;/* 0x2409c - FIFO transmit starve shutoff register */ |
Jon Loeliger | fcccf8a | 2006-10-10 17:16:04 -0500 | [diff] [blame] | 301 | char res4_1[4]; |
| 302 | uint fifo_rx_pause; /* 0x240a4 - FIFO receive pause threshold register */ |
| 303 | uint fifo_rx_alarm; /* 0x240a8 - FIFO receive alarm threshold register */ |
Jon Loeliger | 5c8aa97 | 2006-04-26 17:58:56 -0500 | [diff] [blame] | 304 | char res5[84]; |
| 305 | uint tctrl; /* 0x24100 - Transmit Control Register */ |
| 306 | uint tstat; /* 0x24104 - Transmit Status Register */ |
Jon Loeliger | fcccf8a | 2006-10-10 17:16:04 -0500 | [diff] [blame] | 307 | uint dfvlan; /* 0x24108 - Default VLAN control word */ |
| 308 | char res6[4]; |
| 309 | uint txic; /* 0x24110 - Transmit interrupt coalescing Register */ |
| 310 | uint tqueue; /* 0x24114 - Transmit Queue Control Register */ |
Jon Loeliger | 5c8aa97 | 2006-04-26 17:58:56 -0500 | [diff] [blame] | 311 | char res7[40]; |
Jon Loeliger | fcccf8a | 2006-10-10 17:16:04 -0500 | [diff] [blame] | 312 | uint tr03wt; /* 0x24140 - TxBD Rings 0-3 round-robin weightings */ |
| 313 | uint tw47wt; /* 0x24144 - TxBD Rings 4-7 round-robin weightings */ |
| 314 | char res8[52]; |
| 315 | uint tbdbph; /* 0x2417c - Transmit Data Buffer Pointer High Register */ |
| 316 | char res9[4]; |
| 317 | uint tbptr0; /* 0x24184 - Transmit Buffer Descriptor Pointer for Ring 0 */ |
| 318 | char res10[4]; |
| 319 | uint tbptr1; /* 0x2418C - Transmit Buffer Descriptor Pointer for Ring 1 */ |
| 320 | char res11[4]; |
| 321 | uint tbptr2; /* 0x24194 - Transmit Buffer Descriptor Pointer for Ring 2 */ |
| 322 | char res12[4]; |
| 323 | uint tbptr3; /* 0x2419C - Transmit Buffer Descriptor Pointer for Ring 3 */ |
| 324 | char res13[4]; |
| 325 | uint tbptr4; /* 0x241A4 - Transmit Buffer Descriptor Pointer for Ring 4 */ |
| 326 | char res14[4]; |
| 327 | uint tbptr5; /* 0x241AC - Transmit Buffer Descriptor Pointer for Ring 5 */ |
| 328 | char res15[4]; |
| 329 | uint tbptr6; /* 0x241B4 - Transmit Buffer Descriptor Pointer for Ring 6 */ |
| 330 | char res16[4]; |
| 331 | uint tbptr7; /* 0x241BC - Transmit Buffer Descriptor Pointer for Ring 7 */ |
| 332 | char res17[64]; |
Jon Loeliger | 5c8aa97 | 2006-04-26 17:58:56 -0500 | [diff] [blame] | 333 | uint tbaseh; /* 0x24200 - Transmit Descriptor Base Address High Register */ |
| 334 | uint tbase0; /* 0x24204 - Transmit Descriptor Base Address Register of Ring 0 */ |
Jon Loeliger | fcccf8a | 2006-10-10 17:16:04 -0500 | [diff] [blame] | 335 | char res18[4]; |
| 336 | uint tbase1; /* 0x2420C - Transmit Descriptor base address of Ring 1 */ |
| 337 | char res19[4]; |
| 338 | uint tbase2; /* 0x24214 - Transmit Descriptor base address of Ring 2 */ |
| 339 | char res20[4]; |
| 340 | uint tbase3; /* 0x2421C - Transmit Descriptor base address of Ring 3 */ |
| 341 | char res21[4]; |
| 342 | uint tbase4; /* 0x24224 - Transmit Descriptor base address of Ring 4 */ |
| 343 | char res22[4]; |
| 344 | uint tbase5; /* 0x2422C - Transmit Descriptor base address of Ring 5 */ |
| 345 | char res23[4]; |
| 346 | uint tbase6; /* 0x24234 - Transmit Descriptor base address of Ring 6 */ |
| 347 | char res24[4]; |
| 348 | uint tbase7; /* 0x2423C - Transmit Descriptor base address of Ring 7 */ |
| 349 | char res25[192]; |
Jon Loeliger | 5c8aa97 | 2006-04-26 17:58:56 -0500 | [diff] [blame] | 350 | uint rctrl; /* 0x24300 - Receive Control Register */ |
| 351 | uint rstat; /* 0x24304 - Receive Status Register */ |
| 352 | char res26[8]; |
Jon Loeliger | fcccf8a | 2006-10-10 17:16:04 -0500 | [diff] [blame] | 353 | uint rxic; /* 0x24310 - Receive Interrupt Coalecing Register */ |
| 354 | uint rqueue; /* 0x24314 - Receive queue control register */ |
Jon Loeliger | 5c8aa97 | 2006-04-26 17:58:56 -0500 | [diff] [blame] | 355 | char res27[24]; |
Jon Loeliger | fcccf8a | 2006-10-10 17:16:04 -0500 | [diff] [blame] | 356 | uint rbifx; /* 0x24330 - Receive bit field extract control Register */ |
| 357 | uint rqfar; /* 0x24334 - Receive queue filing table address Register */ |
| 358 | uint rqfcr; /* 0x24338 - Receive queue filing table control Register */ |
Wolfgang Denk | a1be476 | 2008-05-20 16:00:29 +0200 | [diff] [blame] | 359 | uint rqfpr; /* 0x2433c - Receive queue filing table property Register */ |
Jon Loeliger | 5c8aa97 | 2006-04-26 17:58:56 -0500 | [diff] [blame] | 360 | uint mrblr; /* 0x24340 - Maximum Receive Buffer Length Register */ |
| 361 | char res28[56]; |
Jon Loeliger | fcccf8a | 2006-10-10 17:16:04 -0500 | [diff] [blame] | 362 | uint rbdbph; /* 0x2437C - Receive Data Buffer Pointer High */ |
| 363 | char res29[4]; |
| 364 | uint rbptr0; /* 0x24384 - Receive Buffer Descriptor Pointer for Ring 0 */ |
| 365 | char res30[4]; |
| 366 | uint rbptr1; /* 0x2438C - Receive Buffer Descriptor Pointer for Ring 1 */ |
| 367 | char res31[4]; |
| 368 | uint rbptr2; /* 0x24394 - Receive Buffer Descriptor Pointer for Ring 2 */ |
| 369 | char res32[4]; |
| 370 | uint rbptr3; /* 0x2439C - Receive Buffer Descriptor Pointer for Ring 3 */ |
| 371 | char res33[4]; |
| 372 | uint rbptr4; /* 0x243A4 - Receive Buffer Descriptor Pointer for Ring 4 */ |
| 373 | char res34[4]; |
| 374 | uint rbptr5; /* 0x243AC - Receive Buffer Descriptor Pointer for Ring 5 */ |
| 375 | char res35[4]; |
| 376 | uint rbptr6; /* 0x243B4 - Receive Buffer Descriptor Pointer for Ring 6 */ |
| 377 | char res36[4]; |
| 378 | uint rbptr7; /* 0x243BC - Receive Buffer Descriptor Pointer for Ring 7 */ |
| 379 | char res37[64]; |
Jon Loeliger | 5c8aa97 | 2006-04-26 17:58:56 -0500 | [diff] [blame] | 380 | uint rbaseh; /* 0x24400 - Receive Descriptor Base Address High 0 */ |
| 381 | uint rbase0; /* 0x24404 - Receive Descriptor Base Address of Ring 0 */ |
Jon Loeliger | fcccf8a | 2006-10-10 17:16:04 -0500 | [diff] [blame] | 382 | char res38[4]; |
Jon Loeliger | 5c8aa97 | 2006-04-26 17:58:56 -0500 | [diff] [blame] | 383 | uint rbase1; /* 0x2440C - Receive Descriptor Base Address of Ring 1 */ |
Jon Loeliger | fcccf8a | 2006-10-10 17:16:04 -0500 | [diff] [blame] | 384 | char res39[4]; |
Jon Loeliger | 5c8aa97 | 2006-04-26 17:58:56 -0500 | [diff] [blame] | 385 | uint rbase2; /* 0x24414 - Receive Descriptor Base Address of Ring 2 */ |
Jon Loeliger | fcccf8a | 2006-10-10 17:16:04 -0500 | [diff] [blame] | 386 | char res40[4]; |
Jon Loeliger | 5c8aa97 | 2006-04-26 17:58:56 -0500 | [diff] [blame] | 387 | uint rbase3; /* 0x2441C - Receive Descriptor Base Address of Ring 3 */ |
Jon Loeliger | fcccf8a | 2006-10-10 17:16:04 -0500 | [diff] [blame] | 388 | char res41[4]; |
Jon Loeliger | 5c8aa97 | 2006-04-26 17:58:56 -0500 | [diff] [blame] | 389 | uint rbase4; /* 0x24424 - Receive Descriptor Base Address of Ring 4 */ |
Jon Loeliger | fcccf8a | 2006-10-10 17:16:04 -0500 | [diff] [blame] | 390 | char res42[4]; |
Jon Loeliger | 5c8aa97 | 2006-04-26 17:58:56 -0500 | [diff] [blame] | 391 | uint rbase5; /* 0x2442C - Receive Descriptor Base Address of Ring 5 */ |
Jon Loeliger | fcccf8a | 2006-10-10 17:16:04 -0500 | [diff] [blame] | 392 | char res43[4]; |
Jon Loeliger | 5c8aa97 | 2006-04-26 17:58:56 -0500 | [diff] [blame] | 393 | uint rbase6; /* 0x24434 - Receive Descriptor Base Address of Ring 6 */ |
Jon Loeliger | fcccf8a | 2006-10-10 17:16:04 -0500 | [diff] [blame] | 394 | char res44[4]; |
Jon Loeliger | 5c8aa97 | 2006-04-26 17:58:56 -0500 | [diff] [blame] | 395 | uint rbase7; /* 0x2443C - Receive Descriptor Base Address of Ring 7 */ |
Jon Loeliger | fcccf8a | 2006-10-10 17:16:04 -0500 | [diff] [blame] | 396 | char res45[192]; |
Jon Loeliger | 5c8aa97 | 2006-04-26 17:58:56 -0500 | [diff] [blame] | 397 | uint maccfg1; /* 0x24500 - MAC Configuration 1 Register */ |
| 398 | uint maccfg2; /* 0x24504 - MAC Configuration 2 Register */ |
| 399 | uint ipgifg; /* 0x24508 - Inter Packet Gap/Inter Frame Gap Register */ |
| 400 | uint hafdup; /* 0x2450c - Half Duplex Register */ |
| 401 | uint maxfrm; /* 0x24510 - Maximum Frame Length Register */ |
| 402 | char res46[12]; |
| 403 | uint miimcfg; /* 0x24520 - MII Management Configuration Register */ |
| 404 | uint miimcom; /* 0x24524 - MII Management Command Register */ |
| 405 | uint miimadd; /* 0x24528 - MII Management Address Register */ |
| 406 | uint miimcon; /* 0x2452c - MII Management Control Register */ |
| 407 | uint miimstat; /* 0x24530 - MII Management Status Register */ |
| 408 | uint miimind; /* 0x24534 - MII Management Indicator Register */ |
Jon Loeliger | fcccf8a | 2006-10-10 17:16:04 -0500 | [diff] [blame] | 409 | uint ifctrl; /* 0x24538 - Interface Contrl Register */ |
Jon Loeliger | 5c8aa97 | 2006-04-26 17:58:56 -0500 | [diff] [blame] | 410 | uint ifstat; /* 0x2453c - Interface Status Register */ |
| 411 | uint macstnaddr1; /* 0x24540 - Station Address Part 1 Register */ |
| 412 | uint macstnaddr2; /* 0x24544 - Station Address Part 2 Register */ |
Jon Loeliger | fcccf8a | 2006-10-10 17:16:04 -0500 | [diff] [blame] | 413 | uint mac01addr1; /* 0x24548 - MAC exact match address 1, part 1 */ |
| 414 | uint mac01addr2; /* 0x2454C - MAC exact match address 1, part 2 */ |
| 415 | uint mac02addr1; /* 0x24550 - MAC exact match address 2, part 1 */ |
| 416 | uint mac02addr2; /* 0x24554 - MAC exact match address 2, part 2 */ |
| 417 | uint mac03addr1; /* 0x24558 - MAC exact match address 3, part 1 */ |
| 418 | uint mac03addr2; /* 0x2455C - MAC exact match address 3, part 2 */ |
| 419 | uint mac04addr1; /* 0x24560 - MAC exact match address 4, part 1 */ |
| 420 | uint mac04addr2; /* 0x24564 - MAC exact match address 4, part 2 */ |
| 421 | uint mac05addr1; /* 0x24568 - MAC exact match address 5, part 1 */ |
| 422 | uint mac05addr2; /* 0x2456C - MAC exact match address 5, part 2 */ |
| 423 | uint mac06addr1; /* 0x24570 - MAC exact match address 6, part 1 */ |
| 424 | uint mac06addr2; /* 0x24574 - MAC exact match address 6, part 2 */ |
| 425 | uint mac07addr1; /* 0x24578 - MAC exact match address 7, part 1 */ |
| 426 | uint mac07addr2; /* 0x2457C - MAC exact match address 7, part 2 */ |
| 427 | uint mac08addr1; /* 0x24580 - MAC exact match address 8, part 1 */ |
| 428 | uint mac08addr2; /* 0x24584 - MAC exact match address 8, part 2 */ |
| 429 | uint mac09addr1; /* 0x24588 - MAC exact match address 9, part 1 */ |
| 430 | uint mac09addr2; /* 0x2458C - MAC exact match address 9, part 2 */ |
| 431 | uint mac10addr1; /* 0x24590 - MAC exact match address 10, part 1 */ |
| 432 | uint mac10addr2; /* 0x24594 - MAC exact match address 10, part 2 */ |
| 433 | uint mac11addr1; /* 0x24598 - MAC exact match address 11, part 1 */ |
| 434 | uint mac11addr2; /* 0x2459C - MAC exact match address 11, part 2 */ |
| 435 | uint mac12addr1; /* 0x245A0 - MAC exact match address 12, part 1 */ |
| 436 | uint mac12addr2; /* 0x245A4 - MAC exact match address 12, part 2 */ |
| 437 | uint mac13addr1; /* 0x245A8 - MAC exact match address 13, part 1 */ |
| 438 | uint mac13addr2; /* 0x245AC - MAC exact match address 13, part 2 */ |
| 439 | uint mac14addr1; /* 0x245B0 - MAC exact match address 14, part 1 */ |
| 440 | uint mac14addr2; /* 0x245B4 - MAC exact match address 14, part 2 */ |
| 441 | uint mac15addr1; /* 0x245B8 - MAC exact match address 15, part 1 */ |
| 442 | uint mac15addr2; /* 0x245BC - MAC exact match address 15, part 2 */ |
Jon Loeliger | 5c8aa97 | 2006-04-26 17:58:56 -0500 | [diff] [blame] | 443 | char res48[192]; |
| 444 | uint tr64; /* 0x24680 - Transmit and Receive 64-byte Frame Counter */ |
| 445 | uint tr127; /* 0x24684 - Transmit and Receive 65-127 byte Frame Counter */ |
| 446 | uint tr255; /* 0x24688 - Transmit and Receive 128-255 byte Frame Counter */ |
| 447 | uint tr511; /* 0x2468c - Transmit and Receive 256-511 byte Frame Counter */ |
| 448 | uint tr1k; /* 0x24690 - Transmit and Receive 512-1023 byte Frame Counter */ |
| 449 | uint trmax; /* 0x24694 - Transmit and Receive 1024-1518 byte Frame Counter */ |
| 450 | uint trmgv; /* 0x24698 - Transmit and Receive 1519-1522 byte Good VLAN Frame */ |
| 451 | uint rbyt; /* 0x2469c - Receive Byte Counter */ |
| 452 | uint rpkt; /* 0x246a0 - Receive Packet Counter */ |
| 453 | uint rfcs; /* 0x246a4 - Receive FCS Error Counter */ |
| 454 | uint rmca; /* 0x246a8 - Receive Multicast Packet Counter */ |
| 455 | uint rbca; /* 0x246ac - Receive Broadcast Packet Counter */ |
| 456 | uint rxcf; /* 0x246b0 - Receive Control Frame Packet Counter */ |
| 457 | uint rxpf; /* 0x246b4 - Receive Pause Frame Packet Counter */ |
| 458 | uint rxuo; /* 0x246b8 - Receive Unknown OP Code Counter */ |
| 459 | uint raln; /* 0x246bc - Receive Alignment Error Counter */ |
| 460 | uint rflr; /* 0x246c0 - Receive Frame Length Error Counter */ |
| 461 | uint rcde; /* 0x246c4 - Receive Code Error Counter */ |
| 462 | uint rcse; /* 0x246c8 - Receive Carrier Sense Error Counter */ |
| 463 | uint rund; /* 0x246cc - Receive Undersize Packet Counter */ |
| 464 | uint rovr; /* 0x246d0 - Receive Oversize Packet Counter */ |
| 465 | uint rfrg; /* 0x246d4 - Receive Fragments Counter */ |
| 466 | uint rjbr; /* 0x246d8 - Receive Jabber Counter */ |
| 467 | uint rdrp; /* 0x246dc - Receive Drop Counter */ |
| 468 | uint tbyt; /* 0x246e0 - Transmit Byte Counter Counter */ |
| 469 | uint tpkt; /* 0x246e4 - Transmit Packet Counter */ |
| 470 | uint tmca; /* 0x246e8 - Transmit Multicast Packet Counter */ |
| 471 | uint tbca; /* 0x246ec - Transmit Broadcast Packet Counter */ |
| 472 | uint txpf; /* 0x246f0 - Transmit Pause Control Frame Counter */ |
| 473 | uint tdfr; /* 0x246f4 - Transmit Deferral Packet Counter */ |
| 474 | uint tedf; /* 0x246f8 - Transmit Excessive Deferral Packet Counter */ |
| 475 | uint tscl; /* 0x246fc - Transmit Single Collision Packet Counter */ |
| 476 | uint tmcl; /* 0x24700 - Transmit Multiple Collision Packet Counter */ |
| 477 | uint tlcl; /* 0x24704 - Transmit Late Collision Packet Counter */ |
| 478 | uint txcl; /* 0x24708 - Transmit Excessive Collision Packet Counter */ |
| 479 | uint tncl; /* 0x2470c - Transmit Total Collision Counter */ |
| 480 | char res49[4]; |
| 481 | uint tdrp; /* 0x24714 - Transmit Drop Frame Counter */ |
| 482 | uint tjbr; /* 0x24718 - Transmit Jabber Frame Counter */ |
| 483 | uint tfcs; /* 0x2471c - Transmit FCS Error Counter */ |
| 484 | uint txcf; /* 0x24720 - Transmit Control Frame Counter */ |
| 485 | uint tovr; /* 0x24724 - Transmit Oversize Frame Counter */ |
| 486 | uint tund; /* 0x24728 - Transmit Undersize Frame Counter */ |
| 487 | uint tfrg; /* 0x2472c - Transmit Fragments Frame Counter */ |
| 488 | uint car1; /* 0x24730 - Carry Register One */ |
| 489 | uint car2; /* 0x24734 - Carry Register Two */ |
| 490 | uint cam1; /* 0x24738 - Carry Mask Register One */ |
| 491 | uint cam2; /* 0x2473c - Carry Mask Register Two */ |
Jon Loeliger | fcccf8a | 2006-10-10 17:16:04 -0500 | [diff] [blame] | 492 | uint rrej; /* 0x24740 - Receive filer rejected packet counter */ |
Jon Loeliger | 5c8aa97 | 2006-04-26 17:58:56 -0500 | [diff] [blame] | 493 | char res50[188]; |
| 494 | uint iaddr0; /* 0x24800 - Indivdual address register 0 */ |
| 495 | uint iaddr1; /* 0x24804 - Indivdual address register 1 */ |
| 496 | uint iaddr2; /* 0x24808 - Indivdual address register 2 */ |
| 497 | uint iaddr3; /* 0x2480c - Indivdual address register 3 */ |
| 498 | uint iaddr4; /* 0x24810 - Indivdual address register 4 */ |
| 499 | uint iaddr5; /* 0x24814 - Indivdual address register 5 */ |
| 500 | uint iaddr6; /* 0x24818 - Indivdual address register 6 */ |
| 501 | uint iaddr7; /* 0x2481c - Indivdual address register 7 */ |
| 502 | char res51[96]; |
| 503 | uint gaddr0; /* 0x24880 - Global address register 0 */ |
| 504 | uint gaddr1; /* 0x24884 - Global address register 1 */ |
| 505 | uint gaddr2; /* 0x24888 - Global address register 2 */ |
| 506 | uint gaddr3; /* 0x2488c - Global address register 3 */ |
| 507 | uint gaddr4; /* 0x24890 - Global address register 4 */ |
| 508 | uint gaddr5; /* 0x24894 - Global address register 5 */ |
| 509 | uint gaddr6; /* 0x24898 - Global address register 6 */ |
| 510 | uint gaddr7; /* 0x2489c - Global address register 7 */ |
| 511 | char res52[352]; |
Jon Loeliger | fcccf8a | 2006-10-10 17:16:04 -0500 | [diff] [blame] | 512 | uint fifocfg; /* 0x24A00 - FIFO interface configuration register */ |
| 513 | char res53[500]; |
| 514 | uint attr; /* 0x24BF8 - DMA Attribute register */ |
| 515 | uint attreli; /* 0x24BFC - DMA Attribute extract length and index register */ |
| 516 | char res54[1024]; |
Jon Loeliger | 5c8aa97 | 2006-04-26 17:58:56 -0500 | [diff] [blame] | 517 | } ccsr_tsec_t; |
| 518 | |
| 519 | /* PIC Registers(0x4_0000-0x6_1000) */ |
| 520 | |
| 521 | typedef struct ccsr_pic { |
| 522 | char res1[64]; |
| 523 | uint ipidr0; /* 0x40040 - Interprocessor Interrupt Dispatch Register 0 */ |
| 524 | char res2[12]; |
| 525 | uint ipidr1; /* 0x40050 - Interprocessor Interrupt Dispatch Register 1 */ |
| 526 | char res3[12]; |
| 527 | uint ipidr2; /* 0x40060 - Interprocessor Interrupt Dispatch Register 2 */ |
| 528 | char res4[12]; |
| 529 | uint ipidr3; /* 0x40070 - Interprocessor Interrupt Dispatch Register 3 */ |
| 530 | char res5[12]; |
| 531 | uint ctpr; /* 0x40080 - Current Task Priority Register */ |
| 532 | char res6[12]; |
| 533 | uint whoami; /* 0x40090 - Who Am I Register */ |
| 534 | char res7[12]; |
| 535 | uint iack; /* 0x400a0 - Interrupt Acknowledge Register */ |
| 536 | char res8[12]; |
| 537 | uint eoi; /* 0x400b0 - End Of Interrupt Register */ |
| 538 | char res9[3916]; |
| 539 | uint frr; /* 0x41000 - Feature Reporting Register */ |
| 540 | char res10[28]; |
| 541 | uint gcr; /* 0x41020 - Global Configuration Register */ |
Haiying Wang | 0df7b5b | 2006-12-07 10:35:55 -0600 | [diff] [blame] | 542 | #define MPC86xx_PICGCR_RST 0x80000000 |
| 543 | #define MPC86xx_PICGCR_MODE 0x20000000 |
Jon Loeliger | 5c8aa97 | 2006-04-26 17:58:56 -0500 | [diff] [blame] | 544 | char res11[92]; |
| 545 | uint vir; /* 0x41080 - Vendor Identification Register */ |
| 546 | char res12[12]; |
| 547 | uint pir; /* 0x41090 - Processor Initialization Register */ |
| 548 | char res13[12]; |
| 549 | uint ipivpr0; /* 0x410a0 - IPI Vector/Priority Register 0 */ |
| 550 | char res14[12]; |
| 551 | uint ipivpr1; /* 0x410b0 - IPI Vector/Priority Register 1 */ |
| 552 | char res15[12]; |
| 553 | uint ipivpr2; /* 0x410c0 - IPI Vector/Priority Register 2 */ |
| 554 | char res16[12]; |
| 555 | uint ipivpr3; /* 0x410d0 - IPI Vector/Priority Register 3 */ |
| 556 | char res17[12]; |
| 557 | uint svr; /* 0x410e0 - Spurious Vector Register */ |
| 558 | char res18[12]; |
| 559 | uint tfrr; /* 0x410f0 - Timer Frequency Reporting Register */ |
| 560 | char res19[12]; |
| 561 | uint gtccr0; /* 0x41100 - Global Timer Current Count Register 0 */ |
| 562 | char res20[12]; |
| 563 | uint gtbcr0; /* 0x41110 - Global Timer Base Count Register 0 */ |
| 564 | char res21[12]; |
| 565 | uint gtvpr0; /* 0x41120 - Global Timer Vector/Priority Register 0 */ |
| 566 | char res22[12]; |
| 567 | uint gtdr0; /* 0x41130 - Global Timer Destination Register 0 */ |
| 568 | char res23[12]; |
| 569 | uint gtccr1; /* 0x41140 - Global Timer Current Count Register 1 */ |
| 570 | char res24[12]; |
| 571 | uint gtbcr1; /* 0x41150 - Global Timer Base Count Register 1 */ |
| 572 | char res25[12]; |
| 573 | uint gtvpr1; /* 0x41160 - Global Timer Vector/Priority Register 1 */ |
| 574 | char res26[12]; |
| 575 | uint gtdr1; /* 0x41170 - Global Timer Destination Register 1 */ |
| 576 | char res27[12]; |
| 577 | uint gtccr2; /* 0x41180 - Global Timer Current Count Register 2 */ |
| 578 | char res28[12]; |
| 579 | uint gtbcr2; /* 0x41190 - Global Timer Base Count Register 2 */ |
| 580 | char res29[12]; |
| 581 | uint gtvpr2; /* 0x411a0 - Global Timer Vector/Priority Register 2 */ |
| 582 | char res30[12]; |
| 583 | uint gtdr2; /* 0x411b0 - Global Timer Destination Register 2 */ |
| 584 | char res31[12]; |
| 585 | uint gtccr3; /* 0x411c0 - Global Timer Current Count Register 3 */ |
| 586 | char res32[12]; |
| 587 | uint gtbcr3; /* 0x411d0 - Global Timer Base Count Register 3 */ |
| 588 | char res33[12]; |
| 589 | uint gtvpr3; /* 0x411e0 - Global Timer Vector/Priority Register 3 */ |
| 590 | char res34[12]; |
| 591 | uint gtdr3; /* 0x411f0 - Global Timer Destination Register 3 */ |
| 592 | char res35[268]; |
| 593 | uint tcr; /* 0x41300 - Timer Control Register */ |
| 594 | char res36[12]; |
| 595 | uint irqsr0; /* 0x41310 - IRQ_OUT Summary Register 0 */ |
| 596 | char res37[12]; |
| 597 | uint irqsr1; /* 0x41320 - IRQ_OUT Summary Register 1 */ |
| 598 | char res38[12]; |
| 599 | uint cisr0; /* 0x41330 - Critical Interrupt Summary Register 0 */ |
| 600 | char res39[12]; |
| 601 | uint cisr1; /* 0x41340 - Critical Interrupt Summary Register 1 */ |
| 602 | char res40[12]; |
| 603 | uint pm0mr0; /* 0x41350 - Performance monitor 0 mask register 0 */ |
| 604 | char res41[12]; |
| 605 | uint pm0mr1; /* 0x41360 - Performance monitor 0 mask register 1 */ |
| 606 | char res42[12]; |
| 607 | uint pm1mr0; /* 0x41370 - Performance monitor 1 mask register 0 */ |
| 608 | char res43[12]; |
| 609 | uint pm1mr1; /* 0x41380 - Performance monitor 1 mask register 1 */ |
| 610 | char res44[12]; |
| 611 | uint pm2mr0; /* 0x41390 - Performance monitor 2 mask register 0 */ |
| 612 | char res45[12]; |
| 613 | uint pm2mr1; /* 0x413A0 - Performance monitor 2 mask register 1 */ |
| 614 | char res46[12]; |
Jon Loeliger | fcccf8a | 2006-10-10 17:16:04 -0500 | [diff] [blame] | 615 | uint pm3mr0; /* 0x413B0 - Performance monitor 3 mask register 0 */ |
Jon Loeliger | 5c8aa97 | 2006-04-26 17:58:56 -0500 | [diff] [blame] | 616 | char res47[12]; |
| 617 | uint pm3mr1; /* 0x413C0 - Performance monitor 3 mask register 1 */ |
| 618 | char res48[60]; |
| 619 | uint msgr0; /* 0x41400 - Message Register 0 */ |
| 620 | char res49[12]; |
| 621 | uint msgr1; /* 0x41410 - Message Register 1 */ |
| 622 | char res50[12]; |
| 623 | uint msgr2; /* 0x41420 - Message Register 2 */ |
| 624 | char res51[12]; |
| 625 | uint msgr3; /* 0x41430 - Message Register 3 */ |
| 626 | char res52[204]; |
| 627 | uint mer; /* 0x41500 - Message Enable Register */ |
| 628 | char res53[12]; |
| 629 | uint msr; /* 0x41510 - Message Status Register */ |
| 630 | char res54[60140]; |
| 631 | uint eivpr0; /* 0x50000 - External Interrupt Vector/Priority Register 0 */ |
| 632 | char res55[12]; |
| 633 | uint eidr0; /* 0x50010 - External Interrupt Destination Register 0 */ |
| 634 | char res56[12]; |
| 635 | uint eivpr1; /* 0x50020 - External Interrupt Vector/Priority Register 1 */ |
| 636 | char res57[12]; |
| 637 | uint eidr1; /* 0x50030 - External Interrupt Destination Register 1 */ |
| 638 | char res58[12]; |
| 639 | uint eivpr2; /* 0x50040 - External Interrupt Vector/Priority Register 2 */ |
| 640 | char res59[12]; |
| 641 | uint eidr2; /* 0x50050 - External Interrupt Destination Register 2 */ |
| 642 | char res60[12]; |
| 643 | uint eivpr3; /* 0x50060 - External Interrupt Vector/Priority Register 3 */ |
| 644 | char res61[12]; |
| 645 | uint eidr3; /* 0x50070 - External Interrupt Destination Register 3 */ |
| 646 | char res62[12]; |
| 647 | uint eivpr4; /* 0x50080 - External Interrupt Vector/Priority Register 4 */ |
| 648 | char res63[12]; |
| 649 | uint eidr4; /* 0x50090 - External Interrupt Destination Register 4 */ |
| 650 | char res64[12]; |
| 651 | uint eivpr5; /* 0x500a0 - External Interrupt Vector/Priority Register 5 */ |
| 652 | char res65[12]; |
| 653 | uint eidr5; /* 0x500b0 - External Interrupt Destination Register 5 */ |
| 654 | char res66[12]; |
| 655 | uint eivpr6; /* 0x500c0 - External Interrupt Vector/Priority Register 6 */ |
| 656 | char res67[12]; |
| 657 | uint eidr6; /* 0x500d0 - External Interrupt Destination Register 6 */ |
| 658 | char res68[12]; |
| 659 | uint eivpr7; /* 0x500e0 - External Interrupt Vector/Priority Register 7 */ |
| 660 | char res69[12]; |
| 661 | uint eidr7; /* 0x500f0 - External Interrupt Destination Register 7 */ |
| 662 | char res70[12]; |
| 663 | uint eivpr8; /* 0x50100 - External Interrupt Vector/Priority Register 8 */ |
| 664 | char res71[12]; |
| 665 | uint eidr8; /* 0x50110 - External Interrupt Destination Register 8 */ |
| 666 | char res72[12]; |
| 667 | uint eivpr9; /* 0x50120 - External Interrupt Vector/Priority Register 9 */ |
| 668 | char res73[12]; |
| 669 | uint eidr9; /* 0x50130 - External Interrupt Destination Register 9 */ |
| 670 | char res74[12]; |
| 671 | uint eivpr10; /* 0x50140 - External Interrupt Vector/Priority Register 10 */ |
| 672 | char res75[12]; |
| 673 | uint eidr10; /* 0x50150 - External Interrupt Destination Register 10 */ |
| 674 | char res76[12]; |
| 675 | uint eivpr11; /* 0x50160 - External Interrupt Vector/Priority Register 11 */ |
| 676 | char res77[12]; |
| 677 | uint eidr11; /* 0x50170 - External Interrupt Destination Register 11 */ |
| 678 | char res78[140]; |
| 679 | uint iivpr0; /* 0x50200 - Internal Interrupt Vector/Priority Register 0 */ |
| 680 | char res79[12]; |
| 681 | uint iidr0; /* 0x50210 - Internal Interrupt Destination Register 0 */ |
| 682 | char res80[12]; |
| 683 | uint iivpr1; /* 0x50220 - Internal Interrupt Vector/Priority Register 1 */ |
| 684 | char res81[12]; |
| 685 | uint iidr1; /* 0x50230 - Internal Interrupt Destination Register 1 */ |
| 686 | char res82[12]; |
| 687 | uint iivpr2; /* 0x50240 - Internal Interrupt Vector/Priority Register 2 */ |
| 688 | char res83[12]; |
| 689 | uint iidr2; /* 0x50250 - Internal Interrupt Destination Register 2 */ |
| 690 | char res84[12]; |
| 691 | uint iivpr3; /* 0x50260 - Internal Interrupt Vector/Priority Register 3 */ |
| 692 | char res85[12]; |
| 693 | uint iidr3; /* 0x50270 - Internal Interrupt Destination Register 3 */ |
| 694 | char res86[12]; |
| 695 | uint iivpr4; /* 0x50280 - Internal Interrupt Vector/Priority Register 4 */ |
| 696 | char res87[12]; |
| 697 | uint iidr4; /* 0x50290 - Internal Interrupt Destination Register 4 */ |
| 698 | char res88[12]; |
| 699 | uint iivpr5; /* 0x502a0 - Internal Interrupt Vector/Priority Register 5 */ |
| 700 | char res89[12]; |
| 701 | uint iidr5; /* 0x502b0 - Internal Interrupt Destination Register 5 */ |
| 702 | char res90[12]; |
| 703 | uint iivpr6; /* 0x502c0 - Internal Interrupt Vector/Priority Register 6 */ |
| 704 | char res91[12]; |
| 705 | uint iidr6; /* 0x502d0 - Internal Interrupt Destination Register 6 */ |
| 706 | char res92[12]; |
| 707 | uint iivpr7; /* 0x502e0 - Internal Interrupt Vector/Priority Register 7 */ |
| 708 | char res93[12]; |
| 709 | uint iidr7; /* 0x502f0 - Internal Interrupt Destination Register 7 */ |
| 710 | char res94[12]; |
| 711 | uint iivpr8; /* 0x50300 - Internal Interrupt Vector/Priority Register 8 */ |
| 712 | char res95[12]; |
| 713 | uint iidr8; /* 0x50310 - Internal Interrupt Destination Register 8 */ |
| 714 | char res96[12]; |
| 715 | uint iivpr9; /* 0x50320 - Internal Interrupt Vector/Priority Register 9 */ |
| 716 | char res97[12]; |
| 717 | uint iidr9; /* 0x50330 - Internal Interrupt Destination Register 9 */ |
| 718 | char res98[12]; |
| 719 | uint iivpr10; /* 0x50340 - Internal Interrupt Vector/Priority Register 10 */ |
| 720 | char res99[12]; |
| 721 | uint iidr10; /* 0x50350 - Internal Interrupt Destination Register 10 */ |
| 722 | char res100[12]; |
| 723 | uint iivpr11; /* 0x50360 - Internal Interrupt Vector/Priority Register 11 */ |
| 724 | char res101[12]; |
| 725 | uint iidr11; /* 0x50370 - Internal Interrupt Destination Register 11 */ |
| 726 | char res102[12]; |
| 727 | uint iivpr12; /* 0x50380 - Internal Interrupt Vector/Priority Register 12 */ |
| 728 | char res103[12]; |
| 729 | uint iidr12; /* 0x50390 - Internal Interrupt Destination Register 12 */ |
| 730 | char res104[12]; |
| 731 | uint iivpr13; /* 0x503a0 - Internal Interrupt Vector/Priority Register 13 */ |
| 732 | char res105[12]; |
| 733 | uint iidr13; /* 0x503b0 - Internal Interrupt Destination Register 13 */ |
| 734 | char res106[12]; |
| 735 | uint iivpr14; /* 0x503c0 - Internal Interrupt Vector/Priority Register 14 */ |
| 736 | char res107[12]; |
| 737 | uint iidr14; /* 0x503d0 - Internal Interrupt Destination Register 14 */ |
| 738 | char res108[12]; |
| 739 | uint iivpr15; /* 0x503e0 - Internal Interrupt Vector/Priority Register 15 */ |
| 740 | char res109[12]; |
| 741 | uint iidr15; /* 0x503f0 - Internal Interrupt Destination Register 15 */ |
| 742 | char res110[12]; |
| 743 | uint iivpr16; /* 0x50400 - Internal Interrupt Vector/Priority Register 16 */ |
| 744 | char res111[12]; |
| 745 | uint iidr16; /* 0x50410 - Internal Interrupt Destination Register 16 */ |
| 746 | char res112[12]; |
| 747 | uint iivpr17; /* 0x50420 - Internal Interrupt Vector/Priority Register 17 */ |
| 748 | char res113[12]; |
| 749 | uint iidr17; /* 0x50430 - Internal Interrupt Destination Register 17 */ |
| 750 | char res114[12]; |
| 751 | uint iivpr18; /* 0x50440 - Internal Interrupt Vector/Priority Register 18 */ |
| 752 | char res115[12]; |
| 753 | uint iidr18; /* 0x50450 - Internal Interrupt Destination Register 18 */ |
| 754 | char res116[12]; |
| 755 | uint iivpr19; /* 0x50460 - Internal Interrupt Vector/Priority Register 19 */ |
| 756 | char res117[12]; |
| 757 | uint iidr19; /* 0x50470 - Internal Interrupt Destination Register 19 */ |
| 758 | char res118[12]; |
| 759 | uint iivpr20; /* 0x50480 - Internal Interrupt Vector/Priority Register 20 */ |
| 760 | char res119[12]; |
| 761 | uint iidr20; /* 0x50490 - Internal Interrupt Destination Register 20 */ |
| 762 | char res120[12]; |
| 763 | uint iivpr21; /* 0x504a0 - Internal Interrupt Vector/Priority Register 21 */ |
| 764 | char res121[12]; |
| 765 | uint iidr21; /* 0x504b0 - Internal Interrupt Destination Register 21 */ |
| 766 | char res122[12]; |
| 767 | uint iivpr22; /* 0x504c0 - Internal Interrupt Vector/Priority Register 22 */ |
| 768 | char res123[12]; |
| 769 | uint iidr22; /* 0x504d0 - Internal Interrupt Destination Register 22 */ |
| 770 | char res124[12]; |
| 771 | uint iivpr23; /* 0x504e0 - Internal Interrupt Vector/Priority Register 23 */ |
| 772 | char res125[12]; |
| 773 | uint iidr23; /* 0x504f0 - Internal Interrupt Destination Register 23 */ |
| 774 | char res126[12]; |
| 775 | uint iivpr24; /* 0x50500 - Internal Interrupt Vector/Priority Register 24 */ |
| 776 | char res127[12]; |
| 777 | uint iidr24; /* 0x50510 - Internal Interrupt Destination Register 24 */ |
| 778 | char res128[12]; |
| 779 | uint iivpr25; /* 0x50520 - Internal Interrupt Vector/Priority Register 25 */ |
| 780 | char res129[12]; |
| 781 | uint iidr25; /* 0x50530 - Internal Interrupt Destination Register 25 */ |
| 782 | char res130[12]; |
| 783 | uint iivpr26; /* 0x50540 - Internal Interrupt Vector/Priority Register 26 */ |
| 784 | char res131[12]; |
| 785 | uint iidr26; /* 0x50550 - Internal Interrupt Destination Register 26 */ |
| 786 | char res132[12]; |
| 787 | uint iivpr27; /* 0x50560 - Internal Interrupt Vector/Priority Register 27 */ |
| 788 | char res133[12]; |
| 789 | uint iidr27; /* 0x50570 - Internal Interrupt Destination Register 27 */ |
| 790 | char res134[12]; |
| 791 | uint iivpr28; /* 0x50580 - Internal Interrupt Vector/Priority Register 28 */ |
| 792 | char res135[12]; |
| 793 | uint iidr28; /* 0x50590 - Internal Interrupt Destination Register 28 */ |
| 794 | char res136[12]; |
| 795 | uint iivpr29; /* 0x505a0 - Internal Interrupt Vector/Priority Register 29 */ |
| 796 | char res137[12]; |
| 797 | uint iidr29; /* 0x505b0 - Internal Interrupt Destination Register 29 */ |
| 798 | char res138[12]; |
| 799 | uint iivpr30; /* 0x505c0 - Internal Interrupt Vector/Priority Register 30 */ |
| 800 | char res139[12]; |
| 801 | uint iidr30; /* 0x505d0 - Internal Interrupt Destination Register 30 */ |
| 802 | char res140[12]; |
| 803 | uint iivpr31; /* 0x505e0 - Internal Interrupt Vector/Priority Register 31 */ |
| 804 | char res141[12]; |
| 805 | uint iidr31; /* 0x505f0 - Internal Interrupt Destination Register 31 */ |
Jon Loeliger | fcccf8a | 2006-10-10 17:16:04 -0500 | [diff] [blame] | 806 | char res142[4108]; |
Jon Loeliger | 5c8aa97 | 2006-04-26 17:58:56 -0500 | [diff] [blame] | 807 | uint mivpr0; /* 0x51600 - Messaging Interrupt Vector/Priority Register 0 */ |
| 808 | char res143[12]; |
| 809 | uint midr0; /* 0x51610 - Messaging Interrupt Destination Register 0 */ |
| 810 | char res144[12]; |
| 811 | uint mivpr1; /* 0x51620 - Messaging Interrupt Vector/Priority Register 1 */ |
| 812 | char res145[12]; |
| 813 | uint midr1; /* 0x51630 - Messaging Interrupt Destination Register 1 */ |
| 814 | char res146[12]; |
| 815 | uint mivpr2; /* 0x51640 - Messaging Interrupt Vector/Priority Register 2 */ |
| 816 | char res147[12]; |
| 817 | uint midr2; /* 0x51650 - Messaging Interrupt Destination Register 2 */ |
| 818 | char res148[12]; |
| 819 | uint mivpr3; /* 0x51660 - Messaging Interrupt Vector/Priority Register 3 */ |
| 820 | char res149[12]; |
| 821 | uint midr3; /* 0x51670 - Messaging Interrupt Destination Register 3 */ |
| 822 | char res150[59852]; |
| 823 | uint ipi0dr0; /* 0x60040 - Processor 0 Interprocessor Interrupt Dispatch Register 0 */ |
| 824 | char res151[12]; |
| 825 | uint ipi0dr1; /* 0x60050 - Processor 0 Interprocessor Interrupt Dispatch Register 1 */ |
| 826 | char res152[12]; |
| 827 | uint ipi0dr2; /* 0x60060 - Processor 0 Interprocessor Interrupt Dispatch Register 2 */ |
| 828 | char res153[12]; |
| 829 | uint ipi0dr3; /* 0x60070 - Processor 0 Interprocessor Interrupt Dispatch Register 3 */ |
| 830 | char res154[12]; |
| 831 | uint ctpr0; /* 0x60080 - Current Task Priority Register for Processor 0 */ |
| 832 | char res155[12]; |
| 833 | uint whoami0; /* 0x60090 - Who Am I Register for Processor 0 */ |
| 834 | char res156[12]; |
| 835 | uint iack0; /* 0x600a0 - Interrupt Acknowledge Register for Processor 0 */ |
| 836 | char res157[12]; |
| 837 | uint eoi0; /* 0x600b0 - End Of Interrupt Register for Processor 0 */ |
| 838 | char res158[3916]; |
| 839 | } ccsr_pic_t; |
| 840 | |
| 841 | /* RapidIO Registers(0xc_0000-0xe_0000) */ |
| 842 | |
| 843 | typedef struct ccsr_rio { |
| 844 | uint didcar; /* 0xc0000 - Device Identity Capability Register */ |
| 845 | uint dicar; /* 0xc0004 - Device Information Capability Register */ |
| 846 | uint aidcar; /* 0xc0008 - Assembly Identity Capability Register */ |
| 847 | uint aicar; /* 0xc000c - Assembly Information Capability Register */ |
| 848 | uint pefcar; /* 0xc0010 - Processing Element Features Capability Register */ |
| 849 | uint spicar; /* 0xc0014 - Switch Port Information Capability Register */ |
| 850 | uint socar; /* 0xc0018 - Source Operations Capability Register */ |
| 851 | uint docar; /* 0xc001c - Destination Operations Capability Register */ |
| 852 | char res1[32]; |
| 853 | uint msr; /* 0xc0040 - Mailbox Command And Status Register */ |
| 854 | uint pwdcsr; /* 0xc0044 - Port-Write and Doorbell Command And Status Register */ |
| 855 | char res2[4]; |
| 856 | uint pellccsr; /* 0xc004c - Processing Element Logic Layer Control Command and Status Register */ |
| 857 | char res3[12]; |
| 858 | uint lcsbacsr; /* 0xc005c - Local Configuration Space Base Address Command and Status Register */ |
| 859 | uint bdidcsr; /* 0xc0060 - Base Device ID Command and Status Register */ |
| 860 | char res4[4]; |
| 861 | uint hbdidlcsr; /* 0xc0068 - Host Base Device ID Lock Command and Status Register */ |
| 862 | uint ctcsr; /* 0xc006c - Component Tag Command and Status Register */ |
| 863 | char res5[144]; |
| 864 | uint pmbh0csr; /* 0xc0100 - 8/16 LP-LVDS Port Maintenance Block Header 0 Command and Status Register */ |
| 865 | char res6[28]; |
| 866 | uint pltoccsr; /* 0xc0120 - Port Link Time-out Control Command and Status Register */ |
| 867 | uint prtoccsr; /* 0xc0124 - Port Response Time-out Control Command and Status Register */ |
| 868 | char res7[20]; |
| 869 | uint pgccsr; /* 0xc013c - Port General Command and Status Register */ |
| 870 | uint plmreqcsr; /* 0xc0140 - Port Link Maintenance Request Command and Status Register */ |
| 871 | uint plmrespcsr; /* 0xc0144 - Port Link Maintenance Response Command and Status Register */ |
| 872 | uint plascsr; /* 0xc0148 - Port Local Ackid Status Command and Status Register */ |
| 873 | char res8[12]; |
| 874 | uint pescsr; /* 0xc0158 - Port Error and Status Command and Status Register */ |
| 875 | uint pccsr; /* 0xc015c - Port Control Command and Status Register */ |
| 876 | char res9[1184]; |
| 877 | uint erbh; /* 0xc0600 - Error Reporting Block Header Register */ |
| 878 | char res10[4]; |
| 879 | uint ltledcsr; /* 0xc0608 - Logical/Transport layer error detect status register */ |
| 880 | uint ltleecsr; /* 0xc060c - Logical/Transport layer error enable register */ |
| 881 | char res11[4]; |
| 882 | uint ltlaccsr; /* 0xc0614 - Logical/Transport layer addresss capture register */ |
| 883 | uint ltldidccsr; /* 0xc0618 - Logical/Transport layer device ID capture register */ |
| 884 | uint ltlcccsr; /* 0xc061c - Logical/Transport layer control capture register */ |
| 885 | char res12[32]; |
| 886 | uint edcsr; /* 0xc0640 - Port 0 error detect status register */ |
| 887 | uint erecsr; /* 0xc0644 - Port 0 error rate enable status register */ |
| 888 | uint ecacsr; /* 0xc0648 - Port 0 error capture attributes register */ |
| 889 | uint pcseccsr0; /* 0xc064c - Port 0 packet/control symbol error capture register 0 */ |
| 890 | uint peccsr1; /* 0xc0650 - Port 0 error capture command and status register 1 */ |
Jon Loeliger | fcccf8a | 2006-10-10 17:16:04 -0500 | [diff] [blame] | 891 | uint peccsr2; /* 0xc0654 - Port 0 error capture command and status register 2 */ |
Jon Loeliger | 5c8aa97 | 2006-04-26 17:58:56 -0500 | [diff] [blame] | 892 | uint peccsr3; /* 0xc0658 - Port 0 error capture command and status register 3 */ |
| 893 | char res13[12]; |
| 894 | uint ercsr; /* 0xc0668 - Port 0 error rate command and status register */ |
| 895 | uint ertcsr; /* 0xc066C - Port 0 error rate threshold status register*/ |
| 896 | char res14[63892]; |
| 897 | uint llcr; /* 0xd0004 - Logical Layer Configuration Register */ |
| 898 | char res15[12]; |
| 899 | uint epwisr; /* 0xd0010 - Error / Port-Write Interrupt Status Register */ |
| 900 | char res16[12]; |
| 901 | uint lretcr; /* 0xd0020 - Logical Retry Error Threshold Configuration Register */ |
| 902 | char res17[92]; |
| 903 | uint pretcr; /* 0xd0080 - Physical Retry Erorr Threshold Configuration Register */ |
| 904 | char res18[124]; |
| 905 | uint adidcsr; /* 0xd0100 - Port 0 Alt. Device ID Command and Status Register */ |
| 906 | char res19[28]; |
| 907 | uint ptaacr; /* 0xd0120 - Port 0 Pass-Through/Accept-All Configuration Register */ |
| 908 | char res20[12]; |
| 909 | uint iecsr; /* 0xd0130 - Port 0 Implementation Error Status Register */ |
| 910 | char res21[12]; |
| 911 | uint pcr; /* 0xd0140 - Port 0 Phsyical Configuration RegisterRegister */ |
| 912 | char res22[20]; |
| 913 | uint slcsr; /* 0xd0158 - Port 0 Serial Link Command and Status Register */ |
| 914 | char res23[4]; |
Jon Loeliger | fcccf8a | 2006-10-10 17:16:04 -0500 | [diff] [blame] | 915 | uint sleir; /* 0xd0160 - Port 0 Serial Link Error Injection Register */ |
Jon Loeliger | 5c8aa97 | 2006-04-26 17:58:56 -0500 | [diff] [blame] | 916 | char res24[2716]; |
| 917 | uint rowtar0; /* 0xd0c00 - RapidIO Outbound Window Translation Address Register 0 */ |
| 918 | uint rowtear0; /* 0xd0c04 - RapidIO Outbound Window Translation Ext. Address Register 0 */ |
| 919 | char res25[8]; |
| 920 | uint rowar0; /* 0xd0c10 - RapidIO Outbound Attributes Register 0 */ |
| 921 | char res26[12]; |
| 922 | uint rowtar1; /* 0xd0c20 - RapidIO Outbound Window Translation Address Register 1 */ |
| 923 | uint rowtear1; /* 0xd0c24 - RapidIO Outbound Window Translation Ext. Address Register 1 */ |
| 924 | uint rowbar1; /* 0xd0c28 - RapidIO Outbound Window Base Address Register 1 */ |
| 925 | char res27[4]; |
| 926 | uint rowar1; /* 0xd0c30 - RapidIO Outbound Attributes Register 1 */ |
| 927 | uint rows1r1; /* 0xd0c34 - RapidIO Outbound Window Segment 1 Register 1 */ |
| 928 | uint rows2r1; /* 0xd0c38 - RapidIO Outbound Window Segment 2 Register 1 */ |
| 929 | uint rows3r1; /* 0xd0c3c - RapidIO Outbound Window Segment 3 Register 1 */ |
| 930 | uint rowtar2; /* 0xd0c40 - RapidIO Outbound Window Translation Address Register 2 */ |
| 931 | uint rowtear2; /* 0xd0c44 - RapidIO Outbound Window Translation Ext. Address Register 2 */ |
| 932 | uint rowbar2; /* 0xd0c48 - RapidIO Outbound Window Base Address Register 2 */ |
| 933 | char res28[4]; |
| 934 | uint rowar2; /* 0xd0c50 - RapidIO Outbound Attributes Register 2 */ |
| 935 | uint rows1r2; /* 0xd0c54 - RapidIO Outbound Window Segment 1 Register 2 */ |
| 936 | uint rows2r2; /* 0xd0c58 - RapidIO Outbound Window Segment 2 Register 2 */ |
| 937 | uint rows3r2; /* 0xd0c5c - RapidIO Outbound Window Segment 3 Register 2 */ |
| 938 | uint rowtar3; /* 0xd0c60 - RapidIO Outbound Window Translation Address Register 3 */ |
| 939 | uint rowtear3; /* 0xd0c64 - RapidIO Outbound Window Translation Ext. Address Register 3 */ |
| 940 | uint rowbar3; /* 0xd0c68 - RapidIO Outbound Window Base Address Register 3 */ |
| 941 | char res29[4]; |
| 942 | uint rowar3; /* 0xd0c70 - RapidIO Outbound Attributes Register 3 */ |
| 943 | uint rows1r3; /* 0xd0c74 - RapidIO Outbound Window Segment 1 Register 3 */ |
| 944 | uint rows2r3; /* 0xd0c78 - RapidIO Outbound Window Segment 2 Register 3 */ |
| 945 | uint rows3r3; /* 0xd0c7c - RapidIO Outbound Window Segment 3 Register 3 */ |
| 946 | uint rowtar4; /* 0xd0c80 - RapidIO Outbound Window Translation Address Register 4 */ |
| 947 | uint rowtear4; /* 0xd0c84 - RapidIO Outbound Window Translation Ext. Address Register 4 */ |
| 948 | uint rowbar4; /* 0xd0c88 - RapidIO Outbound Window Base Address Register 4 */ |
| 949 | char res30[4]; |
| 950 | uint rowar4; /* 0xd0c90 - RapidIO Outbound Attributes Register 4 */ |
| 951 | uint rows1r4; /* 0xd0c94 - RapidIO Outbound Window Segment 1 Register 4 */ |
| 952 | uint rows2r4; /* 0xd0c98 - RapidIO Outbound Window Segment 2 Register 4 */ |
| 953 | uint rows3r4; /* 0xd0c9c - RapidIO Outbound Window Segment 3 Register 4 */ |
| 954 | uint rowtar5; /* 0xd0ca0 - RapidIO Outbound Window Translation Address Register 5 */ |
| 955 | uint rowtear5; /* 0xd0ca4 - RapidIO Outbound Window Translation Ext. Address Register 5 */ |
| 956 | uint rowbar5; /* 0xd0ca8 - RapidIO Outbound Window Base Address Register 5 */ |
| 957 | char res31[4]; |
| 958 | uint rowar5; /* 0xd0cb0 - RapidIO Outbound Attributes Register 5 */ |
| 959 | uint rows1r5; /* 0xd0cb4 - RapidIO Outbound Window Segment 1 Register 5 */ |
| 960 | uint rows2r5; /* 0xd0cb8 - RapidIO Outbound Window Segment 2 Register 5 */ |
| 961 | uint rows3r5; /* 0xd0cbc - RapidIO Outbound Window Segment 3 Register 5 */ |
| 962 | uint rowtar6; /* 0xd0cc0 - RapidIO Outbound Window Translation Address Register 6 */ |
| 963 | uint rowtear6; /* 0xd0cc4 - RapidIO Outbound Window Translation Ext. Address Register 6 */ |
| 964 | uint rowbar6; /* 0xd0cc8 - RapidIO Outbound Window Base Address Register 6 */ |
| 965 | char res32[4]; |
| 966 | uint rowar6; /* 0xd0cd0 - RapidIO Outbound Attributes Register 6 */ |
| 967 | uint rows1r6; /* 0xd0cd4 - RapidIO Outbound Window Segment 1 Register 6 */ |
| 968 | uint rows2r6; /* 0xd0cd8 - RapidIO Outbound Window Segment 2 Register 6 */ |
| 969 | uint rows3r6; /* 0xd0cdc - RapidIO Outbound Window Segment 3 Register 6 */ |
| 970 | uint rowtar7; /* 0xd0ce0 - RapidIO Outbound Window Translation Address Register 7 */ |
| 971 | uint rowtear7; /* 0xd0ce4 - RapidIO Outbound Window Translation Ext. Address Register 7 */ |
| 972 | uint rowbar7; /* 0xd0ce8 - RapidIO Outbound Window Base Address Register 7 */ |
| 973 | char res33[4]; |
| 974 | uint rowar7; /* 0xd0cf0 - RapidIO Outbound Attributes Register 7 */ |
| 975 | uint rows1r7; /* 0xd0cf4 - RapidIO Outbound Window Segment 1 Register 7 */ |
| 976 | uint rows2r7; /* 0xd0cf8 - RapidIO Outbound Window Segment 2 Register 7 */ |
| 977 | uint rows3r7; /* 0xd0cfc - RapidIO Outbound Window Segment 3 Register 7 */ |
| 978 | uint rowtar8; /* 0xd0d00 - RapidIO Outbound Window Translation Address Register 8 */ |
| 979 | uint rowtear8; /* 0xd0d04 - RapidIO Outbound Window Translation Ext. Address Register 8 */ |
| 980 | uint rowbar8; /* 0xd0d08 - RapidIO Outbound Window Base Address Register 8 */ |
| 981 | char res34[4]; |
| 982 | uint rowar8; /* 0xd0d10 - RapidIO Outbound Attributes Register 8 */ |
| 983 | uint rows1r8; /* 0xd0d14 - RapidIO Outbound Window Segment 1 Register 8 */ |
| 984 | uint rows2r8; /* 0xd0d18 - RapidIO Outbound Window Segment 2 Register 8 */ |
| 985 | uint rows3r8; /* 0xd0d1c - RapidIO Outbound Window Segment 3 Register 8 */ |
| 986 | char res35[64]; |
| 987 | uint riwtar4; /* 0xd0d60 - RapidIO Inbound Window Translation Address Register 4 */ |
| 988 | uint riwbar4; /* 0xd0d68 - RapidIO Inbound Window Base Address Register 4 */ |
| 989 | char res36[4]; |
| 990 | uint riwar4; /* 0xd0d70 - RapidIO Inbound Attributes Register 4 */ |
| 991 | char res37[12]; |
| 992 | uint riwtar3; /* 0xd0d80 - RapidIO Inbound Window Translation Address Register 3 */ |
| 993 | char res38[4]; |
| 994 | uint riwbar3; /* 0xd0d88 - RapidIO Inbound Window Base Address Register 3 */ |
| 995 | char res39[4]; |
| 996 | uint riwar3; /* 0xd0d90 - RapidIO Inbound Attributes Register 3 */ |
| 997 | char res40[12]; |
| 998 | uint riwtar2; /* 0xd0da0 - RapidIO Inbound Window Translation Address Register 2 */ |
| 999 | char res41[4]; |
| 1000 | uint riwbar2; /* 0xd0da8 - RapidIO Inbound Window Base Address Register 2 */ |
| 1001 | char res42[4]; |
| 1002 | uint riwar2; /* 0xd0db0 - RapidIO Inbound Attributes Register 2 */ |
| 1003 | char res43[12]; |
| 1004 | uint riwtar1; /* 0xd0dc0 - RapidIO Inbound Window Translation Address Register 1 */ |
| 1005 | char res44[4]; |
| 1006 | uint riwbar1; /* 0xd0dc8 - RapidIO Inbound Window Base Address Register 1 */ |
| 1007 | char res45[4]; |
| 1008 | uint riwar1; /* 0xd0dd0 - RapidIO Inbound Attributes Register 1 */ |
| 1009 | char res46[12]; |
| 1010 | uint riwtar0; /* 0xd0de0 - RapidIO Inbound Window Translation Address Register 0 */ |
| 1011 | char res47[12]; |
| 1012 | uint riwar0; /* 0xd0df0 - RapidIO Inbound Attributes Register 0 */ |
| 1013 | char res48[12]; |
| 1014 | uint pnfedr; /* 0xd0e00 - Port Notification/Fatal Error Detect Register */ |
| 1015 | uint pnfedir; /* 0xd0e04 - Port Notification/Fatal Error Detect Register */ |
| 1016 | uint pnfeier; /* 0xd0e08 - Port Notification/Fatal Error Interrupt Enable Register */ |
| 1017 | uint pecr; /* 0xd0e0c - Port Error Control Register */ |
| 1018 | uint pepcsr0; /* 0xd0e10 - Port Error Packet/Control Symbol Register 0 */ |
| 1019 | uint pepr1; /* 0xd0e14 - Port Error Packet Register 1 */ |
| 1020 | uint pepr2; /* 0xd0e18 - Port Error Packet Register 2 */ |
| 1021 | char res49[4]; |
| 1022 | uint predr; /* 0xd0e20 - Port Recoverable Error Detect Register */ |
| 1023 | char res50[4]; |
| 1024 | uint pertr; /* 0xd0e28 - Port Error Recovery Threshold Register */ |
| 1025 | uint prtr; /* 0xd0e2c - Port Retry Threshold Register */ |
| 1026 | char res51[8656]; |
| 1027 | uint omr; /* 0xd3000 - Outbound Mode Register */ |
| 1028 | uint osr; /* 0xd3004 - Outbound Status Register */ |
| 1029 | uint eodqtpar; /* 0xd3008 - Extended Outbound Descriptor Queue Tail Pointer Address Register */ |
| 1030 | uint odqtpar; /* 0xd300c - Outbound Descriptor Queue Tail Pointer Address Register */ |
| 1031 | uint eosar; /* 0xd3010 - Extended Outbound Unit Source Address Register */ |
| 1032 | uint osar; /* 0xd3014 - Outbound Unit Source Address Register */ |
| 1033 | uint odpr; /* 0xd3018 - Outbound Destination Port Register */ |
| 1034 | uint odatr; /* 0xd301c - Outbound Destination Attributes Register */ |
| 1035 | uint odcr; /* 0xd3020 - Outbound Doubleword Count Register */ |
| 1036 | uint eodqhpar; /* 0xd3024 - Extended Outbound Descriptor Queue Head Pointer Address Register */ |
| 1037 | uint odqhpar; /* 0xd3028 - Outbound Descriptor Queue Head Pointer Address Register */ |
| 1038 | uint oretr; /* 0xd302C - Outbound Retry Error Threshold Register */ |
| 1039 | uint omgr; /* 0xd3030 - Outbound Multicast Group Register */ |
| 1040 | uint omlr; /* 0xd3034 - Outbound Multicast List Register */ |
| 1041 | char res52[40]; |
| 1042 | uint imr; /* 0xd3060 - Outbound Mode Register */ |
| 1043 | uint isr; /* 0xd3064 - Inbound Status Register */ |
| 1044 | uint eidqtpar; /* 0xd3068 - Extended Inbound Descriptor Queue Tail Pointer Address Register */ |
| 1045 | uint idqtpar; /* 0xd306c - Inbound Descriptor Queue Tail Pointer Address Register */ |
| 1046 | uint eifqhpar; /* 0xd3070 - Extended Inbound Frame Queue Head Pointer Address Register */ |
| 1047 | uint ifqhpar; /* 0xd3074 - Inbound Frame Queue Head Pointer Address Register */ |
| 1048 | uint imirir; /* 0xd3078 - Inbound Maximum Interrutp Report Interval Register */ |
| 1049 | char res53[900]; |
| 1050 | uint oddmr; /* 0xd3400 - Outbound Doorbell Mode Register */ |
| 1051 | uint oddsr; /* 0xd3404 - Outbound Doorbell Status Register */ |
| 1052 | char res54[16]; |
| 1053 | uint oddpr; /* 0xd3418 - Outbound Doorbell Destination Port Register */ |
| 1054 | uint oddatr; /* 0xd341C - Outbound Doorbell Destination Attributes Register */ |
| 1055 | char res55[12]; |
| 1056 | uint oddretr; /* 0xd342C - Outbound Doorbell Retry Threshold Configuration Register */ |
| 1057 | char res56[48]; |
| 1058 | uint idmr; /* 0xd3460 - Inbound Doorbell Mode Register */ |
| 1059 | uint idsr; /* 0xd3464 - Inbound Doorbell Status Register */ |
| 1060 | uint iedqtpar; /* 0xd3468 - Extended Inbound Doorbell Queue Tail Pointer Address Register */ |
| 1061 | uint iqtpar; /* 0xd346c - Inbound Doorbell Queue Tail Pointer Address Register */ |
| 1062 | uint iedqhpar; /* 0xd3470 - Extended Inbound Doorbell Queue Head Pointer Address Register */ |
| 1063 | uint idqhpar; /* 0xd3474 - Inbound Doorbell Queue Head Pointer Address Register */ |
Jon Loeliger | fcccf8a | 2006-10-10 17:16:04 -0500 | [diff] [blame] | 1064 | uint idmirir; /* 0xd3478 - Inbound Doorbell Max Interrupt Report Interval Register */ |
Jon Loeliger | 5c8aa97 | 2006-04-26 17:58:56 -0500 | [diff] [blame] | 1065 | char res57[100]; |
| 1066 | uint pwmr; /* 0xd34e0 - Port-Write Mode Register */ |
| 1067 | uint pwsr; /* 0xd34e4 - Port-Write Status Register */ |
| 1068 | uint epwqbar; /* 0xd34e8 - Extended Port-Write Queue Base Address Register */ |
| 1069 | uint pwqbar; /* 0xd34ec - Port-Write Queue Base Address Register */ |
Jon Loeliger | fcccf8a | 2006-10-10 17:16:04 -0500 | [diff] [blame] | 1070 | char res58[51984]; |
Jon Loeliger | 5c8aa97 | 2006-04-26 17:58:56 -0500 | [diff] [blame] | 1071 | } ccsr_rio_t; |
| 1072 | |
| 1073 | /* Global Utilities Register Block(0xe_0000-0xf_ffff) */ |
| 1074 | typedef struct ccsr_gur { |
| 1075 | uint porpllsr; /* 0xe0000 - POR PLL ratio status register */ |
| 1076 | uint porbmsr; /* 0xe0004 - POR boot mode status register */ |
Jon Loeliger | 5c8aa97 | 2006-04-26 17:58:56 -0500 | [diff] [blame] | 1077 | uint porimpscr; /* 0xe0008 - POR I/O impedance status and control register */ |
| 1078 | uint pordevsr; /* 0xe000c - POR I/O device status regsiter */ |
Jon Loeliger | 5c8aa97 | 2006-04-26 17:58:56 -0500 | [diff] [blame] | 1079 | uint pordbgmsr; /* 0xe0010 - POR debug mode status register */ |
| 1080 | char res1[12]; |
| 1081 | uint gpporcr; /* 0xe0020 - General-purpose POR configuration register */ |
| 1082 | char res2[12]; |
| 1083 | uint gpiocr; /* 0xe0030 - GPIO control register */ |
| 1084 | char res3[12]; |
| 1085 | uint gpoutdr; /* 0xe0040 - General-purpose output data register */ |
| 1086 | char res4[12]; |
| 1087 | uint gpindr; /* 0xe0050 - General-purpose input data register */ |
| 1088 | char res5[12]; |
| 1089 | uint pmuxcr; /* 0xe0060 - Alternate function signal multiplex control */ |
| 1090 | char res6[12]; |
| 1091 | uint devdisr; /* 0xe0070 - Device disable control */ |
Jon Loeliger | 5c8aa97 | 2006-04-26 17:58:56 -0500 | [diff] [blame] | 1092 | char res7[12]; |
| 1093 | uint powmgtcsr; /* 0xe0080 - Power management status and control register */ |
| 1094 | char res8[12]; |
| 1095 | uint mcpsumr; /* 0xe0090 - Machine check summary register */ |
Peter Tyser | fa9669e | 2009-02-05 11:25:24 -0600 | [diff] [blame] | 1096 | uint rstrscr; /* 0xe0094 - Reset request status and control register */ |
| 1097 | char res9[8]; |
Jon Loeliger | 5c8aa97 | 2006-04-26 17:58:56 -0500 | [diff] [blame] | 1098 | uint pvr; /* 0xe00a0 - Processor version register */ |
| 1099 | uint svr; /* 0xe00a4 - System version register */ |
Peter Tyser | fa9669e | 2009-02-05 11:25:24 -0600 | [diff] [blame] | 1100 | char res10a[8]; |
| 1101 | uint rstcr; /* 0xe00b0 - Reset control register */ |
Peter Tyser | fa9669e | 2009-02-05 11:25:24 -0600 | [diff] [blame] | 1102 | char res10b[1868]; |
Jon Loeliger | 11c9958 | 2007-08-02 14:42:20 -0500 | [diff] [blame] | 1103 | uint clkdvdr; /* 0xe0800 - Clock Divide register */ |
Peter Tyser | fa9669e | 2009-02-05 11:25:24 -0600 | [diff] [blame] | 1104 | char res10c[796]; |
| 1105 | uint ddr1clkdr; /* 0xe0b20 - DDRC1 Clock Disable register */ |
| 1106 | char res10d[4]; |
| 1107 | uint ddr2clkdr; /* 0xe0b28 - DDRC2 Clock Disable register */ |
| 1108 | char res10e[724]; |
Jon Loeliger | 5c8aa97 | 2006-04-26 17:58:56 -0500 | [diff] [blame] | 1109 | uint clkocr; /* 0xe0e00 - Clock out select register */ |
| 1110 | char res11[12]; |
| 1111 | uint ddrdllcr; /* 0xe0e10 - DDR DLL control register */ |
| 1112 | char res12[12]; |
| 1113 | uint lbcdllcr; /* 0xe0e20 - LBC DLL control register */ |
Peter Tyser | fa9669e | 2009-02-05 11:25:24 -0600 | [diff] [blame] | 1114 | char res13a[224]; |
| 1115 | uint srds1cr0; /* 0xe0f04 - SerDes1 control register 0 */ |
| 1116 | char res13b[4]; |
| 1117 | uint srds1cr1; /* 0xe0f08 - SerDes1 control register 1 */ |
| 1118 | char res14[24]; |
| 1119 | uint ddrioovcr; /* 0xe0f24 - DDR IO Overdrive Control register */ |
| 1120 | char res15a[24]; |
| 1121 | uint srds2cr0; /* 0xe0f40 - SerDes2 control register 0 */ |
| 1122 | uint srds2cr1; /* 0xe0f44 - SerDes2 control register 1 */ |
| 1123 | char res16[184]; |
Jon Loeliger | 5c8aa97 | 2006-04-26 17:58:56 -0500 | [diff] [blame] | 1124 | } ccsr_gur_t; |
| 1125 | |
Kumar Gala | 84c70bd | 2010-01-12 11:51:52 -0600 | [diff] [blame] | 1126 | #define MPC8610_PORBMSR_HA 0x00070000 |
| 1127 | #define MPC8610_PORBMSR_HA_SHIFT 16 |
| 1128 | #define MPC8641_PORBMSR_HA 0x00060000 |
| 1129 | #define MPC8641_PORBMSR_HA_SHIFT 17 |
| 1130 | #define MPC8610_PORDEVSR_IO_SEL 0x00380000 |
| 1131 | #define MPC8610_PORDEVSR_IO_SEL_SHIFT 19 |
| 1132 | #define MPC8641_PORDEVSR_IO_SEL 0x000F0000 |
| 1133 | #define MPC8641_PORDEVSR_IO_SEL_SHIFT 16 |
| 1134 | #define MPC86xx_PORDEVSR_CORE1TE 0x00000080 /* ASMP (Core1 addr trans) */ |
| 1135 | #define MPC86xx_DEVDISR_PCIEX1 0x80000000 |
| 1136 | #define MPC86xx_DEVDISR_PCIEX2 0x40000000 |
| 1137 | #define MPC86xx_DEVDISR_PCI1 0x80000000 |
| 1138 | #define MPC86xx_DEVDISR_PCIE1 0x40000000 |
| 1139 | #define MPC86xx_DEVDISR_PCIE2 0x20000000 |
Kumar Gala | 3cdbd00 | 2011-01-04 17:07:54 -0600 | [diff] [blame] | 1140 | #define MPC86xx_DEVDISR_SRIO 0x00080000 |
| 1141 | #define MPC86xx_DEVDISR_RMSG 0x00040000 |
Kumar Gala | 84c70bd | 2010-01-12 11:51:52 -0600 | [diff] [blame] | 1142 | #define MPC86xx_DEVDISR_CPU0 0x00008000 |
| 1143 | #define MPC86xx_DEVDISR_CPU1 0x00004000 |
| 1144 | #define MPC86xx_RSTCR_HRST_REQ 0x00000002 |
| 1145 | |
Jason Jin | 6c71b94 | 2008-05-13 11:50:36 +0800 | [diff] [blame] | 1146 | /* |
| 1147 | * Watchdog register block(0xe_4000-0xe_4fff) |
| 1148 | */ |
| 1149 | typedef struct ccsr_wdt { |
| 1150 | uint res0; |
| 1151 | uint swcrr; /* System watchdog control register */ |
| 1152 | uint swcnr; /* System watchdog count register */ |
| 1153 | char res1[2]; |
| 1154 | ushort swsrr; /* System watchdog service register */ |
| 1155 | char res2[4080]; |
| 1156 | } ccsr_wdt_t; |
| 1157 | |
Jon Loeliger | 5c8aa97 | 2006-04-26 17:58:56 -0500 | [diff] [blame] | 1158 | typedef struct immap { |
| 1159 | ccsr_local_mcm_t im_local_mcm; |
York Sun | a21803d | 2013-11-18 10:29:32 -0800 | [diff] [blame] | 1160 | struct ccsr_ddr im_ddr1; |
Jon Loeliger | 5c8aa97 | 2006-04-26 17:58:56 -0500 | [diff] [blame] | 1161 | ccsr_i2c_t im_i2c; |
| 1162 | ccsr_duart_t im_duart; |
Becky Bruce | 0d4cee1 | 2010-06-17 11:37:20 -0500 | [diff] [blame] | 1163 | fsl_lbc_t im_lbc; |
York Sun | a21803d | 2013-11-18 10:29:32 -0800 | [diff] [blame] | 1164 | struct ccsr_ddr im_ddr2; |
Jon Loeliger | fcccf8a | 2006-10-10 17:16:04 -0500 | [diff] [blame] | 1165 | char res1[4096]; |
Jon Loeliger | 5c8aa97 | 2006-04-26 17:58:56 -0500 | [diff] [blame] | 1166 | ccsr_pex_t im_pex1; |
Jon Loeliger | fcccf8a | 2006-10-10 17:16:04 -0500 | [diff] [blame] | 1167 | ccsr_pex_t im_pex2; |
| 1168 | ccsr_ht_t im_ht; |
| 1169 | char res2[90112]; |
Jon Loeliger | 5c8aa97 | 2006-04-26 17:58:56 -0500 | [diff] [blame] | 1170 | ccsr_dma_t im_dma; |
Jon Loeliger | fcccf8a | 2006-10-10 17:16:04 -0500 | [diff] [blame] | 1171 | char res3[8192]; |
Jon Loeliger | 5c8aa97 | 2006-04-26 17:58:56 -0500 | [diff] [blame] | 1172 | ccsr_tsec_t im_tsec1; |
| 1173 | ccsr_tsec_t im_tsec2; |
Jon Loeliger | fcccf8a | 2006-10-10 17:16:04 -0500 | [diff] [blame] | 1174 | ccsr_tsec_t im_tsec3; |
| 1175 | ccsr_tsec_t im_tsec4; |
| 1176 | char res4[98304]; |
Jon Loeliger | 5c8aa97 | 2006-04-26 17:58:56 -0500 | [diff] [blame] | 1177 | ccsr_pic_t im_pic; |
Jon Loeliger | fcccf8a | 2006-10-10 17:16:04 -0500 | [diff] [blame] | 1178 | char res5[389120]; |
Jon Loeliger | 5c8aa97 | 2006-04-26 17:58:56 -0500 | [diff] [blame] | 1179 | ccsr_rio_t im_rio; |
| 1180 | ccsr_gur_t im_gur; |
Jason Jin | 6c71b94 | 2008-05-13 11:50:36 +0800 | [diff] [blame] | 1181 | char res6[12288]; |
| 1182 | ccsr_wdt_t im_wdt; |
Jon Loeliger | 5c8aa97 | 2006-04-26 17:58:56 -0500 | [diff] [blame] | 1183 | } immap_t; |
| 1184 | |
| 1185 | extern immap_t *immr; |
| 1186 | |
Andy Fleming | 992562c | 2012-10-23 19:03:46 -0500 | [diff] [blame] | 1187 | #define CONFIG_SYS_MPC8xxx_DDR_OFFSET 0x2000 |
York Sun | f062659 | 2013-09-30 09:22:09 -0700 | [diff] [blame] | 1188 | #define CONFIG_SYS_FSL_DDR_ADDR (CONFIG_SYS_IMMR + CONFIG_SYS_MPC8xxx_DDR_OFFSET) |
Andy Fleming | 992562c | 2012-10-23 19:03:46 -0500 | [diff] [blame] | 1189 | #define CONFIG_SYS_MPC8xxx_DDR2_OFFSET 0x6000 |
York Sun | f062659 | 2013-09-30 09:22:09 -0700 | [diff] [blame] | 1190 | #define CONFIG_SYS_FSL_DDR2_ADDR (CONFIG_SYS_IMMR + CONFIG_SYS_MPC8xxx_DDR2_OFFSET) |
Kim Phillips | 2ecbfeb | 2010-08-09 18:39:57 -0500 | [diff] [blame] | 1191 | #define CONFIG_SYS_MPC86xx_DMA_OFFSET 0x21000 |
Peter Tyser | 1c9f44e | 2009-05-21 12:10:00 -0500 | [diff] [blame] | 1192 | #define CONFIG_SYS_MPC86xx_DMA_ADDR (CONFIG_SYS_IMMR + CONFIG_SYS_MPC86xx_DMA_OFFSET) |
Kim Phillips | 2ecbfeb | 2010-08-09 18:39:57 -0500 | [diff] [blame] | 1193 | #define CONFIG_SYS_MPC86xx_PIC_OFFSET 0x40000 |
| 1194 | #define CONFIG_SYS_MPC8xxx_PIC_ADDR (CONFIG_SYS_IMMR + CONFIG_SYS_MPC86xx_PIC_OFFSET) |
| 1195 | |
Jon Loeliger | f757fa8 | 2008-02-12 14:53:28 -0600 | [diff] [blame] | 1196 | |
Kumar Gala | aec9b6b | 2010-07-08 22:35:59 -0500 | [diff] [blame] | 1197 | #define CONFIG_SYS_MPC86xx_PCI1_OFFSET 0x8000 |
York Sun | f48436a | 2016-11-23 14:06:21 -0800 | [diff] [blame] | 1198 | #ifdef CONFIG_ARCH_MPC8610 |
Kumar Gala | aec9b6b | 2010-07-08 22:35:59 -0500 | [diff] [blame] | 1199 | #define CONFIG_SYS_MPC86xx_PCIE1_OFFSET 0xa000 |
| 1200 | #else |
| 1201 | #define CONFIG_SYS_MPC86xx_PCIE1_OFFSET 0x8000 |
| 1202 | #endif |
| 1203 | #define CONFIG_SYS_MPC86xx_PCIE2_OFFSET 0x9000 |
| 1204 | |
| 1205 | #define CONFIG_SYS_PCI1_ADDR \ |
| 1206 | (CONFIG_SYS_IMMR + CONFIG_SYS_MPC86xx_PCI1_OFFSET) |
| 1207 | #define CONFIG_SYS_PCI2_ADDR \ |
| 1208 | (CONFIG_SYS_IMMR + CONFIG_SYS_MPC86xx_PCI2_OFFSET) |
| 1209 | #define CONFIG_SYS_PCIE1_ADDR \ |
| 1210 | (CONFIG_SYS_IMMR + CONFIG_SYS_MPC86xx_PCIE1_OFFSET) |
| 1211 | #define CONFIG_SYS_PCIE2_ADDR \ |
| 1212 | (CONFIG_SYS_IMMR + CONFIG_SYS_MPC86xx_PCIE2_OFFSET) |
| 1213 | |
Sandeep Gopalpet | b5541ef | 2009-10-31 00:35:04 +0530 | [diff] [blame] | 1214 | #define CONFIG_SYS_TSEC1_OFFSET 0x24000 |
Kumar Gala | 2e97293 | 2009-10-31 11:23:41 -0500 | [diff] [blame] | 1215 | #define CONFIG_SYS_MDIO1_OFFSET 0x24000 |
Becky Bruce | 0d4cee1 | 2010-06-17 11:37:20 -0500 | [diff] [blame] | 1216 | #define CONFIG_SYS_LBC_ADDR (&((immap_t *)CONFIG_SYS_IMMR)->im_lbc) |
Sandeep Gopalpet | b5541ef | 2009-10-31 00:35:04 +0530 | [diff] [blame] | 1217 | |
| 1218 | #define TSEC_BASE_ADDR (CONFIG_SYS_IMMR + CONFIG_SYS_TSEC1_OFFSET) |
| 1219 | #define MDIO_BASE_ADDR (CONFIG_SYS_IMMR + CONFIG_SYS_MDIO1_OFFSET) |
| 1220 | |
Jon Loeliger | 5c8aa97 | 2006-04-26 17:58:56 -0500 | [diff] [blame] | 1221 | #endif /*__IMMAP_86xx__*/ |