Eran Liberty | f046ccd | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 1 | /* |
Vivek Mahajan | 4ef0101 | 2009-05-25 17:23:16 +0530 | [diff] [blame] | 2 | * (C) Copyright 2004-2009 Freescale Semiconductor, Inc. |
Jon Loeliger | de1d0a6 | 2005-08-01 13:20:47 -0500 | [diff] [blame] | 3 | * |
Dave Liu | f6eda7f | 2006-10-25 14:41:21 -0500 | [diff] [blame] | 4 | * MPC83xx Internal Memory Map |
| 5 | * |
Dave Liu | e080313 | 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 | f6eda7f | 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 | e080313 | 2006-12-07 21:11:58 +0800 | [diff] [blame] | 19 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
Dave Liu | f6eda7f | 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 | f046ccd | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 27 | */ |
Dave Liu | f6eda7f | 2006-10-25 14:41:21 -0500 | [diff] [blame] | 28 | #ifndef __IMMAP_83xx__ |
| 29 | #define __IMMAP_83xx__ |
Eran Liberty | f046ccd | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 30 | |
| 31 | #include <asm/types.h> |
Timur Tabi | be5e618 | 2006-11-03 19:15:00 -0600 | [diff] [blame] | 32 | #include <asm/fsl_i2c.h> |
Ben Warren | 04a9e11 | 2008-01-16 22:37:35 -0500 | [diff] [blame] | 33 | #include <asm/mpc8xxx_spi.h> |
Haiying Wang | 4e190b0 | 2008-10-29 11:05:55 -0400 | [diff] [blame] | 34 | #include <asm/fsl_lbc.h> |
Peter Tyser | e94e460 | 2009-06-30 17:15:51 -0500 | [diff] [blame^] | 35 | #include <asm/fsl_dma.h> |
Eran Liberty | f046ccd | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 36 | |
Jon Loeliger | de1d0a6 | 2005-08-01 13:20:47 -0500 | [diff] [blame] | 37 | /* |
Dave Liu | e080313 | 2006-12-07 21:11:58 +0800 | [diff] [blame] | 38 | * Local Access Window |
Eran Liberty | f046ccd | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 39 | */ |
Dave Liu | f6eda7f | 2006-10-25 14:41:21 -0500 | [diff] [blame] | 40 | typedef struct law83xx { |
Dave Liu | b701652 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 41 | u32 bar; /* LBIU local access window base address register */ |
Dave Liu | b701652 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 42 | u32 ar; /* LBIU local access window attribute register */ |
Dave Liu | f6eda7f | 2006-10-25 14:41:21 -0500 | [diff] [blame] | 43 | } law83xx_t; |
Eran Liberty | f046ccd | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 44 | |
Jon Loeliger | de1d0a6 | 2005-08-01 13:20:47 -0500 | [diff] [blame] | 45 | /* |
Dave Liu | e080313 | 2006-12-07 21:11:58 +0800 | [diff] [blame] | 46 | * System configuration registers |
Eran Liberty | f046ccd | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 47 | */ |
Dave Liu | f6eda7f | 2006-10-25 14:41:21 -0500 | [diff] [blame] | 48 | typedef struct sysconf83xx { |
Dave Liu | b701652 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 49 | u32 immrbar; /* Internal memory map base address register */ |
Eran Liberty | f046ccd | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 50 | u8 res0[0x04]; |
Dave Liu | b701652 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 51 | u32 altcbar; /* Alternate configuration base address register */ |
Eran Liberty | f046ccd | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 52 | u8 res1[0x14]; |
Dave Liu | b701652 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 53 | law83xx_t lblaw[4]; /* LBIU local access window */ |
Eran Liberty | f046ccd | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 54 | u8 res2[0x20]; |
Dave Liu | b701652 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 55 | law83xx_t pcilaw[2]; /* PCI local access window */ |
Anton Vorontsov | fd6646c | 2009-01-08 04:26:12 +0300 | [diff] [blame] | 56 | u8 res3[0x10]; |
| 57 | law83xx_t pcielaw[2]; /* PCI Express local access window */ |
| 58 | u8 res4[0x10]; |
Dave Liu | b701652 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 59 | law83xx_t ddrlaw[2]; /* DDR local access window */ |
Anton Vorontsov | fd6646c | 2009-01-08 04:26:12 +0300 | [diff] [blame] | 60 | u8 res5[0x50]; |
Dave Liu | b701652 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 61 | u32 sgprl; /* System General Purpose Register Low */ |
| 62 | u32 sgprh; /* System General Purpose Register High */ |
| 63 | u32 spridr; /* System Part and Revision ID Register */ |
Anton Vorontsov | fd6646c | 2009-01-08 04:26:12 +0300 | [diff] [blame] | 64 | u8 res6[0x04]; |
Dave Liu | b701652 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 65 | u32 spcr; /* System Priority Configuration Register */ |
Dave Liu | e080313 | 2006-12-07 21:11:58 +0800 | [diff] [blame] | 66 | u32 sicrl; /* System I/O Configuration Register Low */ |
| 67 | u32 sicrh; /* System I/O Configuration Register High */ |
Anton Vorontsov | fd6646c | 2009-01-08 04:26:12 +0300 | [diff] [blame] | 68 | u8 res7[0x04]; |
Nick Spence | 002d27c | 2008-08-22 23:52:40 -0700 | [diff] [blame] | 69 | u32 sidcr0; /* System I/O Delay Configuration Register 0 */ |
| 70 | u32 sidcr1; /* System I/O Delay Configuration Register 1 */ |
Dave Liu | 24c3aca | 2006-12-07 21:13:15 +0800 | [diff] [blame] | 71 | u32 ddrcdr; /* DDR Control Driver Register */ |
| 72 | u32 ddrdsr; /* DDR Debug Status Register */ |
Dave Liu | 03051c3 | 2007-09-18 12:36:11 +0800 | [diff] [blame] | 73 | u32 obir; /* Output Buffer Impedance Register */ |
Anton Vorontsov | fd6646c | 2009-01-08 04:26:12 +0300 | [diff] [blame] | 74 | u8 res8[0xC]; |
| 75 | u32 pecr1; /* PCI Express control register 1 */ |
| 76 | u32 pecr2; /* PCI Express control register 2 */ |
| 77 | u8 res9[0xB8]; |
Dave Liu | f6eda7f | 2006-10-25 14:41:21 -0500 | [diff] [blame] | 78 | } sysconf83xx_t; |
Eran Liberty | f046ccd | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 79 | |
Jon Loeliger | de1d0a6 | 2005-08-01 13:20:47 -0500 | [diff] [blame] | 80 | /* |
Eran Liberty | f046ccd | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 81 | * Watch Dog Timer (WDT) Registers |
| 82 | */ |
Dave Liu | f6eda7f | 2006-10-25 14:41:21 -0500 | [diff] [blame] | 83 | typedef struct wdt83xx { |
Jon Loeliger | de1d0a6 | 2005-08-01 13:20:47 -0500 | [diff] [blame] | 84 | u8 res0[4]; |
Dave Liu | b701652 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 85 | u32 swcrr; /* System watchdog control register */ |
| 86 | u32 swcnr; /* System watchdog count register */ |
Jon Loeliger | de1d0a6 | 2005-08-01 13:20:47 -0500 | [diff] [blame] | 87 | u8 res1[2]; |
Dave Liu | b701652 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 88 | u16 swsrr; /* System watchdog service register */ |
Eran Liberty | f046ccd | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 89 | u8 res2[0xF0]; |
Dave Liu | f6eda7f | 2006-10-25 14:41:21 -0500 | [diff] [blame] | 90 | } wdt83xx_t; |
Jon Loeliger | de1d0a6 | 2005-08-01 13:20:47 -0500 | [diff] [blame] | 91 | |
Eran Liberty | f046ccd | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 92 | /* |
| 93 | * RTC/PIT Module Registers |
| 94 | */ |
Dave Liu | f6eda7f | 2006-10-25 14:41:21 -0500 | [diff] [blame] | 95 | typedef struct rtclk83xx { |
Dave Liu | b701652 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 96 | u32 cnr; /* control register */ |
Dave Liu | b701652 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 97 | u32 ldr; /* load register */ |
Dave Liu | b701652 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 98 | u32 psr; /* prescale register */ |
Dave Liu | e080313 | 2006-12-07 21:11:58 +0800 | [diff] [blame] | 99 | u32 ctr; /* counter value field register */ |
Dave Liu | b701652 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 100 | u32 evr; /* event register */ |
Dave Liu | b701652 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 101 | u32 alr; /* alarm register */ |
Eran Liberty | f046ccd | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 102 | u8 res0[0xE8]; |
Dave Liu | f6eda7f | 2006-10-25 14:41:21 -0500 | [diff] [blame] | 103 | } rtclk83xx_t; |
Eran Liberty | f046ccd | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 104 | |
| 105 | /* |
Dave Liu | e080313 | 2006-12-07 21:11:58 +0800 | [diff] [blame] | 106 | * Global timer module |
Eran Liberty | f046ccd | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 107 | */ |
Dave Liu | f6eda7f | 2006-10-25 14:41:21 -0500 | [diff] [blame] | 108 | typedef struct gtm83xx { |
Dave Liu | e080313 | 2006-12-07 21:11:58 +0800 | [diff] [blame] | 109 | u8 cfr1; /* Timer1/2 Configuration */ |
Dave Liu | b701652 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 110 | u8 res0[3]; |
Dave Liu | e080313 | 2006-12-07 21:11:58 +0800 | [diff] [blame] | 111 | u8 cfr2; /* Timer3/4 Configuration */ |
Dave Liu | b701652 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 112 | u8 res1[10]; |
Dave Liu | e080313 | 2006-12-07 21:11:58 +0800 | [diff] [blame] | 113 | u16 mdr1; /* Timer1 Mode Register */ |
| 114 | u16 mdr2; /* Timer2 Mode Register */ |
| 115 | u16 rfr1; /* Timer1 Reference Register */ |
| 116 | u16 rfr2; /* Timer2 Reference Register */ |
| 117 | u16 cpr1; /* Timer1 Capture Register */ |
| 118 | u16 cpr2; /* Timer2 Capture Register */ |
| 119 | u16 cnr1; /* Timer1 Counter Register */ |
| 120 | u16 cnr2; /* Timer2 Counter Register */ |
| 121 | u16 mdr3; /* Timer3 Mode Register */ |
| 122 | u16 mdr4; /* Timer4 Mode Register */ |
| 123 | u16 rfr3; /* Timer3 Reference Register */ |
| 124 | u16 rfr4; /* Timer4 Reference Register */ |
| 125 | u16 cpr3; /* Timer3 Capture Register */ |
| 126 | u16 cpr4; /* Timer4 Capture Register */ |
| 127 | u16 cnr3; /* Timer3 Counter Register */ |
| 128 | u16 cnr4; /* Timer4 Counter Register */ |
| 129 | u16 evr1; /* Timer1 Event Register */ |
| 130 | u16 evr2; /* Timer2 Event Register */ |
| 131 | u16 evr3; /* Timer3 Event Register */ |
| 132 | u16 evr4; /* Timer4 Event Register */ |
| 133 | u16 psr1; /* Timer1 Prescaler Register */ |
| 134 | u16 psr2; /* Timer2 Prescaler Register */ |
| 135 | u16 psr3; /* Timer3 Prescaler Register */ |
| 136 | u16 psr4; /* Timer4 Prescaler Register */ |
Dave Liu | b701652 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 137 | u8 res[0xC0]; |
Dave Liu | f6eda7f | 2006-10-25 14:41:21 -0500 | [diff] [blame] | 138 | } gtm83xx_t; |
Eran Liberty | f046ccd | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 139 | |
| 140 | /* |
| 141 | * Integrated Programmable Interrupt Controller |
| 142 | */ |
Dave Liu | f6eda7f | 2006-10-25 14:41:21 -0500 | [diff] [blame] | 143 | typedef struct ipic83xx { |
Dave Liu | e080313 | 2006-12-07 21:11:58 +0800 | [diff] [blame] | 144 | u32 sicfr; /* System Global Interrupt Configuration Register */ |
| 145 | u32 sivcr; /* System Global Interrupt Vector Register */ |
| 146 | u32 sipnr_h; /* System Internal Interrupt Pending Register - High */ |
| 147 | u32 sipnr_l; /* System Internal Interrupt Pending Register - Low */ |
| 148 | u32 siprr_a; /* System Internal Interrupt Group A Priority Register */ |
Dave Liu | b701652 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 149 | u8 res0[8]; |
Dave Liu | e080313 | 2006-12-07 21:11:58 +0800 | [diff] [blame] | 150 | u32 siprr_d; /* System Internal Interrupt Group D Priority Register */ |
| 151 | u32 simsr_h; /* System Internal Interrupt Mask Register - High */ |
| 152 | u32 simsr_l; /* System Internal Interrupt Mask Register - Low */ |
Dave Liu | b701652 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 153 | u8 res1[4]; |
Dave Liu | e080313 | 2006-12-07 21:11:58 +0800 | [diff] [blame] | 154 | u32 sepnr; /* System External Interrupt Pending Register */ |
| 155 | u32 smprr_a; /* System Mixed Interrupt Group A Priority Register */ |
| 156 | u32 smprr_b; /* System Mixed Interrupt Group B Priority Register */ |
| 157 | u32 semsr; /* System External Interrupt Mask Register */ |
| 158 | u32 secnr; /* System External Interrupt Control Register */ |
| 159 | u32 sersr; /* System Error Status Register */ |
| 160 | u32 sermr; /* System Error Mask Register */ |
| 161 | u32 sercr; /* System Error Control Register */ |
Dave Liu | b701652 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 162 | u8 res2[4]; |
Dave Liu | e080313 | 2006-12-07 21:11:58 +0800 | [diff] [blame] | 163 | u32 sifcr_h; /* System Internal Interrupt Force Register - High */ |
| 164 | u32 sifcr_l; /* System Internal Interrupt Force Register - Low */ |
| 165 | u32 sefcr; /* System External Interrupt Force Register */ |
| 166 | u32 serfr; /* System Error Force Register */ |
Dave Liu | b701652 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 167 | u32 scvcr; /* System Critical Interrupt Vector Register */ |
Dave Liu | b701652 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 168 | u32 smvcr; /* System Management Interrupt Vector Register */ |
Dave Liu | b701652 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 169 | u8 res3[0x98]; |
Dave Liu | f6eda7f | 2006-10-25 14:41:21 -0500 | [diff] [blame] | 170 | } ipic83xx_t; |
Eran Liberty | f046ccd | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 171 | |
| 172 | /* |
| 173 | * System Arbiter Registers |
| 174 | */ |
Dave Liu | f6eda7f | 2006-10-25 14:41:21 -0500 | [diff] [blame] | 175 | typedef struct arbiter83xx { |
Dave Liu | b701652 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 176 | u32 acr; /* Arbiter Configuration Register */ |
Dave Liu | b701652 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 177 | u32 atr; /* Arbiter Timers Register */ |
Eran Liberty | f046ccd | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 178 | u8 res[4]; |
Dave Liu | e080313 | 2006-12-07 21:11:58 +0800 | [diff] [blame] | 179 | u32 aer; /* Arbiter Event Register */ |
| 180 | u32 aidr; /* Arbiter Interrupt Definition Register */ |
| 181 | u32 amr; /* Arbiter Mask Register */ |
Dave Liu | b701652 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 182 | u32 aeatr; /* Arbiter Event Attributes Register */ |
Dave Liu | b701652 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 183 | u32 aeadr; /* Arbiter Event Address Register */ |
Dave Liu | e080313 | 2006-12-07 21:11:58 +0800 | [diff] [blame] | 184 | u32 aerr; /* Arbiter Event Response Register */ |
Eran Liberty | f046ccd | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 185 | u8 res1[0xDC]; |
Dave Liu | f6eda7f | 2006-10-25 14:41:21 -0500 | [diff] [blame] | 186 | } arbiter83xx_t; |
Eran Liberty | f046ccd | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 187 | |
| 188 | /* |
| 189 | * Reset Module |
| 190 | */ |
Dave Liu | f6eda7f | 2006-10-25 14:41:21 -0500 | [diff] [blame] | 191 | typedef struct reset83xx { |
Dave Liu | e080313 | 2006-12-07 21:11:58 +0800 | [diff] [blame] | 192 | u32 rcwl; /* Reset Configuration Word Low Register */ |
| 193 | u32 rcwh; /* Reset Configuration Word High Register */ |
Dave Liu | b701652 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 194 | u8 res0[8]; |
Dave Liu | e080313 | 2006-12-07 21:11:58 +0800 | [diff] [blame] | 195 | u32 rsr; /* Reset Status Register */ |
| 196 | u32 rmr; /* Reset Mode Register */ |
| 197 | u32 rpr; /* Reset protection Register */ |
| 198 | u32 rcr; /* Reset Control Register */ |
| 199 | u32 rcer; /* Reset Control Enable Register */ |
Dave Liu | b701652 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 200 | u8 res1[0xDC]; |
Dave Liu | f6eda7f | 2006-10-25 14:41:21 -0500 | [diff] [blame] | 201 | } reset83xx_t; |
Jon Loeliger | de1d0a6 | 2005-08-01 13:20:47 -0500 | [diff] [blame] | 202 | |
Dave Liu | e080313 | 2006-12-07 21:11:58 +0800 | [diff] [blame] | 203 | /* |
| 204 | * Clock Module |
| 205 | */ |
Dave Liu | f6eda7f | 2006-10-25 14:41:21 -0500 | [diff] [blame] | 206 | typedef struct clk83xx { |
Dave Liu | e080313 | 2006-12-07 21:11:58 +0800 | [diff] [blame] | 207 | u32 spmr; /* system PLL mode Register */ |
| 208 | u32 occr; /* output clock control Register */ |
| 209 | u32 sccr; /* system clock control Register */ |
Dave Liu | b701652 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 210 | u8 res0[0xF4]; |
Dave Liu | f6eda7f | 2006-10-25 14:41:21 -0500 | [diff] [blame] | 211 | } clk83xx_t; |
Eran Liberty | f046ccd | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 212 | |
| 213 | /* |
| 214 | * Power Management Control Module |
| 215 | */ |
Dave Liu | f6eda7f | 2006-10-25 14:41:21 -0500 | [diff] [blame] | 216 | typedef struct pmc83xx { |
Dave Liu | e080313 | 2006-12-07 21:11:58 +0800 | [diff] [blame] | 217 | u32 pmccr; /* PMC Configuration Register */ |
| 218 | u32 pmcer; /* PMC Event Register */ |
| 219 | u32 pmcmr; /* PMC Mask Register */ |
Scott Wood | d87c57b | 2007-04-16 14:31:55 -0500 | [diff] [blame] | 220 | u32 pmccr1; /* PMC Configuration Register 1 */ |
| 221 | u32 pmccr2; /* PMC Configuration Register 2 */ |
| 222 | u8 res0[0xEC]; |
Dave Liu | f6eda7f | 2006-10-25 14:41:21 -0500 | [diff] [blame] | 223 | } pmc83xx_t; |
Eran Liberty | f046ccd | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 224 | |
| 225 | /* |
Dave Liu | e080313 | 2006-12-07 21:11:58 +0800 | [diff] [blame] | 226 | * General purpose I/O module |
Eran Liberty | f046ccd | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 227 | */ |
Dave Liu | f6eda7f | 2006-10-25 14:41:21 -0500 | [diff] [blame] | 228 | typedef struct gpio83xx { |
Dave Liu | b701652 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 229 | u32 dir; /* direction register */ |
| 230 | u32 odr; /* open drain register */ |
| 231 | u32 dat; /* data register */ |
| 232 | u32 ier; /* interrupt event register */ |
| 233 | u32 imr; /* interrupt mask register */ |
| 234 | u32 icr; /* external interrupt control register */ |
Eran Liberty | f046ccd | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 235 | u8 res0[0xE8]; |
Dave Liu | f6eda7f | 2006-10-25 14:41:21 -0500 | [diff] [blame] | 236 | } gpio83xx_t; |
Dave Liu | b701652 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 237 | |
Dave Liu | b701652 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 238 | /* |
| 239 | * QE Ports Interrupts Registers |
| 240 | */ |
| 241 | typedef struct qepi83xx { |
| 242 | u8 res0[0xC]; |
| 243 | u32 qepier; /* QE Ports Interrupt Event Register */ |
Dave Liu | b701652 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 244 | u32 qepimr; /* QE Ports Interrupt Mask Register */ |
Dave Liu | b701652 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 245 | u32 qepicr; /* QE Ports Interrupt Control Register */ |
Dave Liu | b701652 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 246 | u8 res1[0xE8]; |
| 247 | } qepi83xx_t; |
| 248 | |
| 249 | /* |
Dave Liu | e080313 | 2006-12-07 21:11:58 +0800 | [diff] [blame] | 250 | * QE Parallel I/O Ports |
Dave Liu | b701652 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 251 | */ |
| 252 | typedef struct gpio_n { |
| 253 | u32 podr; /* Open Drain Register */ |
| 254 | u32 pdat; /* Data Register */ |
| 255 | u32 dir1; /* direction register 1 */ |
| 256 | u32 dir2; /* direction register 2 */ |
| 257 | u32 ppar1; /* Pin Assignment Register 1 */ |
| 258 | u32 ppar2; /* Pin Assignment Register 2 */ |
| 259 | } gpio_n_t; |
| 260 | |
Dave Liu | e080313 | 2006-12-07 21:11:58 +0800 | [diff] [blame] | 261 | typedef struct qegpio83xx { |
Dave Liu | b701652 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 262 | gpio_n_t ioport[0x7]; |
| 263 | u8 res0[0x358]; |
Dave Liu | e080313 | 2006-12-07 21:11:58 +0800 | [diff] [blame] | 264 | } qepio83xx_t; |
Dave Liu | b701652 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 265 | |
| 266 | /* |
| 267 | * QE Secondary Bus Access Windows |
| 268 | */ |
Dave Liu | b701652 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 269 | typedef struct qesba83xx { |
| 270 | u32 lbmcsar; /* Local bus memory controller start address */ |
Dave Liu | b701652 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 271 | u32 sdmcsar; /* Secondary DDR memory controller start address */ |
Dave Liu | b701652 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 272 | u8 res0[0x38]; |
| 273 | u32 lbmcear; /* Local bus memory controller end address */ |
Dave Liu | b701652 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 274 | u32 sdmcear; /* Secondary DDR memory controller end address */ |
Dave Liu | b701652 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 275 | u8 res1[0x38]; |
Dave Liu | e080313 | 2006-12-07 21:11:58 +0800 | [diff] [blame] | 276 | u32 lbmcar; /* Local bus memory controller attributes */ |
Dave Liu | b701652 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 277 | u32 sdmcar; /* Secondary DDR memory controller attributes */ |
Dave Liu | e080313 | 2006-12-07 21:11:58 +0800 | [diff] [blame] | 278 | u8 res2[0x378]; |
Dave Liu | b701652 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 279 | } qesba83xx_t; |
Eran Liberty | f046ccd | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 280 | |
Jon Loeliger | de1d0a6 | 2005-08-01 13:20:47 -0500 | [diff] [blame] | 281 | /* |
Eran Liberty | f046ccd | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 282 | * DDR Memory Controller Memory Map |
| 283 | */ |
Dave Liu | b701652 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 284 | typedef struct ddr_cs_bnds { |
Jon Loeliger | de1d0a6 | 2005-08-01 13:20:47 -0500 | [diff] [blame] | 285 | u32 csbnds; |
Dave Liu | b701652 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 286 | u8 res0[4]; |
Eran Liberty | f046ccd | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 287 | } ddr_cs_bnds_t; |
| 288 | |
Dave Liu | f6eda7f | 2006-10-25 14:41:21 -0500 | [diff] [blame] | 289 | typedef struct ddr83xx { |
Dave Liu | e080313 | 2006-12-07 21:11:58 +0800 | [diff] [blame] | 290 | ddr_cs_bnds_t csbnds[4];/* Chip Select x Memory Bounds */ |
Jon Loeliger | de1d0a6 | 2005-08-01 13:20:47 -0500 | [diff] [blame] | 291 | u8 res0[0x60]; |
Dave Liu | e080313 | 2006-12-07 21:11:58 +0800 | [diff] [blame] | 292 | u32 cs_config[4]; /* Chip Select x Configuration */ |
Dave Liu | 24c3aca | 2006-12-07 21:13:15 +0800 | [diff] [blame] | 293 | u8 res1[0x70]; |
| 294 | u32 timing_cfg_3; /* SDRAM Timing Configuration 3 */ |
| 295 | u32 timing_cfg_0; /* SDRAM Timing Configuration 0 */ |
Dave Liu | e080313 | 2006-12-07 21:11:58 +0800 | [diff] [blame] | 296 | u32 timing_cfg_1; /* SDRAM Timing Configuration 1 */ |
| 297 | u32 timing_cfg_2; /* SDRAM Timing Configuration 2 */ |
| 298 | u32 sdram_cfg; /* SDRAM Control Configuration */ |
Dave Liu | 24c3aca | 2006-12-07 21:13:15 +0800 | [diff] [blame] | 299 | u32 sdram_cfg2; /* SDRAM Control Configuration 2 */ |
Dave Liu | e080313 | 2006-12-07 21:11:58 +0800 | [diff] [blame] | 300 | u32 sdram_mode; /* SDRAM Mode Configuration */ |
Dave Liu | 24c3aca | 2006-12-07 21:13:15 +0800 | [diff] [blame] | 301 | u32 sdram_mode2; /* SDRAM Mode Configuration 2 */ |
| 302 | u32 sdram_md_cntl; /* SDRAM Mode Control */ |
Dave Liu | e080313 | 2006-12-07 21:11:58 +0800 | [diff] [blame] | 303 | u32 sdram_interval; /* SDRAM Interval Configuration */ |
Dave Liu | 24c3aca | 2006-12-07 21:13:15 +0800 | [diff] [blame] | 304 | u32 ddr_data_init; /* SDRAM Data Initialization */ |
| 305 | u8 res2[4]; |
| 306 | u32 sdram_clk_cntl; /* SDRAM Clock Control */ |
| 307 | u8 res3[0x14]; |
| 308 | u32 ddr_init_addr; /* DDR training initialization address */ |
| 309 | u32 ddr_init_ext_addr; /* DDR training initialization extended address */ |
| 310 | u8 res4[0xAA8]; |
| 311 | u32 ddr_ip_rev1; /* DDR IP block revision 1 */ |
| 312 | u32 ddr_ip_rev2; /* DDR IP block revision 2 */ |
| 313 | u8 res5[0x200]; |
Dave Liu | e080313 | 2006-12-07 21:11:58 +0800 | [diff] [blame] | 314 | u32 data_err_inject_hi; /* Memory Data Path Error Injection Mask High */ |
| 315 | u32 data_err_inject_lo; /* Memory Data Path Error Injection Mask Low */ |
| 316 | u32 ecc_err_inject; /* Memory Data Path Error Injection Mask ECC */ |
Dave Liu | 24c3aca | 2006-12-07 21:13:15 +0800 | [diff] [blame] | 317 | u8 res6[0x14]; |
Dave Liu | e080313 | 2006-12-07 21:11:58 +0800 | [diff] [blame] | 318 | u32 capture_data_hi; /* Memory Data Path Read Capture High */ |
| 319 | u32 capture_data_lo; /* Memory Data Path Read Capture Low */ |
| 320 | u32 capture_ecc; /* Memory Data Path Read Capture ECC */ |
Dave Liu | 24c3aca | 2006-12-07 21:13:15 +0800 | [diff] [blame] | 321 | u8 res7[0x14]; |
Dave Liu | e080313 | 2006-12-07 21:11:58 +0800 | [diff] [blame] | 322 | u32 err_detect; /* Memory Error Detect */ |
| 323 | u32 err_disable; /* Memory Error Disable */ |
| 324 | u32 err_int_en; /* Memory Error Interrupt Enable */ |
| 325 | u32 capture_attributes; /* Memory Error Attributes Capture */ |
| 326 | u32 capture_address; /* Memory Error Address Capture */ |
| 327 | u32 capture_ext_address;/* Memory Error Extended Address Capture */ |
| 328 | u32 err_sbe; /* Memory Single-Bit ECC Error Management */ |
Dave Liu | 24c3aca | 2006-12-07 21:13:15 +0800 | [diff] [blame] | 329 | u8 res8[0xA4]; |
Eran Liberty | f046ccd | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 330 | u32 debug_reg; |
Dave Liu | 24c3aca | 2006-12-07 21:13:15 +0800 | [diff] [blame] | 331 | u8 res9[0xFC]; |
Dave Liu | f6eda7f | 2006-10-25 14:41:21 -0500 | [diff] [blame] | 332 | } ddr83xx_t; |
Eran Liberty | f046ccd | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 333 | |
| 334 | /* |
Eran Liberty | f046ccd | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 335 | * DUART |
| 336 | */ |
Dave Liu | b701652 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 337 | typedef struct duart83xx { |
Dave Liu | e080313 | 2006-12-07 21:11:58 +0800 | [diff] [blame] | 338 | u8 urbr_ulcr_udlb; /* combined register for URBR, UTHR and UDLB */ |
| 339 | u8 uier_udmb; /* combined register for UIER and UDMB */ |
| 340 | u8 uiir_ufcr_uafr; /* combined register for UIIR, UFCR and UAFR */ |
| 341 | u8 ulcr; /* line control register */ |
| 342 | u8 umcr; /* MODEM control register */ |
| 343 | u8 ulsr; /* line status register */ |
| 344 | u8 umsr; /* MODEM status register */ |
| 345 | u8 uscr; /* scratch register */ |
Jon Loeliger | de1d0a6 | 2005-08-01 13:20:47 -0500 | [diff] [blame] | 346 | u8 res0[8]; |
Dave Liu | e080313 | 2006-12-07 21:11:58 +0800 | [diff] [blame] | 347 | u8 udsr; /* DMA status register */ |
Jon Loeliger | de1d0a6 | 2005-08-01 13:20:47 -0500 | [diff] [blame] | 348 | u8 res1[3]; |
| 349 | u8 res2[0xEC]; |
Dave Liu | f6eda7f | 2006-10-25 14:41:21 -0500 | [diff] [blame] | 350 | } duart83xx_t; |
Eran Liberty | f046ccd | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 351 | |
| 352 | /* |
Marian Balakowicz | 61f2515 | 2006-03-14 16:14:48 +0100 | [diff] [blame] | 353 | * DMA/Messaging Unit |
| 354 | */ |
Dave Liu | f6eda7f | 2006-10-25 14:41:21 -0500 | [diff] [blame] | 355 | typedef struct dma83xx { |
Dave Liu | b701652 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 356 | u32 res0[0xC]; /* 0x0-0x29 reseverd */ |
| 357 | u32 omisr; /* 0x30 Outbound message interrupt status register */ |
| 358 | u32 omimr; /* 0x34 Outbound message interrupt mask register */ |
| 359 | u32 res1[0x6]; /* 0x38-0x49 reserved */ |
Dave Liu | b701652 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 360 | u32 imr0; /* 0x50 Inbound message register 0 */ |
| 361 | u32 imr1; /* 0x54 Inbound message register 1 */ |
| 362 | u32 omr0; /* 0x58 Outbound message register 0 */ |
| 363 | u32 omr1; /* 0x5C Outbound message register 1 */ |
Dave Liu | b701652 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 364 | u32 odr; /* 0x60 Outbound doorbell register */ |
| 365 | u32 res2; /* 0x64-0x67 reserved */ |
| 366 | u32 idr; /* 0x68 Inbound doorbell register */ |
| 367 | u32 res3[0x5]; /* 0x6C-0x79 reserved */ |
Dave Liu | b701652 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 368 | u32 imisr; /* 0x80 Inbound message interrupt status register */ |
| 369 | u32 imimr; /* 0x84 Inbound message interrupt mask register */ |
| 370 | u32 res4[0x1E]; /* 0x88-0x99 reserved */ |
Peter Tyser | e94e460 | 2009-06-30 17:15:51 -0500 | [diff] [blame^] | 371 | struct fsl_dma dma[4]; |
Dave Liu | f6eda7f | 2006-10-25 14:41:21 -0500 | [diff] [blame] | 372 | } dma83xx_t; |
Eran Liberty | f046ccd | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 373 | |
| 374 | /* |
| 375 | * PCI Software Configuration Registers |
| 376 | */ |
Dave Liu | f6eda7f | 2006-10-25 14:41:21 -0500 | [diff] [blame] | 377 | typedef struct pciconf83xx { |
Dave Liu | b701652 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 378 | u32 config_address; |
Eran Liberty | f046ccd | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 379 | u32 config_data; |
| 380 | u32 int_ack; |
Dave Liu | b701652 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 381 | u8 res[116]; |
Dave Liu | f6eda7f | 2006-10-25 14:41:21 -0500 | [diff] [blame] | 382 | } pciconf83xx_t; |
Eran Liberty | f046ccd | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 383 | |
| 384 | /* |
| 385 | * PCI Outbound Translation Register |
| 386 | */ |
| 387 | typedef struct pci_outbound_window { |
Dave Liu | b701652 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 388 | u32 potar; |
| 389 | u8 res0[4]; |
| 390 | u32 pobar; |
| 391 | u8 res1[4]; |
| 392 | u32 pocmr; |
| 393 | u8 res2[4]; |
Dave Liu | f6eda7f | 2006-10-25 14:41:21 -0500 | [diff] [blame] | 394 | } pot83xx_t; |
Dave Liu | b701652 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 395 | |
Eran Liberty | f046ccd | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 396 | /* |
| 397 | * Sequencer |
Jon Loeliger | de1d0a6 | 2005-08-01 13:20:47 -0500 | [diff] [blame] | 398 | */ |
Dave Liu | f6eda7f | 2006-10-25 14:41:21 -0500 | [diff] [blame] | 399 | typedef struct ios83xx { |
Dave Liu | b701652 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 400 | pot83xx_t pot[6]; |
Dave Liu | b701652 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 401 | u8 res0[0x60]; |
| 402 | u32 pmcr; |
| 403 | u8 res1[4]; |
| 404 | u32 dtcr; |
| 405 | u8 res2[4]; |
Dave Liu | f6eda7f | 2006-10-25 14:41:21 -0500 | [diff] [blame] | 406 | } ios83xx_t; |
Eran Liberty | f046ccd | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 407 | |
| 408 | /* |
| 409 | * PCI Controller Control and Status Registers |
| 410 | */ |
Dave Liu | f6eda7f | 2006-10-25 14:41:21 -0500 | [diff] [blame] | 411 | typedef struct pcictrl83xx { |
Dave Liu | b701652 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 412 | u32 esr; |
Dave Liu | b701652 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 413 | u32 ecdr; |
Eran Liberty | f046ccd | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 414 | u32 eer; |
Dave Liu | b701652 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 415 | u32 eatcr; |
Dave Liu | b701652 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 416 | u32 eacr; |
| 417 | u32 eeacr; |
Dave Liu | b701652 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 418 | u32 edlcr; |
| 419 | u32 edhcr; |
Dave Liu | b701652 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 420 | u32 gcr; |
| 421 | u32 ecr; |
| 422 | u32 gsr; |
| 423 | u8 res0[12]; |
| 424 | u32 pitar2; |
| 425 | u8 res1[4]; |
| 426 | u32 pibar2; |
| 427 | u32 piebar2; |
| 428 | u32 piwar2; |
| 429 | u8 res2[4]; |
| 430 | u32 pitar1; |
| 431 | u8 res3[4]; |
| 432 | u32 pibar1; |
| 433 | u32 piebar1; |
| 434 | u32 piwar1; |
| 435 | u8 res4[4]; |
| 436 | u32 pitar0; |
| 437 | u8 res5[4]; |
| 438 | u32 pibar0; |
| 439 | u8 res6[4]; |
| 440 | u32 piwar0; |
| 441 | u8 res7[132]; |
Dave Liu | f6eda7f | 2006-10-25 14:41:21 -0500 | [diff] [blame] | 442 | } pcictrl83xx_t; |
Eran Liberty | f046ccd | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 443 | |
| 444 | /* |
Jon Loeliger | de1d0a6 | 2005-08-01 13:20:47 -0500 | [diff] [blame] | 445 | * USB |
Eran Liberty | f046ccd | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 446 | */ |
Dave Liu | f6eda7f | 2006-10-25 14:41:21 -0500 | [diff] [blame] | 447 | typedef struct usb83xx { |
Scott Wood | d87c57b | 2007-04-16 14:31:55 -0500 | [diff] [blame] | 448 | u8 fixme[0x1000]; |
Dave Liu | f6eda7f | 2006-10-25 14:41:21 -0500 | [diff] [blame] | 449 | } usb83xx_t; |
Eran Liberty | f046ccd | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 450 | |
| 451 | /* |
| 452 | * TSEC |
| 453 | */ |
Dave Liu | f6eda7f | 2006-10-25 14:41:21 -0500 | [diff] [blame] | 454 | typedef struct tsec83xx { |
Eran Liberty | f046ccd | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 455 | u8 fixme[0x1000]; |
Dave Liu | f6eda7f | 2006-10-25 14:41:21 -0500 | [diff] [blame] | 456 | } tsec83xx_t; |
Eran Liberty | f046ccd | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 457 | |
| 458 | /* |
| 459 | * Security |
| 460 | */ |
Dave Liu | f6eda7f | 2006-10-25 14:41:21 -0500 | [diff] [blame] | 461 | typedef struct security83xx { |
Eran Liberty | f046ccd | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 462 | u8 fixme[0x10000]; |
Dave Liu | f6eda7f | 2006-10-25 14:41:21 -0500 | [diff] [blame] | 463 | } security83xx_t; |
Eran Liberty | f046ccd | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 464 | |
Dave Liu | 03051c3 | 2007-09-18 12:36:11 +0800 | [diff] [blame] | 465 | /* |
| 466 | * PCI Express |
| 467 | */ |
Anton Vorontsov | fd6646c | 2009-01-08 04:26:12 +0300 | [diff] [blame] | 468 | struct pex_inbound_window { |
| 469 | u32 ar; |
| 470 | u32 tar; |
| 471 | u32 barl; |
| 472 | u32 barh; |
| 473 | }; |
| 474 | |
| 475 | struct pex_outbound_window { |
| 476 | u32 ar; |
| 477 | u32 bar; |
| 478 | u32 tarl; |
| 479 | u32 tarh; |
| 480 | }; |
| 481 | |
| 482 | struct pex_csb_bridge { |
| 483 | u32 pex_csb_ver; |
| 484 | u32 pex_csb_cab; |
| 485 | u32 pex_csb_ctrl; |
| 486 | u8 res0[8]; |
| 487 | u32 pex_dms_dstmr; |
| 488 | u8 res1[4]; |
| 489 | u32 pex_cbs_stat; |
| 490 | u8 res2[0x20]; |
| 491 | u32 pex_csb_obctrl; |
| 492 | u32 pex_csb_obstat; |
| 493 | u8 res3[0x98]; |
| 494 | u32 pex_csb_ibctrl; |
| 495 | u32 pex_csb_ibstat; |
| 496 | u8 res4[0xb8]; |
| 497 | u32 pex_wdma_ctrl; |
| 498 | u32 pex_wdma_addr; |
| 499 | u32 pex_wdma_stat; |
| 500 | u8 res5[0x94]; |
| 501 | u32 pex_rdma_ctrl; |
| 502 | u32 pex_rdma_addr; |
| 503 | u32 pex_rdma_stat; |
| 504 | u8 res6[0xd4]; |
| 505 | u32 pex_ombcr; |
| 506 | u32 pex_ombdr; |
| 507 | u8 res7[0x38]; |
| 508 | u32 pex_imbcr; |
| 509 | u32 pex_imbdr; |
| 510 | u8 res8[0x38]; |
| 511 | u32 pex_int_enb; |
| 512 | u32 pex_int_stat; |
| 513 | u32 pex_int_apio_vec1; |
| 514 | u32 pex_int_apio_vec2; |
| 515 | u8 res9[0x10]; |
| 516 | u32 pex_int_ppio_vec1; |
| 517 | u32 pex_int_ppio_vec2; |
| 518 | u32 pex_int_wdma_vec1; |
| 519 | u32 pex_int_wdma_vec2; |
| 520 | u32 pex_int_rdma_vec1; |
| 521 | u32 pex_int_rdma_vec2; |
| 522 | u32 pex_int_misc_vec; |
| 523 | u8 res10[4]; |
| 524 | u32 pex_int_axi_pio_enb; |
| 525 | u32 pex_int_axi_wdma_enb; |
| 526 | u32 pex_int_axi_rdma_enb; |
| 527 | u32 pex_int_axi_misc_enb; |
| 528 | u32 pex_int_axi_pio_stat; |
| 529 | u32 pex_int_axi_wdma_stat; |
| 530 | u32 pex_int_axi_rdma_stat; |
| 531 | u32 pex_int_axi_misc_stat; |
| 532 | u8 res11[0xa0]; |
| 533 | struct pex_outbound_window pex_outbound_win[4]; |
| 534 | u8 res12[0x100]; |
| 535 | u32 pex_epiwtar0; |
| 536 | u32 pex_epiwtar1; |
| 537 | u32 pex_epiwtar2; |
| 538 | u32 pex_epiwtar3; |
| 539 | u8 res13[0x70]; |
| 540 | struct pex_inbound_window pex_inbound_win[4]; |
| 541 | }; |
| 542 | |
Dave Liu | 03051c3 | 2007-09-18 12:36:11 +0800 | [diff] [blame] | 543 | typedef struct pex83xx { |
Anton Vorontsov | fd6646c | 2009-01-08 04:26:12 +0300 | [diff] [blame] | 544 | u8 pex_cfg_header[0x404]; |
| 545 | u32 pex_ltssm_stat; |
| 546 | u8 res0[0x30]; |
| 547 | u32 pex_ack_replay_timeout; |
| 548 | u8 res1[4]; |
| 549 | u32 pex_gclk_ratio; |
| 550 | u8 res2[0xc]; |
| 551 | u32 pex_pm_timer; |
| 552 | u32 pex_pme_timeout; |
| 553 | u8 res3[4]; |
| 554 | u32 pex_aspm_req_timer; |
| 555 | u8 res4[0x18]; |
| 556 | u32 pex_ssvid_update; |
| 557 | u8 res5[0x34]; |
| 558 | u32 pex_cfg_ready; |
| 559 | u8 res6[0x24]; |
| 560 | u32 pex_bar_sizel; |
| 561 | u8 res7[4]; |
| 562 | u32 pex_bar_sel; |
| 563 | u8 res8[0x20]; |
| 564 | u32 pex_bar_pf; |
| 565 | u8 res9[0x88]; |
| 566 | u32 pex_pme_to_ack_tor; |
| 567 | u8 res10[0xc]; |
| 568 | u32 pex_ss_intr_mask; |
| 569 | u8 res11[0x25c]; |
| 570 | struct pex_csb_bridge bridge; |
| 571 | u8 res12[0x160]; |
Dave Liu | 03051c3 | 2007-09-18 12:36:11 +0800 | [diff] [blame] | 572 | } pex83xx_t; |
| 573 | |
| 574 | /* |
| 575 | * SATA |
| 576 | */ |
| 577 | typedef struct sata83xx { |
| 578 | u8 fixme[0x1000]; |
| 579 | } sata83xx_t; |
| 580 | |
| 581 | /* |
| 582 | * eSDHC |
| 583 | */ |
| 584 | typedef struct sdhc83xx { |
| 585 | u8 fixme[0x1000]; |
| 586 | } sdhc83xx_t; |
| 587 | |
| 588 | /* |
| 589 | * SerDes |
| 590 | */ |
| 591 | typedef struct serdes83xx { |
| 592 | u8 fixme[0x100]; |
| 593 | } serdes83xx_t; |
| 594 | |
| 595 | /* |
| 596 | * On Chip ROM |
| 597 | */ |
| 598 | typedef struct rom83xx { |
| 599 | u8 mem[0x10000]; |
| 600 | } rom83xx_t; |
| 601 | |
Dave Liu | 555da61 | 2007-09-18 12:36:58 +0800 | [diff] [blame] | 602 | /* |
| 603 | * TDM |
| 604 | */ |
| 605 | typedef struct tdm83xx { |
| 606 | u8 fixme[0x200]; |
| 607 | } tdm83xx_t; |
| 608 | |
| 609 | /* |
| 610 | * TDM DMAC |
| 611 | */ |
| 612 | typedef struct tdmdmac83xx { |
| 613 | u8 fixme[0x2000]; |
| 614 | } tdmdmac83xx_t; |
| 615 | |
Peter Tyser | 2c7920a | 2009-05-22 17:23:25 -0500 | [diff] [blame] | 616 | #if defined(CONFIG_MPC834x) |
Eran Liberty | f046ccd | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 617 | typedef struct immap { |
Dave Liu | e080313 | 2006-12-07 21:11:58 +0800 | [diff] [blame] | 618 | sysconf83xx_t sysconf; /* System configuration */ |
| 619 | wdt83xx_t wdt; /* Watch Dog Timer (WDT) Registers */ |
| 620 | rtclk83xx_t rtc; /* Real Time Clock Module Registers */ |
| 621 | rtclk83xx_t pit; /* Periodic Interval Timer */ |
| 622 | gtm83xx_t gtm[2]; /* Global Timers Module */ |
| 623 | ipic83xx_t ipic; /* Integrated Programmable Interrupt Controller */ |
| 624 | arbiter83xx_t arbiter; /* System Arbiter Registers */ |
| 625 | reset83xx_t reset; /* Reset Module */ |
| 626 | clk83xx_t clk; /* System Clock Module */ |
| 627 | pmc83xx_t pmc; /* Power Management Control Module */ |
| 628 | gpio83xx_t gpio[2]; /* General purpose I/O module */ |
| 629 | u8 res0[0x200]; |
| 630 | u8 dll_ddr[0x100]; |
| 631 | u8 dll_lbc[0x100]; |
| 632 | u8 res1[0xE00]; |
| 633 | ddr83xx_t ddr; /* DDR Memory Controller Memory */ |
| 634 | fsl_i2c_t i2c[2]; /* I2C Controllers */ |
| 635 | u8 res2[0x1300]; |
| 636 | duart83xx_t duart[2]; /* DUART */ |
| 637 | u8 res3[0x900]; |
Haiying Wang | 4e190b0 | 2008-10-29 11:05:55 -0400 | [diff] [blame] | 638 | fsl_lbus_t lbus; /* Local Bus Controller Registers */ |
Dave Liu | e080313 | 2006-12-07 21:11:58 +0800 | [diff] [blame] | 639 | u8 res4[0x1000]; |
Ben Warren | 04a9e11 | 2008-01-16 22:37:35 -0500 | [diff] [blame] | 640 | spi8xxx_t spi; /* Serial Peripheral Interface */ |
Dave Liu | e080313 | 2006-12-07 21:11:58 +0800 | [diff] [blame] | 641 | dma83xx_t dma; /* DMA */ |
| 642 | pciconf83xx_t pci_conf[2]; /* PCI Software Configuration Registers */ |
| 643 | ios83xx_t ios; /* Sequencer */ |
| 644 | pcictrl83xx_t pci_ctrl[2]; /* PCI Controller Control and Status Registers */ |
| 645 | u8 res5[0x19900]; |
Scott Wood | d87c57b | 2007-04-16 14:31:55 -0500 | [diff] [blame] | 646 | usb83xx_t usb[2]; |
| 647 | tsec83xx_t tsec[2]; |
| 648 | u8 res6[0xA000]; |
| 649 | security83xx_t security; |
| 650 | u8 res7[0xC0000]; |
| 651 | } immap_t; |
| 652 | |
Dave Liu | 555da61 | 2007-09-18 12:36:58 +0800 | [diff] [blame] | 653 | #elif defined(CONFIG_MPC8313) |
Scott Wood | d87c57b | 2007-04-16 14:31:55 -0500 | [diff] [blame] | 654 | typedef struct immap { |
| 655 | sysconf83xx_t sysconf; /* System configuration */ |
| 656 | wdt83xx_t wdt; /* Watch Dog Timer (WDT) Registers */ |
| 657 | rtclk83xx_t rtc; /* Real Time Clock Module Registers */ |
| 658 | rtclk83xx_t pit; /* Periodic Interval Timer */ |
| 659 | gtm83xx_t gtm[2]; /* Global Timers Module */ |
| 660 | ipic83xx_t ipic; /* Integrated Programmable Interrupt Controller */ |
| 661 | arbiter83xx_t arbiter; /* System Arbiter Registers */ |
| 662 | reset83xx_t reset; /* Reset Module */ |
| 663 | clk83xx_t clk; /* System Clock Module */ |
| 664 | pmc83xx_t pmc; /* Power Management Control Module */ |
| 665 | gpio83xx_t gpio[1]; /* General purpose I/O module */ |
| 666 | u8 res0[0x1300]; |
| 667 | ddr83xx_t ddr; /* DDR Memory Controller Memory */ |
| 668 | fsl_i2c_t i2c[2]; /* I2C Controllers */ |
| 669 | u8 res1[0x1300]; |
| 670 | duart83xx_t duart[2]; /* DUART */ |
| 671 | u8 res2[0x900]; |
Haiying Wang | 4e190b0 | 2008-10-29 11:05:55 -0400 | [diff] [blame] | 672 | fsl_lbus_t lbus; /* Local Bus Controller Registers */ |
Scott Wood | d87c57b | 2007-04-16 14:31:55 -0500 | [diff] [blame] | 673 | u8 res3[0x1000]; |
Ben Warren | 04a9e11 | 2008-01-16 22:37:35 -0500 | [diff] [blame] | 674 | spi8xxx_t spi; /* Serial Peripheral Interface */ |
Scott Wood | d87c57b | 2007-04-16 14:31:55 -0500 | [diff] [blame] | 675 | dma83xx_t dma; /* DMA */ |
| 676 | pciconf83xx_t pci_conf[1]; /* PCI Software Configuration Registers */ |
| 677 | u8 res4[0x80]; |
| 678 | ios83xx_t ios; /* Sequencer */ |
| 679 | pcictrl83xx_t pci_ctrl[1]; /* PCI Controller Control and Status Registers */ |
| 680 | u8 res5[0x1aa00]; |
| 681 | usb83xx_t usb[1]; |
Dave Liu | e080313 | 2006-12-07 21:11:58 +0800 | [diff] [blame] | 682 | tsec83xx_t tsec[2]; |
| 683 | u8 res6[0xA000]; |
| 684 | security83xx_t security; |
| 685 | u8 res7[0xC0000]; |
Eran Liberty | f046ccd | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 686 | } immap_t; |
| 687 | |
Dave Liu | 555da61 | 2007-09-18 12:36:58 +0800 | [diff] [blame] | 688 | #elif defined(CONFIG_MPC8315) |
| 689 | typedef struct immap { |
| 690 | sysconf83xx_t sysconf; /* System configuration */ |
| 691 | wdt83xx_t wdt; /* Watch Dog Timer (WDT) Registers */ |
| 692 | rtclk83xx_t rtc; /* Real Time Clock Module Registers */ |
| 693 | rtclk83xx_t pit; /* Periodic Interval Timer */ |
| 694 | gtm83xx_t gtm[2]; /* Global Timers Module */ |
| 695 | ipic83xx_t ipic; /* Integrated Programmable Interrupt Controller */ |
| 696 | arbiter83xx_t arbiter; /* System Arbiter Registers */ |
| 697 | reset83xx_t reset; /* Reset Module */ |
| 698 | clk83xx_t clk; /* System Clock Module */ |
| 699 | pmc83xx_t pmc; /* Power Management Control Module */ |
| 700 | gpio83xx_t gpio[1]; /* General purpose I/O module */ |
| 701 | u8 res0[0x1300]; |
| 702 | ddr83xx_t ddr; /* DDR Memory Controller Memory */ |
| 703 | fsl_i2c_t i2c[2]; /* I2C Controllers */ |
| 704 | u8 res1[0x1300]; |
| 705 | duart83xx_t duart[2]; /* DUART */ |
| 706 | u8 res2[0x900]; |
Haiying Wang | 4e190b0 | 2008-10-29 11:05:55 -0400 | [diff] [blame] | 707 | fsl_lbus_t lbus; /* Local Bus Controller Registers */ |
Dave Liu | 555da61 | 2007-09-18 12:36:58 +0800 | [diff] [blame] | 708 | u8 res3[0x1000]; |
Ben Warren | 04a9e11 | 2008-01-16 22:37:35 -0500 | [diff] [blame] | 709 | spi8xxx_t spi; /* Serial Peripheral Interface */ |
Dave Liu | 555da61 | 2007-09-18 12:36:58 +0800 | [diff] [blame] | 710 | dma83xx_t dma; /* DMA */ |
| 711 | pciconf83xx_t pci_conf[1]; /* PCI Software Configuration Registers */ |
| 712 | u8 res4[0x80]; |
| 713 | ios83xx_t ios; /* Sequencer */ |
| 714 | pcictrl83xx_t pci_ctrl[1]; /* PCI Controller Control and Status Registers */ |
| 715 | u8 res5[0xa00]; |
| 716 | pex83xx_t pciexp[2]; /* PCI Express Controller */ |
| 717 | u8 res6[0xb000]; |
| 718 | tdm83xx_t tdm; /* TDM Controller */ |
| 719 | u8 res7[0x1e00]; |
| 720 | sata83xx_t sata[2]; /* SATA Controller */ |
| 721 | u8 res8[0x9000]; |
| 722 | usb83xx_t usb[1]; /* USB DR Controller */ |
| 723 | tsec83xx_t tsec[2]; |
| 724 | u8 res9[0x6000]; |
| 725 | tdmdmac83xx_t tdmdmac; /* TDM DMAC */ |
| 726 | u8 res10[0x2000]; |
| 727 | security83xx_t security; |
| 728 | u8 res11[0xA3000]; |
| 729 | serdes83xx_t serdes[1]; /* SerDes Registers */ |
| 730 | u8 res12[0x1CF00]; |
| 731 | } immap_t; |
| 732 | |
Peter Tyser | 2c7920a | 2009-05-22 17:23:25 -0500 | [diff] [blame] | 733 | #elif defined(CONFIG_MPC837x) |
Dave Liu | 03051c3 | 2007-09-18 12:36:11 +0800 | [diff] [blame] | 734 | typedef struct immap { |
| 735 | sysconf83xx_t sysconf; /* System configuration */ |
| 736 | wdt83xx_t wdt; /* Watch Dog Timer (WDT) Registers */ |
| 737 | rtclk83xx_t rtc; /* Real Time Clock Module Registers */ |
| 738 | rtclk83xx_t pit; /* Periodic Interval Timer */ |
| 739 | gtm83xx_t gtm[2]; /* Global Timers Module */ |
| 740 | ipic83xx_t ipic; /* Integrated Programmable Interrupt Controller */ |
| 741 | arbiter83xx_t arbiter; /* System Arbiter Registers */ |
| 742 | reset83xx_t reset; /* Reset Module */ |
| 743 | clk83xx_t clk; /* System Clock Module */ |
| 744 | pmc83xx_t pmc; /* Power Management Control Module */ |
| 745 | gpio83xx_t gpio[2]; /* General purpose I/O module */ |
| 746 | u8 res0[0x1200]; |
| 747 | ddr83xx_t ddr; /* DDR Memory Controller Memory */ |
| 748 | fsl_i2c_t i2c[2]; /* I2C Controllers */ |
| 749 | u8 res1[0x1300]; |
| 750 | duart83xx_t duart[2]; /* DUART */ |
| 751 | u8 res2[0x900]; |
Haiying Wang | 4e190b0 | 2008-10-29 11:05:55 -0400 | [diff] [blame] | 752 | fsl_lbus_t lbus; /* Local Bus Controller Registers */ |
Dave Liu | 03051c3 | 2007-09-18 12:36:11 +0800 | [diff] [blame] | 753 | u8 res3[0x1000]; |
Ben Warren | 04a9e11 | 2008-01-16 22:37:35 -0500 | [diff] [blame] | 754 | spi8xxx_t spi; /* Serial Peripheral Interface */ |
Dave Liu | 03051c3 | 2007-09-18 12:36:11 +0800 | [diff] [blame] | 755 | dma83xx_t dma; /* DMA */ |
| 756 | pciconf83xx_t pci_conf[1]; /* PCI Software Configuration Registers */ |
| 757 | u8 res4[0x80]; |
| 758 | ios83xx_t ios; /* Sequencer */ |
| 759 | pcictrl83xx_t pci_ctrl[1]; /* PCI Controller Control and Status Registers */ |
| 760 | u8 res5[0xa00]; |
| 761 | pex83xx_t pciexp[2]; /* PCI Express Controller */ |
| 762 | u8 res6[0xd000]; |
| 763 | sata83xx_t sata[4]; /* SATA Controller */ |
| 764 | u8 res7[0x7000]; |
| 765 | usb83xx_t usb[1]; /* USB DR Controller */ |
| 766 | tsec83xx_t tsec[2]; |
| 767 | u8 res8[0x8000]; |
| 768 | sdhc83xx_t sdhc; /* SDHC Controller */ |
| 769 | u8 res9[0x1000]; |
| 770 | security83xx_t security; |
| 771 | u8 res10[0xA3000]; |
| 772 | serdes83xx_t serdes[2]; /* SerDes Registers */ |
| 773 | u8 res11[0xCE00]; |
| 774 | rom83xx_t rom; /* On Chip ROM */ |
| 775 | } immap_t; |
| 776 | |
Dave Liu | e080313 | 2006-12-07 21:11:58 +0800 | [diff] [blame] | 777 | #elif defined(CONFIG_MPC8360) |
| 778 | typedef struct immap { |
| 779 | sysconf83xx_t sysconf; /* System configuration */ |
| 780 | wdt83xx_t wdt; /* Watch Dog Timer (WDT) Registers */ |
| 781 | rtclk83xx_t rtc; /* Real Time Clock Module Registers */ |
| 782 | rtclk83xx_t pit; /* Periodic Interval Timer */ |
| 783 | u8 res0[0x200]; |
| 784 | ipic83xx_t ipic; /* Integrated Programmable Interrupt Controller */ |
| 785 | arbiter83xx_t arbiter; /* System Arbiter Registers */ |
| 786 | reset83xx_t reset; /* Reset Module */ |
| 787 | clk83xx_t clk; /* System Clock Module */ |
| 788 | pmc83xx_t pmc; /* Power Management Control Module */ |
| 789 | qepi83xx_t qepi; /* QE Ports Interrupts Registers */ |
| 790 | u8 res1[0x300]; |
| 791 | u8 dll_ddr[0x100]; |
| 792 | u8 dll_lbc[0x100]; |
| 793 | u8 res2[0x200]; |
| 794 | qepio83xx_t qepio; /* QE Parallel I/O ports */ |
| 795 | qesba83xx_t qesba; /* QE Secondary Bus Access Windows */ |
| 796 | u8 res3[0x400]; |
| 797 | ddr83xx_t ddr; /* DDR Memory Controller Memory */ |
| 798 | fsl_i2c_t i2c[2]; /* I2C Controllers */ |
| 799 | u8 res4[0x1300]; |
| 800 | duart83xx_t duart[2]; /* DUART */ |
| 801 | u8 res5[0x900]; |
Haiying Wang | 4e190b0 | 2008-10-29 11:05:55 -0400 | [diff] [blame] | 802 | fsl_lbus_t lbus; /* Local Bus Controller Registers */ |
Dave Liu | e080313 | 2006-12-07 21:11:58 +0800 | [diff] [blame] | 803 | u8 res6[0x2000]; |
| 804 | dma83xx_t dma; /* DMA */ |
| 805 | pciconf83xx_t pci_conf[1]; /* PCI Software Configuration Registers */ |
| 806 | u8 res7[128]; |
| 807 | ios83xx_t ios; /* Sequencer (IOS) */ |
| 808 | pcictrl83xx_t pci_ctrl[1]; /* PCI Controller Control and Status Registers */ |
| 809 | u8 res8[0x4A00]; |
| 810 | ddr83xx_t ddr_secondary; /* Secondary DDR Memory Controller Memory Map */ |
| 811 | u8 res9[0x22000]; |
| 812 | security83xx_t security; |
| 813 | u8 res10[0xC0000]; |
| 814 | u8 qe[0x100000]; /* QE block */ |
| 815 | } immap_t; |
Dave Liu | 24c3aca | 2006-12-07 21:13:15 +0800 | [diff] [blame] | 816 | |
Peter Tyser | 2c7920a | 2009-05-22 17:23:25 -0500 | [diff] [blame] | 817 | #elif defined(CONFIG_MPC832x) |
Dave Liu | 24c3aca | 2006-12-07 21:13:15 +0800 | [diff] [blame] | 818 | typedef struct immap { |
| 819 | sysconf83xx_t sysconf; /* System configuration */ |
| 820 | wdt83xx_t wdt; /* Watch Dog Timer (WDT) Registers */ |
| 821 | rtclk83xx_t rtc; /* Real Time Clock Module Registers */ |
| 822 | rtclk83xx_t pit; /* Periodic Interval Timer */ |
| 823 | gtm83xx_t gtm[2]; /* Global Timers Module */ |
| 824 | ipic83xx_t ipic; /* Integrated Programmable Interrupt Controller */ |
| 825 | arbiter83xx_t arbiter; /* System Arbiter Registers */ |
| 826 | reset83xx_t reset; /* Reset Module */ |
| 827 | clk83xx_t clk; /* System Clock Module */ |
| 828 | pmc83xx_t pmc; /* Power Management Control Module */ |
| 829 | qepi83xx_t qepi; /* QE Ports Interrupts Registers */ |
| 830 | u8 res0[0x300]; |
| 831 | u8 dll_ddr[0x100]; |
| 832 | u8 dll_lbc[0x100]; |
| 833 | u8 res1[0x200]; |
| 834 | qepio83xx_t qepio; /* QE Parallel I/O ports */ |
| 835 | u8 res2[0x800]; |
| 836 | ddr83xx_t ddr; /* DDR Memory Controller Memory */ |
| 837 | fsl_i2c_t i2c[2]; /* I2C Controllers */ |
| 838 | u8 res3[0x1300]; |
| 839 | duart83xx_t duart[2]; /* DUART */ |
| 840 | u8 res4[0x900]; |
Haiying Wang | 4e190b0 | 2008-10-29 11:05:55 -0400 | [diff] [blame] | 841 | fsl_lbus_t lbus; /* Local Bus Controller Registers */ |
Dave Liu | 24c3aca | 2006-12-07 21:13:15 +0800 | [diff] [blame] | 842 | u8 res5[0x2000]; |
| 843 | dma83xx_t dma; /* DMA */ |
| 844 | pciconf83xx_t pci_conf[1]; /* PCI Software Configuration Registers */ |
| 845 | u8 res6[128]; |
| 846 | ios83xx_t ios; /* Sequencer (IOS) */ |
| 847 | pcictrl83xx_t pci_ctrl[1]; /* PCI Controller Control and Status Registers */ |
| 848 | u8 res7[0x27A00]; |
| 849 | security83xx_t security; |
| 850 | u8 res8[0xC0000]; |
| 851 | u8 qe[0x100000]; /* QE block */ |
| 852 | } immap_t; |
Dave Liu | e080313 | 2006-12-07 21:11:58 +0800 | [diff] [blame] | 853 | #endif |
| 854 | |
Peter Tyser | e94e460 | 2009-06-30 17:15:51 -0500 | [diff] [blame^] | 855 | #define CONFIG_SYS_MPC83xx_DMA_OFFSET (0x8000) |
| 856 | #define CONFIG_SYS_MPC83xx_DMA_ADDR (CONFIG_SYS_IMMR + CONFIG_SYS_MPC83xx_DMA_OFFSET) |
Andy Fleming | e1ac387 | 2008-10-30 16:50:14 -0500 | [diff] [blame] | 857 | #define CONFIG_SYS_MPC83xx_ESDHC_OFFSET (0x2e000) |
| 858 | #define CONFIG_SYS_MPC83xx_ESDHC_ADDR (CONFIG_SYS_IMMR + CONFIG_SYS_MPC83xx_ESDHC_OFFSET) |
Vivek Mahajan | 4ef0101 | 2009-05-25 17:23:16 +0530 | [diff] [blame] | 859 | #define CONFIG_SYS_MPC83xx_USB_OFFSET 0x23000 |
| 860 | #define CONFIG_SYS_MPC83xx_USB_ADDR \ |
| 861 | (CONFIG_SYS_IMMR + CONFIG_SYS_MPC83xx_USB_OFFSET) |
Dave Liu | b701652 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 862 | #endif /* __IMMAP_83xx__ */ |