Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Eran Liberty | 9095d4a | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 2 | /* |
York Sun | e12ce98 | 2011-08-26 11:32:44 -0700 | [diff] [blame] | 3 | * Copyright 2004-2011 Freescale Semiconductor, Inc. |
Jon Loeliger | ebc7224 | 2005-08-01 13:20:47 -0500 | [diff] [blame] | 4 | * |
Dave Liu | f503592 | 2006-10-25 14:41:21 -0500 | [diff] [blame] | 5 | * MPC83xx Internal Memory Map |
| 6 | * |
Dave Liu | 0b6bc77 | 2006-12-07 21:11:58 +0800 | [diff] [blame] | 7 | * Contributors: |
| 8 | * Dave Liu <daveliu@freescale.com> |
| 9 | * Tanya Jiang <tanya.jiang@freescale.com> |
| 10 | * Mandy Lavi <mandy.lavi@freescale.com> |
| 11 | * Eran Liberty <liberty@freescale.com> |
Eran Liberty | 9095d4a | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 12 | */ |
Dave Liu | f503592 | 2006-10-25 14:41:21 -0500 | [diff] [blame] | 13 | #ifndef __IMMAP_83xx__ |
| 14 | #define __IMMAP_83xx__ |
Eran Liberty | 9095d4a | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 15 | |
York Sun | a21803d | 2013-11-18 10:29:32 -0800 | [diff] [blame] | 16 | #include <fsl_immap.h> |
Eran Liberty | 9095d4a | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 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 */ |
Mario Six | b2e701c | 2019-01-21 09:17:24 +0100 | [diff] [blame] | 62 | #if defined(CONFIG_ARCH_MPC830X) |
Gerlando Falauto | 7473555 | 2012-10-10 22:13:07 +0000 | [diff] [blame] | 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 |
Mario Six | b2e701c | 2019-01-21 09:17:24 +0100 | [diff] [blame] | 67 | #if defined(CONFIG_ARCH_MPC8309) |
Gerlando Falauto | fe201cb | 2012-10-10 22:13:08 +0000 | [diff] [blame] | 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 | /* |
York Sun | a21803d | 2013-11-18 10:29:32 -0800 | [diff] [blame] | 280 | * DDR Memory Controller Memory Map for DDR1 |
| 281 | * The structure of DDR2, or DDR3 is defined in fsl_immap.h |
Eran Liberty | 9095d4a | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 282 | */ |
York Sun | a21803d | 2013-11-18 10:29:32 -0800 | [diff] [blame] | 283 | #if !defined(CONFIG_SYS_FSL_DDR2) && !defined(CONFIG_SYS_FSL_DDR3) |
Dave Liu | fba1369 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 284 | typedef struct ddr_cs_bnds { |
Jon Loeliger | ebc7224 | 2005-08-01 13:20:47 -0500 | [diff] [blame] | 285 | u32 csbnds; |
Dave Liu | fba1369 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 286 | u8 res0[4]; |
Eran Liberty | 9095d4a | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 287 | } ddr_cs_bnds_t; |
| 288 | |
Dave Liu | f503592 | 2006-10-25 14:41:21 -0500 | [diff] [blame] | 289 | typedef struct ddr83xx { |
Dave Liu | 0b6bc77 | 2006-12-07 21:11:58 +0800 | [diff] [blame] | 290 | ddr_cs_bnds_t csbnds[4];/* Chip Select x Memory Bounds */ |
Jon Loeliger | ebc7224 | 2005-08-01 13:20:47 -0500 | [diff] [blame] | 291 | u8 res0[0x60]; |
Dave Liu | 0b6bc77 | 2006-12-07 21:11:58 +0800 | [diff] [blame] | 292 | u32 cs_config[4]; /* Chip Select x Configuration */ |
Dave Liu | e740c46 | 2006-12-07 21:13:15 +0800 | [diff] [blame] | 293 | u8 res1[0x70]; |
| 294 | u32 timing_cfg_3; /* SDRAM Timing Configuration 3 */ |
| 295 | u32 timing_cfg_0; /* SDRAM Timing Configuration 0 */ |
Dave Liu | 0b6bc77 | 2006-12-07 21:11:58 +0800 | [diff] [blame] | 296 | u32 timing_cfg_1; /* SDRAM Timing Configuration 1 */ |
| 297 | u32 timing_cfg_2; /* SDRAM Timing Configuration 2 */ |
| 298 | u32 sdram_cfg; /* SDRAM Control Configuration */ |
Dave Liu | e740c46 | 2006-12-07 21:13:15 +0800 | [diff] [blame] | 299 | u32 sdram_cfg2; /* SDRAM Control Configuration 2 */ |
Dave Liu | 0b6bc77 | 2006-12-07 21:11:58 +0800 | [diff] [blame] | 300 | u32 sdram_mode; /* SDRAM Mode Configuration */ |
Dave Liu | e740c46 | 2006-12-07 21:13:15 +0800 | [diff] [blame] | 301 | u32 sdram_mode2; /* SDRAM Mode Configuration 2 */ |
| 302 | u32 sdram_md_cntl; /* SDRAM Mode Control */ |
Dave Liu | 0b6bc77 | 2006-12-07 21:11:58 +0800 | [diff] [blame] | 303 | u32 sdram_interval; /* SDRAM Interval Configuration */ |
Dave Liu | e740c46 | 2006-12-07 21:13:15 +0800 | [diff] [blame] | 304 | u32 ddr_data_init; /* SDRAM Data Initialization */ |
| 305 | u8 res2[4]; |
| 306 | u32 sdram_clk_cntl; /* SDRAM Clock Control */ |
| 307 | u8 res3[0x14]; |
| 308 | u32 ddr_init_addr; /* DDR training initialization address */ |
| 309 | u32 ddr_init_ext_addr; /* DDR training initialization extended address */ |
| 310 | u8 res4[0xAA8]; |
| 311 | u32 ddr_ip_rev1; /* DDR IP block revision 1 */ |
| 312 | u32 ddr_ip_rev2; /* DDR IP block revision 2 */ |
| 313 | u8 res5[0x200]; |
Dave Liu | 0b6bc77 | 2006-12-07 21:11:58 +0800 | [diff] [blame] | 314 | u32 data_err_inject_hi; /* Memory Data Path Error Injection Mask High */ |
| 315 | u32 data_err_inject_lo; /* Memory Data Path Error Injection Mask Low */ |
| 316 | u32 ecc_err_inject; /* Memory Data Path Error Injection Mask ECC */ |
Dave Liu | e740c46 | 2006-12-07 21:13:15 +0800 | [diff] [blame] | 317 | u8 res6[0x14]; |
Dave Liu | 0b6bc77 | 2006-12-07 21:11:58 +0800 | [diff] [blame] | 318 | u32 capture_data_hi; /* Memory Data Path Read Capture High */ |
| 319 | u32 capture_data_lo; /* Memory Data Path Read Capture Low */ |
| 320 | u32 capture_ecc; /* Memory Data Path Read Capture ECC */ |
Dave Liu | e740c46 | 2006-12-07 21:13:15 +0800 | [diff] [blame] | 321 | u8 res7[0x14]; |
Dave Liu | 0b6bc77 | 2006-12-07 21:11:58 +0800 | [diff] [blame] | 322 | u32 err_detect; /* Memory Error Detect */ |
| 323 | u32 err_disable; /* Memory Error Disable */ |
| 324 | u32 err_int_en; /* Memory Error Interrupt Enable */ |
| 325 | u32 capture_attributes; /* Memory Error Attributes Capture */ |
| 326 | u32 capture_address; /* Memory Error Address Capture */ |
| 327 | u32 capture_ext_address;/* Memory Error Extended Address Capture */ |
| 328 | u32 err_sbe; /* Memory Single-Bit ECC Error Management */ |
Dave Liu | e740c46 | 2006-12-07 21:13:15 +0800 | [diff] [blame] | 329 | u8 res8[0xA4]; |
Eran Liberty | 9095d4a | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 330 | u32 debug_reg; |
Dave Liu | e740c46 | 2006-12-07 21:13:15 +0800 | [diff] [blame] | 331 | u8 res9[0xFC]; |
Dave Liu | f503592 | 2006-10-25 14:41:21 -0500 | [diff] [blame] | 332 | } ddr83xx_t; |
York Sun | e12ce98 | 2011-08-26 11:32:44 -0700 | [diff] [blame] | 333 | #endif |
Eran Liberty | 9095d4a | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 334 | |
| 335 | /* |
Eran Liberty | 9095d4a | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 336 | * DUART |
| 337 | */ |
Dave Liu | fba1369 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 338 | typedef struct duart83xx { |
Dave Liu | 0b6bc77 | 2006-12-07 21:11:58 +0800 | [diff] [blame] | 339 | u8 urbr_ulcr_udlb; /* combined register for URBR, UTHR and UDLB */ |
| 340 | u8 uier_udmb; /* combined register for UIER and UDMB */ |
| 341 | u8 uiir_ufcr_uafr; /* combined register for UIIR, UFCR and UAFR */ |
| 342 | u8 ulcr; /* line control register */ |
| 343 | u8 umcr; /* MODEM control register */ |
| 344 | u8 ulsr; /* line status register */ |
| 345 | u8 umsr; /* MODEM status register */ |
| 346 | u8 uscr; /* scratch register */ |
Jon Loeliger | ebc7224 | 2005-08-01 13:20:47 -0500 | [diff] [blame] | 347 | u8 res0[8]; |
Dave Liu | 0b6bc77 | 2006-12-07 21:11:58 +0800 | [diff] [blame] | 348 | u8 udsr; /* DMA status register */ |
Jon Loeliger | ebc7224 | 2005-08-01 13:20:47 -0500 | [diff] [blame] | 349 | u8 res1[3]; |
| 350 | u8 res2[0xEC]; |
Dave Liu | f503592 | 2006-10-25 14:41:21 -0500 | [diff] [blame] | 351 | } duart83xx_t; |
Eran Liberty | 9095d4a | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 352 | |
| 353 | /* |
Marian Balakowicz | 7ec9ebc | 2006-03-14 16:14:48 +0100 | [diff] [blame] | 354 | * DMA/Messaging Unit |
| 355 | */ |
Dave Liu | f503592 | 2006-10-25 14:41:21 -0500 | [diff] [blame] | 356 | typedef struct dma83xx { |
Dave Liu | fba1369 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 357 | u32 res0[0xC]; /* 0x0-0x29 reseverd */ |
| 358 | u32 omisr; /* 0x30 Outbound message interrupt status register */ |
| 359 | u32 omimr; /* 0x34 Outbound message interrupt mask register */ |
| 360 | u32 res1[0x6]; /* 0x38-0x49 reserved */ |
Dave Liu | fba1369 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 361 | u32 imr0; /* 0x50 Inbound message register 0 */ |
| 362 | u32 imr1; /* 0x54 Inbound message register 1 */ |
| 363 | u32 omr0; /* 0x58 Outbound message register 0 */ |
| 364 | u32 omr1; /* 0x5C Outbound message register 1 */ |
Dave Liu | fba1369 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 365 | u32 odr; /* 0x60 Outbound doorbell register */ |
| 366 | u32 res2; /* 0x64-0x67 reserved */ |
| 367 | u32 idr; /* 0x68 Inbound doorbell register */ |
| 368 | u32 res3[0x5]; /* 0x6C-0x79 reserved */ |
Dave Liu | fba1369 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 369 | u32 imisr; /* 0x80 Inbound message interrupt status register */ |
| 370 | u32 imimr; /* 0x84 Inbound message interrupt mask register */ |
| 371 | u32 res4[0x1E]; /* 0x88-0x99 reserved */ |
Peter Tyser | 6f33a35 | 2009-06-30 17:15:51 -0500 | [diff] [blame] | 372 | struct fsl_dma dma[4]; |
Dave Liu | f503592 | 2006-10-25 14:41:21 -0500 | [diff] [blame] | 373 | } dma83xx_t; |
Eran Liberty | 9095d4a | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 374 | |
| 375 | /* |
| 376 | * PCI Software Configuration Registers |
| 377 | */ |
Dave Liu | f503592 | 2006-10-25 14:41:21 -0500 | [diff] [blame] | 378 | typedef struct pciconf83xx { |
Dave Liu | fba1369 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 379 | u32 config_address; |
Eran Liberty | 9095d4a | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 380 | u32 config_data; |
| 381 | u32 int_ack; |
Dave Liu | fba1369 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 382 | u8 res[116]; |
Dave Liu | f503592 | 2006-10-25 14:41:21 -0500 | [diff] [blame] | 383 | } pciconf83xx_t; |
Eran Liberty | 9095d4a | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 384 | |
| 385 | /* |
| 386 | * PCI Outbound Translation Register |
| 387 | */ |
| 388 | typedef struct pci_outbound_window { |
Dave Liu | fba1369 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 389 | u32 potar; |
| 390 | u8 res0[4]; |
| 391 | u32 pobar; |
| 392 | u8 res1[4]; |
| 393 | u32 pocmr; |
| 394 | u8 res2[4]; |
Dave Liu | f503592 | 2006-10-25 14:41:21 -0500 | [diff] [blame] | 395 | } pot83xx_t; |
Dave Liu | fba1369 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 396 | |
Eran Liberty | 9095d4a | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 397 | /* |
| 398 | * Sequencer |
Jon Loeliger | ebc7224 | 2005-08-01 13:20:47 -0500 | [diff] [blame] | 399 | */ |
Dave Liu | f503592 | 2006-10-25 14:41:21 -0500 | [diff] [blame] | 400 | typedef struct ios83xx { |
Dave Liu | fba1369 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 401 | pot83xx_t pot[6]; |
Dave Liu | fba1369 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 402 | u8 res0[0x60]; |
| 403 | u32 pmcr; |
| 404 | u8 res1[4]; |
| 405 | u32 dtcr; |
| 406 | u8 res2[4]; |
Dave Liu | f503592 | 2006-10-25 14:41:21 -0500 | [diff] [blame] | 407 | } ios83xx_t; |
Eran Liberty | 9095d4a | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 408 | |
| 409 | /* |
| 410 | * PCI Controller Control and Status Registers |
| 411 | */ |
Dave Liu | f503592 | 2006-10-25 14:41:21 -0500 | [diff] [blame] | 412 | typedef struct pcictrl83xx { |
Dave Liu | fba1369 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 413 | u32 esr; |
Dave Liu | fba1369 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 414 | u32 ecdr; |
Eran Liberty | 9095d4a | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 415 | u32 eer; |
Dave Liu | fba1369 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 416 | u32 eatcr; |
Dave Liu | fba1369 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 417 | u32 eacr; |
| 418 | u32 eeacr; |
Dave Liu | fba1369 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 419 | u32 edlcr; |
| 420 | u32 edhcr; |
Dave Liu | fba1369 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 421 | u32 gcr; |
| 422 | u32 ecr; |
| 423 | u32 gsr; |
| 424 | u8 res0[12]; |
| 425 | u32 pitar2; |
| 426 | u8 res1[4]; |
| 427 | u32 pibar2; |
| 428 | u32 piebar2; |
| 429 | u32 piwar2; |
| 430 | u8 res2[4]; |
| 431 | u32 pitar1; |
| 432 | u8 res3[4]; |
| 433 | u32 pibar1; |
| 434 | u32 piebar1; |
| 435 | u32 piwar1; |
| 436 | u8 res4[4]; |
| 437 | u32 pitar0; |
| 438 | u8 res5[4]; |
| 439 | u32 pibar0; |
| 440 | u8 res6[4]; |
| 441 | u32 piwar0; |
| 442 | u8 res7[132]; |
Dave Liu | f503592 | 2006-10-25 14:41:21 -0500 | [diff] [blame] | 443 | } pcictrl83xx_t; |
Eran Liberty | 9095d4a | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 444 | |
| 445 | /* |
Jon Loeliger | ebc7224 | 2005-08-01 13:20:47 -0500 | [diff] [blame] | 446 | * USB |
Eran Liberty | 9095d4a | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 447 | */ |
Dave Liu | f503592 | 2006-10-25 14:41:21 -0500 | [diff] [blame] | 448 | typedef struct usb83xx { |
Scott Wood | 9f15d50 | 2007-04-16 14:31:55 -0500 | [diff] [blame] | 449 | u8 fixme[0x1000]; |
Dave Liu | f503592 | 2006-10-25 14:41:21 -0500 | [diff] [blame] | 450 | } usb83xx_t; |
Eran Liberty | 9095d4a | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 451 | |
| 452 | /* |
| 453 | * TSEC |
| 454 | */ |
Dave Liu | f503592 | 2006-10-25 14:41:21 -0500 | [diff] [blame] | 455 | typedef struct tsec83xx { |
Eran Liberty | 9095d4a | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 456 | u8 fixme[0x1000]; |
Dave Liu | f503592 | 2006-10-25 14:41:21 -0500 | [diff] [blame] | 457 | } tsec83xx_t; |
Eran Liberty | 9095d4a | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 458 | |
| 459 | /* |
| 460 | * Security |
| 461 | */ |
Dave Liu | f503592 | 2006-10-25 14:41:21 -0500 | [diff] [blame] | 462 | typedef struct security83xx { |
Eran Liberty | 9095d4a | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 463 | u8 fixme[0x10000]; |
Dave Liu | f503592 | 2006-10-25 14:41:21 -0500 | [diff] [blame] | 464 | } security83xx_t; |
Eran Liberty | 9095d4a | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 465 | |
Dave Liu | 5245ff5 | 2007-09-18 12:36:11 +0800 | [diff] [blame] | 466 | /* |
| 467 | * PCI Express |
| 468 | */ |
Anton Vorontsov | 1a8206c | 2009-01-08 04:26:12 +0300 | [diff] [blame] | 469 | struct pex_inbound_window { |
| 470 | u32 ar; |
| 471 | u32 tar; |
| 472 | u32 barl; |
| 473 | u32 barh; |
| 474 | }; |
| 475 | |
| 476 | struct pex_outbound_window { |
| 477 | u32 ar; |
| 478 | u32 bar; |
| 479 | u32 tarl; |
| 480 | u32 tarh; |
| 481 | }; |
| 482 | |
| 483 | struct pex_csb_bridge { |
| 484 | u32 pex_csb_ver; |
| 485 | u32 pex_csb_cab; |
| 486 | u32 pex_csb_ctrl; |
| 487 | u8 res0[8]; |
| 488 | u32 pex_dms_dstmr; |
| 489 | u8 res1[4]; |
| 490 | u32 pex_cbs_stat; |
| 491 | u8 res2[0x20]; |
| 492 | u32 pex_csb_obctrl; |
| 493 | u32 pex_csb_obstat; |
| 494 | u8 res3[0x98]; |
| 495 | u32 pex_csb_ibctrl; |
| 496 | u32 pex_csb_ibstat; |
| 497 | u8 res4[0xb8]; |
| 498 | u32 pex_wdma_ctrl; |
| 499 | u32 pex_wdma_addr; |
| 500 | u32 pex_wdma_stat; |
| 501 | u8 res5[0x94]; |
| 502 | u32 pex_rdma_ctrl; |
| 503 | u32 pex_rdma_addr; |
| 504 | u32 pex_rdma_stat; |
| 505 | u8 res6[0xd4]; |
| 506 | u32 pex_ombcr; |
| 507 | u32 pex_ombdr; |
| 508 | u8 res7[0x38]; |
| 509 | u32 pex_imbcr; |
| 510 | u32 pex_imbdr; |
| 511 | u8 res8[0x38]; |
| 512 | u32 pex_int_enb; |
| 513 | u32 pex_int_stat; |
| 514 | u32 pex_int_apio_vec1; |
| 515 | u32 pex_int_apio_vec2; |
| 516 | u8 res9[0x10]; |
| 517 | u32 pex_int_ppio_vec1; |
| 518 | u32 pex_int_ppio_vec2; |
| 519 | u32 pex_int_wdma_vec1; |
| 520 | u32 pex_int_wdma_vec2; |
| 521 | u32 pex_int_rdma_vec1; |
| 522 | u32 pex_int_rdma_vec2; |
| 523 | u32 pex_int_misc_vec; |
| 524 | u8 res10[4]; |
| 525 | u32 pex_int_axi_pio_enb; |
| 526 | u32 pex_int_axi_wdma_enb; |
| 527 | u32 pex_int_axi_rdma_enb; |
| 528 | u32 pex_int_axi_misc_enb; |
| 529 | u32 pex_int_axi_pio_stat; |
| 530 | u32 pex_int_axi_wdma_stat; |
| 531 | u32 pex_int_axi_rdma_stat; |
| 532 | u32 pex_int_axi_misc_stat; |
| 533 | u8 res11[0xa0]; |
| 534 | struct pex_outbound_window pex_outbound_win[4]; |
| 535 | u8 res12[0x100]; |
| 536 | u32 pex_epiwtar0; |
| 537 | u32 pex_epiwtar1; |
| 538 | u32 pex_epiwtar2; |
| 539 | u32 pex_epiwtar3; |
| 540 | u8 res13[0x70]; |
| 541 | struct pex_inbound_window pex_inbound_win[4]; |
| 542 | }; |
| 543 | |
Dave Liu | 5245ff5 | 2007-09-18 12:36:11 +0800 | [diff] [blame] | 544 | typedef struct pex83xx { |
Anton Vorontsov | 1a8206c | 2009-01-08 04:26:12 +0300 | [diff] [blame] | 545 | u8 pex_cfg_header[0x404]; |
| 546 | u32 pex_ltssm_stat; |
| 547 | u8 res0[0x30]; |
| 548 | u32 pex_ack_replay_timeout; |
| 549 | u8 res1[4]; |
| 550 | u32 pex_gclk_ratio; |
| 551 | u8 res2[0xc]; |
| 552 | u32 pex_pm_timer; |
| 553 | u32 pex_pme_timeout; |
| 554 | u8 res3[4]; |
| 555 | u32 pex_aspm_req_timer; |
| 556 | u8 res4[0x18]; |
| 557 | u32 pex_ssvid_update; |
| 558 | u8 res5[0x34]; |
| 559 | u32 pex_cfg_ready; |
| 560 | u8 res6[0x24]; |
| 561 | u32 pex_bar_sizel; |
| 562 | u8 res7[4]; |
| 563 | u32 pex_bar_sel; |
| 564 | u8 res8[0x20]; |
| 565 | u32 pex_bar_pf; |
| 566 | u8 res9[0x88]; |
| 567 | u32 pex_pme_to_ack_tor; |
| 568 | u8 res10[0xc]; |
| 569 | u32 pex_ss_intr_mask; |
| 570 | u8 res11[0x25c]; |
| 571 | struct pex_csb_bridge bridge; |
| 572 | u8 res12[0x160]; |
Dave Liu | 5245ff5 | 2007-09-18 12:36:11 +0800 | [diff] [blame] | 573 | } pex83xx_t; |
| 574 | |
| 575 | /* |
| 576 | * SATA |
| 577 | */ |
| 578 | typedef struct sata83xx { |
| 579 | u8 fixme[0x1000]; |
| 580 | } sata83xx_t; |
| 581 | |
| 582 | /* |
| 583 | * eSDHC |
| 584 | */ |
| 585 | typedef struct sdhc83xx { |
| 586 | u8 fixme[0x1000]; |
| 587 | } sdhc83xx_t; |
| 588 | |
| 589 | /* |
| 590 | * SerDes |
| 591 | */ |
| 592 | typedef struct serdes83xx { |
Ilya Yanok | a3e5fd5 | 2010-06-28 16:44:33 +0400 | [diff] [blame] | 593 | u32 srdscr0; |
| 594 | u32 srdscr1; |
| 595 | u32 srdscr2; |
| 596 | u32 srdscr3; |
| 597 | u32 srdscr4; |
| 598 | u8 res0[0xc]; |
| 599 | u32 srdsrstctl; |
| 600 | u8 res1[0xdc]; |
Dave Liu | 5245ff5 | 2007-09-18 12:36:11 +0800 | [diff] [blame] | 601 | } serdes83xx_t; |
| 602 | |
| 603 | /* |
| 604 | * On Chip ROM |
| 605 | */ |
| 606 | typedef struct rom83xx { |
Mario Six | b2e701c | 2019-01-21 09:17:24 +0100 | [diff] [blame] | 607 | #if defined(CONFIG_ARCH_MPC8309) |
Gerlando Falauto | fe201cb | 2012-10-10 22:13:08 +0000 | [diff] [blame] | 608 | u8 mem[0x8000]; |
| 609 | #else |
Dave Liu | 5245ff5 | 2007-09-18 12:36:11 +0800 | [diff] [blame] | 610 | u8 mem[0x10000]; |
Gerlando Falauto | fe201cb | 2012-10-10 22:13:08 +0000 | [diff] [blame] | 611 | #endif |
Dave Liu | 5245ff5 | 2007-09-18 12:36:11 +0800 | [diff] [blame] | 612 | } rom83xx_t; |
| 613 | |
Dave Liu | e0cfec8 | 2007-09-18 12:36:58 +0800 | [diff] [blame] | 614 | /* |
| 615 | * TDM |
| 616 | */ |
| 617 | typedef struct tdm83xx { |
| 618 | u8 fixme[0x200]; |
| 619 | } tdm83xx_t; |
| 620 | |
| 621 | /* |
| 622 | * TDM DMAC |
| 623 | */ |
| 624 | typedef struct tdmdmac83xx { |
| 625 | u8 fixme[0x2000]; |
| 626 | } tdmdmac83xx_t; |
| 627 | |
Mario Six | 0344f5e | 2019-01-21 09:17:27 +0100 | [diff] [blame] | 628 | #if defined(CONFIG_ARCH_MPC834X) |
Dave Liu | 0b6bc77 | 2006-12-07 21:11:58 +0800 | [diff] [blame] | 629 | typedef struct immap { |
| 630 | sysconf83xx_t sysconf; /* System configuration */ |
| 631 | wdt83xx_t wdt; /* Watch Dog Timer (WDT) Registers */ |
| 632 | rtclk83xx_t rtc; /* Real Time Clock Module Registers */ |
| 633 | rtclk83xx_t pit; /* Periodic Interval Timer */ |
| 634 | gtm83xx_t gtm[2]; /* Global Timers Module */ |
| 635 | ipic83xx_t ipic; /* Integrated Programmable Interrupt Controller */ |
| 636 | arbiter83xx_t arbiter; /* System Arbiter Registers */ |
| 637 | reset83xx_t reset; /* Reset Module */ |
| 638 | clk83xx_t clk; /* System Clock Module */ |
| 639 | pmc83xx_t pmc; /* Power Management Control Module */ |
| 640 | gpio83xx_t gpio[2]; /* General purpose I/O module */ |
| 641 | u8 res0[0x200]; |
| 642 | u8 dll_ddr[0x100]; |
| 643 | u8 dll_lbc[0x100]; |
| 644 | u8 res1[0xE00]; |
York Sun | f062659 | 2013-09-30 09:22:09 -0700 | [diff] [blame] | 645 | #if defined(CONFIG_SYS_FSL_DDR2) || defined(CONFIG_SYS_FSL_DDR3) |
York Sun | a21803d | 2013-11-18 10:29:32 -0800 | [diff] [blame] | 646 | struct ccsr_ddr ddr; /* DDR Memory Controller Memory */ |
York Sun | e12ce98 | 2011-08-26 11:32:44 -0700 | [diff] [blame] | 647 | #else |
| 648 | ddr83xx_t ddr; /* DDR Memory Controller Memory */ |
| 649 | #endif |
Dave Liu | 0b6bc77 | 2006-12-07 21:11:58 +0800 | [diff] [blame] | 650 | fsl_i2c_t i2c[2]; /* I2C Controllers */ |
| 651 | u8 res2[0x1300]; |
| 652 | duart83xx_t duart[2]; /* DUART */ |
| 653 | u8 res3[0x900]; |
Becky Bruce | 0d4cee1 | 2010-06-17 11:37:20 -0500 | [diff] [blame] | 654 | fsl_lbc_t im_lbc; /* Local Bus Controller Regs */ |
Dave Liu | 0b6bc77 | 2006-12-07 21:11:58 +0800 | [diff] [blame] | 655 | u8 res4[0x1000]; |
Ben Warren | 7efe927 | 2008-01-16 22:37:35 -0500 | [diff] [blame] | 656 | spi8xxx_t spi; /* Serial Peripheral Interface */ |
Dave Liu | 0b6bc77 | 2006-12-07 21:11:58 +0800 | [diff] [blame] | 657 | dma83xx_t dma; /* DMA */ |
| 658 | pciconf83xx_t pci_conf[2]; /* PCI Software Configuration Registers */ |
| 659 | ios83xx_t ios; /* Sequencer */ |
| 660 | pcictrl83xx_t pci_ctrl[2]; /* PCI Controller Control and Status Registers */ |
| 661 | u8 res5[0x19900]; |
Scott Wood | 9f15d50 | 2007-04-16 14:31:55 -0500 | [diff] [blame] | 662 | usb83xx_t usb[2]; |
| 663 | tsec83xx_t tsec[2]; |
| 664 | u8 res6[0xA000]; |
| 665 | security83xx_t security; |
| 666 | u8 res7[0xC0000]; |
| 667 | } immap_t; |
| 668 | |
Mario Six | 0344f5e | 2019-01-21 09:17:27 +0100 | [diff] [blame] | 669 | #ifndef CONFIG_ARCH_MPC834X |
Valeriy Glushkov | 24e671d | 2009-06-30 15:48:40 +0300 | [diff] [blame] | 670 | #ifdef CONFIG_HAS_FSL_MPH_USB |
ramneek mehresh | 16b0806 | 2013-09-12 16:35:49 +0530 | [diff] [blame] | 671 | #define CONFIG_SYS_MPC83xx_USB1_OFFSET 0x22000 /* use the MPH controller */ |
| 672 | #define CONFIG_SYS_MPC83xx_USB2_OFFSET 0 |
Valeriy Glushkov | 24e671d | 2009-06-30 15:48:40 +0300 | [diff] [blame] | 673 | #else |
ramneek mehresh | 16b0806 | 2013-09-12 16:35:49 +0530 | [diff] [blame] | 674 | #define CONFIG_SYS_MPC83xx_USB1_OFFSET 0 |
| 675 | #define CONFIG_SYS_MPC83xx_USB2_OFFSET 0x23000 /* use the DR controller */ |
Valeriy Glushkov | 24e671d | 2009-06-30 15:48:40 +0300 | [diff] [blame] | 676 | #endif |
ramneek mehresh | 51009b6 | 2013-10-19 19:33:04 +0530 | [diff] [blame] | 677 | #else |
| 678 | #define CONFIG_SYS_MPC83xx_USB1_OFFSET 0x22000 |
| 679 | #define CONFIG_SYS_MPC83xx_USB2_OFFSET 0x23000 |
| 680 | #endif |
Valeriy Glushkov | 24e671d | 2009-06-30 15:48:40 +0300 | [diff] [blame] | 681 | |
Mario Six | 9164bdd | 2019-01-21 09:17:25 +0100 | [diff] [blame] | 682 | #elif defined(CONFIG_ARCH_MPC8313) |
Scott Wood | 9f15d50 | 2007-04-16 14:31:55 -0500 | [diff] [blame] | 683 | typedef struct immap { |
| 684 | sysconf83xx_t sysconf; /* System configuration */ |
| 685 | wdt83xx_t wdt; /* Watch Dog Timer (WDT) Registers */ |
| 686 | rtclk83xx_t rtc; /* Real Time Clock Module Registers */ |
| 687 | rtclk83xx_t pit; /* Periodic Interval Timer */ |
| 688 | gtm83xx_t gtm[2]; /* Global Timers Module */ |
| 689 | ipic83xx_t ipic; /* Integrated Programmable Interrupt Controller */ |
| 690 | arbiter83xx_t arbiter; /* System Arbiter Registers */ |
| 691 | reset83xx_t reset; /* Reset Module */ |
| 692 | clk83xx_t clk; /* System Clock Module */ |
| 693 | pmc83xx_t pmc; /* Power Management Control Module */ |
| 694 | gpio83xx_t gpio[1]; /* General purpose I/O module */ |
| 695 | u8 res0[0x1300]; |
| 696 | ddr83xx_t ddr; /* DDR Memory Controller Memory */ |
| 697 | fsl_i2c_t i2c[2]; /* I2C Controllers */ |
| 698 | u8 res1[0x1300]; |
| 699 | duart83xx_t duart[2]; /* DUART */ |
| 700 | u8 res2[0x900]; |
Becky Bruce | 0d4cee1 | 2010-06-17 11:37:20 -0500 | [diff] [blame] | 701 | fsl_lbc_t im_lbc; /* Local Bus Controller Regs */ |
Scott Wood | 9f15d50 | 2007-04-16 14:31:55 -0500 | [diff] [blame] | 702 | u8 res3[0x1000]; |
Ben Warren | 7efe927 | 2008-01-16 22:37:35 -0500 | [diff] [blame] | 703 | spi8xxx_t spi; /* Serial Peripheral Interface */ |
Scott Wood | 9f15d50 | 2007-04-16 14:31:55 -0500 | [diff] [blame] | 704 | dma83xx_t dma; /* DMA */ |
| 705 | pciconf83xx_t pci_conf[1]; /* PCI Software Configuration Registers */ |
| 706 | u8 res4[0x80]; |
| 707 | ios83xx_t ios; /* Sequencer */ |
| 708 | pcictrl83xx_t pci_ctrl[1]; /* PCI Controller Control and Status Registers */ |
| 709 | u8 res5[0x1aa00]; |
| 710 | usb83xx_t usb[1]; |
Dave Liu | 0b6bc77 | 2006-12-07 21:11:58 +0800 | [diff] [blame] | 711 | tsec83xx_t tsec[2]; |
| 712 | u8 res6[0xA000]; |
| 713 | security83xx_t security; |
| 714 | u8 res7[0xC0000]; |
| 715 | } immap_t; |
Dave Liu | fba1369 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 716 | |
Mario Six | e9c932d | 2019-01-21 09:18:04 +0100 | [diff] [blame] | 717 | #elif defined(CONFIG_ARCH_MPC8315) |
Dave Liu | e0cfec8 | 2007-09-18 12:36:58 +0800 | [diff] [blame] | 718 | typedef struct immap { |
| 719 | sysconf83xx_t sysconf; /* System configuration */ |
| 720 | wdt83xx_t wdt; /* Watch Dog Timer (WDT) Registers */ |
| 721 | rtclk83xx_t rtc; /* Real Time Clock Module Registers */ |
| 722 | rtclk83xx_t pit; /* Periodic Interval Timer */ |
| 723 | gtm83xx_t gtm[2]; /* Global Timers Module */ |
| 724 | ipic83xx_t ipic; /* Integrated Programmable Interrupt Controller */ |
| 725 | arbiter83xx_t arbiter; /* System Arbiter Registers */ |
| 726 | reset83xx_t reset; /* Reset Module */ |
| 727 | clk83xx_t clk; /* System Clock Module */ |
| 728 | pmc83xx_t pmc; /* Power Management Control Module */ |
| 729 | gpio83xx_t gpio[1]; /* General purpose I/O module */ |
| 730 | u8 res0[0x1300]; |
| 731 | ddr83xx_t ddr; /* DDR Memory Controller Memory */ |
Mario Six | e9c932d | 2019-01-21 09:18:04 +0100 | [diff] [blame] | 732 | fsl_i2c_t i2c[1]; /* I2C Controllers */ |
| 733 | u8 res1[0x1400]; |
Dave Liu | e0cfec8 | 2007-09-18 12:36:58 +0800 | [diff] [blame] | 734 | duart83xx_t duart[2]; /* DUART */ |
| 735 | u8 res2[0x900]; |
Becky Bruce | 0d4cee1 | 2010-06-17 11:37:20 -0500 | [diff] [blame] | 736 | fsl_lbc_t im_lbc; /* Local Bus Controller Regs */ |
Dave Liu | e0cfec8 | 2007-09-18 12:36:58 +0800 | [diff] [blame] | 737 | u8 res3[0x1000]; |
Ben Warren | 7efe927 | 2008-01-16 22:37:35 -0500 | [diff] [blame] | 738 | spi8xxx_t spi; /* Serial Peripheral Interface */ |
Dave Liu | e0cfec8 | 2007-09-18 12:36:58 +0800 | [diff] [blame] | 739 | dma83xx_t dma; /* DMA */ |
| 740 | pciconf83xx_t pci_conf[1]; /* PCI Software Configuration Registers */ |
| 741 | u8 res4[0x80]; |
| 742 | ios83xx_t ios; /* Sequencer */ |
| 743 | pcictrl83xx_t pci_ctrl[1]; /* PCI Controller Control and Status Registers */ |
| 744 | u8 res5[0xa00]; |
| 745 | pex83xx_t pciexp[2]; /* PCI Express Controller */ |
| 746 | u8 res6[0xb000]; |
| 747 | tdm83xx_t tdm; /* TDM Controller */ |
| 748 | u8 res7[0x1e00]; |
| 749 | sata83xx_t sata[2]; /* SATA Controller */ |
| 750 | u8 res8[0x9000]; |
| 751 | usb83xx_t usb[1]; /* USB DR Controller */ |
| 752 | tsec83xx_t tsec[2]; |
| 753 | u8 res9[0x6000]; |
| 754 | tdmdmac83xx_t tdmdmac; /* TDM DMAC */ |
| 755 | u8 res10[0x2000]; |
| 756 | security83xx_t security; |
| 757 | u8 res11[0xA3000]; |
| 758 | serdes83xx_t serdes[1]; /* SerDes Registers */ |
| 759 | u8 res12[0x1CF00]; |
| 760 | } immap_t; |
| 761 | |
Mario Six | e9c932d | 2019-01-21 09:18:04 +0100 | [diff] [blame] | 762 | #elif defined(CONFIG_ARCH_MPC8308) |
| 763 | typedef struct immap { |
| 764 | sysconf83xx_t sysconf; /* System configuration */ |
| 765 | wdt83xx_t wdt; /* Watch Dog Timer (WDT) Registers */ |
| 766 | rtclk83xx_t rtc; /* Real Time Clock Module Registers */ |
| 767 | rtclk83xx_t pit; /* Periodic Interval Timer */ |
| 768 | gtm83xx_t gtm[1]; /* Global Timers Module */ |
| 769 | u8 res0[0x100]; |
| 770 | ipic83xx_t ipic; /* Integrated Programmable Interrupt Controller */ |
| 771 | arbiter83xx_t arbiter; /* System Arbiter Registers */ |
| 772 | reset83xx_t reset; /* Reset Module */ |
| 773 | clk83xx_t clk; /* System Clock Module */ |
| 774 | pmc83xx_t pmc; /* Power Management Control Module */ |
| 775 | gpio83xx_t gpio[1]; /* General purpose I/O module */ |
| 776 | u8 res1[0x1300]; |
| 777 | ddr83xx_t ddr; /* DDR Memory Controller Memory */ |
| 778 | fsl_i2c_t i2c[2]; /* I2C Controllers */ |
| 779 | u8 res2[0x1300]; |
| 780 | duart83xx_t duart[2]; /* DUART */ |
| 781 | u8 res3[0x900]; |
| 782 | fsl_lbc_t im_lbc; /* Local Bus Controller Regs */ |
| 783 | u8 res4[0x1000]; |
| 784 | spi8xxx_t spi; /* Serial Peripheral Interface */ |
| 785 | u8 res5[0x1000]; |
| 786 | pex83xx_t pciexp[1]; /* PCI Express Controller */ |
| 787 | u8 res6[0x19000]; |
| 788 | usb83xx_t usb[1]; /* USB DR Controller */ |
| 789 | tsec83xx_t tsec[2]; |
| 790 | u8 res7[0x6000]; |
| 791 | tdmdmac83xx_t tdmdmac; /* TDM DMAC */ |
| 792 | sdhc83xx_t sdhc; /* SDHC Controller */ |
| 793 | u8 res8[0xb4000]; |
| 794 | serdes83xx_t serdes[1]; /* SerDes Registers */ |
| 795 | u8 res9[0x1CF00]; |
| 796 | } immap_t; |
| 797 | |
Mario Six | 60b1123 | 2019-01-21 09:17:29 +0100 | [diff] [blame] | 798 | #elif defined(CONFIG_ARCH_MPC837X) |
Dave Liu | 5245ff5 | 2007-09-18 12:36:11 +0800 | [diff] [blame] | 799 | typedef struct immap { |
| 800 | sysconf83xx_t sysconf; /* System configuration */ |
| 801 | wdt83xx_t wdt; /* Watch Dog Timer (WDT) Registers */ |
| 802 | rtclk83xx_t rtc; /* Real Time Clock Module Registers */ |
| 803 | rtclk83xx_t pit; /* Periodic Interval Timer */ |
| 804 | gtm83xx_t gtm[2]; /* Global Timers Module */ |
| 805 | ipic83xx_t ipic; /* Integrated Programmable Interrupt Controller */ |
| 806 | arbiter83xx_t arbiter; /* System Arbiter Registers */ |
| 807 | reset83xx_t reset; /* Reset Module */ |
| 808 | clk83xx_t clk; /* System Clock Module */ |
| 809 | pmc83xx_t pmc; /* Power Management Control Module */ |
| 810 | gpio83xx_t gpio[2]; /* General purpose I/O module */ |
| 811 | u8 res0[0x1200]; |
| 812 | ddr83xx_t ddr; /* DDR Memory Controller Memory */ |
| 813 | fsl_i2c_t i2c[2]; /* I2C Controllers */ |
| 814 | u8 res1[0x1300]; |
| 815 | duart83xx_t duart[2]; /* DUART */ |
| 816 | u8 res2[0x900]; |
Becky Bruce | 0d4cee1 | 2010-06-17 11:37:20 -0500 | [diff] [blame] | 817 | fsl_lbc_t im_lbc; /* Local Bus Controller Regs */ |
Dave Liu | 5245ff5 | 2007-09-18 12:36:11 +0800 | [diff] [blame] | 818 | u8 res3[0x1000]; |
Ben Warren | 7efe927 | 2008-01-16 22:37:35 -0500 | [diff] [blame] | 819 | spi8xxx_t spi; /* Serial Peripheral Interface */ |
Dave Liu | 5245ff5 | 2007-09-18 12:36:11 +0800 | [diff] [blame] | 820 | dma83xx_t dma; /* DMA */ |
| 821 | pciconf83xx_t pci_conf[1]; /* PCI Software Configuration Registers */ |
| 822 | u8 res4[0x80]; |
| 823 | ios83xx_t ios; /* Sequencer */ |
| 824 | pcictrl83xx_t pci_ctrl[1]; /* PCI Controller Control and Status Registers */ |
| 825 | u8 res5[0xa00]; |
| 826 | pex83xx_t pciexp[2]; /* PCI Express Controller */ |
| 827 | u8 res6[0xd000]; |
| 828 | sata83xx_t sata[4]; /* SATA Controller */ |
| 829 | u8 res7[0x7000]; |
| 830 | usb83xx_t usb[1]; /* USB DR Controller */ |
| 831 | tsec83xx_t tsec[2]; |
| 832 | u8 res8[0x8000]; |
| 833 | sdhc83xx_t sdhc; /* SDHC Controller */ |
| 834 | u8 res9[0x1000]; |
| 835 | security83xx_t security; |
| 836 | u8 res10[0xA3000]; |
| 837 | serdes83xx_t serdes[2]; /* SerDes Registers */ |
| 838 | u8 res11[0xCE00]; |
| 839 | rom83xx_t rom; /* On Chip ROM */ |
| 840 | } immap_t; |
| 841 | |
Mario Six | 84eb431 | 2019-01-21 09:17:28 +0100 | [diff] [blame] | 842 | #elif defined(CONFIG_ARCH_MPC8360) |
Eran Liberty | 9095d4a | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 843 | typedef struct immap { |
Dave Liu | 0b6bc77 | 2006-12-07 21:11:58 +0800 | [diff] [blame] | 844 | sysconf83xx_t sysconf; /* System configuration */ |
| 845 | wdt83xx_t wdt; /* Watch Dog Timer (WDT) Registers */ |
| 846 | rtclk83xx_t rtc; /* Real Time Clock Module Registers */ |
| 847 | rtclk83xx_t pit; /* Periodic Interval Timer */ |
| 848 | u8 res0[0x200]; |
| 849 | ipic83xx_t ipic; /* Integrated Programmable Interrupt Controller */ |
| 850 | arbiter83xx_t arbiter; /* System Arbiter Registers */ |
| 851 | reset83xx_t reset; /* Reset Module */ |
| 852 | clk83xx_t clk; /* System Clock Module */ |
| 853 | pmc83xx_t pmc; /* Power Management Control Module */ |
| 854 | qepi83xx_t qepi; /* QE Ports Interrupts Registers */ |
| 855 | u8 res1[0x300]; |
| 856 | u8 dll_ddr[0x100]; |
| 857 | u8 dll_lbc[0x100]; |
| 858 | u8 res2[0x200]; |
| 859 | qepio83xx_t qepio; /* QE Parallel I/O ports */ |
| 860 | qesba83xx_t qesba; /* QE Secondary Bus Access Windows */ |
| 861 | u8 res3[0x400]; |
| 862 | ddr83xx_t ddr; /* DDR Memory Controller Memory */ |
| 863 | fsl_i2c_t i2c[2]; /* I2C Controllers */ |
| 864 | u8 res4[0x1300]; |
| 865 | duart83xx_t duart[2]; /* DUART */ |
| 866 | u8 res5[0x900]; |
Becky Bruce | 0d4cee1 | 2010-06-17 11:37:20 -0500 | [diff] [blame] | 867 | fsl_lbc_t im_lbc; /* Local Bus Controller Regs */ |
Dave Liu | 0b6bc77 | 2006-12-07 21:11:58 +0800 | [diff] [blame] | 868 | u8 res6[0x2000]; |
| 869 | dma83xx_t dma; /* DMA */ |
| 870 | pciconf83xx_t pci_conf[1]; /* PCI Software Configuration Registers */ |
| 871 | u8 res7[128]; |
| 872 | ios83xx_t ios; /* Sequencer (IOS) */ |
| 873 | pcictrl83xx_t pci_ctrl[1]; /* PCI Controller Control and Status Registers */ |
| 874 | u8 res8[0x4A00]; |
| 875 | ddr83xx_t ddr_secondary; /* Secondary DDR Memory Controller Memory Map */ |
| 876 | u8 res9[0x22000]; |
| 877 | security83xx_t security; |
| 878 | u8 res10[0xC0000]; |
| 879 | u8 qe[0x100000]; /* QE block */ |
Eran Liberty | 9095d4a | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 880 | } immap_t; |
Dave Liu | e740c46 | 2006-12-07 21:13:15 +0800 | [diff] [blame] | 881 | |
Mario Six | be07e55 | 2019-01-21 09:17:26 +0100 | [diff] [blame] | 882 | #elif defined(CONFIG_ARCH_MPC832X) |
Dave Liu | e740c46 | 2006-12-07 21:13:15 +0800 | [diff] [blame] | 883 | typedef struct immap { |
| 884 | sysconf83xx_t sysconf; /* System configuration */ |
| 885 | wdt83xx_t wdt; /* Watch Dog Timer (WDT) Registers */ |
| 886 | rtclk83xx_t rtc; /* Real Time Clock Module Registers */ |
| 887 | rtclk83xx_t pit; /* Periodic Interval Timer */ |
| 888 | gtm83xx_t gtm[2]; /* Global Timers Module */ |
| 889 | ipic83xx_t ipic; /* Integrated Programmable Interrupt Controller */ |
| 890 | arbiter83xx_t arbiter; /* System Arbiter Registers */ |
| 891 | reset83xx_t reset; /* Reset Module */ |
| 892 | clk83xx_t clk; /* System Clock Module */ |
| 893 | pmc83xx_t pmc; /* Power Management Control Module */ |
| 894 | qepi83xx_t qepi; /* QE Ports Interrupts Registers */ |
| 895 | u8 res0[0x300]; |
| 896 | u8 dll_ddr[0x100]; |
| 897 | u8 dll_lbc[0x100]; |
| 898 | u8 res1[0x200]; |
| 899 | qepio83xx_t qepio; /* QE Parallel I/O ports */ |
| 900 | u8 res2[0x800]; |
| 901 | ddr83xx_t ddr; /* DDR Memory Controller Memory */ |
| 902 | fsl_i2c_t i2c[2]; /* I2C Controllers */ |
| 903 | u8 res3[0x1300]; |
| 904 | duart83xx_t duart[2]; /* DUART */ |
| 905 | u8 res4[0x900]; |
Becky Bruce | 0d4cee1 | 2010-06-17 11:37:20 -0500 | [diff] [blame] | 906 | fsl_lbc_t im_lbc; /* Local Bus Controller Regs */ |
Dave Liu | e740c46 | 2006-12-07 21:13:15 +0800 | [diff] [blame] | 907 | u8 res5[0x2000]; |
| 908 | dma83xx_t dma; /* DMA */ |
| 909 | pciconf83xx_t pci_conf[1]; /* PCI Software Configuration Registers */ |
| 910 | u8 res6[128]; |
| 911 | ios83xx_t ios; /* Sequencer (IOS) */ |
| 912 | pcictrl83xx_t pci_ctrl[1]; /* PCI Controller Control and Status Registers */ |
| 913 | u8 res7[0x27A00]; |
| 914 | security83xx_t security; |
| 915 | u8 res8[0xC0000]; |
| 916 | u8 qe[0x100000]; /* QE block */ |
Gerlando Falauto | fe201cb | 2012-10-10 22:13:08 +0000 | [diff] [blame] | 917 | } immap_t; |
Mario Six | b2e701c | 2019-01-21 09:17:24 +0100 | [diff] [blame] | 918 | #elif defined(CONFIG_ARCH_MPC8309) |
Gerlando Falauto | fe201cb | 2012-10-10 22:13:08 +0000 | [diff] [blame] | 919 | typedef struct immap { |
| 920 | sysconf83xx_t sysconf; /* System configuration */ |
| 921 | wdt83xx_t wdt; /* Watch Dog Timer (WDT) Registers */ |
| 922 | rtclk83xx_t rtc; /* Real Time Clock Module Registers */ |
| 923 | rtclk83xx_t pit; /* Periodic Interval Timer */ |
| 924 | gtm83xx_t gtm[2]; /* Global Timers Module */ |
| 925 | ipic83xx_t ipic; /* Integrated Programmable Interrupt Controller */ |
| 926 | arbiter83xx_t arbiter; /* System Arbiter Registers */ |
| 927 | reset83xx_t reset; /* Reset Module */ |
| 928 | clk83xx_t clk; /* System Clock Module */ |
| 929 | pmc83xx_t pmc; /* Power Management Control Module */ |
| 930 | gpio83xx_t gpio[2]; /* General purpose I/O module */ |
| 931 | u8 res0[0x500]; /* res0 1.25 KBytes added for 8309 */ |
| 932 | qepi83xx_t qepi; /* QE Ports Interrupts Registers */ |
| 933 | qepio83xx_t qepio; /* QE Parallel I/O ports */ |
| 934 | u8 res1[0x800]; |
| 935 | ddr83xx_t ddr; /* DDR Memory Controller Memory */ |
| 936 | fsl_i2c_t i2c[2]; /* I2C Controllers */ |
| 937 | u8 res2[0x1300]; |
| 938 | duart83xx_t duart[2]; /* DUART */ |
| 939 | u8 res3[0x200]; |
| 940 | duart83xx_t duart1[2]; /* DUART */ |
| 941 | u8 res4[0x500]; |
| 942 | fsl_lbc_t im_lbc; /* Local Bus Controller Regs */ |
| 943 | u8 res5[0x1000]; |
| 944 | u8 spi[0x100]; |
| 945 | u8 res6[0xf00]; |
| 946 | dma83xx_t dma; /* DMA */ |
| 947 | pciconf83xx_t pci_conf[1]; /* PCI Configuration Registers */ |
| 948 | u8 res7[0x80]; |
| 949 | ios83xx_t ios; /* Sequencer (IOS) */ |
| 950 | pcictrl83xx_t pci_ctrl[1]; /* PCI Control & Status Registers */ |
| 951 | u8 res8[0x13A00]; |
| 952 | u8 can1[0x1000]; /* Flexcan 1 */ |
| 953 | u8 can2[0x1000]; /* Flexcan 2 */ |
| 954 | u8 res9[0x5000]; |
| 955 | usb83xx_t usb; |
| 956 | u8 res10[0x5000]; |
| 957 | u8 can3[0x1000]; /* Flexcan 3 */ |
| 958 | u8 can4[0x1000]; /* Flexcan 4 */ |
| 959 | u8 res11[0x1000]; |
| 960 | u8 dma1[0x2000]; /* DMA */ |
| 961 | sdhc83xx_t sdhc; /* SDHC Controller */ |
| 962 | u8 res12[0xC1000]; |
| 963 | rom83xx_t rom; /* On Chip ROM */ |
| 964 | u8 res13[0x8000]; |
| 965 | u8 qe[0x100000]; /* QE block */ |
| 966 | u8 res14[0xE00000];/* Added for 8309 */ |
Dave Liu | e740c46 | 2006-12-07 21:13:15 +0800 | [diff] [blame] | 967 | } immap_t; |
Dave Liu | 0b6bc77 | 2006-12-07 21:11:58 +0800 | [diff] [blame] | 968 | #endif |
Eran Liberty | 9095d4a | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 969 | |
Andy Fleming | 992562c | 2012-10-23 19:03:46 -0500 | [diff] [blame] | 970 | #define CONFIG_SYS_MPC8xxx_DDR_OFFSET (0x2000) |
York Sun | f062659 | 2013-09-30 09:22:09 -0700 | [diff] [blame] | 971 | #define CONFIG_SYS_FSL_DDR_ADDR \ |
Andy Fleming | 992562c | 2012-10-23 19:03:46 -0500 | [diff] [blame] | 972 | (CONFIG_SYS_IMMR + CONFIG_SYS_MPC8xxx_DDR_OFFSET) |
Peter Tyser | 6f33a35 | 2009-06-30 17:15:51 -0500 | [diff] [blame] | 973 | #define CONFIG_SYS_MPC83xx_DMA_OFFSET (0x8000) |
York Sun | e12ce98 | 2011-08-26 11:32:44 -0700 | [diff] [blame] | 974 | #define CONFIG_SYS_MPC83xx_DMA_ADDR \ |
| 975 | (CONFIG_SYS_IMMR + CONFIG_SYS_MPC83xx_DMA_OFFSET) |
Andy Fleming | 1463b4b | 2008-10-30 16:50:14 -0500 | [diff] [blame] | 976 | #define CONFIG_SYS_MPC83xx_ESDHC_OFFSET (0x2e000) |
York Sun | e12ce98 | 2011-08-26 11:32:44 -0700 | [diff] [blame] | 977 | #define CONFIG_SYS_MPC83xx_ESDHC_ADDR \ |
| 978 | (CONFIG_SYS_IMMR + CONFIG_SYS_MPC83xx_ESDHC_OFFSET) |
Valeriy Glushkov | 24e671d | 2009-06-30 15:48:40 +0300 | [diff] [blame] | 979 | |
ramneek mehresh | 16b0806 | 2013-09-12 16:35:49 +0530 | [diff] [blame] | 980 | #ifndef CONFIG_SYS_MPC83xx_USB1_OFFSET |
| 981 | #define CONFIG_SYS_MPC83xx_USB1_OFFSET 0x23000 |
| 982 | #endif |
| 983 | #define CONFIG_SYS_MPC83xx_USB1_ADDR \ |
| 984 | (CONFIG_SYS_IMMR + CONFIG_SYS_MPC83xx_USB1_OFFSET) |
Mario Six | 0344f5e | 2019-01-21 09:17:27 +0100 | [diff] [blame] | 985 | #if defined(CONFIG_ARCH_MPC834X) |
ramneek mehresh | 16b0806 | 2013-09-12 16:35:49 +0530 | [diff] [blame] | 986 | #define CONFIG_SYS_MPC83xx_USB2_ADDR \ |
| 987 | (CONFIG_SYS_IMMR + CONFIG_SYS_MPC83xx_USB2_OFFSET) |
Valeriy Glushkov | 24e671d | 2009-06-30 15:48:40 +0300 | [diff] [blame] | 988 | #endif |
Becky Bruce | 0d4cee1 | 2010-06-17 11:37:20 -0500 | [diff] [blame] | 989 | #define CONFIG_SYS_LBC_ADDR (&((immap_t *)CONFIG_SYS_IMMR)->im_lbc) |
Sandeep Gopalpet | b5541ef | 2009-10-31 00:35:04 +0530 | [diff] [blame] | 990 | |
| 991 | #define CONFIG_SYS_TSEC1_OFFSET 0x24000 |
Kumar Gala | 2e97293 | 2009-10-31 11:23:41 -0500 | [diff] [blame] | 992 | #define CONFIG_SYS_MDIO1_OFFSET 0x24000 |
Sandeep Gopalpet | b5541ef | 2009-10-31 00:35:04 +0530 | [diff] [blame] | 993 | |
| 994 | #define TSEC_BASE_ADDR (CONFIG_SYS_IMMR + CONFIG_SYS_TSEC1_OFFSET) |
| 995 | #define MDIO_BASE_ADDR (CONFIG_SYS_IMMR + CONFIG_SYS_MDIO1_OFFSET) |
Dave Liu | fba1369 | 2006-10-31 19:25:38 -0600 | [diff] [blame] | 996 | #endif /* __IMMAP_83xx__ */ |