1 /*
2  * Copyright 2011-2012 Freescale Semiconductor, Inc.
3  *
4  * SPDX-License-Identifier:	GPL-2.0+
5  */
6 
7 #ifndef _ASM_MPC85xx_CONFIG_H_
8 #define _ASM_MPC85xx_CONFIG_H_
9 
10 /* SoC specific defines for Freescale MPC85xx (PQ3) and QorIQ processors */
11 
12 /*
13  * This macro should be removed when we no longer care about backwards
14  * compatibility with older operating systems.
15  */
16 #define CONFIG_PPC_SPINTABLE_COMPATIBLE
17 
18 #include <fsl_ddrc_version.h>
19 
20 /* IP endianness */
21 #define CONFIG_SYS_FSL_IFC_BE
22 #define CONFIG_SYS_FSL_SFP_BE
23 #define CONFIG_SYS_FSL_SEC_MON_BE
24 
25 #if defined(CONFIG_ARCH_MPC8548)
26 #define CONFIG_SYS_FSL_SRIO_MAX_PORTS	1
27 #define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM	9
28 #define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM	5
29 #define CONFIG_SYS_FSL_RMU
30 #define CONFIG_SYS_FSL_SRIO_MSG_UNIT_NUM	2
31 
32 #elif defined(CONFIG_ARCH_MPC8568)
33 #define QE_MURAM_SIZE			0x10000UL
34 #define MAX_QE_RISC			2
35 #define QE_NUM_OF_SNUM			28
36 #define CONFIG_SYS_FSL_SRIO_MAX_PORTS	1
37 #define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM	9
38 #define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM	5
39 #define CONFIG_SYS_FSL_RMU
40 #define CONFIG_SYS_FSL_SRIO_MSG_UNIT_NUM	2
41 
42 #elif defined(CONFIG_ARCH_MPC8569)
43 #define QE_MURAM_SIZE			0x20000UL
44 #define MAX_QE_RISC			4
45 #define QE_NUM_OF_SNUM			46
46 #define CONFIG_SYS_FSL_SRIO_MAX_PORTS	1
47 #define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM	9
48 #define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM	5
49 #define CONFIG_SYS_FSL_RMU
50 #define CONFIG_SYS_FSL_SRIO_MSG_UNIT_NUM	2
51 
52 #elif defined(CONFIG_ARCH_P1010)
53 #define CONFIG_FSL_SDHC_V2_3
54 #define CONFIG_TSECV2
55 #define CONFIG_USB_MAX_CONTROLLER_COUNT	1
56 #define CONFIG_SYS_FSL_IFC_BANK_COUNT	4
57 #define CONFIG_SYS_FSL_PCIE_COMPAT	"fsl,qoriq-pcie-v2.2"
58 #define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
59 #define CONFIG_SYS_FSL_USB1_PHY_ENABLE
60 #define CONFIG_ESDHC_HC_BLK_ADDR
61 
62 /* P1011 is single core version of P1020 */
63 #elif defined(CONFIG_ARCH_P1011)
64 #define CONFIG_TSECV2
65 #define CONFIG_FSL_PCIE_DISABLE_ASPM
66 #define CONFIG_USB_MAX_CONTROLLER_COUNT	2
67 
68 #elif defined(CONFIG_ARCH_P1020)
69 #define CONFIG_TSECV2
70 #define CONFIG_FSL_PCIE_DISABLE_ASPM
71 #ifndef CONFIG_USB_MAX_CONTROLLER_COUNT
72 #define CONFIG_USB_MAX_CONTROLLER_COUNT	2
73 #endif
74 
75 #elif defined(CONFIG_ARCH_P1021)
76 #define CONFIG_TSECV2
77 #define CONFIG_FSL_PCIE_DISABLE_ASPM
78 #define QE_MURAM_SIZE			0x6000UL
79 #define MAX_QE_RISC			1
80 #define QE_NUM_OF_SNUM			28
81 #define CONFIG_USB_MAX_CONTROLLER_COUNT	1
82 
83 #elif defined(CONFIG_ARCH_P1022)
84 #define CONFIG_TSECV2
85 #define CONFIG_USB_MAX_CONTROLLER_COUNT	1
86 
87 #elif defined(CONFIG_ARCH_P1023)
88 #define CONFIG_SYS_NUM_FMAN		1
89 #define CONFIG_SYS_NUM_FM1_DTSEC	2
90 #define CONFIG_USB_MAX_CONTROLLER_COUNT	1
91 #define CONFIG_SYS_QMAN_NUM_PORTALS	3
92 #define CONFIG_SYS_BMAN_NUM_PORTALS	3
93 #define CONFIG_SYS_FM_MURAM_SIZE	0x10000
94 #define CONFIG_SYS_FSL_PCIE_COMPAT	"fsl,qoriq-pcie-v2.2"
95 
96 /* P1024 is lower end variant of P1020 */
97 #elif defined(CONFIG_ARCH_P1024)
98 #define CONFIG_TSECV2
99 #define CONFIG_FSL_PCIE_DISABLE_ASPM
100 #define CONFIG_USB_MAX_CONTROLLER_COUNT	2
101 
102 /* P1025 is lower end variant of P1021 */
103 #elif defined(CONFIG_ARCH_P1025)
104 #define CONFIG_USB_MAX_CONTROLLER_COUNT	1
105 #define CONFIG_TSECV2
106 #define CONFIG_FSL_PCIE_DISABLE_ASPM
107 #define QE_MURAM_SIZE			0x6000UL
108 #define MAX_QE_RISC			1
109 #define QE_NUM_OF_SNUM			28
110 
111 #elif defined(CONFIG_ARCH_P2020)
112 #define CONFIG_SYS_FSL_SRIO_MAX_PORTS	2
113 #define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM	9
114 #define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM	5
115 #define CONFIG_SYS_FSL_RMU
116 #define CONFIG_SYS_FSL_SRIO_MSG_UNIT_NUM	2
117 #define CONFIG_USB_MAX_CONTROLLER_COUNT	1
118 
119 #elif defined(CONFIG_ARCH_P2041) /* also supports P2040 */
120 #define CONFIG_FSL_CORENET		/* Freescale CoreNet platform */
121 #define CONFIG_SYS_FSL_NUM_CC_PLLS	2
122 #define CONFIG_SYS_NUM_FMAN		1
123 #define CONFIG_SYS_NUM_FM1_DTSEC	5
124 #define CONFIG_SYS_NUM_FM1_10GEC	1
125 #define CONFIG_USB_MAX_CONTROLLER_COUNT	2
126 #define CONFIG_SYS_FM_MURAM_SIZE	0x28000
127 #define CONFIG_SYS_FSL_TBCLK_DIV	32
128 #define CONFIG_SYS_FSL_PCIE_COMPAT	"fsl,qoriq-pcie-v2.2"
129 #define CONFIG_SYS_FSL_USB1_PHY_ENABLE
130 #define CONFIG_SYS_FSL_USB2_PHY_ENABLE
131 #define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
132 #define CONFIG_SYS_FSL_SRIO_MAX_PORTS	2
133 #define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM	9
134 #define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM	5
135 #define CONFIG_SYS_FSL_CORENET_SNOOPVEC_COREONLY 0xf0000000
136 
137 #elif defined(CONFIG_ARCH_P3041)
138 #define CONFIG_FSL_CORENET		/* Freescale CoreNet platform */
139 #define CONFIG_SYS_FSL_NUM_CC_PLLS	2
140 #define CONFIG_SYS_NUM_FMAN		1
141 #define CONFIG_SYS_NUM_FM1_DTSEC	5
142 #define CONFIG_SYS_NUM_FM1_10GEC	1
143 #define CONFIG_SYS_FM_MURAM_SIZE	0x28000
144 #define CONFIG_SYS_FSL_TBCLK_DIV	32
145 #define CONFIG_SYS_FSL_PCIE_COMPAT	"fsl,qoriq-pcie-v2.2"
146 #define CONFIG_SYS_FSL_USB1_PHY_ENABLE
147 #define CONFIG_SYS_FSL_USB2_PHY_ENABLE
148 #define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
149 #define CONFIG_USB_MAX_CONTROLLER_COUNT	2
150 #define CONFIG_SYS_FSL_SRIO_MAX_PORTS	2
151 #define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM	9
152 #define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM	5
153 #define CONFIG_SYS_FSL_CORENET_SNOOPVEC_COREONLY 0xf0000000
154 
155 #elif defined(CONFIG_ARCH_P4080) /* also supports P4040 */
156 #define CONFIG_FSL_CORENET		/* Freescale CoreNet platform */
157 #define CONFIG_SYS_FSL_NUM_CC_PLLS	4
158 #define CONFIG_SYS_NUM_FMAN		2
159 #define CONFIG_SYS_NUM_FM1_DTSEC	4
160 #define CONFIG_SYS_NUM_FM2_DTSEC	4
161 #define CONFIG_SYS_NUM_FM1_10GEC	1
162 #define CONFIG_SYS_NUM_FM2_10GEC	1
163 #define CONFIG_USB_MAX_CONTROLLER_COUNT	2
164 #define CONFIG_SYS_FM_MURAM_SIZE	0x28000
165 #define CONFIG_SYS_FSL_TBCLK_DIV	16
166 #define CONFIG_SYS_FSL_PCIE_COMPAT	"fsl,p4080-pcie"
167 #define CONFIG_SYS_FSL_SRIO_MAX_PORTS	2
168 #define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM	9
169 #define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM	5
170 #define CONFIG_SYS_FSL_RMU
171 #define CONFIG_SYS_FSL_SRIO_MSG_UNIT_NUM	2
172 #define CONFIG_SYS_FSL_CORENET_SNOOPVEC_COREONLY 0xff000000
173 
174 #elif defined(CONFIG_ARCH_P5020) /* also supports P5010 */
175 #define CONFIG_FSL_CORENET		/* Freescale CoreNet platform */
176 #define CONFIG_SYS_FSL_NUM_CC_PLLS	2
177 #define CONFIG_SYS_NUM_FMAN		1
178 #define CONFIG_SYS_NUM_FM1_DTSEC	5
179 #define CONFIG_SYS_NUM_FM1_10GEC	1
180 #define CONFIG_USB_MAX_CONTROLLER_COUNT	2
181 #define CONFIG_SYS_FM_MURAM_SIZE	0x28000
182 #define CONFIG_SYS_FSL_TBCLK_DIV	32
183 #define CONFIG_SYS_FSL_PCIE_COMPAT	"fsl,qoriq-pcie-v2.2"
184 #define CONFIG_SYS_FSL_USB1_PHY_ENABLE
185 #define CONFIG_SYS_FSL_USB2_PHY_ENABLE
186 #define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
187 #define CONFIG_SYS_FSL_SRIO_MAX_PORTS	2
188 #define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM	9
189 #define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM	5
190 #define CONFIG_SYS_FSL_CORENET_SNOOPVEC_COREONLY 0xc0000000
191 
192 #elif defined(CONFIG_ARCH_P5040)
193 #define CONFIG_FSL_CORENET		/* Freescale CoreNet platform */
194 #define CONFIG_SYS_FSL_NUM_CC_PLLS	3
195 #define CONFIG_SYS_NUM_FMAN		2
196 #define CONFIG_SYS_NUM_FM1_DTSEC	5
197 #define CONFIG_SYS_NUM_FM1_10GEC	1
198 #define CONFIG_SYS_NUM_FM2_DTSEC	5
199 #define CONFIG_SYS_NUM_FM2_10GEC	1
200 #define CONFIG_USB_MAX_CONTROLLER_COUNT	2
201 #define CONFIG_SYS_FM_MURAM_SIZE	0x28000
202 #define CONFIG_SYS_FSL_TBCLK_DIV	16
203 #define CONFIG_SYS_FSL_PCIE_COMPAT	"fsl,qoriq-pcie-v2.4"
204 #define CONFIG_SYS_FSL_USB1_PHY_ENABLE
205 #define CONFIG_SYS_FSL_USB2_PHY_ENABLE
206 #define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
207 #define CONFIG_SYS_FSL_CORENET_SNOOPVEC_COREONLY 0xf0000000
208 
209 #elif defined(CONFIG_ARCH_BSC9131)
210 #define CONFIG_FSL_SDHC_V2_3
211 #define CONFIG_TSECV2
212 #define CONFIG_USB_MAX_CONTROLLER_COUNT	1
213 #define CONFIG_SYS_FSL_DSP_M2_RAM_ADDR	0xb0000000
214 #define CONFIG_SYS_FSL_DSP_CCSRBAR_DEFAULT	0xff600000
215 #define CONFIG_SYS_FSL_IFC_BANK_COUNT	3
216 #define CONFIG_NAND_FSL_IFC
217 #define CONFIG_ESDHC_HC_BLK_ADDR
218 
219 #elif defined(CONFIG_ARCH_BSC9132)
220 #define CONFIG_FSL_SDHC_V2_3
221 #define CONFIG_TSECV2
222 #define CONFIG_USB_MAX_CONTROLLER_COUNT	1
223 #define CONFIG_SYS_FSL_DSP_DDR_ADDR	0x40000000
224 #define CONFIG_SYS_FSL_DSP_M2_RAM_ADDR	0xb0000000
225 #define CONFIG_SYS_FSL_DSP_M3_RAM_ADDR	0xc0000000
226 #define CONFIG_SYS_FSL_DSP_CCSRBAR_DEFAULT	0xff600000
227 #define CONFIG_SYS_FSL_IFC_BANK_COUNT	3
228 #define CONFIG_NAND_FSL_IFC
229 #define CONFIG_SYS_FSL_ESDHC_P1010_BROKEN_SDCLK
230 #define CONFIG_SYS_FSL_PCIE_COMPAT	"fsl,qoriq-pcie-v2.2"
231 #define CONFIG_ESDHC_HC_BLK_ADDR
232 
233 #elif defined(CONFIG_ARCH_T4240) || defined(CONFIG_ARCH_T4160)
234 #define CONFIG_FSL_CORENET		/* Freescale CoreNet platform */
235 #define CONFIG_SYS_FSL_CORES_PER_CLUSTER 4
236 #define CONFIG_SYS_FSL_QMAN_V3		/* QMAN version 3 */
237 #ifdef CONFIG_ARCH_T4240
238 #define CONFIG_SYS_FSL_CLUSTER_CLOCKS   { 1, 1, 4 }
239 #define CONFIG_SYS_NUM_FM1_DTSEC	8
240 #define CONFIG_SYS_NUM_FM1_10GEC	2
241 #define CONFIG_SYS_NUM_FM2_DTSEC	8
242 #define CONFIG_SYS_NUM_FM2_10GEC	2
243 #else
244 #define CONFIG_SYS_NUM_FM1_DTSEC	6
245 #define CONFIG_SYS_NUM_FM1_10GEC	1
246 #define CONFIG_SYS_NUM_FM2_DTSEC	8
247 #define CONFIG_SYS_NUM_FM2_10GEC	1
248 #if defined(CONFIG_ARCH_T4160)
249 #define CONFIG_SYS_FSL_CLUSTER_CLOCKS	{ 1, 1 }
250 #endif
251 #endif
252 #define CONFIG_SYS_FSL_NUM_CC_PLLS	5
253 #define CONFIG_SYS_FSL_SRDS_1
254 #define CONFIG_SYS_FSL_SRDS_2
255 #define CONFIG_SYS_FSL_SRDS_3
256 #define CONFIG_SYS_FSL_SRDS_4
257 #define CONFIG_SYS_NUM_FMAN		2
258 #define CONFIG_USB_MAX_CONTROLLER_COUNT	2
259 #define CONFIG_SYS_PME_CLK		0
260 #define CONFIG_SYS_FSL_IFC_BANK_COUNT	8
261 #define CONFIG_SYS_FMAN_V3
262 #define CONFIG_SYS_FM1_CLK		3
263 #define CONFIG_SYS_FM2_CLK		3
264 #define CONFIG_SYS_FM_MURAM_SIZE	0x60000
265 #define CONFIG_SYS_FSL_TBCLK_DIV	16
266 #define CONFIG_SYS_FSL_PCIE_COMPAT	"fsl,qoriq-pcie-v3.0"
267 #define CONFIG_SYS_FSL_SRIO_MAX_PORTS	2
268 #define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM	9
269 #define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM	5
270 #define CONFIG_SYS_FSL_SRIO_LIODN
271 #define CONFIG_SYS_FSL_USB_DUAL_PHY_ENABLE
272 #define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
273 #define CONFIG_SYS_FSL_SFP_VER_3_0
274 #define CONFIG_SYS_FSL_PCI_VER_3_X
275 
276 #elif defined(CONFIG_ARCH_B4860) || defined(CONFIG_ARCH_B4420)
277 #define CONFIG_FSL_CORENET		/* Freescale CoreNet platform */
278 #define CONFIG_SYS_FSL_QMAN_V3		/* QMAN version 3 */
279 #define CONFIG_HETROGENOUS_CLUSTERS     /* DSP/SC3900 core clusters */
280 #define CONFIG_PPC_CLUSTER_START	0 /*Start index of ppc clusters*/
281 #define CONFIG_DSP_CLUSTER_START	1 /*Start index of dsp clusters*/
282 #define CONFIG_SYS_FSL_SRDS_1
283 #define CONFIG_SYS_FSL_SRDS_2
284 #define CONFIG_SYS_MAPLE
285 #define CONFIG_SYS_CPRI
286 #define CONFIG_SYS_FSL_NUM_CC_PLLS	5
287 #define CONFIG_SYS_NUM_FMAN		1
288 #define CONFIG_USB_MAX_CONTROLLER_COUNT	1
289 #define CONFIG_SYS_FM1_CLK		0
290 #define CONFIG_SYS_CPRI_CLK		3
291 #define CONFIG_SYS_ULB_CLK		4
292 #define CONFIG_SYS_ETVPE_CLK		1
293 #define CONFIG_SYS_FSL_IFC_BANK_COUNT	4
294 #define CONFIG_SYS_FMAN_V3
295 #define CONFIG_SYS_FM_MURAM_SIZE	0x60000
296 #define CONFIG_SYS_FSL_TBCLK_DIV	16
297 #define CONFIG_SYS_FSL_PCIE_COMPAT	"fsl,qoriq-pcie-v2.4"
298 #define CONFIG_SYS_FSL_USB1_PHY_ENABLE
299 #define CONFIG_SYS_FSL_SFP_VER_3_0
300 
301 #ifdef CONFIG_ARCH_B4860
302 #define CONFIG_SYS_FSL_CORES_PER_CLUSTER 4
303 #define CONFIG_MAX_DSP_CPUS		12
304 #define CONFIG_NUM_DSP_CPUS		6
305 #define CONFIG_SYS_FSL_SRDS_NUM_PLLS	2
306 #define CONFIG_SYS_FSL_CLUSTER_CLOCKS	{ 1, 4, 4, 4 }
307 #define CONFIG_SYS_NUM_FM1_DTSEC	6
308 #define CONFIG_SYS_NUM_FM1_10GEC	2
309 #define CONFIG_USB_MAX_CONTROLLER_COUNT	1
310 #define CONFIG_SYS_FSL_SRIO_MAX_PORTS	2
311 #define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM	9
312 #define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM	5
313 #define CONFIG_SYS_FSL_SRIO_LIODN
314 #else
315 #define CONFIG_MAX_DSP_CPUS		2
316 #define CONFIG_SYS_FSL_SRDS_NUM_PLLS	1
317 #define CONFIG_SYS_FSL_CORES_PER_CLUSTER 2
318 #define CONFIG_SYS_FSL_CLUSTER_CLOCKS	{ 1, 4 }
319 #define CONFIG_SYS_NUM_FM1_DTSEC	4
320 #define CONFIG_SYS_NUM_FM1_10GEC	0
321 #endif
322 
323 #elif defined(CONFIG_ARCH_T1040) || defined(CONFIG_ARCH_T1042)
324 #define CONFIG_E5500
325 #define CONFIG_FSL_CORENET		/* Freescale CoreNet platform */
326 #define CONFIG_SYS_FSL_CORES_PER_CLUSTER 1
327 #define CONFIG_SYS_FSL_QMAN_V3		/* QMAN version 3 */
328 #define CONFIG_SYS_FSL_NUM_CC_PLLS	2
329 #define CONFIG_SYS_FSL_CLUSTER_CLOCKS   { 1, 1, 1, 1 }
330 #define CONFIG_SYS_FSL_SRDS_1
331 #define CONFIG_SYS_NUM_FMAN		1
332 #define CONFIG_SYS_NUM_FM1_DTSEC	5
333 #define CONFIG_USB_MAX_CONTROLLER_COUNT	2
334 #define CONFIG_PME_PLAT_CLK_DIV		2
335 #define CONFIG_SYS_PME_CLK		CONFIG_PME_PLAT_CLK_DIV
336 #define CONFIG_SYS_FSL_IFC_BANK_COUNT	8
337 #define CONFIG_SYS_FMAN_V3
338 #define CONFIG_FM_PLAT_CLK_DIV	1
339 #define CONFIG_SYS_FM1_CLK		CONFIG_FM_PLAT_CLK_DIV
340 #define CONFIG_SYS_SDHC_CLK		0/* Select SDHC CLK begining from PLL1
341 					    per rcw field value */
342 #define CONFIG_SYS_SDHC_CLK_2_PLL	/* Select SDHC CLK from 2 PLLs */
343 #define CONFIG_SYS_FM_MURAM_SIZE	0x30000
344 #define CONFIG_SYS_FSL_SINGLE_SOURCE_CLK
345 #define CONFIG_SYS_FSL_TBCLK_DIV	16
346 #define CONFIG_SYS_FSL_PCIE_COMPAT	"fsl,qoriq-pcie-v2.4"
347 #define CONFIG_SYS_FSL_USB_DUAL_PHY_ENABLE
348 #define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
349 #define ESDHCI_QUIRK_BROKEN_TIMEOUT_VALUE
350 #define QE_MURAM_SIZE			0x6000UL
351 #define MAX_QE_RISC			1
352 #define QE_NUM_OF_SNUM			28
353 #define CONFIG_SYS_FSL_SFP_VER_3_0
354 
355 #elif defined(CONFIG_ARCH_T1024) || defined(CONFIG_ARCH_T1023)
356 #define CONFIG_E5500
357 #define CONFIG_FSL_CORENET	     /* Freescale CoreNet platform */
358 #define CONFIG_SYS_FSL_CORES_PER_CLUSTER 1
359 #define CONFIG_SYS_FSL_QMAN_V3	 /* QMAN version 3 */
360 #define CONFIG_SYS_FMAN_V3
361 #define CONFIG_SYS_FSL_NUM_CC_PLL	2
362 #define CONFIG_SYS_FSL_CLUSTER_CLOCKS  { 1, 1, 1, 1 }
363 #define CONFIG_SYS_FSL_SRDS_1
364 #define CONFIG_SYS_NUM_FMAN		1
365 #define CONFIG_SYS_NUM_FM1_DTSEC	4
366 #define CONFIG_SYS_NUM_FM1_10GEC	1
367 #define CONFIG_FSL_FM_10GEC_REGULAR_NOTATION
368 #define CONFIG_USB_MAX_CONTROLLER_COUNT	2
369 #define CONFIG_SYS_FSL_IFC_BANK_COUNT	8
370 #define CONFIG_SYS_FM1_CLK		0
371 #define CONFIG_SYS_SDHC_CLK		0/* Select SDHC CLK begining from PLL1
372 					    per rcw field value */
373 #define CONFIG_QBMAN_CLK_DIV		1
374 #define CONFIG_SYS_FM_MURAM_SIZE	0x30000
375 #define CONFIG_SYS_FSL_SINGLE_SOURCE_CLK
376 #define CONFIG_SYS_FSL_TBCLK_DIV	16
377 #define CONFIG_SYS_FSL_PCIE_COMPAT	"fsl,qoriq-pcie-v2.4"
378 #define CONFIG_SYS_FSL_USB_DUAL_PHY_ENABLE
379 #define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
380 #define ESDHCI_QUIRK_BROKEN_TIMEOUT_VALUE
381 #define QE_MURAM_SIZE			0x6000UL
382 #define MAX_QE_RISC			1
383 #define QE_NUM_OF_SNUM			28
384 #define CONFIG_SYS_FSL_SFP_VER_3_0
385 
386 #elif defined(CONFIG_ARCH_T2080) || defined(CONFIG_ARCH_T2081)
387 #define CONFIG_FSL_CORENET		/* Freescale CoreNet platform */
388 #define CONFIG_SYS_FSL_CORES_PER_CLUSTER 4
389 #define CONFIG_SYS_FSL_NUM_CC_PLLS	2
390 #define CONFIG_SYS_FSL_QMAN_V3
391 #define CONFIG_SYS_NUM_FMAN		1
392 #define CONFIG_SYS_FSL_CLUSTER_CLOCKS	{ 1, 4, 4, 4 }
393 #define CONFIG_SYS_FSL_SRDS_1
394 #define CONFIG_SYS_FSL_PCI_VER_3_X
395 #if defined(CONFIG_ARCH_T2080)
396 #define CONFIG_SYS_NUM_FM1_DTSEC	8
397 #define CONFIG_SYS_NUM_FM1_10GEC	4
398 #define CONFIG_SYS_FSL_SRDS_2
399 #define CONFIG_SYS_FSL_SRIO_LIODN
400 #define CONFIG_SYS_FSL_SRIO_MAX_PORTS	2
401 #define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM	9
402 #define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM	5
403 #elif defined(CONFIG_ARCH_T2081)
404 #define CONFIG_SYS_NUM_FM1_DTSEC	6
405 #define CONFIG_SYS_NUM_FM1_10GEC	2
406 #endif
407 #define CONFIG_USB_MAX_CONTROLLER_COUNT 2
408 #define CONFIG_PME_PLAT_CLK_DIV		1
409 #define CONFIG_SYS_PME_CLK		CONFIG_PME_PLAT_CLK_DIV
410 #define CONFIG_SYS_FM1_CLK		0
411 #define CONFIG_SYS_SDHC_CLK		1/* Select SDHC CLK begining from PLL2
412 					    per rcw field value */
413 #define CONFIG_SYS_SDHC_CLK_2_PLL	/* Select SDHC CLK from 2 PLLs */
414 #define CONFIG_SYS_FSL_IFC_BANK_COUNT	8
415 #define CONFIG_SYS_FMAN_V3
416 #define CONFIG_SYS_FM_MURAM_SIZE	0x28000
417 #define CONFIG_SYS_FSL_TBCLK_DIV	16
418 #define CONFIG_SYS_FSL_PCIE_COMPAT	"fsl,qoriq-pcie-v3.0"
419 #define CONFIG_SYS_FSL_USB_DUAL_PHY_ENABLE
420 #define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
421 #define CONFIG_SYS_FSL_SFP_VER_3_0
422 #define CONFIG_SYS_FSL_ISBC_VER		2
423 #define ESDHCI_QUIRK_BROKEN_TIMEOUT_VALUE
424 #define CONFIG_SYS_FSL_SFP_VER_3_0
425 
426 
427 #elif defined(CONFIG_ARCH_C29X)
428 #define CONFIG_FSL_SDHC_V2_3
429 #define CONFIG_TSECV2_1
430 #define CONFIG_SYS_FSL_IFC_BANK_COUNT	8
431 #define CONFIG_SYS_FSL_MAX_NUM_OF_SEC	3
432 #define CONFIG_SYS_FSL_SEC_IDX_OFFSET	0x20000
433 
434 #endif
435 
436 #if !defined(CONFIG_ARCH_C29X)
437 #define CONFIG_SYS_FSL_MAX_NUM_OF_SEC	1
438 #endif
439 
440 #endif /* _ASM_MPC85xx_CONFIG_H_ */
441