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