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