xref: /rk3399_rockchip-uboot/arch/powerpc/include/asm/config_mpc85xx.h (revision 6e7f0bc0ce33adbd028f4e34b7e9d3bf46e0f95b)
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 
26243be8e2SKumar Gala /* Number of TLB CAM entries we have on FSL Book-E chips */
27243be8e2SKumar Gala #if defined(CONFIG_E500MC)
28243be8e2SKumar Gala #define CONFIG_SYS_NUM_TLBCAMS		64
29243be8e2SKumar Gala #elif defined(CONFIG_E500)
30243be8e2SKumar Gala #define CONFIG_SYS_NUM_TLBCAMS		16
31243be8e2SKumar Gala #endif
32243be8e2SKumar Gala 
33243be8e2SKumar Gala #if defined(CONFIG_MPC8536)
34243be8e2SKumar Gala #define CONFIG_MAX_CPUS			1
35243be8e2SKumar Gala #define CONFIG_SYS_FSL_NUM_LAWS		12
36243be8e2SKumar Gala #define CONFIG_SYS_FSL_SEC_COMPAT	2
37243be8e2SKumar Gala 
38243be8e2SKumar Gala #elif defined(CONFIG_MPC8540)
39243be8e2SKumar Gala #define CONFIG_MAX_CPUS			1
40243be8e2SKumar Gala #define CONFIG_SYS_FSL_NUM_LAWS		8
41243be8e2SKumar Gala 
42243be8e2SKumar Gala #elif defined(CONFIG_MPC8541)
43243be8e2SKumar Gala #define CONFIG_MAX_CPUS			1
44243be8e2SKumar Gala #define CONFIG_SYS_FSL_NUM_LAWS		8
45243be8e2SKumar Gala #define CONFIG_SYS_FSL_SEC_COMPAT	2
46243be8e2SKumar Gala 
47243be8e2SKumar Gala #elif defined(CONFIG_MPC8544)
48243be8e2SKumar Gala #define CONFIG_MAX_CPUS			1
49243be8e2SKumar Gala #define CONFIG_SYS_FSL_NUM_LAWS		10
50243be8e2SKumar Gala #define CONFIG_SYS_FSL_SEC_COMPAT	2
51243be8e2SKumar Gala 
52243be8e2SKumar Gala #elif defined(CONFIG_MPC8548)
53243be8e2SKumar Gala #define CONFIG_MAX_CPUS			1
54243be8e2SKumar Gala #define CONFIG_SYS_FSL_NUM_LAWS		10
55243be8e2SKumar Gala #define CONFIG_SYS_FSL_SEC_COMPAT	2
56243be8e2SKumar Gala 
57243be8e2SKumar Gala #elif defined(CONFIG_MPC8555)
58243be8e2SKumar Gala #define CONFIG_MAX_CPUS			1
59243be8e2SKumar Gala #define CONFIG_SYS_FSL_NUM_LAWS		8
60243be8e2SKumar Gala #define CONFIG_SYS_FSL_SEC_COMPAT	2
61243be8e2SKumar Gala 
62243be8e2SKumar Gala #elif defined(CONFIG_MPC8560)
63243be8e2SKumar Gala #define CONFIG_MAX_CPUS			1
64243be8e2SKumar Gala #define CONFIG_SYS_FSL_NUM_LAWS		8
65243be8e2SKumar Gala 
66243be8e2SKumar Gala #elif defined(CONFIG_MPC8568)
67243be8e2SKumar Gala #define CONFIG_MAX_CPUS			1
68243be8e2SKumar Gala #define CONFIG_SYS_FSL_NUM_LAWS		10
69243be8e2SKumar Gala #define CONFIG_SYS_FSL_SEC_COMPAT	2
70243be8e2SKumar Gala 
71243be8e2SKumar Gala #elif defined(CONFIG_MPC8569)
72243be8e2SKumar Gala #define CONFIG_MAX_CPUS			1
73243be8e2SKumar Gala #define CONFIG_SYS_FSL_NUM_LAWS		10
74243be8e2SKumar Gala #define CONFIG_SYS_FSL_SEC_COMPAT	2
75243be8e2SKumar Gala 
76243be8e2SKumar Gala #elif defined(CONFIG_MPC8572)
77243be8e2SKumar Gala #define CONFIG_MAX_CPUS			2
78243be8e2SKumar Gala #define CONFIG_SYS_FSL_NUM_LAWS		12
79243be8e2SKumar Gala #define CONFIG_SYS_FSL_SEC_COMPAT	2
80243be8e2SKumar Gala 
81243be8e2SKumar Gala #elif defined(CONFIG_P1010)
82243be8e2SKumar Gala #define CONFIG_MAX_CPUS			1
83243be8e2SKumar Gala #define CONFIG_SYS_FSL_NUM_LAWS		12
84243be8e2SKumar Gala #define CONFIG_TSECV2
85243be8e2SKumar Gala #define CONFIG_SYS_FSL_SEC_COMPAT	4
86243be8e2SKumar Gala 
87243be8e2SKumar Gala #elif defined(CONFIG_P1011)
88243be8e2SKumar Gala #define CONFIG_MAX_CPUS			1
89243be8e2SKumar Gala #define CONFIG_SYS_FSL_NUM_LAWS		12
90243be8e2SKumar Gala #define CONFIG_TSECV2
91243be8e2SKumar Gala #define CONFIG_SYS_FSL_SEC_COMPAT	2
92243be8e2SKumar Gala 
93243be8e2SKumar Gala #elif defined(CONFIG_P1012)
94243be8e2SKumar Gala #define CONFIG_MAX_CPUS			1
95243be8e2SKumar Gala #define CONFIG_SYS_FSL_NUM_LAWS		12
96243be8e2SKumar Gala #define CONFIG_TSECV2
97243be8e2SKumar Gala #define CONFIG_SYS_FSL_SEC_COMPAT	2
98243be8e2SKumar Gala 
99243be8e2SKumar Gala #elif defined(CONFIG_P1013)
100243be8e2SKumar Gala #define CONFIG_MAX_CPUS			1
101243be8e2SKumar Gala #define CONFIG_SYS_FSL_NUM_LAWS		12
102243be8e2SKumar Gala #define CONFIG_TSECV2
103243be8e2SKumar Gala #define CONFIG_SYS_FSL_SEC_COMPAT	2
104243be8e2SKumar Gala 
105243be8e2SKumar Gala #elif defined(CONFIG_P1014)
106243be8e2SKumar Gala #define CONFIG_MAX_CPUS			1
107243be8e2SKumar Gala #define CONFIG_SYS_FSL_NUM_LAWS		12
108243be8e2SKumar Gala #define CONFIG_TSECV2
109243be8e2SKumar Gala #define CONFIG_SYS_FSL_SEC_COMPAT	4
110243be8e2SKumar Gala 
111243be8e2SKumar Gala #elif defined(CONFIG_P1020)
112243be8e2SKumar Gala #define CONFIG_MAX_CPUS			2
113243be8e2SKumar Gala #define CONFIG_SYS_FSL_NUM_LAWS		12
114243be8e2SKumar Gala #define CONFIG_TSECV2
115243be8e2SKumar Gala #define CONFIG_SYS_FSL_SEC_COMPAT	2
116243be8e2SKumar Gala 
117243be8e2SKumar Gala #elif defined(CONFIG_P1021)
118243be8e2SKumar Gala #define CONFIG_MAX_CPUS			2
119243be8e2SKumar Gala #define CONFIG_SYS_FSL_NUM_LAWS		12
120243be8e2SKumar Gala #define CONFIG_TSECV2
121243be8e2SKumar Gala #define CONFIG_SYS_FSL_SEC_COMPAT	2
122243be8e2SKumar Gala 
123243be8e2SKumar Gala #elif defined(CONFIG_P1022)
124243be8e2SKumar Gala #define CONFIG_MAX_CPUS			2
125243be8e2SKumar Gala #define CONFIG_SYS_FSL_NUM_LAWS		12
126243be8e2SKumar Gala #define CONFIG_TSECV2
127243be8e2SKumar Gala #define CONFIG_SYS_FSL_SEC_COMPAT	2
128243be8e2SKumar Gala 
129243be8e2SKumar Gala #elif defined(CONFIG_P2010)
130243be8e2SKumar Gala #define CONFIG_MAX_CPUS			1
131243be8e2SKumar Gala #define CONFIG_SYS_FSL_NUM_LAWS		12
132243be8e2SKumar Gala #define CONFIG_SYS_FSL_SEC_COMPAT	2
133*6e7f0bc0SKumar Gala #define CONFIG_SYS_FSL_ERRATUM_ESDHC111
134243be8e2SKumar Gala 
135243be8e2SKumar Gala #elif defined(CONFIG_P2020)
136243be8e2SKumar Gala #define CONFIG_MAX_CPUS			2
137243be8e2SKumar Gala #define CONFIG_SYS_FSL_NUM_LAWS		12
138243be8e2SKumar Gala #define CONFIG_SYS_FSL_SEC_COMPAT	2
139*6e7f0bc0SKumar Gala #define CONFIG_SYS_FSL_ERRATUM_ESDHC111
140243be8e2SKumar Gala 
141243be8e2SKumar Gala #elif defined(CONFIG_PPC_P2040)
142243be8e2SKumar Gala #define CONFIG_MAX_CPUS			4
143243be8e2SKumar Gala #define CONFIG_SYS_FSL_NUM_LAWS		32
144243be8e2SKumar Gala #define CONFIG_SYS_FSL_SEC_COMPAT	4
145243be8e2SKumar Gala 
146243be8e2SKumar Gala #elif defined(CONFIG_PPC_P3041)
147243be8e2SKumar Gala #define CONFIG_MAX_CPUS			4
148243be8e2SKumar Gala #define CONFIG_SYS_FSL_NUM_LAWS		32
149243be8e2SKumar Gala #define CONFIG_SYS_FSL_SEC_COMPAT	4
150243be8e2SKumar Gala 
151243be8e2SKumar Gala #elif defined(CONFIG_PPC_P4040)
152243be8e2SKumar Gala #define CONFIG_MAX_CPUS			4
153243be8e2SKumar Gala #define CONFIG_SYS_FSL_NUM_LAWS		32
154243be8e2SKumar Gala #define CONFIG_SYS_FSL_SEC_COMPAT	4
155243be8e2SKumar Gala 
156243be8e2SKumar Gala #elif defined(CONFIG_PPC_P4080)
157243be8e2SKumar Gala #define CONFIG_MAX_CPUS			8
158243be8e2SKumar Gala #define CONFIG_SYS_FSL_NUM_LAWS		32
159243be8e2SKumar Gala #define CONFIG_SYS_FSL_SEC_COMPAT	4
160243be8e2SKumar Gala #define CONFIG_SYS_NUM_FMAN		2
161243be8e2SKumar Gala #define CONFIG_SYS_NUM_FM1_DTSEC	4
162243be8e2SKumar Gala #define CONFIG_SYS_NUM_FM2_DTSEC	4
163243be8e2SKumar Gala #define CONFIG_SYS_NUM_FM1_10GEC	1
164243be8e2SKumar Gala #define CONFIG_SYS_NUM_FM2_10GEC	1
165243be8e2SKumar Gala #define CONFIG_NUM_DDR_CONTROLLERS	2
166243be8e2SKumar Gala #define CONFIG_SYS_FSL_ERRATUM_CPC_A002
167243be8e2SKumar Gala #define CONFIG_SYS_FSL_ERRATUM_CPC_A003
168fa8d23c0SYork Sun #define CONFIG_SYS_FSL_ERRATUM_DDR_A003
169243be8e2SKumar Gala #define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
170243be8e2SKumar Gala #define CONFIG_SYS_FSL_ERRATUM_ESDHC111
171243be8e2SKumar Gala #define CONFIG_SYS_FSL_ERRATUM_ESDHC135
172243be8e2SKumar Gala #define CONFIG_SYS_FSL_ERRATUM_ESDHC136
173243be8e2SKumar Gala #define CONFIG_SYS_P4080_ERRATUM_CPU22
174243be8e2SKumar Gala #define CONFIG_SYS_P4080_ERRATUM_SERDES8
175243be8e2SKumar Gala 
176243be8e2SKumar Gala #elif defined(CONFIG_PPC_P5010)
177243be8e2SKumar Gala #define CONFIG_MAX_CPUS			1
178243be8e2SKumar Gala #define CONFIG_SYS_FSL_NUM_LAWS		32
179243be8e2SKumar Gala #define CONFIG_SYS_FSL_SEC_COMPAT	4
180243be8e2SKumar Gala 
181243be8e2SKumar Gala #elif defined(CONFIG_PPC_P5020)
182243be8e2SKumar Gala #define CONFIG_MAX_CPUS			2
183243be8e2SKumar Gala #define CONFIG_SYS_FSL_NUM_LAWS		32
184243be8e2SKumar Gala #define CONFIG_SYS_FSL_SEC_COMPAT	4
185243be8e2SKumar Gala 
186243be8e2SKumar Gala #else
187243be8e2SKumar Gala #error Processor type not defined for this platform
188243be8e2SKumar Gala #endif
189243be8e2SKumar Gala 
190243be8e2SKumar Gala #endif /* _ASM_MPC85xx_CONFIG_H_ */
191