xref: /rk3399_rockchip-uboot/arch/powerpc/include/asm/config_mpc85xx.h (revision bc6bbd6be85973359e89f53e3bfbba2a3549da09)
1243be8e2SKumar Gala /*
2243be8e2SKumar Gala  * Copyright 2011 Freescale Semiconductor, Inc.
3243be8e2SKumar Gala  *
4243be8e2SKumar Gala  * This program is free software; you can redistribute it and/or
5243be8e2SKumar Gala  * modify it under the terms of the GNU General Public License as
6243be8e2SKumar Gala  * published by the Free Software Foundation; either version 2 of
7243be8e2SKumar Gala  * the License, or (at your option) any later version.
8243be8e2SKumar Gala  *
9243be8e2SKumar Gala  * This program is distributed in the hope that it will be useful,
10243be8e2SKumar Gala  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11243be8e2SKumar Gala  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12243be8e2SKumar Gala  * GNU General Public License for more details.
13243be8e2SKumar Gala  *
14243be8e2SKumar Gala  * You should have received a copy of the GNU General Public License
15243be8e2SKumar Gala  * along with this program; if not, write to the Free Software
16243be8e2SKumar Gala  * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
17243be8e2SKumar Gala  * MA 02111-1307 USA
18243be8e2SKumar Gala  *
19243be8e2SKumar Gala  */
20243be8e2SKumar Gala 
21243be8e2SKumar Gala #ifndef _ASM_MPC85xx_CONFIG_H_
22243be8e2SKumar Gala #define _ASM_MPC85xx_CONFIG_H_
23243be8e2SKumar Gala 
24243be8e2SKumar Gala /* SoC specific defines for Freescale MPC85xx (PQ3) and QorIQ processors */
25243be8e2SKumar Gala 
26e46fedfeSTimur Tabi #ifdef CONFIG_SYS_CCSRBAR_DEFAULT
27e46fedfeSTimur Tabi #error "Do not define CONFIG_SYS_CCSRBAR_DEFAULT in the board header file."
28e46fedfeSTimur Tabi #endif
29e46fedfeSTimur Tabi 
30243be8e2SKumar Gala /* Number of TLB CAM entries we have on FSL Book-E chips */
31243be8e2SKumar Gala #if defined(CONFIG_E500MC)
32243be8e2SKumar Gala #define CONFIG_SYS_NUM_TLBCAMS		64
33243be8e2SKumar Gala #elif defined(CONFIG_E500)
34243be8e2SKumar Gala #define CONFIG_SYS_NUM_TLBCAMS		16
35243be8e2SKumar Gala #endif
36243be8e2SKumar Gala 
37243be8e2SKumar Gala #if defined(CONFIG_MPC8536)
38243be8e2SKumar Gala #define CONFIG_MAX_CPUS			1
39243be8e2SKumar Gala #define CONFIG_SYS_FSL_NUM_LAWS		12
40243be8e2SKumar Gala #define CONFIG_SYS_FSL_SEC_COMPAT	2
41e46fedfeSTimur Tabi #define CONFIG_SYS_CCSRBAR_DEFAULT	0xff700000
42243be8e2SKumar Gala 
43243be8e2SKumar Gala #elif defined(CONFIG_MPC8540)
44243be8e2SKumar Gala #define CONFIG_MAX_CPUS			1
45243be8e2SKumar Gala #define CONFIG_SYS_FSL_NUM_LAWS		8
46e46fedfeSTimur Tabi #define CONFIG_SYS_CCSRBAR_DEFAULT	0xff700000
47243be8e2SKumar Gala 
48243be8e2SKumar Gala #elif defined(CONFIG_MPC8541)
49243be8e2SKumar Gala #define CONFIG_MAX_CPUS			1
50243be8e2SKumar Gala #define CONFIG_SYS_FSL_NUM_LAWS		8
51243be8e2SKumar Gala #define CONFIG_SYS_FSL_SEC_COMPAT	2
52e46fedfeSTimur Tabi #define CONFIG_SYS_CCSRBAR_DEFAULT	0xff700000
53243be8e2SKumar Gala 
54243be8e2SKumar Gala #elif defined(CONFIG_MPC8544)
55243be8e2SKumar Gala #define CONFIG_MAX_CPUS			1
56243be8e2SKumar Gala #define CONFIG_SYS_FSL_NUM_LAWS		10
57243be8e2SKumar Gala #define CONFIG_SYS_FSL_SEC_COMPAT	2
58e46fedfeSTimur Tabi #define CONFIG_SYS_CCSRBAR_DEFAULT	0xff700000
59243be8e2SKumar Gala 
60243be8e2SKumar Gala #elif defined(CONFIG_MPC8548)
61243be8e2SKumar Gala #define CONFIG_MAX_CPUS			1
62243be8e2SKumar Gala #define CONFIG_SYS_FSL_NUM_LAWS		10
63243be8e2SKumar Gala #define CONFIG_SYS_FSL_SEC_COMPAT	2
64e46fedfeSTimur Tabi #define CONFIG_SYS_CCSRBAR_DEFAULT	0xff700000
65243be8e2SKumar Gala 
66243be8e2SKumar Gala #elif defined(CONFIG_MPC8555)
67243be8e2SKumar Gala #define CONFIG_MAX_CPUS			1
68243be8e2SKumar Gala #define CONFIG_SYS_FSL_NUM_LAWS		8
69243be8e2SKumar Gala #define CONFIG_SYS_FSL_SEC_COMPAT	2
70e46fedfeSTimur Tabi #define CONFIG_SYS_CCSRBAR_DEFAULT	0xff700000
71243be8e2SKumar Gala 
72243be8e2SKumar Gala #elif defined(CONFIG_MPC8560)
73243be8e2SKumar Gala #define CONFIG_MAX_CPUS			1
74243be8e2SKumar Gala #define CONFIG_SYS_FSL_NUM_LAWS		8
75e46fedfeSTimur Tabi #define CONFIG_SYS_CCSRBAR_DEFAULT	0xff700000
76243be8e2SKumar Gala 
77243be8e2SKumar Gala #elif defined(CONFIG_MPC8568)
78243be8e2SKumar Gala #define CONFIG_MAX_CPUS			1
79243be8e2SKumar Gala #define CONFIG_SYS_FSL_NUM_LAWS		10
80243be8e2SKumar Gala #define CONFIG_SYS_FSL_SEC_COMPAT	2
81fdb4dad3SKumar Gala #define QE_MURAM_SIZE			0x10000UL
82fdb4dad3SKumar Gala #define MAX_QE_RISC			2
83fdb4dad3SKumar Gala #define QE_NUM_OF_SNUM			28
84e46fedfeSTimur Tabi #define CONFIG_SYS_CCSRBAR_DEFAULT	0xff700000
85243be8e2SKumar Gala 
86243be8e2SKumar Gala #elif defined(CONFIG_MPC8569)
87243be8e2SKumar Gala #define CONFIG_MAX_CPUS			1
88243be8e2SKumar Gala #define CONFIG_SYS_FSL_NUM_LAWS		10
89243be8e2SKumar Gala #define CONFIG_SYS_FSL_SEC_COMPAT	2
90fdb4dad3SKumar Gala #define QE_MURAM_SIZE			0x20000UL
91fdb4dad3SKumar Gala #define MAX_QE_RISC			4
92fdb4dad3SKumar Gala #define QE_NUM_OF_SNUM			46
93e46fedfeSTimur Tabi #define CONFIG_SYS_CCSRBAR_DEFAULT	0xff700000
94243be8e2SKumar Gala 
95243be8e2SKumar Gala #elif defined(CONFIG_MPC8572)
96243be8e2SKumar Gala #define CONFIG_MAX_CPUS			2
97243be8e2SKumar Gala #define CONFIG_SYS_FSL_NUM_LAWS		12
98243be8e2SKumar Gala #define CONFIG_SYS_FSL_SEC_COMPAT	2
99e46fedfeSTimur Tabi #define CONFIG_SYS_CCSRBAR_DEFAULT	0xff700000
100eb0aff77SYork Sun #define CONFIG_SYS_FSL_ERRATUM_DDR_115
10191671913SYork Sun #define CONFIG_SYS_FSL_ERRATUM_DDR111_DDR134
102243be8e2SKumar Gala 
103243be8e2SKumar Gala #elif defined(CONFIG_P1010)
104243be8e2SKumar Gala #define CONFIG_MAX_CPUS			1
10532c8cfb2SPriyanka Jain #define CONFIG_FSL_SDHC_V2_3
106243be8e2SKumar Gala #define CONFIG_SYS_FSL_NUM_LAWS		12
107243be8e2SKumar Gala #define CONFIG_TSECV2
108243be8e2SKumar Gala #define CONFIG_SYS_FSL_SEC_COMPAT	4
1091fbf3483SPoonam Aggrwal #define CONFIG_FSL_SATA_V2
1101fbf3483SPoonam Aggrwal #define CONFIG_SYS_FSL_ERRATUM_ESDHC111
1111fbf3483SPoonam Aggrwal #define CONFIG_NUM_DDR_CONTROLLERS	1
1121fbf3483SPoonam Aggrwal #define CONFIG_SYS_CCSRBAR_DEFAULT	0xff700000
1138f29084aSKumar Gala #define CONFIG_SYS_FSL_PCIE_COMPAT	"fsl,qoriq-pcie-v2.2"
1141b719e66SRamneek Mehresh #define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
11542aee64bSPoonam Aggrwal #define CONFIG_SYS_FSL_ERRATUM_IFC_A002769
116fb855f43SPoonam Aggrwal #define CONFIG_SYS_FSL_ERRATUM_P1010_A003549
117*bc6bbd6bSPoonam Aggrwal #define CONFIG_SYS_FSL_ERRATUM_IFC_A003399
118243be8e2SKumar Gala 
119093cffbeSKumar Gala /* P1011 is single core version of P1020 */
120243be8e2SKumar Gala #elif defined(CONFIG_P1011)
121243be8e2SKumar Gala #define CONFIG_MAX_CPUS			1
122243be8e2SKumar Gala #define CONFIG_SYS_FSL_NUM_LAWS		12
123243be8e2SKumar Gala #define CONFIG_TSECV2
124b03a466dSPrabhakar Kushwaha #define CONFIG_FSL_PCIE_DISABLE_ASPM
125243be8e2SKumar Gala #define CONFIG_SYS_FSL_SEC_COMPAT	2
126e46fedfeSTimur Tabi #define CONFIG_SYS_CCSRBAR_DEFAULT	0xff700000
127093cffbeSKumar Gala #define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
128093cffbeSKumar Gala #define CONFIG_SYS_FSL_ERRATUM_ESDHC111
129243be8e2SKumar Gala 
130093cffbeSKumar Gala /* P1012 is single core version of P1021 */
131243be8e2SKumar Gala #elif defined(CONFIG_P1012)
132243be8e2SKumar Gala #define CONFIG_MAX_CPUS			1
133243be8e2SKumar Gala #define CONFIG_SYS_FSL_NUM_LAWS		12
134243be8e2SKumar Gala #define CONFIG_TSECV2
135b03a466dSPrabhakar Kushwaha #define CONFIG_FSL_PCIE_DISABLE_ASPM
136243be8e2SKumar Gala #define CONFIG_SYS_FSL_SEC_COMPAT	2
137e46fedfeSTimur Tabi #define CONFIG_SYS_CCSRBAR_DEFAULT	0xff700000
138093cffbeSKumar Gala #define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
139093cffbeSKumar Gala #define CONFIG_SYS_FSL_ERRATUM_ESDHC111
140a52d2f81SHaiying Wang #define QE_MURAM_SIZE			0x6000UL
141a52d2f81SHaiying Wang #define MAX_QE_RISC			1
142a52d2f81SHaiying Wang #define QE_NUM_OF_SNUM			28
143243be8e2SKumar Gala 
144093cffbeSKumar Gala /* P1013 is single core version of P1022 */
145243be8e2SKumar Gala #elif defined(CONFIG_P1013)
146243be8e2SKumar Gala #define CONFIG_MAX_CPUS			1
147243be8e2SKumar Gala #define CONFIG_SYS_FSL_NUM_LAWS		12
148243be8e2SKumar Gala #define CONFIG_TSECV2
149243be8e2SKumar Gala #define CONFIG_SYS_FSL_SEC_COMPAT	2
150e46fedfeSTimur Tabi #define CONFIG_SYS_CCSRBAR_DEFAULT	0xff700000
1512d7534a3SJiang Yutang #define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
1522d7534a3SJiang Yutang #define CONFIG_SYS_FSL_ERRATUM_ESDHC111
1532d7534a3SJiang Yutang #define CONFIG_FSL_SATA_ERRATUM_A001
154243be8e2SKumar Gala 
155243be8e2SKumar Gala #elif defined(CONFIG_P1014)
156243be8e2SKumar Gala #define CONFIG_MAX_CPUS			1
15732c8cfb2SPriyanka Jain #define CONFIG_FSL_SDHC_V2_3
158243be8e2SKumar Gala #define CONFIG_SYS_FSL_NUM_LAWS		12
159243be8e2SKumar Gala #define CONFIG_TSECV2
160243be8e2SKumar Gala #define CONFIG_SYS_FSL_SEC_COMPAT	4
1611fbf3483SPoonam Aggrwal #define CONFIG_FSL_SATA_V2
1621fbf3483SPoonam Aggrwal #define CONFIG_SYS_FSL_ERRATUM_ESDHC111
1631fbf3483SPoonam Aggrwal #define CONFIG_NUM_DDR_CONTROLLERS	1
1641fbf3483SPoonam Aggrwal #define CONFIG_SYS_CCSRBAR_DEFAULT	0xff700000
1651b719e66SRamneek Mehresh #define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
16642aee64bSPoonam Aggrwal #define CONFIG_SYS_FSL_ERRATUM_IFC_A002769
167fb855f43SPoonam Aggrwal #define CONFIG_SYS_FSL_ERRATUM_P1010_A003549
168*bc6bbd6bSPoonam Aggrwal #define CONFIG_SYS_FSL_ERRATUM_IFC_A003399
169243be8e2SKumar Gala 
170093cffbeSKumar Gala /* P1015 is single core version of P1024 */
171093cffbeSKumar Gala #elif defined(CONFIG_P1015)
172093cffbeSKumar Gala #define CONFIG_MAX_CPUS			1
173093cffbeSKumar Gala #define CONFIG_SYS_FSL_NUM_LAWS		12
174093cffbeSKumar Gala #define CONFIG_TSECV2
175093cffbeSKumar Gala #define CONFIG_FSL_PCIE_DISABLE_ASPM
176093cffbeSKumar Gala #define CONFIG_SYS_FSL_SEC_COMPAT	2
177e46fedfeSTimur Tabi #define CONFIG_SYS_CCSRBAR_DEFAULT	0xff700000
178093cffbeSKumar Gala #define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
179093cffbeSKumar Gala #define CONFIG_SYS_FSL_ERRATUM_ESDHC111
180093cffbeSKumar Gala 
181093cffbeSKumar Gala /* P1016 is single core version of P1025 */
182093cffbeSKumar Gala #elif defined(CONFIG_P1016)
183093cffbeSKumar Gala #define CONFIG_MAX_CPUS			1
184093cffbeSKumar Gala #define CONFIG_SYS_FSL_NUM_LAWS		12
185093cffbeSKumar Gala #define CONFIG_TSECV2
186093cffbeSKumar Gala #define CONFIG_FSL_PCIE_DISABLE_ASPM
187093cffbeSKumar Gala #define CONFIG_SYS_FSL_SEC_COMPAT	2
188093cffbeSKumar Gala #define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
189093cffbeSKumar Gala #define CONFIG_SYS_FSL_ERRATUM_ESDHC111
190a52d2f81SHaiying Wang #define QE_MURAM_SIZE			0x6000UL
191a52d2f81SHaiying Wang #define MAX_QE_RISC			1
192a52d2f81SHaiying Wang #define QE_NUM_OF_SNUM			28
193e46fedfeSTimur Tabi #define CONFIG_SYS_CCSRBAR_DEFAULT	0xff700000
194093cffbeSKumar Gala 
195093cffbeSKumar Gala /* P1017 is single core version of P1023 */
19667a719daSRoy Zang #elif defined(CONFIG_P1017)
19767a719daSRoy Zang #define CONFIG_MAX_CPUS			1
19867a719daSRoy Zang #define CONFIG_SYS_FSL_NUM_LAWS		12
19967a719daSRoy Zang #define CONFIG_SYS_FSL_SEC_COMPAT	4
20067a719daSRoy Zang #define CONFIG_SYS_NUM_FMAN		1
20167a719daSRoy Zang #define CONFIG_SYS_NUM_FM1_DTSEC	2
20267a719daSRoy Zang #define CONFIG_NUM_DDR_CONTROLLERS	1
20367a719daSRoy Zang #define CONFIG_SYS_QMAN_NUM_PORTALS	3
20467a719daSRoy Zang #define CONFIG_SYS_BMAN_NUM_PORTALS	3
205c657d898SKumar Gala #define CONFIG_SYS_FM_MURAM_SIZE	0x10000
2068f29084aSKumar Gala #define CONFIG_SYS_FSL_PCIE_COMPAT	"fsl,qoriq-pcie-v2.2"
207e46fedfeSTimur Tabi #define CONFIG_SYS_CCSRBAR_DEFAULT	0xff600000
20867a719daSRoy Zang 
209243be8e2SKumar Gala #elif defined(CONFIG_P1020)
210243be8e2SKumar Gala #define CONFIG_MAX_CPUS			2
211243be8e2SKumar Gala #define CONFIG_SYS_FSL_NUM_LAWS		12
212243be8e2SKumar Gala #define CONFIG_TSECV2
213b03a466dSPrabhakar Kushwaha #define CONFIG_FSL_PCIE_DISABLE_ASPM
214243be8e2SKumar Gala #define CONFIG_SYS_FSL_SEC_COMPAT	2
215e46fedfeSTimur Tabi #define CONFIG_SYS_CCSRBAR_DEFAULT	0xff700000
216093cffbeSKumar Gala #define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
217093cffbeSKumar Gala #define CONFIG_SYS_FSL_ERRATUM_ESDHC111
218243be8e2SKumar Gala 
219243be8e2SKumar Gala #elif defined(CONFIG_P1021)
220243be8e2SKumar Gala #define CONFIG_MAX_CPUS			2
221243be8e2SKumar Gala #define CONFIG_SYS_FSL_NUM_LAWS		12
222243be8e2SKumar Gala #define CONFIG_TSECV2
223b03a466dSPrabhakar Kushwaha #define CONFIG_FSL_PCIE_DISABLE_ASPM
224243be8e2SKumar Gala #define CONFIG_SYS_FSL_SEC_COMPAT	2
225e46fedfeSTimur Tabi #define CONFIG_SYS_CCSRBAR_DEFAULT	0xff700000
226093cffbeSKumar Gala #define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
227093cffbeSKumar Gala #define CONFIG_SYS_FSL_ERRATUM_ESDHC111
228a52d2f81SHaiying Wang #define QE_MURAM_SIZE			0x6000UL
229a52d2f81SHaiying Wang #define MAX_QE_RISC			1
230a52d2f81SHaiying Wang #define QE_NUM_OF_SNUM			28
231243be8e2SKumar Gala 
232243be8e2SKumar Gala #elif defined(CONFIG_P1022)
233243be8e2SKumar Gala #define CONFIG_MAX_CPUS			2
234243be8e2SKumar Gala #define CONFIG_SYS_FSL_NUM_LAWS		12
235243be8e2SKumar Gala #define CONFIG_TSECV2
236243be8e2SKumar Gala #define CONFIG_SYS_FSL_SEC_COMPAT	2
237e46fedfeSTimur Tabi #define CONFIG_SYS_CCSRBAR_DEFAULT	0xff700000
2382d7534a3SJiang Yutang #define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
2392d7534a3SJiang Yutang #define CONFIG_SYS_FSL_ERRATUM_ESDHC111
2402d7534a3SJiang Yutang #define CONFIG_FSL_SATA_ERRATUM_A001
241243be8e2SKumar Gala 
24267a719daSRoy Zang #elif defined(CONFIG_P1023)
24367a719daSRoy Zang #define CONFIG_MAX_CPUS			2
24467a719daSRoy Zang #define CONFIG_SYS_FSL_NUM_LAWS		12
24567a719daSRoy Zang #define CONFIG_SYS_FSL_SEC_COMPAT	4
24667a719daSRoy Zang #define CONFIG_SYS_NUM_FMAN		1
24767a719daSRoy Zang #define CONFIG_SYS_NUM_FM1_DTSEC	2
24867a719daSRoy Zang #define CONFIG_NUM_DDR_CONTROLLERS	1
24967a719daSRoy Zang #define CONFIG_SYS_QMAN_NUM_PORTALS	3
25067a719daSRoy Zang #define CONFIG_SYS_BMAN_NUM_PORTALS	3
251c657d898SKumar Gala #define CONFIG_SYS_FM_MURAM_SIZE	0x10000
2528f29084aSKumar Gala #define CONFIG_SYS_FSL_PCIE_COMPAT	"fsl,qoriq-pcie-v2.2"
253e46fedfeSTimur Tabi #define CONFIG_SYS_CCSRBAR_DEFAULT	0xff600000
25467a719daSRoy Zang 
255093cffbeSKumar Gala /* P1024 is lower end variant of P1020 */
256093cffbeSKumar Gala #elif defined(CONFIG_P1024)
257093cffbeSKumar Gala #define CONFIG_MAX_CPUS			2
258093cffbeSKumar Gala #define CONFIG_SYS_FSL_NUM_LAWS		12
259093cffbeSKumar Gala #define CONFIG_TSECV2
260093cffbeSKumar Gala #define CONFIG_FSL_PCIE_DISABLE_ASPM
261093cffbeSKumar Gala #define CONFIG_SYS_FSL_SEC_COMPAT	2
262e46fedfeSTimur Tabi #define CONFIG_SYS_CCSRBAR_DEFAULT	0xff700000
263093cffbeSKumar Gala #define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
264093cffbeSKumar Gala #define CONFIG_SYS_FSL_ERRATUM_ESDHC111
265093cffbeSKumar Gala 
266093cffbeSKumar Gala /* P1025 is lower end variant of P1021 */
267093cffbeSKumar Gala #elif defined(CONFIG_P1025)
268093cffbeSKumar Gala #define CONFIG_MAX_CPUS			2
269093cffbeSKumar Gala #define CONFIG_SYS_FSL_NUM_LAWS		12
270093cffbeSKumar Gala #define CONFIG_TSECV2
271093cffbeSKumar Gala #define CONFIG_FSL_PCIE_DISABLE_ASPM
272093cffbeSKumar Gala #define CONFIG_SYS_FSL_SEC_COMPAT	2
273e46fedfeSTimur Tabi #define CONFIG_SYS_CCSRBAR_DEFAULT	0xff700000
274093cffbeSKumar Gala #define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
275093cffbeSKumar Gala #define CONFIG_SYS_FSL_ERRATUM_ESDHC111
276a52d2f81SHaiying Wang #define QE_MURAM_SIZE			0x6000UL
277a52d2f81SHaiying Wang #define MAX_QE_RISC			1
278a52d2f81SHaiying Wang #define QE_NUM_OF_SNUM			28
279093cffbeSKumar Gala 
280093cffbeSKumar Gala /* P2010 is single core version of P2020 */
281243be8e2SKumar Gala #elif defined(CONFIG_P2010)
282243be8e2SKumar Gala #define CONFIG_MAX_CPUS			1
283243be8e2SKumar Gala #define CONFIG_SYS_FSL_NUM_LAWS		12
284243be8e2SKumar Gala #define CONFIG_SYS_FSL_SEC_COMPAT	2
285e46fedfeSTimur Tabi #define CONFIG_SYS_CCSRBAR_DEFAULT	0xff700000
2866e7f0bc0SKumar Gala #define CONFIG_SYS_FSL_ERRATUM_ESDHC111
2875103a03aSKumar Gala #define CONFIG_SYS_FSL_ERRATUM_ESDHC_A001
288243be8e2SKumar Gala 
289243be8e2SKumar Gala #elif defined(CONFIG_P2020)
290243be8e2SKumar Gala #define CONFIG_MAX_CPUS			2
291243be8e2SKumar Gala #define CONFIG_SYS_FSL_NUM_LAWS		12
292243be8e2SKumar Gala #define CONFIG_SYS_FSL_SEC_COMPAT	2
293e46fedfeSTimur Tabi #define CONFIG_SYS_CCSRBAR_DEFAULT	0xff700000
2946e7f0bc0SKumar Gala #define CONFIG_SYS_FSL_ERRATUM_ESDHC111
2955103a03aSKumar Gala #define CONFIG_SYS_FSL_ERRATUM_ESDHC_A001
296243be8e2SKumar Gala 
297243be8e2SKumar Gala #elif defined(CONFIG_PPC_P2040)
298243be8e2SKumar Gala #define CONFIG_MAX_CPUS			4
299b5c8753fSKumar Gala #define CONFIG_SYS_FSL_NUM_CC_PLLS	2
300243be8e2SKumar Gala #define CONFIG_SYS_FSL_NUM_LAWS		32
301243be8e2SKumar Gala #define CONFIG_SYS_FSL_SEC_COMPAT	4
302fbee0f7fSKumar Gala #define CONFIG_SYS_NUM_FMAN		1
303fbee0f7fSKumar Gala #define CONFIG_SYS_NUM_FM1_DTSEC	5
304fbee0f7fSKumar Gala #define CONFIG_NUM_DDR_CONTROLLERS	1
305c657d898SKumar Gala #define CONFIG_SYS_FM_MURAM_SIZE	0x28000
30666412c63SKumar Gala #define CONFIG_SYS_FSL_TBCLK_DIV	32
3078f29084aSKumar Gala #define CONFIG_SYS_FSL_PCIE_COMPAT	"fsl,qoriq-pcie-v2.2"
308e46fedfeSTimur Tabi #define CONFIG_SYS_CCSRBAR_DEFAULT	0xfe000000
30986221f09SRoy Zang #define CONFIG_SYS_FSL_USB1_PHY_ENABLE
31086221f09SRoy Zang #define CONFIG_SYS_FSL_USB2_PHY_ENABLE
311b6c3722dSKumar Gala #define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
31230009766SLei Xu #define CONFIG_SYS_FSL_ERRATUM_ESDHC111
313243be8e2SKumar Gala 
3141f97987aSKumar Gala #elif defined(CONFIG_PPC_P2041)
3151f97987aSKumar Gala #define CONFIG_MAX_CPUS			4
3161f97987aSKumar Gala #define CONFIG_SYS_FSL_NUM_CC_PLLS	2
3171f97987aSKumar Gala #define CONFIG_SYS_FSL_NUM_LAWS		32
3181f97987aSKumar Gala #define CONFIG_SYS_FSL_SEC_COMPAT	4
3191f97987aSKumar Gala #define CONFIG_SYS_NUM_FMAN		1
3201f97987aSKumar Gala #define CONFIG_SYS_NUM_FM1_DTSEC	5
3211f97987aSKumar Gala #define CONFIG_SYS_NUM_FM1_10GEC	1
3221f97987aSKumar Gala #define CONFIG_NUM_DDR_CONTROLLERS	1
3231f97987aSKumar Gala #define CONFIG_SYS_FM_MURAM_SIZE	0x28000
3241f97987aSKumar Gala #define CONFIG_SYS_FSL_TBCLK_DIV	32
3251f97987aSKumar Gala #define CONFIG_SYS_FSL_PCIE_COMPAT	"fsl,qoriq-pcie-v2.2"
326e46fedfeSTimur Tabi #define CONFIG_SYS_CCSRBAR_DEFAULT	0xfe000000
3271f97987aSKumar Gala #define CONFIG_SYS_FSL_USB1_PHY_ENABLE
3281f97987aSKumar Gala #define CONFIG_SYS_FSL_USB2_PHY_ENABLE
329b6c3722dSKumar Gala #define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
3301f97987aSKumar Gala #define CONFIG_SYS_FSL_ERRATUM_ESDHC111
3311f97987aSKumar Gala 
332243be8e2SKumar Gala #elif defined(CONFIG_PPC_P3041)
333243be8e2SKumar Gala #define CONFIG_MAX_CPUS			4
334b5c8753fSKumar Gala #define CONFIG_SYS_FSL_NUM_CC_PLLS	2
335243be8e2SKumar Gala #define CONFIG_SYS_FSL_NUM_LAWS		32
336243be8e2SKumar Gala #define CONFIG_SYS_FSL_SEC_COMPAT	4
337fbee0f7fSKumar Gala #define CONFIG_SYS_NUM_FMAN		1
338fbee0f7fSKumar Gala #define CONFIG_SYS_NUM_FM1_DTSEC	5
339fbee0f7fSKumar Gala #define CONFIG_SYS_NUM_FM1_10GEC	1
340fbee0f7fSKumar Gala #define CONFIG_NUM_DDR_CONTROLLERS	1
341c657d898SKumar Gala #define CONFIG_SYS_FM_MURAM_SIZE	0x28000
34266412c63SKumar Gala #define CONFIG_SYS_FSL_TBCLK_DIV	32
3438f29084aSKumar Gala #define CONFIG_SYS_FSL_PCIE_COMPAT	"fsl,qoriq-pcie-v2.2"
344e46fedfeSTimur Tabi #define CONFIG_SYS_CCSRBAR_DEFAULT	0xfe000000
34586221f09SRoy Zang #define CONFIG_SYS_FSL_USB1_PHY_ENABLE
34686221f09SRoy Zang #define CONFIG_SYS_FSL_USB2_PHY_ENABLE
347b6c3722dSKumar Gala #define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
34830009766SLei Xu #define CONFIG_SYS_FSL_ERRATUM_ESDHC111
349243be8e2SKumar Gala 
350243be8e2SKumar Gala #elif defined(CONFIG_PPC_P4040)
351243be8e2SKumar Gala #define CONFIG_MAX_CPUS			4
352b5c8753fSKumar Gala #define CONFIG_SYS_FSL_NUM_CC_PLLS	4
353243be8e2SKumar Gala #define CONFIG_SYS_FSL_NUM_LAWS		32
354243be8e2SKumar Gala #define CONFIG_SYS_FSL_SEC_COMPAT	4
355c657d898SKumar Gala #define CONFIG_SYS_FM_MURAM_SIZE	0x28000
35666412c63SKumar Gala #define CONFIG_SYS_FSL_TBCLK_DIV	16
3578f29084aSKumar Gala #define CONFIG_SYS_FSL_PCIE_COMPAT	"fsl,p4080-pcie"
358e46fedfeSTimur Tabi #define CONFIG_SYS_CCSRBAR_DEFAULT	0xfe000000
359243be8e2SKumar Gala 
360243be8e2SKumar Gala #elif defined(CONFIG_PPC_P4080)
361243be8e2SKumar Gala #define CONFIG_MAX_CPUS			8
362b5c8753fSKumar Gala #define CONFIG_SYS_FSL_NUM_CC_PLLS	4
363243be8e2SKumar Gala #define CONFIG_SYS_FSL_NUM_LAWS		32
364243be8e2SKumar Gala #define CONFIG_SYS_FSL_SEC_COMPAT	4
365243be8e2SKumar Gala #define CONFIG_SYS_NUM_FMAN		2
366243be8e2SKumar Gala #define CONFIG_SYS_NUM_FM1_DTSEC	4
367243be8e2SKumar Gala #define CONFIG_SYS_NUM_FM2_DTSEC	4
368243be8e2SKumar Gala #define CONFIG_SYS_NUM_FM1_10GEC	1
369243be8e2SKumar Gala #define CONFIG_SYS_NUM_FM2_10GEC	1
370243be8e2SKumar Gala #define CONFIG_NUM_DDR_CONTROLLERS	2
371c657d898SKumar Gala #define CONFIG_SYS_FM_MURAM_SIZE	0x28000
37266412c63SKumar Gala #define CONFIG_SYS_FSL_TBCLK_DIV	16
3738f29084aSKumar Gala #define CONFIG_SYS_FSL_PCIE_COMPAT	"fsl,p4080-pcie"
374e46fedfeSTimur Tabi #define CONFIG_SYS_CCSRBAR_DEFAULT	0xfe000000
375243be8e2SKumar Gala #define CONFIG_SYS_FSL_ERRATUM_CPC_A002
376243be8e2SKumar Gala #define CONFIG_SYS_FSL_ERRATUM_CPC_A003
377fa8d23c0SYork Sun #define CONFIG_SYS_FSL_ERRATUM_DDR_A003
378243be8e2SKumar Gala #define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
379243be8e2SKumar Gala #define CONFIG_SYS_FSL_ERRATUM_ESDHC111
380243be8e2SKumar Gala #define CONFIG_SYS_FSL_ERRATUM_ESDHC135
381243be8e2SKumar Gala #define CONFIG_SYS_FSL_ERRATUM_ESDHC136
382243be8e2SKumar Gala #define CONFIG_SYS_P4080_ERRATUM_CPU22
383243be8e2SKumar Gala #define CONFIG_SYS_P4080_ERRATUM_SERDES8
384df8af0b4SEmil Medve #define CONFIG_SYS_P4080_ERRATUM_SERDES9
385d90fdba6STimur Tabi #define CONFIG_SYS_P4080_ERRATUM_SERDES_A001
386da30b9fdSTimur Tabi #define CONFIG_SYS_P4080_ERRATUM_SERDES_A005
387243be8e2SKumar Gala 
388093cffbeSKumar Gala /* P5010 is single core version of P5020 */
389243be8e2SKumar Gala #elif defined(CONFIG_PPC_P5010)
390243be8e2SKumar Gala #define CONFIG_MAX_CPUS			1
391b5c8753fSKumar Gala #define CONFIG_SYS_FSL_NUM_CC_PLLS	2
392243be8e2SKumar Gala #define CONFIG_SYS_FSL_NUM_LAWS		32
393243be8e2SKumar Gala #define CONFIG_SYS_FSL_SEC_COMPAT	4
394fbee0f7fSKumar Gala #define CONFIG_SYS_NUM_FMAN		1
395fbee0f7fSKumar Gala #define CONFIG_SYS_NUM_FM1_DTSEC	5
396fbee0f7fSKumar Gala #define CONFIG_SYS_NUM_FM1_10GEC	1
397fbee0f7fSKumar Gala #define CONFIG_NUM_DDR_CONTROLLERS	1
398c657d898SKumar Gala #define CONFIG_SYS_FM_MURAM_SIZE	0x28000
39966412c63SKumar Gala #define CONFIG_SYS_FSL_TBCLK_DIV	32
4008f29084aSKumar Gala #define CONFIG_SYS_FSL_PCIE_COMPAT	"fsl,qoriq-pcie-v2.2"
401e46fedfeSTimur Tabi #define CONFIG_SYS_CCSRBAR_DEFAULT	0xfe000000
40286221f09SRoy Zang #define CONFIG_SYS_FSL_USB1_PHY_ENABLE
40386221f09SRoy Zang #define CONFIG_SYS_FSL_USB2_PHY_ENABLE
404b6c3722dSKumar Gala #define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
40530009766SLei Xu #define CONFIG_SYS_FSL_ERRATUM_ESDHC111
406243be8e2SKumar Gala 
407243be8e2SKumar Gala #elif defined(CONFIG_PPC_P5020)
408243be8e2SKumar Gala #define CONFIG_MAX_CPUS			2
409b5c8753fSKumar Gala #define CONFIG_SYS_FSL_NUM_CC_PLLS	2
410243be8e2SKumar Gala #define CONFIG_SYS_FSL_NUM_LAWS		32
411243be8e2SKumar Gala #define CONFIG_SYS_FSL_SEC_COMPAT	4
412fbee0f7fSKumar Gala #define CONFIG_SYS_NUM_FMAN		1
413fbee0f7fSKumar Gala #define CONFIG_SYS_NUM_FM1_DTSEC	5
414fbee0f7fSKumar Gala #define CONFIG_SYS_NUM_FM1_10GEC	1
415fbee0f7fSKumar Gala #define CONFIG_NUM_DDR_CONTROLLERS	2
416c657d898SKumar Gala #define CONFIG_SYS_FM_MURAM_SIZE	0x28000
41766412c63SKumar Gala #define CONFIG_SYS_FSL_TBCLK_DIV	32
4188f29084aSKumar Gala #define CONFIG_SYS_FSL_PCIE_COMPAT	"fsl,qoriq-pcie-v2.2"
419e46fedfeSTimur Tabi #define CONFIG_SYS_CCSRBAR_DEFAULT	0xfe000000
42086221f09SRoy Zang #define CONFIG_SYS_FSL_USB1_PHY_ENABLE
42186221f09SRoy Zang #define CONFIG_SYS_FSL_USB2_PHY_ENABLE
422b6c3722dSKumar Gala #define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
42330009766SLei Xu #define CONFIG_SYS_FSL_ERRATUM_ESDHC111
424243be8e2SKumar Gala 
425243be8e2SKumar Gala #else
426243be8e2SKumar Gala #error Processor type not defined for this platform
427243be8e2SKumar Gala #endif
428243be8e2SKumar Gala 
429e46fedfeSTimur Tabi #ifndef CONFIG_SYS_CCSRBAR_DEFAULT
430e46fedfeSTimur Tabi #error "CONFIG_SYS_CCSRBAR_DEFAULT is not defined for this platform."
431e46fedfeSTimur Tabi #endif
432e46fedfeSTimur Tabi 
433243be8e2SKumar Gala #endif /* _ASM_MPC85xx_CONFIG_H_ */
434