Eran Liberty | 9095d4a | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 1 | /* |
Dave Liu | 5245ff5 | 2007-09-18 12:36:11 +0800 | [diff] [blame] | 2 | * (C) Copyright 2004-2007 Freescale Semiconductor, Inc. |
Jon Loeliger | ebc7224 | 2005-08-01 13:20:47 -0500 | [diff] [blame] | 3 | * |
Dave Liu | f503592 | 2006-10-25 14:41:21 -0500 | [diff] [blame] | 4 | * MPC83xx Internal Memory Map |
| 5 | * |
Dave Liu | 0b6bc77 | 2006-12-07 21:11:58 +0800 | [diff] [blame] | 6 | * Contributors: |
| 7 | * Dave Liu <daveliu@freescale.com> |
| 8 | * Tanya Jiang <tanya.jiang@freescale.com> |
| 9 | * Mandy Lavi <mandy.lavi@freescale.com> |
| 10 | * Eran Liberty <liberty@freescale.com> |
Dave Liu | f503592 | 2006-10-25 14:41:21 -0500 | [diff] [blame] | 11 | * |
| 12 | * This program is free software; you can redistribute it and/or |
| 13 | * modify it under the terms of the GNU General Public License as |
| 14 | * published by the Free Software Foundation; either version 2 of |
| 15 | * the License, or (at your option) any later version. |
| 16 | * |
| 17 | * This program is distributed in the hope that it will be useful, |
| 18 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
Dave Liu | 0b6bc77 | 2006-12-07 21:11:58 +0800 | [diff] [blame] | 19 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
Dave Liu | f503592 | 2006-10-25 14:41:21 -0500 | [diff] [blame] | 20 | * GNU General Public License for more details. |
| 21 | * |
| 22 | * You should have received a copy of the GNU General Public License |
| 23 | * along with this program; if not, write to the Free Software |
| 24 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, |
| 25 | * MA 02111-1307 USA |
| 26 | * |
Eran Liberty | 9095d4a | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 27 | */ |
Dave Liu | f503592 | 2006-10-25 14:41:21 -0500 | [diff] [blame] | 28 | #ifndef __IMMAP_83xx__ |
| 29 | #define __IMMAP_83xx__ |
Eran Liberty | 9095d4a | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 30 | |
| 31 | #include <asm/types.h> |
Timur Tabi | ab34754 | 2006-11-03 19:15:00 -0600 | [diff] [blame] | 32 | #include <asm/fsl_i2c.h> |
Eran Liberty | 9095d4a | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 33 | |
Jon Loeliger | ebc7224 | 2005-08-01 13:20:47 -0500 | [diff] [blame] | 34 | /* |
Dave Liu | 0b6bc77 | 2006-12-07 21:11:58 +0800 | [diff] [blame] | 35 | * Local Access Window |
Eran Liberty | 9095d4a | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 36 | */ |
Dave Liu | f503592 | 2006-10-25 14:41:21 -0500 | [diff] [blame] | 37 | typedef struct law83xx { |
Dave Liu | fba1369 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 38 | u32 bar; /* LBIU local access window base address register */ |
Dave Liu | fba1369 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 39 | u32 ar; /* LBIU local access window attribute register */ |
Dave Liu | f503592 | 2006-10-25 14:41:21 -0500 | [diff] [blame] | 40 | } law83xx_t; |
Eran Liberty | 9095d4a | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 41 | |
Jon Loeliger | ebc7224 | 2005-08-01 13:20:47 -0500 | [diff] [blame] | 42 | /* |
Dave Liu | 0b6bc77 | 2006-12-07 21:11:58 +0800 | [diff] [blame] | 43 | * System configuration registers |
Eran Liberty | 9095d4a | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 44 | */ |
Dave Liu | f503592 | 2006-10-25 14:41:21 -0500 | [diff] [blame] | 45 | typedef struct sysconf83xx { |
Dave Liu | fba1369 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 46 | u32 immrbar; /* Internal memory map base address register */ |
Eran Liberty | 9095d4a | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 47 | u8 res0[0x04]; |
Dave Liu | fba1369 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 48 | u32 altcbar; /* Alternate configuration base address register */ |
Eran Liberty | 9095d4a | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 49 | u8 res1[0x14]; |
Dave Liu | fba1369 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 50 | law83xx_t lblaw[4]; /* LBIU local access window */ |
Eran Liberty | 9095d4a | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 51 | u8 res2[0x20]; |
Dave Liu | fba1369 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 52 | law83xx_t pcilaw[2]; /* PCI local access window */ |
Eran Liberty | 9095d4a | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 53 | u8 res3[0x30]; |
Dave Liu | fba1369 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 54 | law83xx_t ddrlaw[2]; /* DDR local access window */ |
Eran Liberty | 9095d4a | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 55 | u8 res4[0x50]; |
Dave Liu | fba1369 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 56 | u32 sgprl; /* System General Purpose Register Low */ |
| 57 | u32 sgprh; /* System General Purpose Register High */ |
| 58 | u32 spridr; /* System Part and Revision ID Register */ |
Eran Liberty | 9095d4a | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 59 | u8 res5[0x04]; |
Dave Liu | fba1369 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 60 | u32 spcr; /* System Priority Configuration Register */ |
Dave Liu | 0b6bc77 | 2006-12-07 21:11:58 +0800 | [diff] [blame] | 61 | u32 sicrl; /* System I/O Configuration Register Low */ |
| 62 | u32 sicrh; /* System I/O Configuration Register High */ |
Dave Liu | e740c46 | 2006-12-07 21:13:15 +0800 | [diff] [blame] | 63 | u8 res6[0x0C]; |
| 64 | u32 ddrcdr; /* DDR Control Driver Register */ |
| 65 | u32 ddrdsr; /* DDR Debug Status Register */ |
Dave Liu | 5245ff5 | 2007-09-18 12:36:11 +0800 | [diff] [blame] | 66 | u32 obir; /* Output Buffer Impedance Register */ |
| 67 | u8 res7[0xCC]; |
Dave Liu | f503592 | 2006-10-25 14:41:21 -0500 | [diff] [blame] | 68 | } sysconf83xx_t; |
Eran Liberty | 9095d4a | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 69 | |
Jon Loeliger | ebc7224 | 2005-08-01 13:20:47 -0500 | [diff] [blame] | 70 | /* |
Eran Liberty | 9095d4a | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 71 | * Watch Dog Timer (WDT) Registers |
| 72 | */ |
Dave Liu | f503592 | 2006-10-25 14:41:21 -0500 | [diff] [blame] | 73 | typedef struct wdt83xx { |
Jon Loeliger | ebc7224 | 2005-08-01 13:20:47 -0500 | [diff] [blame] | 74 | u8 res0[4]; |
Dave Liu | fba1369 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 75 | u32 swcrr; /* System watchdog control register */ |
| 76 | u32 swcnr; /* System watchdog count register */ |
Jon Loeliger | ebc7224 | 2005-08-01 13:20:47 -0500 | [diff] [blame] | 77 | u8 res1[2]; |
Dave Liu | fba1369 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 78 | u16 swsrr; /* System watchdog service register */ |
Eran Liberty | 9095d4a | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 79 | u8 res2[0xF0]; |
Dave Liu | f503592 | 2006-10-25 14:41:21 -0500 | [diff] [blame] | 80 | } wdt83xx_t; |
Jon Loeliger | ebc7224 | 2005-08-01 13:20:47 -0500 | [diff] [blame] | 81 | |
Eran Liberty | 9095d4a | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 82 | /* |
| 83 | * RTC/PIT Module Registers |
| 84 | */ |
Dave Liu | f503592 | 2006-10-25 14:41:21 -0500 | [diff] [blame] | 85 | typedef struct rtclk83xx { |
Dave Liu | fba1369 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 86 | u32 cnr; /* control register */ |
Dave Liu | fba1369 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 87 | u32 ldr; /* load register */ |
Dave Liu | fba1369 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 88 | u32 psr; /* prescale register */ |
Dave Liu | 0b6bc77 | 2006-12-07 21:11:58 +0800 | [diff] [blame] | 89 | u32 ctr; /* counter value field register */ |
Dave Liu | fba1369 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 90 | u32 evr; /* event register */ |
Dave Liu | fba1369 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 91 | u32 alr; /* alarm register */ |
Eran Liberty | 9095d4a | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 92 | u8 res0[0xE8]; |
Dave Liu | f503592 | 2006-10-25 14:41:21 -0500 | [diff] [blame] | 93 | } rtclk83xx_t; |
Eran Liberty | 9095d4a | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 94 | |
| 95 | /* |
Dave Liu | 0b6bc77 | 2006-12-07 21:11:58 +0800 | [diff] [blame] | 96 | * Global timer module |
Eran Liberty | 9095d4a | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 97 | */ |
Dave Liu | f503592 | 2006-10-25 14:41:21 -0500 | [diff] [blame] | 98 | typedef struct gtm83xx { |
Dave Liu | 0b6bc77 | 2006-12-07 21:11:58 +0800 | [diff] [blame] | 99 | u8 cfr1; /* Timer1/2 Configuration */ |
Dave Liu | fba1369 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 100 | u8 res0[3]; |
Dave Liu | 0b6bc77 | 2006-12-07 21:11:58 +0800 | [diff] [blame] | 101 | u8 cfr2; /* Timer3/4 Configuration */ |
Dave Liu | fba1369 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 102 | u8 res1[10]; |
Dave Liu | 0b6bc77 | 2006-12-07 21:11:58 +0800 | [diff] [blame] | 103 | u16 mdr1; /* Timer1 Mode Register */ |
| 104 | u16 mdr2; /* Timer2 Mode Register */ |
| 105 | u16 rfr1; /* Timer1 Reference Register */ |
| 106 | u16 rfr2; /* Timer2 Reference Register */ |
| 107 | u16 cpr1; /* Timer1 Capture Register */ |
| 108 | u16 cpr2; /* Timer2 Capture Register */ |
| 109 | u16 cnr1; /* Timer1 Counter Register */ |
| 110 | u16 cnr2; /* Timer2 Counter Register */ |
| 111 | u16 mdr3; /* Timer3 Mode Register */ |
| 112 | u16 mdr4; /* Timer4 Mode Register */ |
| 113 | u16 rfr3; /* Timer3 Reference Register */ |
| 114 | u16 rfr4; /* Timer4 Reference Register */ |
| 115 | u16 cpr3; /* Timer3 Capture Register */ |
| 116 | u16 cpr4; /* Timer4 Capture Register */ |
| 117 | u16 cnr3; /* Timer3 Counter Register */ |
| 118 | u16 cnr4; /* Timer4 Counter Register */ |
| 119 | u16 evr1; /* Timer1 Event Register */ |
| 120 | u16 evr2; /* Timer2 Event Register */ |
| 121 | u16 evr3; /* Timer3 Event Register */ |
| 122 | u16 evr4; /* Timer4 Event Register */ |
| 123 | u16 psr1; /* Timer1 Prescaler Register */ |
| 124 | u16 psr2; /* Timer2 Prescaler Register */ |
| 125 | u16 psr3; /* Timer3 Prescaler Register */ |
| 126 | u16 psr4; /* Timer4 Prescaler Register */ |
Dave Liu | fba1369 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 127 | u8 res[0xC0]; |
Dave Liu | f503592 | 2006-10-25 14:41:21 -0500 | [diff] [blame] | 128 | } gtm83xx_t; |
Eran Liberty | 9095d4a | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 129 | |
| 130 | /* |
| 131 | * Integrated Programmable Interrupt Controller |
| 132 | */ |
Dave Liu | f503592 | 2006-10-25 14:41:21 -0500 | [diff] [blame] | 133 | typedef struct ipic83xx { |
Dave Liu | 0b6bc77 | 2006-12-07 21:11:58 +0800 | [diff] [blame] | 134 | u32 sicfr; /* System Global Interrupt Configuration Register */ |
| 135 | u32 sivcr; /* System Global Interrupt Vector Register */ |
| 136 | u32 sipnr_h; /* System Internal Interrupt Pending Register - High */ |
| 137 | u32 sipnr_l; /* System Internal Interrupt Pending Register - Low */ |
| 138 | u32 siprr_a; /* System Internal Interrupt Group A Priority Register */ |
Dave Liu | fba1369 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 139 | u8 res0[8]; |
Dave Liu | 0b6bc77 | 2006-12-07 21:11:58 +0800 | [diff] [blame] | 140 | u32 siprr_d; /* System Internal Interrupt Group D Priority Register */ |
| 141 | u32 simsr_h; /* System Internal Interrupt Mask Register - High */ |
| 142 | u32 simsr_l; /* System Internal Interrupt Mask Register - Low */ |
Dave Liu | fba1369 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 143 | u8 res1[4]; |
Dave Liu | 0b6bc77 | 2006-12-07 21:11:58 +0800 | [diff] [blame] | 144 | u32 sepnr; /* System External Interrupt Pending Register */ |
| 145 | u32 smprr_a; /* System Mixed Interrupt Group A Priority Register */ |
| 146 | u32 smprr_b; /* System Mixed Interrupt Group B Priority Register */ |
| 147 | u32 semsr; /* System External Interrupt Mask Register */ |
| 148 | u32 secnr; /* System External Interrupt Control Register */ |
| 149 | u32 sersr; /* System Error Status Register */ |
| 150 | u32 sermr; /* System Error Mask Register */ |
| 151 | u32 sercr; /* System Error Control Register */ |
Dave Liu | fba1369 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 152 | u8 res2[4]; |
Dave Liu | 0b6bc77 | 2006-12-07 21:11:58 +0800 | [diff] [blame] | 153 | u32 sifcr_h; /* System Internal Interrupt Force Register - High */ |
| 154 | u32 sifcr_l; /* System Internal Interrupt Force Register - Low */ |
| 155 | u32 sefcr; /* System External Interrupt Force Register */ |
| 156 | u32 serfr; /* System Error Force Register */ |
Dave Liu | fba1369 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 157 | u32 scvcr; /* System Critical Interrupt Vector Register */ |
Dave Liu | fba1369 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 158 | u32 smvcr; /* System Management Interrupt Vector Register */ |
Dave Liu | fba1369 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 159 | u8 res3[0x98]; |
Dave Liu | f503592 | 2006-10-25 14:41:21 -0500 | [diff] [blame] | 160 | } ipic83xx_t; |
Eran Liberty | 9095d4a | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 161 | |
| 162 | /* |
| 163 | * System Arbiter Registers |
| 164 | */ |
Dave Liu | f503592 | 2006-10-25 14:41:21 -0500 | [diff] [blame] | 165 | typedef struct arbiter83xx { |
Dave Liu | fba1369 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 166 | u32 acr; /* Arbiter Configuration Register */ |
Dave Liu | fba1369 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 167 | u32 atr; /* Arbiter Timers Register */ |
Eran Liberty | 9095d4a | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 168 | u8 res[4]; |
Dave Liu | 0b6bc77 | 2006-12-07 21:11:58 +0800 | [diff] [blame] | 169 | u32 aer; /* Arbiter Event Register */ |
| 170 | u32 aidr; /* Arbiter Interrupt Definition Register */ |
| 171 | u32 amr; /* Arbiter Mask Register */ |
Dave Liu | fba1369 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 172 | u32 aeatr; /* Arbiter Event Attributes Register */ |
Dave Liu | fba1369 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 173 | u32 aeadr; /* Arbiter Event Address Register */ |
Dave Liu | 0b6bc77 | 2006-12-07 21:11:58 +0800 | [diff] [blame] | 174 | u32 aerr; /* Arbiter Event Response Register */ |
Eran Liberty | 9095d4a | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 175 | u8 res1[0xDC]; |
Dave Liu | f503592 | 2006-10-25 14:41:21 -0500 | [diff] [blame] | 176 | } arbiter83xx_t; |
Eran Liberty | 9095d4a | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 177 | |
| 178 | /* |
| 179 | * Reset Module |
| 180 | */ |
Dave Liu | f503592 | 2006-10-25 14:41:21 -0500 | [diff] [blame] | 181 | typedef struct reset83xx { |
Dave Liu | 0b6bc77 | 2006-12-07 21:11:58 +0800 | [diff] [blame] | 182 | u32 rcwl; /* Reset Configuration Word Low Register */ |
| 183 | u32 rcwh; /* Reset Configuration Word High Register */ |
Dave Liu | fba1369 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 184 | u8 res0[8]; |
Dave Liu | 0b6bc77 | 2006-12-07 21:11:58 +0800 | [diff] [blame] | 185 | u32 rsr; /* Reset Status Register */ |
| 186 | u32 rmr; /* Reset Mode Register */ |
| 187 | u32 rpr; /* Reset protection Register */ |
| 188 | u32 rcr; /* Reset Control Register */ |
| 189 | u32 rcer; /* Reset Control Enable Register */ |
Dave Liu | fba1369 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 190 | u8 res1[0xDC]; |
Dave Liu | f503592 | 2006-10-25 14:41:21 -0500 | [diff] [blame] | 191 | } reset83xx_t; |
Jon Loeliger | ebc7224 | 2005-08-01 13:20:47 -0500 | [diff] [blame] | 192 | |
Dave Liu | 0b6bc77 | 2006-12-07 21:11:58 +0800 | [diff] [blame] | 193 | /* |
| 194 | * Clock Module |
| 195 | */ |
Dave Liu | f503592 | 2006-10-25 14:41:21 -0500 | [diff] [blame] | 196 | typedef struct clk83xx { |
Dave Liu | 0b6bc77 | 2006-12-07 21:11:58 +0800 | [diff] [blame] | 197 | u32 spmr; /* system PLL mode Register */ |
| 198 | u32 occr; /* output clock control Register */ |
| 199 | u32 sccr; /* system clock control Register */ |
Dave Liu | fba1369 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 200 | u8 res0[0xF4]; |
Dave Liu | f503592 | 2006-10-25 14:41:21 -0500 | [diff] [blame] | 201 | } clk83xx_t; |
Eran Liberty | 9095d4a | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 202 | |
| 203 | /* |
| 204 | * Power Management Control Module |
| 205 | */ |
Dave Liu | f503592 | 2006-10-25 14:41:21 -0500 | [diff] [blame] | 206 | typedef struct pmc83xx { |
Dave Liu | 0b6bc77 | 2006-12-07 21:11:58 +0800 | [diff] [blame] | 207 | u32 pmccr; /* PMC Configuration Register */ |
| 208 | u32 pmcer; /* PMC Event Register */ |
| 209 | u32 pmcmr; /* PMC Mask Register */ |
Scott Wood | 9f15d50 | 2007-04-16 14:31:55 -0500 | [diff] [blame] | 210 | u32 pmccr1; /* PMC Configuration Register 1 */ |
| 211 | u32 pmccr2; /* PMC Configuration Register 2 */ |
| 212 | u8 res0[0xEC]; |
Dave Liu | f503592 | 2006-10-25 14:41:21 -0500 | [diff] [blame] | 213 | } pmc83xx_t; |
Eran Liberty | 9095d4a | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 214 | |
| 215 | /* |
Dave Liu | 0b6bc77 | 2006-12-07 21:11:58 +0800 | [diff] [blame] | 216 | * General purpose I/O module |
Eran Liberty | 9095d4a | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 217 | */ |
Dave Liu | f503592 | 2006-10-25 14:41:21 -0500 | [diff] [blame] | 218 | typedef struct gpio83xx { |
Dave Liu | fba1369 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 219 | u32 dir; /* direction register */ |
| 220 | u32 odr; /* open drain register */ |
| 221 | u32 dat; /* data register */ |
| 222 | u32 ier; /* interrupt event register */ |
| 223 | u32 imr; /* interrupt mask register */ |
| 224 | u32 icr; /* external interrupt control register */ |
Eran Liberty | 9095d4a | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 225 | u8 res0[0xE8]; |
Dave Liu | f503592 | 2006-10-25 14:41:21 -0500 | [diff] [blame] | 226 | } gpio83xx_t; |
Dave Liu | fba1369 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 227 | |
Dave Liu | fba1369 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 228 | /* |
| 229 | * QE Ports Interrupts Registers |
| 230 | */ |
| 231 | typedef struct qepi83xx { |
| 232 | u8 res0[0xC]; |
| 233 | u32 qepier; /* QE Ports Interrupt Event Register */ |
Dave Liu | fba1369 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 234 | u32 qepimr; /* QE Ports Interrupt Mask Register */ |
Dave Liu | fba1369 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 235 | u32 qepicr; /* QE Ports Interrupt Control Register */ |
Dave Liu | fba1369 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 236 | u8 res1[0xE8]; |
| 237 | } qepi83xx_t; |
Eran Liberty | 9095d4a | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 238 | |
Jon Loeliger | ebc7224 | 2005-08-01 13:20:47 -0500 | [diff] [blame] | 239 | /* |
Dave Liu | 0b6bc77 | 2006-12-07 21:11:58 +0800 | [diff] [blame] | 240 | * QE Parallel I/O Ports |
Dave Liu | fba1369 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 241 | */ |
| 242 | typedef struct gpio_n { |
| 243 | u32 podr; /* Open Drain Register */ |
| 244 | u32 pdat; /* Data Register */ |
| 245 | u32 dir1; /* direction register 1 */ |
| 246 | u32 dir2; /* direction register 2 */ |
| 247 | u32 ppar1; /* Pin Assignment Register 1 */ |
| 248 | u32 ppar2; /* Pin Assignment Register 2 */ |
| 249 | } gpio_n_t; |
| 250 | |
Dave Liu | 0b6bc77 | 2006-12-07 21:11:58 +0800 | [diff] [blame] | 251 | typedef struct qegpio83xx { |
Dave Liu | fba1369 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 252 | gpio_n_t ioport[0x7]; |
| 253 | u8 res0[0x358]; |
Dave Liu | 0b6bc77 | 2006-12-07 21:11:58 +0800 | [diff] [blame] | 254 | } qepio83xx_t; |
Dave Liu | fba1369 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 255 | |
| 256 | /* |
| 257 | * QE Secondary Bus Access Windows |
| 258 | */ |
Dave Liu | fba1369 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 259 | typedef struct qesba83xx { |
| 260 | u32 lbmcsar; /* Local bus memory controller start address */ |
Dave Liu | fba1369 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 261 | u32 sdmcsar; /* Secondary DDR memory controller start address */ |
Dave Liu | fba1369 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 262 | u8 res0[0x38]; |
| 263 | u32 lbmcear; /* Local bus memory controller end address */ |
Dave Liu | fba1369 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 264 | u32 sdmcear; /* Secondary DDR memory controller end address */ |
Dave Liu | fba1369 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 265 | u8 res1[0x38]; |
Dave Liu | 0b6bc77 | 2006-12-07 21:11:58 +0800 | [diff] [blame] | 266 | u32 lbmcar; /* Local bus memory controller attributes */ |
Dave Liu | fba1369 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 267 | u32 sdmcar; /* Secondary DDR memory controller attributes */ |
Dave Liu | 0b6bc77 | 2006-12-07 21:11:58 +0800 | [diff] [blame] | 268 | u8 res2[0x378]; |
Dave Liu | fba1369 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 269 | } qesba83xx_t; |
Dave Liu | fba1369 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 270 | |
| 271 | /* |
Eran Liberty | 9095d4a | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 272 | * DDR Memory Controller Memory Map |
| 273 | */ |
Dave Liu | fba1369 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 274 | typedef struct ddr_cs_bnds { |
Jon Loeliger | ebc7224 | 2005-08-01 13:20:47 -0500 | [diff] [blame] | 275 | u32 csbnds; |
Dave Liu | fba1369 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 276 | u8 res0[4]; |
Eran Liberty | 9095d4a | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 277 | } ddr_cs_bnds_t; |
| 278 | |
Dave Liu | f503592 | 2006-10-25 14:41:21 -0500 | [diff] [blame] | 279 | typedef struct ddr83xx { |
Dave Liu | 0b6bc77 | 2006-12-07 21:11:58 +0800 | [diff] [blame] | 280 | ddr_cs_bnds_t csbnds[4];/* Chip Select x Memory Bounds */ |
Jon Loeliger | ebc7224 | 2005-08-01 13:20:47 -0500 | [diff] [blame] | 281 | u8 res0[0x60]; |
Dave Liu | 0b6bc77 | 2006-12-07 21:11:58 +0800 | [diff] [blame] | 282 | u32 cs_config[4]; /* Chip Select x Configuration */ |
Dave Liu | e740c46 | 2006-12-07 21:13:15 +0800 | [diff] [blame] | 283 | u8 res1[0x70]; |
| 284 | u32 timing_cfg_3; /* SDRAM Timing Configuration 3 */ |
| 285 | u32 timing_cfg_0; /* SDRAM Timing Configuration 0 */ |
Dave Liu | 0b6bc77 | 2006-12-07 21:11:58 +0800 | [diff] [blame] | 286 | u32 timing_cfg_1; /* SDRAM Timing Configuration 1 */ |
| 287 | u32 timing_cfg_2; /* SDRAM Timing Configuration 2 */ |
| 288 | u32 sdram_cfg; /* SDRAM Control Configuration */ |
Dave Liu | e740c46 | 2006-12-07 21:13:15 +0800 | [diff] [blame] | 289 | u32 sdram_cfg2; /* SDRAM Control Configuration 2 */ |
Dave Liu | 0b6bc77 | 2006-12-07 21:11:58 +0800 | [diff] [blame] | 290 | u32 sdram_mode; /* SDRAM Mode Configuration */ |
Dave Liu | e740c46 | 2006-12-07 21:13:15 +0800 | [diff] [blame] | 291 | u32 sdram_mode2; /* SDRAM Mode Configuration 2 */ |
| 292 | u32 sdram_md_cntl; /* SDRAM Mode Control */ |
Dave Liu | 0b6bc77 | 2006-12-07 21:11:58 +0800 | [diff] [blame] | 293 | u32 sdram_interval; /* SDRAM Interval Configuration */ |
Dave Liu | e740c46 | 2006-12-07 21:13:15 +0800 | [diff] [blame] | 294 | u32 ddr_data_init; /* SDRAM Data Initialization */ |
| 295 | u8 res2[4]; |
| 296 | u32 sdram_clk_cntl; /* SDRAM Clock Control */ |
| 297 | u8 res3[0x14]; |
| 298 | u32 ddr_init_addr; /* DDR training initialization address */ |
| 299 | u32 ddr_init_ext_addr; /* DDR training initialization extended address */ |
| 300 | u8 res4[0xAA8]; |
| 301 | u32 ddr_ip_rev1; /* DDR IP block revision 1 */ |
| 302 | u32 ddr_ip_rev2; /* DDR IP block revision 2 */ |
| 303 | u8 res5[0x200]; |
Dave Liu | 0b6bc77 | 2006-12-07 21:11:58 +0800 | [diff] [blame] | 304 | u32 data_err_inject_hi; /* Memory Data Path Error Injection Mask High */ |
| 305 | u32 data_err_inject_lo; /* Memory Data Path Error Injection Mask Low */ |
| 306 | u32 ecc_err_inject; /* Memory Data Path Error Injection Mask ECC */ |
Dave Liu | e740c46 | 2006-12-07 21:13:15 +0800 | [diff] [blame] | 307 | u8 res6[0x14]; |
Dave Liu | 0b6bc77 | 2006-12-07 21:11:58 +0800 | [diff] [blame] | 308 | u32 capture_data_hi; /* Memory Data Path Read Capture High */ |
| 309 | u32 capture_data_lo; /* Memory Data Path Read Capture Low */ |
| 310 | u32 capture_ecc; /* Memory Data Path Read Capture ECC */ |
Dave Liu | e740c46 | 2006-12-07 21:13:15 +0800 | [diff] [blame] | 311 | u8 res7[0x14]; |
Dave Liu | 0b6bc77 | 2006-12-07 21:11:58 +0800 | [diff] [blame] | 312 | u32 err_detect; /* Memory Error Detect */ |
| 313 | u32 err_disable; /* Memory Error Disable */ |
| 314 | u32 err_int_en; /* Memory Error Interrupt Enable */ |
| 315 | u32 capture_attributes; /* Memory Error Attributes Capture */ |
| 316 | u32 capture_address; /* Memory Error Address Capture */ |
| 317 | u32 capture_ext_address;/* Memory Error Extended Address Capture */ |
| 318 | u32 err_sbe; /* Memory Single-Bit ECC Error Management */ |
Dave Liu | e740c46 | 2006-12-07 21:13:15 +0800 | [diff] [blame] | 319 | u8 res8[0xA4]; |
Eran Liberty | 9095d4a | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 320 | u32 debug_reg; |
Dave Liu | e740c46 | 2006-12-07 21:13:15 +0800 | [diff] [blame] | 321 | u8 res9[0xFC]; |
Dave Liu | f503592 | 2006-10-25 14:41:21 -0500 | [diff] [blame] | 322 | } ddr83xx_t; |
Eran Liberty | 9095d4a | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 323 | |
| 324 | /* |
Eran Liberty | 9095d4a | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 325 | * DUART |
| 326 | */ |
Dave Liu | fba1369 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 327 | typedef struct duart83xx { |
Dave Liu | 0b6bc77 | 2006-12-07 21:11:58 +0800 | [diff] [blame] | 328 | u8 urbr_ulcr_udlb; /* combined register for URBR, UTHR and UDLB */ |
| 329 | u8 uier_udmb; /* combined register for UIER and UDMB */ |
| 330 | u8 uiir_ufcr_uafr; /* combined register for UIIR, UFCR and UAFR */ |
| 331 | u8 ulcr; /* line control register */ |
| 332 | u8 umcr; /* MODEM control register */ |
| 333 | u8 ulsr; /* line status register */ |
| 334 | u8 umsr; /* MODEM status register */ |
| 335 | u8 uscr; /* scratch register */ |
Jon Loeliger | ebc7224 | 2005-08-01 13:20:47 -0500 | [diff] [blame] | 336 | u8 res0[8]; |
Dave Liu | 0b6bc77 | 2006-12-07 21:11:58 +0800 | [diff] [blame] | 337 | u8 udsr; /* DMA status register */ |
Jon Loeliger | ebc7224 | 2005-08-01 13:20:47 -0500 | [diff] [blame] | 338 | u8 res1[3]; |
| 339 | u8 res2[0xEC]; |
Dave Liu | f503592 | 2006-10-25 14:41:21 -0500 | [diff] [blame] | 340 | } duart83xx_t; |
Eran Liberty | 9095d4a | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 341 | |
| 342 | /* |
| 343 | * Local Bus Controller Registers |
| 344 | */ |
Dave Liu | fba1369 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 345 | typedef struct lbus_bank { |
Dave Liu | 0b6bc77 | 2006-12-07 21:11:58 +0800 | [diff] [blame] | 346 | u32 br; /* Base Register */ |
| 347 | u32 or; /* Option Register */ |
Eran Liberty | 9095d4a | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 348 | } lbus_bank_t; |
| 349 | |
Dave Liu | f503592 | 2006-10-25 14:41:21 -0500 | [diff] [blame] | 350 | typedef struct lbus83xx { |
Jon Loeliger | ebc7224 | 2005-08-01 13:20:47 -0500 | [diff] [blame] | 351 | lbus_bank_t bank[8]; |
| 352 | u8 res0[0x28]; |
Dave Liu | 0b6bc77 | 2006-12-07 21:11:58 +0800 | [diff] [blame] | 353 | u32 mar; /* UPM Address Register */ |
Jon Loeliger | ebc7224 | 2005-08-01 13:20:47 -0500 | [diff] [blame] | 354 | u8 res1[0x4]; |
Dave Liu | 0b6bc77 | 2006-12-07 21:11:58 +0800 | [diff] [blame] | 355 | u32 mamr; /* UPMA Mode Register */ |
| 356 | u32 mbmr; /* UPMB Mode Register */ |
| 357 | u32 mcmr; /* UPMC Mode Register */ |
Jon Loeliger | ebc7224 | 2005-08-01 13:20:47 -0500 | [diff] [blame] | 358 | u8 res2[0x8]; |
Dave Liu | 0b6bc77 | 2006-12-07 21:11:58 +0800 | [diff] [blame] | 359 | u32 mrtpr; /* Memory Refresh Timer Prescaler Register */ |
| 360 | u32 mdr; /* UPM Data Register */ |
Scott Wood | 9f15d50 | 2007-04-16 14:31:55 -0500 | [diff] [blame] | 361 | u8 res3[0x4]; |
| 362 | u32 lsor; /* Special Operation Initiation Register */ |
Dave Liu | 0b6bc77 | 2006-12-07 21:11:58 +0800 | [diff] [blame] | 363 | u32 lsdmr; /* SDRAM Mode Register */ |
Jon Loeliger | ebc7224 | 2005-08-01 13:20:47 -0500 | [diff] [blame] | 364 | u8 res4[0x8]; |
Dave Liu | 0b6bc77 | 2006-12-07 21:11:58 +0800 | [diff] [blame] | 365 | u32 lurt; /* UPM Refresh Timer */ |
| 366 | u32 lsrt; /* SDRAM Refresh Timer */ |
Jon Loeliger | ebc7224 | 2005-08-01 13:20:47 -0500 | [diff] [blame] | 367 | u8 res5[0x8]; |
Dave Liu | 0b6bc77 | 2006-12-07 21:11:58 +0800 | [diff] [blame] | 368 | u32 ltesr; /* Transfer Error Status Register */ |
| 369 | u32 ltedr; /* Transfer Error Disable Register */ |
| 370 | u32 lteir; /* Transfer Error Interrupt Register */ |
| 371 | u32 lteatr; /* Transfer Error Attributes Register */ |
| 372 | u32 ltear; /* Transfer Error Address Register */ |
Jon Loeliger | ebc7224 | 2005-08-01 13:20:47 -0500 | [diff] [blame] | 373 | u8 res6[0xC]; |
Dave Liu | 0b6bc77 | 2006-12-07 21:11:58 +0800 | [diff] [blame] | 374 | u32 lbcr; /* Configuration Register */ |
| 375 | u32 lcrr; /* Clock Ratio Register */ |
Scott Wood | 9f15d50 | 2007-04-16 14:31:55 -0500 | [diff] [blame] | 376 | u8 res7[0x8]; |
| 377 | u32 fmr; /* Flash Mode Register */ |
| 378 | u32 fir; /* Flash Instruction Register */ |
| 379 | u32 fcr; /* Flash Command Register */ |
| 380 | u32 fbar; /* Flash Block Addr Register */ |
| 381 | u32 fpar; /* Flash Page Addr Register */ |
| 382 | u32 fbcr; /* Flash Byte Count Register */ |
| 383 | u8 res8[0xF08]; |
Dave Liu | f503592 | 2006-10-25 14:41:21 -0500 | [diff] [blame] | 384 | } lbus83xx_t; |
Eran Liberty | 9095d4a | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 385 | |
| 386 | /* |
| 387 | * Serial Peripheral Interface |
| 388 | */ |
Dave Liu | fba1369 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 389 | typedef struct spi83xx { |
Dave Liu | 0b6bc77 | 2006-12-07 21:11:58 +0800 | [diff] [blame] | 390 | u32 mode; /* mode register */ |
| 391 | u32 event; /* event register */ |
| 392 | u32 mask; /* mask register */ |
| 393 | u32 com; /* command register */ |
Jon Loeliger | ebc7224 | 2005-08-01 13:20:47 -0500 | [diff] [blame] | 394 | u8 res0[0x10]; |
Dave Liu | 0b6bc77 | 2006-12-07 21:11:58 +0800 | [diff] [blame] | 395 | u32 tx; /* transmit register */ |
| 396 | u32 rx; /* receive register */ |
| 397 | u8 res1[0xFD8]; |
Dave Liu | f503592 | 2006-10-25 14:41:21 -0500 | [diff] [blame] | 398 | } spi83xx_t; |
Marian Balakowicz | 7ec9ebc | 2006-03-14 16:14:48 +0100 | [diff] [blame] | 399 | |
| 400 | /* |
| 401 | * DMA/Messaging Unit |
| 402 | */ |
Dave Liu | f503592 | 2006-10-25 14:41:21 -0500 | [diff] [blame] | 403 | typedef struct dma83xx { |
Dave Liu | fba1369 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 404 | u32 res0[0xC]; /* 0x0-0x29 reseverd */ |
| 405 | u32 omisr; /* 0x30 Outbound message interrupt status register */ |
| 406 | u32 omimr; /* 0x34 Outbound message interrupt mask register */ |
| 407 | u32 res1[0x6]; /* 0x38-0x49 reserved */ |
Dave Liu | fba1369 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 408 | u32 imr0; /* 0x50 Inbound message register 0 */ |
| 409 | u32 imr1; /* 0x54 Inbound message register 1 */ |
| 410 | u32 omr0; /* 0x58 Outbound message register 0 */ |
| 411 | u32 omr1; /* 0x5C Outbound message register 1 */ |
Dave Liu | fba1369 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 412 | u32 odr; /* 0x60 Outbound doorbell register */ |
| 413 | u32 res2; /* 0x64-0x67 reserved */ |
| 414 | u32 idr; /* 0x68 Inbound doorbell register */ |
| 415 | u32 res3[0x5]; /* 0x6C-0x79 reserved */ |
Dave Liu | fba1369 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 416 | u32 imisr; /* 0x80 Inbound message interrupt status register */ |
| 417 | u32 imimr; /* 0x84 Inbound message interrupt mask register */ |
| 418 | u32 res4[0x1E]; /* 0x88-0x99 reserved */ |
Dave Liu | fba1369 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 419 | u32 dmamr0; /* 0x100 DMA 0 mode register */ |
| 420 | u32 dmasr0; /* 0x104 DMA 0 status register */ |
| 421 | u32 dmacdar0; /* 0x108 DMA 0 current descriptor address register */ |
| 422 | u32 res5; /* 0x10C reserved */ |
| 423 | u32 dmasar0; /* 0x110 DMA 0 source address register */ |
| 424 | u32 res6; /* 0x114 reserved */ |
| 425 | u32 dmadar0; /* 0x118 DMA 0 destination address register */ |
| 426 | u32 res7; /* 0x11C reserved */ |
| 427 | u32 dmabcr0; /* 0x120 DMA 0 byte count register */ |
| 428 | u32 dmandar0; /* 0x124 DMA 0 next descriptor address register */ |
| 429 | u32 res8[0x16]; /* 0x128-0x179 reserved */ |
Dave Liu | fba1369 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 430 | u32 dmamr1; /* 0x180 DMA 1 mode register */ |
| 431 | u32 dmasr1; /* 0x184 DMA 1 status register */ |
| 432 | u32 dmacdar1; /* 0x188 DMA 1 current descriptor address register */ |
| 433 | u32 res9; /* 0x18C reserved */ |
| 434 | u32 dmasar1; /* 0x190 DMA 1 source address register */ |
| 435 | u32 res10; /* 0x194 reserved */ |
| 436 | u32 dmadar1; /* 0x198 DMA 1 destination address register */ |
| 437 | u32 res11; /* 0x19C reserved */ |
| 438 | u32 dmabcr1; /* 0x1A0 DMA 1 byte count register */ |
| 439 | u32 dmandar1; /* 0x1A4 DMA 1 next descriptor address register */ |
| 440 | u32 res12[0x16]; /* 0x1A8-0x199 reserved */ |
Dave Liu | fba1369 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 441 | u32 dmamr2; /* 0x200 DMA 2 mode register */ |
| 442 | u32 dmasr2; /* 0x204 DMA 2 status register */ |
| 443 | u32 dmacdar2; /* 0x208 DMA 2 current descriptor address register */ |
| 444 | u32 res13; /* 0x20C reserved */ |
| 445 | u32 dmasar2; /* 0x210 DMA 2 source address register */ |
| 446 | u32 res14; /* 0x214 reserved */ |
| 447 | u32 dmadar2; /* 0x218 DMA 2 destination address register */ |
| 448 | u32 res15; /* 0x21C reserved */ |
| 449 | u32 dmabcr2; /* 0x220 DMA 2 byte count register */ |
| 450 | u32 dmandar2; /* 0x224 DMA 2 next descriptor address register */ |
| 451 | u32 res16[0x16]; /* 0x228-0x279 reserved */ |
Dave Liu | fba1369 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 452 | u32 dmamr3; /* 0x280 DMA 3 mode register */ |
| 453 | u32 dmasr3; /* 0x284 DMA 3 status register */ |
| 454 | u32 dmacdar3; /* 0x288 DMA 3 current descriptor address register */ |
| 455 | u32 res17; /* 0x28C reserved */ |
| 456 | u32 dmasar3; /* 0x290 DMA 3 source address register */ |
| 457 | u32 res18; /* 0x294 reserved */ |
| 458 | u32 dmadar3; /* 0x298 DMA 3 destination address register */ |
| 459 | u32 res19; /* 0x29C reserved */ |
| 460 | u32 dmabcr3; /* 0x2A0 DMA 3 byte count register */ |
| 461 | u32 dmandar3; /* 0x2A4 DMA 3 next descriptor address register */ |
Dave Liu | fba1369 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 462 | u32 dmagsr; /* 0x2A8 DMA general status register */ |
| 463 | u32 res20[0x15]; /* 0x2AC-0x2FF reserved */ |
Dave Liu | f503592 | 2006-10-25 14:41:21 -0500 | [diff] [blame] | 464 | } dma83xx_t; |
Eran Liberty | 9095d4a | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 465 | |
| 466 | /* |
| 467 | * PCI Software Configuration Registers |
| 468 | */ |
Dave Liu | f503592 | 2006-10-25 14:41:21 -0500 | [diff] [blame] | 469 | typedef struct pciconf83xx { |
Dave Liu | fba1369 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 470 | u32 config_address; |
Eran Liberty | 9095d4a | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 471 | u32 config_data; |
| 472 | u32 int_ack; |
Dave Liu | fba1369 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 473 | u8 res[116]; |
Dave Liu | f503592 | 2006-10-25 14:41:21 -0500 | [diff] [blame] | 474 | } pciconf83xx_t; |
Eran Liberty | 9095d4a | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 475 | |
| 476 | /* |
| 477 | * PCI Outbound Translation Register |
| 478 | */ |
| 479 | typedef struct pci_outbound_window { |
Dave Liu | fba1369 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 480 | u32 potar; |
| 481 | u8 res0[4]; |
| 482 | u32 pobar; |
| 483 | u8 res1[4]; |
| 484 | u32 pocmr; |
| 485 | u8 res2[4]; |
Dave Liu | f503592 | 2006-10-25 14:41:21 -0500 | [diff] [blame] | 486 | } pot83xx_t; |
Dave Liu | fba1369 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 487 | |
Eran Liberty | 9095d4a | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 488 | /* |
| 489 | * Sequencer |
Jon Loeliger | ebc7224 | 2005-08-01 13:20:47 -0500 | [diff] [blame] | 490 | */ |
Dave Liu | f503592 | 2006-10-25 14:41:21 -0500 | [diff] [blame] | 491 | typedef struct ios83xx { |
Dave Liu | fba1369 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 492 | pot83xx_t pot[6]; |
Dave Liu | fba1369 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 493 | u8 res0[0x60]; |
| 494 | u32 pmcr; |
| 495 | u8 res1[4]; |
| 496 | u32 dtcr; |
| 497 | u8 res2[4]; |
Dave Liu | f503592 | 2006-10-25 14:41:21 -0500 | [diff] [blame] | 498 | } ios83xx_t; |
Eran Liberty | 9095d4a | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 499 | |
| 500 | /* |
| 501 | * PCI Controller Control and Status Registers |
| 502 | */ |
Dave Liu | f503592 | 2006-10-25 14:41:21 -0500 | [diff] [blame] | 503 | typedef struct pcictrl83xx { |
Dave Liu | fba1369 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 504 | u32 esr; |
Dave Liu | fba1369 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 505 | u32 ecdr; |
Eran Liberty | 9095d4a | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 506 | u32 eer; |
Dave Liu | fba1369 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 507 | u32 eatcr; |
Dave Liu | fba1369 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 508 | u32 eacr; |
| 509 | u32 eeacr; |
Dave Liu | fba1369 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 510 | u32 edlcr; |
| 511 | u32 edhcr; |
Dave Liu | fba1369 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 512 | u32 gcr; |
| 513 | u32 ecr; |
| 514 | u32 gsr; |
| 515 | u8 res0[12]; |
| 516 | u32 pitar2; |
| 517 | u8 res1[4]; |
| 518 | u32 pibar2; |
| 519 | u32 piebar2; |
| 520 | u32 piwar2; |
| 521 | u8 res2[4]; |
| 522 | u32 pitar1; |
| 523 | u8 res3[4]; |
| 524 | u32 pibar1; |
| 525 | u32 piebar1; |
| 526 | u32 piwar1; |
| 527 | u8 res4[4]; |
| 528 | u32 pitar0; |
| 529 | u8 res5[4]; |
| 530 | u32 pibar0; |
| 531 | u8 res6[4]; |
| 532 | u32 piwar0; |
| 533 | u8 res7[132]; |
Dave Liu | f503592 | 2006-10-25 14:41:21 -0500 | [diff] [blame] | 534 | } pcictrl83xx_t; |
Eran Liberty | 9095d4a | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 535 | |
| 536 | /* |
Jon Loeliger | ebc7224 | 2005-08-01 13:20:47 -0500 | [diff] [blame] | 537 | * USB |
Eran Liberty | 9095d4a | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 538 | */ |
Dave Liu | f503592 | 2006-10-25 14:41:21 -0500 | [diff] [blame] | 539 | typedef struct usb83xx { |
Scott Wood | 9f15d50 | 2007-04-16 14:31:55 -0500 | [diff] [blame] | 540 | u8 fixme[0x1000]; |
Dave Liu | f503592 | 2006-10-25 14:41:21 -0500 | [diff] [blame] | 541 | } usb83xx_t; |
Eran Liberty | 9095d4a | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 542 | |
| 543 | /* |
| 544 | * TSEC |
| 545 | */ |
Dave Liu | f503592 | 2006-10-25 14:41:21 -0500 | [diff] [blame] | 546 | typedef struct tsec83xx { |
Eran Liberty | 9095d4a | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 547 | u8 fixme[0x1000]; |
Dave Liu | f503592 | 2006-10-25 14:41:21 -0500 | [diff] [blame] | 548 | } tsec83xx_t; |
Eran Liberty | 9095d4a | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 549 | |
| 550 | /* |
| 551 | * Security |
| 552 | */ |
Dave Liu | f503592 | 2006-10-25 14:41:21 -0500 | [diff] [blame] | 553 | typedef struct security83xx { |
Eran Liberty | 9095d4a | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 554 | u8 fixme[0x10000]; |
Dave Liu | f503592 | 2006-10-25 14:41:21 -0500 | [diff] [blame] | 555 | } security83xx_t; |
Eran Liberty | 9095d4a | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 556 | |
Dave Liu | 5245ff5 | 2007-09-18 12:36:11 +0800 | [diff] [blame] | 557 | /* |
| 558 | * PCI Express |
| 559 | */ |
| 560 | typedef struct pex83xx { |
| 561 | u8 fixme[0x1000]; |
| 562 | } pex83xx_t; |
| 563 | |
| 564 | /* |
| 565 | * SATA |
| 566 | */ |
| 567 | typedef struct sata83xx { |
| 568 | u8 fixme[0x1000]; |
| 569 | } sata83xx_t; |
| 570 | |
| 571 | /* |
| 572 | * eSDHC |
| 573 | */ |
| 574 | typedef struct sdhc83xx { |
| 575 | u8 fixme[0x1000]; |
| 576 | } sdhc83xx_t; |
| 577 | |
| 578 | /* |
| 579 | * SerDes |
| 580 | */ |
| 581 | typedef struct serdes83xx { |
| 582 | u8 fixme[0x100]; |
| 583 | } serdes83xx_t; |
| 584 | |
| 585 | /* |
| 586 | * On Chip ROM |
| 587 | */ |
| 588 | typedef struct rom83xx { |
| 589 | u8 mem[0x10000]; |
| 590 | } rom83xx_t; |
| 591 | |
Dave Liu | e0cfec8 | 2007-09-18 12:36:58 +0800 | [diff] [blame] | 592 | /* |
| 593 | * TDM |
| 594 | */ |
| 595 | typedef struct tdm83xx { |
| 596 | u8 fixme[0x200]; |
| 597 | } tdm83xx_t; |
| 598 | |
| 599 | /* |
| 600 | * TDM DMAC |
| 601 | */ |
| 602 | typedef struct tdmdmac83xx { |
| 603 | u8 fixme[0x2000]; |
| 604 | } tdmdmac83xx_t; |
| 605 | |
Kumar Gala | b7870e7 | 2007-01-30 14:08:30 -0600 | [diff] [blame] | 606 | #if defined(CONFIG_MPC834X) |
Dave Liu | 0b6bc77 | 2006-12-07 21:11:58 +0800 | [diff] [blame] | 607 | typedef struct immap { |
| 608 | sysconf83xx_t sysconf; /* System configuration */ |
| 609 | wdt83xx_t wdt; /* Watch Dog Timer (WDT) Registers */ |
| 610 | rtclk83xx_t rtc; /* Real Time Clock Module Registers */ |
| 611 | rtclk83xx_t pit; /* Periodic Interval Timer */ |
| 612 | gtm83xx_t gtm[2]; /* Global Timers Module */ |
| 613 | ipic83xx_t ipic; /* Integrated Programmable Interrupt Controller */ |
| 614 | arbiter83xx_t arbiter; /* System Arbiter Registers */ |
| 615 | reset83xx_t reset; /* Reset Module */ |
| 616 | clk83xx_t clk; /* System Clock Module */ |
| 617 | pmc83xx_t pmc; /* Power Management Control Module */ |
| 618 | gpio83xx_t gpio[2]; /* General purpose I/O module */ |
| 619 | u8 res0[0x200]; |
| 620 | u8 dll_ddr[0x100]; |
| 621 | u8 dll_lbc[0x100]; |
| 622 | u8 res1[0xE00]; |
| 623 | ddr83xx_t ddr; /* DDR Memory Controller Memory */ |
| 624 | fsl_i2c_t i2c[2]; /* I2C Controllers */ |
| 625 | u8 res2[0x1300]; |
| 626 | duart83xx_t duart[2]; /* DUART */ |
| 627 | u8 res3[0x900]; |
| 628 | lbus83xx_t lbus; /* Local Bus Controller Registers */ |
| 629 | u8 res4[0x1000]; |
| 630 | spi83xx_t spi; /* Serial Peripheral Interface */ |
| 631 | dma83xx_t dma; /* DMA */ |
| 632 | pciconf83xx_t pci_conf[2]; /* PCI Software Configuration Registers */ |
| 633 | ios83xx_t ios; /* Sequencer */ |
| 634 | pcictrl83xx_t pci_ctrl[2]; /* PCI Controller Control and Status Registers */ |
| 635 | u8 res5[0x19900]; |
Scott Wood | 9f15d50 | 2007-04-16 14:31:55 -0500 | [diff] [blame] | 636 | usb83xx_t usb[2]; |
| 637 | tsec83xx_t tsec[2]; |
| 638 | u8 res6[0xA000]; |
| 639 | security83xx_t security; |
| 640 | u8 res7[0xC0000]; |
| 641 | } immap_t; |
| 642 | |
Dave Liu | e0cfec8 | 2007-09-18 12:36:58 +0800 | [diff] [blame] | 643 | #elif defined(CONFIG_MPC8313) |
Scott Wood | 9f15d50 | 2007-04-16 14:31:55 -0500 | [diff] [blame] | 644 | typedef struct immap { |
| 645 | sysconf83xx_t sysconf; /* System configuration */ |
| 646 | wdt83xx_t wdt; /* Watch Dog Timer (WDT) Registers */ |
| 647 | rtclk83xx_t rtc; /* Real Time Clock Module Registers */ |
| 648 | rtclk83xx_t pit; /* Periodic Interval Timer */ |
| 649 | gtm83xx_t gtm[2]; /* Global Timers Module */ |
| 650 | ipic83xx_t ipic; /* Integrated Programmable Interrupt Controller */ |
| 651 | arbiter83xx_t arbiter; /* System Arbiter Registers */ |
| 652 | reset83xx_t reset; /* Reset Module */ |
| 653 | clk83xx_t clk; /* System Clock Module */ |
| 654 | pmc83xx_t pmc; /* Power Management Control Module */ |
| 655 | gpio83xx_t gpio[1]; /* General purpose I/O module */ |
| 656 | u8 res0[0x1300]; |
| 657 | ddr83xx_t ddr; /* DDR Memory Controller Memory */ |
| 658 | fsl_i2c_t i2c[2]; /* I2C Controllers */ |
| 659 | u8 res1[0x1300]; |
| 660 | duart83xx_t duart[2]; /* DUART */ |
| 661 | u8 res2[0x900]; |
| 662 | lbus83xx_t lbus; /* Local Bus Controller Registers */ |
| 663 | u8 res3[0x1000]; |
| 664 | spi83xx_t spi; /* Serial Peripheral Interface */ |
| 665 | dma83xx_t dma; /* DMA */ |
| 666 | pciconf83xx_t pci_conf[1]; /* PCI Software Configuration Registers */ |
| 667 | u8 res4[0x80]; |
| 668 | ios83xx_t ios; /* Sequencer */ |
| 669 | pcictrl83xx_t pci_ctrl[1]; /* PCI Controller Control and Status Registers */ |
| 670 | u8 res5[0x1aa00]; |
| 671 | usb83xx_t usb[1]; |
Dave Liu | 0b6bc77 | 2006-12-07 21:11:58 +0800 | [diff] [blame] | 672 | tsec83xx_t tsec[2]; |
| 673 | u8 res6[0xA000]; |
| 674 | security83xx_t security; |
| 675 | u8 res7[0xC0000]; |
| 676 | } immap_t; |
Dave Liu | fba1369 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 677 | |
Dave Liu | e0cfec8 | 2007-09-18 12:36:58 +0800 | [diff] [blame] | 678 | #elif defined(CONFIG_MPC8315) |
| 679 | typedef struct immap { |
| 680 | sysconf83xx_t sysconf; /* System configuration */ |
| 681 | wdt83xx_t wdt; /* Watch Dog Timer (WDT) Registers */ |
| 682 | rtclk83xx_t rtc; /* Real Time Clock Module Registers */ |
| 683 | rtclk83xx_t pit; /* Periodic Interval Timer */ |
| 684 | gtm83xx_t gtm[2]; /* Global Timers Module */ |
| 685 | ipic83xx_t ipic; /* Integrated Programmable Interrupt Controller */ |
| 686 | arbiter83xx_t arbiter; /* System Arbiter Registers */ |
| 687 | reset83xx_t reset; /* Reset Module */ |
| 688 | clk83xx_t clk; /* System Clock Module */ |
| 689 | pmc83xx_t pmc; /* Power Management Control Module */ |
| 690 | gpio83xx_t gpio[1]; /* General purpose I/O module */ |
| 691 | u8 res0[0x1300]; |
| 692 | ddr83xx_t ddr; /* DDR Memory Controller Memory */ |
| 693 | fsl_i2c_t i2c[2]; /* I2C Controllers */ |
| 694 | u8 res1[0x1300]; |
| 695 | duart83xx_t duart[2]; /* DUART */ |
| 696 | u8 res2[0x900]; |
| 697 | lbus83xx_t lbus; /* Local Bus Controller Registers */ |
| 698 | u8 res3[0x1000]; |
| 699 | spi83xx_t spi; /* Serial Peripheral Interface */ |
| 700 | dma83xx_t dma; /* DMA */ |
| 701 | pciconf83xx_t pci_conf[1]; /* PCI Software Configuration Registers */ |
| 702 | u8 res4[0x80]; |
| 703 | ios83xx_t ios; /* Sequencer */ |
| 704 | pcictrl83xx_t pci_ctrl[1]; /* PCI Controller Control and Status Registers */ |
| 705 | u8 res5[0xa00]; |
| 706 | pex83xx_t pciexp[2]; /* PCI Express Controller */ |
| 707 | u8 res6[0xb000]; |
| 708 | tdm83xx_t tdm; /* TDM Controller */ |
| 709 | u8 res7[0x1e00]; |
| 710 | sata83xx_t sata[2]; /* SATA Controller */ |
| 711 | u8 res8[0x9000]; |
| 712 | usb83xx_t usb[1]; /* USB DR Controller */ |
| 713 | tsec83xx_t tsec[2]; |
| 714 | u8 res9[0x6000]; |
| 715 | tdmdmac83xx_t tdmdmac; /* TDM DMAC */ |
| 716 | u8 res10[0x2000]; |
| 717 | security83xx_t security; |
| 718 | u8 res11[0xA3000]; |
| 719 | serdes83xx_t serdes[1]; /* SerDes Registers */ |
| 720 | u8 res12[0x1CF00]; |
| 721 | } immap_t; |
| 722 | |
Dave Liu | 5245ff5 | 2007-09-18 12:36:11 +0800 | [diff] [blame] | 723 | #elif defined(CONFIG_MPC837X) |
| 724 | typedef struct immap { |
| 725 | sysconf83xx_t sysconf; /* System configuration */ |
| 726 | wdt83xx_t wdt; /* Watch Dog Timer (WDT) Registers */ |
| 727 | rtclk83xx_t rtc; /* Real Time Clock Module Registers */ |
| 728 | rtclk83xx_t pit; /* Periodic Interval Timer */ |
| 729 | gtm83xx_t gtm[2]; /* Global Timers Module */ |
| 730 | ipic83xx_t ipic; /* Integrated Programmable Interrupt Controller */ |
| 731 | arbiter83xx_t arbiter; /* System Arbiter Registers */ |
| 732 | reset83xx_t reset; /* Reset Module */ |
| 733 | clk83xx_t clk; /* System Clock Module */ |
| 734 | pmc83xx_t pmc; /* Power Management Control Module */ |
| 735 | gpio83xx_t gpio[2]; /* General purpose I/O module */ |
| 736 | u8 res0[0x1200]; |
| 737 | ddr83xx_t ddr; /* DDR Memory Controller Memory */ |
| 738 | fsl_i2c_t i2c[2]; /* I2C Controllers */ |
| 739 | u8 res1[0x1300]; |
| 740 | duart83xx_t duart[2]; /* DUART */ |
| 741 | u8 res2[0x900]; |
| 742 | lbus83xx_t lbus; /* Local Bus Controller Registers */ |
| 743 | u8 res3[0x1000]; |
| 744 | spi83xx_t spi; /* Serial Peripheral Interface */ |
| 745 | dma83xx_t dma; /* DMA */ |
| 746 | pciconf83xx_t pci_conf[1]; /* PCI Software Configuration Registers */ |
| 747 | u8 res4[0x80]; |
| 748 | ios83xx_t ios; /* Sequencer */ |
| 749 | pcictrl83xx_t pci_ctrl[1]; /* PCI Controller Control and Status Registers */ |
| 750 | u8 res5[0xa00]; |
| 751 | pex83xx_t pciexp[2]; /* PCI Express Controller */ |
| 752 | u8 res6[0xd000]; |
| 753 | sata83xx_t sata[4]; /* SATA Controller */ |
| 754 | u8 res7[0x7000]; |
| 755 | usb83xx_t usb[1]; /* USB DR Controller */ |
| 756 | tsec83xx_t tsec[2]; |
| 757 | u8 res8[0x8000]; |
| 758 | sdhc83xx_t sdhc; /* SDHC Controller */ |
| 759 | u8 res9[0x1000]; |
| 760 | security83xx_t security; |
| 761 | u8 res10[0xA3000]; |
| 762 | serdes83xx_t serdes[2]; /* SerDes Registers */ |
| 763 | u8 res11[0xCE00]; |
| 764 | rom83xx_t rom; /* On Chip ROM */ |
| 765 | } immap_t; |
| 766 | |
Dave Liu | 0b6bc77 | 2006-12-07 21:11:58 +0800 | [diff] [blame] | 767 | #elif defined(CONFIG_MPC8360) |
Eran Liberty | 9095d4a | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 768 | typedef struct immap { |
Dave Liu | 0b6bc77 | 2006-12-07 21:11:58 +0800 | [diff] [blame] | 769 | sysconf83xx_t sysconf; /* System configuration */ |
| 770 | wdt83xx_t wdt; /* Watch Dog Timer (WDT) Registers */ |
| 771 | rtclk83xx_t rtc; /* Real Time Clock Module Registers */ |
| 772 | rtclk83xx_t pit; /* Periodic Interval Timer */ |
| 773 | u8 res0[0x200]; |
| 774 | ipic83xx_t ipic; /* Integrated Programmable Interrupt Controller */ |
| 775 | arbiter83xx_t arbiter; /* System Arbiter Registers */ |
| 776 | reset83xx_t reset; /* Reset Module */ |
| 777 | clk83xx_t clk; /* System Clock Module */ |
| 778 | pmc83xx_t pmc; /* Power Management Control Module */ |
| 779 | qepi83xx_t qepi; /* QE Ports Interrupts Registers */ |
| 780 | u8 res1[0x300]; |
| 781 | u8 dll_ddr[0x100]; |
| 782 | u8 dll_lbc[0x100]; |
| 783 | u8 res2[0x200]; |
| 784 | qepio83xx_t qepio; /* QE Parallel I/O ports */ |
| 785 | qesba83xx_t qesba; /* QE Secondary Bus Access Windows */ |
| 786 | u8 res3[0x400]; |
| 787 | ddr83xx_t ddr; /* DDR Memory Controller Memory */ |
| 788 | fsl_i2c_t i2c[2]; /* I2C Controllers */ |
| 789 | u8 res4[0x1300]; |
| 790 | duart83xx_t duart[2]; /* DUART */ |
| 791 | u8 res5[0x900]; |
| 792 | lbus83xx_t lbus; /* Local Bus Controller Registers */ |
| 793 | u8 res6[0x2000]; |
| 794 | dma83xx_t dma; /* DMA */ |
| 795 | pciconf83xx_t pci_conf[1]; /* PCI Software Configuration Registers */ |
| 796 | u8 res7[128]; |
| 797 | ios83xx_t ios; /* Sequencer (IOS) */ |
| 798 | pcictrl83xx_t pci_ctrl[1]; /* PCI Controller Control and Status Registers */ |
| 799 | u8 res8[0x4A00]; |
| 800 | ddr83xx_t ddr_secondary; /* Secondary DDR Memory Controller Memory Map */ |
| 801 | u8 res9[0x22000]; |
| 802 | security83xx_t security; |
| 803 | u8 res10[0xC0000]; |
| 804 | u8 qe[0x100000]; /* QE block */ |
Eran Liberty | 9095d4a | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 805 | } immap_t; |
Dave Liu | e740c46 | 2006-12-07 21:13:15 +0800 | [diff] [blame] | 806 | |
| 807 | #elif defined(CONFIG_MPC832X) |
| 808 | typedef struct immap { |
| 809 | sysconf83xx_t sysconf; /* System configuration */ |
| 810 | wdt83xx_t wdt; /* Watch Dog Timer (WDT) Registers */ |
| 811 | rtclk83xx_t rtc; /* Real Time Clock Module Registers */ |
| 812 | rtclk83xx_t pit; /* Periodic Interval Timer */ |
| 813 | gtm83xx_t gtm[2]; /* Global Timers Module */ |
| 814 | ipic83xx_t ipic; /* Integrated Programmable Interrupt Controller */ |
| 815 | arbiter83xx_t arbiter; /* System Arbiter Registers */ |
| 816 | reset83xx_t reset; /* Reset Module */ |
| 817 | clk83xx_t clk; /* System Clock Module */ |
| 818 | pmc83xx_t pmc; /* Power Management Control Module */ |
| 819 | qepi83xx_t qepi; /* QE Ports Interrupts Registers */ |
| 820 | u8 res0[0x300]; |
| 821 | u8 dll_ddr[0x100]; |
| 822 | u8 dll_lbc[0x100]; |
| 823 | u8 res1[0x200]; |
| 824 | qepio83xx_t qepio; /* QE Parallel I/O ports */ |
| 825 | u8 res2[0x800]; |
| 826 | ddr83xx_t ddr; /* DDR Memory Controller Memory */ |
| 827 | fsl_i2c_t i2c[2]; /* I2C Controllers */ |
| 828 | u8 res3[0x1300]; |
| 829 | duart83xx_t duart[2]; /* DUART */ |
| 830 | u8 res4[0x900]; |
| 831 | lbus83xx_t lbus; /* Local Bus Controller Registers */ |
| 832 | u8 res5[0x2000]; |
| 833 | dma83xx_t dma; /* DMA */ |
| 834 | pciconf83xx_t pci_conf[1]; /* PCI Software Configuration Registers */ |
| 835 | u8 res6[128]; |
| 836 | ios83xx_t ios; /* Sequencer (IOS) */ |
| 837 | pcictrl83xx_t pci_ctrl[1]; /* PCI Controller Control and Status Registers */ |
| 838 | u8 res7[0x27A00]; |
| 839 | security83xx_t security; |
| 840 | u8 res8[0xC0000]; |
| 841 | u8 qe[0x100000]; /* QE block */ |
| 842 | } immap_t; |
Dave Liu | 0b6bc77 | 2006-12-07 21:11:58 +0800 | [diff] [blame] | 843 | #endif |
Eran Liberty | 9095d4a | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 844 | |
Dave Liu | fba1369 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 845 | #endif /* __IMMAP_83xx__ */ |