blob: 59aeb31087ff5831c5f10f1c34830346c038b232 [file] [log] [blame]
Kumar Galafe137112011-01-19 03:05:26 -06001/*
2 * Copyright 2011 Freescale Semiconductor, Inc.
3 *
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License as
6 * published by the Free Software Foundation; either version 2 of
7 * the License, or (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
17 * MA 02111-1307 USA
18 *
19 */
20
21#ifndef _ASM_MPC85xx_CONFIG_H_
22#define _ASM_MPC85xx_CONFIG_H_
23
24/* SoC specific defines for Freescale MPC85xx (PQ3) and QorIQ processors */
25
26/* Number of TLB CAM entries we have on FSL Book-E chips */
27#if defined(CONFIG_E500MC)
28#define CONFIG_SYS_NUM_TLBCAMS 64
29#elif defined(CONFIG_E500)
30#define CONFIG_SYS_NUM_TLBCAMS 16
31#endif
32
33#if defined(CONFIG_MPC8536)
34#define CONFIG_MAX_CPUS 1
35#define CONFIG_SYS_FSL_NUM_LAWS 12
36#define CONFIG_SYS_FSL_SEC_COMPAT 2
37
Wolfgang Denka4de8352011-02-02 22:36:10 +010038#elif defined(CONFIG_MPC8540)
Kumar Galafe137112011-01-19 03:05:26 -060039#define CONFIG_MAX_CPUS 1
40#define CONFIG_SYS_FSL_NUM_LAWS 8
41
Wolfgang Denka4de8352011-02-02 22:36:10 +010042#elif defined(CONFIG_MPC8541)
Kumar Galafe137112011-01-19 03:05:26 -060043#define CONFIG_MAX_CPUS 1
44#define CONFIG_SYS_FSL_NUM_LAWS 8
45#define CONFIG_SYS_FSL_SEC_COMPAT 2
46
47#elif defined(CONFIG_MPC8544)
48#define CONFIG_MAX_CPUS 1
49#define CONFIG_SYS_FSL_NUM_LAWS 10
50#define CONFIG_SYS_FSL_SEC_COMPAT 2
51
52#elif defined(CONFIG_MPC8548)
53#define CONFIG_MAX_CPUS 1
54#define CONFIG_SYS_FSL_NUM_LAWS 10
55#define CONFIG_SYS_FSL_SEC_COMPAT 2
56
57#elif defined(CONFIG_MPC8555)
58#define CONFIG_MAX_CPUS 1
59#define CONFIG_SYS_FSL_NUM_LAWS 8
60#define CONFIG_SYS_FSL_SEC_COMPAT 2
61
62#elif defined(CONFIG_MPC8560)
63#define CONFIG_MAX_CPUS 1
64#define CONFIG_SYS_FSL_NUM_LAWS 8
65
66#elif defined(CONFIG_MPC8568)
67#define CONFIG_MAX_CPUS 1
68#define CONFIG_SYS_FSL_NUM_LAWS 10
69#define CONFIG_SYS_FSL_SEC_COMPAT 2
Kumar Gala52bd8152011-01-31 23:09:25 -060070#define QE_MURAM_SIZE 0x10000UL
71#define MAX_QE_RISC 2
72#define QE_NUM_OF_SNUM 28
Kumar Galafe137112011-01-19 03:05:26 -060073
74#elif defined(CONFIG_MPC8569)
75#define CONFIG_MAX_CPUS 1
76#define CONFIG_SYS_FSL_NUM_LAWS 10
77#define CONFIG_SYS_FSL_SEC_COMPAT 2
Kumar Gala52bd8152011-01-31 23:09:25 -060078#define QE_MURAM_SIZE 0x20000UL
79#define MAX_QE_RISC 4
80#define QE_NUM_OF_SNUM 46
Kumar Galafe137112011-01-19 03:05:26 -060081
82#elif defined(CONFIG_MPC8572)
83#define CONFIG_MAX_CPUS 2
84#define CONFIG_SYS_FSL_NUM_LAWS 12
85#define CONFIG_SYS_FSL_SEC_COMPAT 2
York Sun9aa857b2011-01-25 21:51:27 -080086#define CONFIG_SYS_FSL_ERRATUM_DDR_115
York Sunc8fc9592011-01-25 22:05:49 -080087#define CONFIG_SYS_FSL_ERRATUM_DDR111_DDR134
Kumar Galafe137112011-01-19 03:05:26 -060088
89#elif defined(CONFIG_P1010)
90#define CONFIG_MAX_CPUS 1
91#define CONFIG_SYS_FSL_NUM_LAWS 12
92#define CONFIG_TSECV2
93#define CONFIG_SYS_FSL_SEC_COMPAT 4
Poonam Aggrwal7373c592011-02-06 11:31:44 +053094#define CONFIG_FSL_SATA_V2
95#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
96#define CONFIG_NUM_DDR_CONTROLLERS 1
97#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Galafe137112011-01-19 03:05:26 -060098
Kumar Galae4e69252011-02-05 13:45:07 -060099/* P1011 is single core version of P1020 */
Kumar Galafe137112011-01-19 03:05:26 -0600100#elif defined(CONFIG_P1011)
101#define CONFIG_MAX_CPUS 1
102#define CONFIG_SYS_FSL_NUM_LAWS 12
103#define CONFIG_TSECV2
Prabhakar Kushwaha1c48e772011-02-01 15:55:58 +0000104#define CONFIG_FSL_PCIE_DISABLE_ASPM
Kumar Galafe137112011-01-19 03:05:26 -0600105#define CONFIG_SYS_FSL_SEC_COMPAT 2
Kumar Galae4e69252011-02-05 13:45:07 -0600106#define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
107#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
Kumar Galafe137112011-01-19 03:05:26 -0600108
Kumar Galae4e69252011-02-05 13:45:07 -0600109/* P1012 is single core version of P1021 */
Kumar Galafe137112011-01-19 03:05:26 -0600110#elif defined(CONFIG_P1012)
111#define CONFIG_MAX_CPUS 1
112#define CONFIG_SYS_FSL_NUM_LAWS 12
113#define CONFIG_TSECV2
Prabhakar Kushwaha1c48e772011-02-01 15:55:58 +0000114#define CONFIG_FSL_PCIE_DISABLE_ASPM
Kumar Galafe137112011-01-19 03:05:26 -0600115#define CONFIG_SYS_FSL_SEC_COMPAT 2
Kumar Galae4e69252011-02-05 13:45:07 -0600116#define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
117#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
Haiying Wang8cb2af72011-02-11 01:25:30 -0600118#define QE_MURAM_SIZE 0x6000UL
119#define MAX_QE_RISC 1
120#define QE_NUM_OF_SNUM 28
Kumar Galafe137112011-01-19 03:05:26 -0600121
Kumar Galae4e69252011-02-05 13:45:07 -0600122/* P1013 is single core version of P1022 */
Kumar Galafe137112011-01-19 03:05:26 -0600123#elif defined(CONFIG_P1013)
124#define CONFIG_MAX_CPUS 1
125#define CONFIG_SYS_FSL_NUM_LAWS 12
126#define CONFIG_TSECV2
127#define CONFIG_SYS_FSL_SEC_COMPAT 2
Jiang Yutang7cd05902011-01-30 17:06:20 -0600128#define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
129#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
130#define CONFIG_FSL_SATA_ERRATUM_A001
Kumar Galafe137112011-01-19 03:05:26 -0600131
132#elif defined(CONFIG_P1014)
133#define CONFIG_MAX_CPUS 1
134#define CONFIG_SYS_FSL_NUM_LAWS 12
135#define CONFIG_TSECV2
136#define CONFIG_SYS_FSL_SEC_COMPAT 4
Poonam Aggrwal7373c592011-02-06 11:31:44 +0530137#define CONFIG_FSL_SATA_V2
138#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
139#define CONFIG_NUM_DDR_CONTROLLERS 1
140#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Galafe137112011-01-19 03:05:26 -0600141
Kumar Galae4e69252011-02-05 13:45:07 -0600142/* P1015 is single core version of P1024 */
143#elif defined(CONFIG_P1015)
144#define CONFIG_MAX_CPUS 1
145#define CONFIG_SYS_FSL_NUM_LAWS 12
146#define CONFIG_TSECV2
147#define CONFIG_FSL_PCIE_DISABLE_ASPM
148#define CONFIG_SYS_FSL_SEC_COMPAT 2
149#define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
150#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
151
152/* P1016 is single core version of P1025 */
153#elif defined(CONFIG_P1016)
154#define CONFIG_MAX_CPUS 1
155#define CONFIG_SYS_FSL_NUM_LAWS 12
156#define CONFIG_TSECV2
157#define CONFIG_FSL_PCIE_DISABLE_ASPM
158#define CONFIG_SYS_FSL_SEC_COMPAT 2
159#define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
160#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
Haiying Wang8cb2af72011-02-11 01:25:30 -0600161#define QE_MURAM_SIZE 0x6000UL
162#define MAX_QE_RISC 1
163#define QE_NUM_OF_SNUM 28
Kumar Galae4e69252011-02-05 13:45:07 -0600164
165/* P1017 is single core version of P1023 */
Roy Zang1de20b02011-02-03 22:14:19 -0600166#elif defined(CONFIG_P1017)
167#define CONFIG_MAX_CPUS 1
168#define CONFIG_SYS_FSL_NUM_LAWS 12
169#define CONFIG_SYS_FSL_SEC_COMPAT 4
170#define CONFIG_SYS_NUM_FMAN 1
171#define CONFIG_SYS_NUM_FM1_DTSEC 2
172#define CONFIG_NUM_DDR_CONTROLLERS 1
173#define CONFIG_SYS_QMAN_NUM_PORTALS 3
174#define CONFIG_SYS_BMAN_NUM_PORTALS 3
Kumar Galad80dfe42011-02-04 00:43:34 -0600175#define CONFIG_SYS_FM_MURAM_SIZE 0x10000
Roy Zang1de20b02011-02-03 22:14:19 -0600176
Kumar Galafe137112011-01-19 03:05:26 -0600177#elif defined(CONFIG_P1020)
178#define CONFIG_MAX_CPUS 2
179#define CONFIG_SYS_FSL_NUM_LAWS 12
180#define CONFIG_TSECV2
Prabhakar Kushwaha1c48e772011-02-01 15:55:58 +0000181#define CONFIG_FSL_PCIE_DISABLE_ASPM
Kumar Galafe137112011-01-19 03:05:26 -0600182#define CONFIG_SYS_FSL_SEC_COMPAT 2
Kumar Galae4e69252011-02-05 13:45:07 -0600183#define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
184#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
Kumar Galafe137112011-01-19 03:05:26 -0600185
186#elif defined(CONFIG_P1021)
187#define CONFIG_MAX_CPUS 2
188#define CONFIG_SYS_FSL_NUM_LAWS 12
189#define CONFIG_TSECV2
Prabhakar Kushwaha1c48e772011-02-01 15:55:58 +0000190#define CONFIG_FSL_PCIE_DISABLE_ASPM
Kumar Galafe137112011-01-19 03:05:26 -0600191#define CONFIG_SYS_FSL_SEC_COMPAT 2
Kumar Galae4e69252011-02-05 13:45:07 -0600192#define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
193#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
Haiying Wang8cb2af72011-02-11 01:25:30 -0600194#define QE_MURAM_SIZE 0x6000UL
195#define MAX_QE_RISC 1
196#define QE_NUM_OF_SNUM 28
Kumar Galafe137112011-01-19 03:05:26 -0600197
198#elif defined(CONFIG_P1022)
199#define CONFIG_MAX_CPUS 2
200#define CONFIG_SYS_FSL_NUM_LAWS 12
201#define CONFIG_TSECV2
202#define CONFIG_SYS_FSL_SEC_COMPAT 2
Jiang Yutang7cd05902011-01-30 17:06:20 -0600203#define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
204#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
205#define CONFIG_FSL_SATA_ERRATUM_A001
Kumar Galafe137112011-01-19 03:05:26 -0600206
Roy Zang1de20b02011-02-03 22:14:19 -0600207#elif defined(CONFIG_P1023)
208#define CONFIG_MAX_CPUS 2
209#define CONFIG_SYS_FSL_NUM_LAWS 12
210#define CONFIG_SYS_FSL_SEC_COMPAT 4
211#define CONFIG_SYS_NUM_FMAN 1
212#define CONFIG_SYS_NUM_FM1_DTSEC 2
213#define CONFIG_NUM_DDR_CONTROLLERS 1
214#define CONFIG_SYS_QMAN_NUM_PORTALS 3
215#define CONFIG_SYS_BMAN_NUM_PORTALS 3
Kumar Galad80dfe42011-02-04 00:43:34 -0600216#define CONFIG_SYS_FM_MURAM_SIZE 0x10000
Roy Zang1de20b02011-02-03 22:14:19 -0600217
Kumar Galae4e69252011-02-05 13:45:07 -0600218/* P1024 is lower end variant of P1020 */
219#elif defined(CONFIG_P1024)
220#define CONFIG_MAX_CPUS 2
221#define CONFIG_SYS_FSL_NUM_LAWS 12
222#define CONFIG_TSECV2
223#define CONFIG_FSL_PCIE_DISABLE_ASPM
224#define CONFIG_SYS_FSL_SEC_COMPAT 2
225#define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
226#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
227
228/* P1025 is lower end variant of P1021 */
229#elif defined(CONFIG_P1025)
230#define CONFIG_MAX_CPUS 2
231#define CONFIG_SYS_FSL_NUM_LAWS 12
232#define CONFIG_TSECV2
233#define CONFIG_FSL_PCIE_DISABLE_ASPM
234#define CONFIG_SYS_FSL_SEC_COMPAT 2
235#define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
236#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
Haiying Wang8cb2af72011-02-11 01:25:30 -0600237#define QE_MURAM_SIZE 0x6000UL
238#define MAX_QE_RISC 1
239#define QE_NUM_OF_SNUM 28
Kumar Galae4e69252011-02-05 13:45:07 -0600240
241/* P2010 is single core version of P2020 */
Kumar Galafe137112011-01-19 03:05:26 -0600242#elif defined(CONFIG_P2010)
243#define CONFIG_MAX_CPUS 1
244#define CONFIG_SYS_FSL_NUM_LAWS 12
245#define CONFIG_SYS_FSL_SEC_COMPAT 2
Kumar Gala7b5b4802011-01-26 01:43:15 -0600246#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
Kumar Gala9a878d52011-01-29 15:36:10 -0600247#define CONFIG_SYS_FSL_ERRATUM_ESDHC_A001
Kumar Galafe137112011-01-19 03:05:26 -0600248
249#elif defined(CONFIG_P2020)
250#define CONFIG_MAX_CPUS 2
251#define CONFIG_SYS_FSL_NUM_LAWS 12
252#define CONFIG_SYS_FSL_SEC_COMPAT 2
Kumar Gala7b5b4802011-01-26 01:43:15 -0600253#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
Kumar Gala9a878d52011-01-29 15:36:10 -0600254#define CONFIG_SYS_FSL_ERRATUM_ESDHC_A001
Kumar Galafe137112011-01-19 03:05:26 -0600255
256#elif defined(CONFIG_PPC_P2040)
257#define CONFIG_MAX_CPUS 4
Kumar Gala3842bb52011-02-16 02:03:29 -0600258#define CONFIG_SYS_FSL_NUM_CC_PLLS 2
Kumar Galafe137112011-01-19 03:05:26 -0600259#define CONFIG_SYS_FSL_NUM_LAWS 32
260#define CONFIG_SYS_FSL_SEC_COMPAT 4
Kumar Gala60d95d82011-01-25 12:42:32 -0600261#define CONFIG_SYS_NUM_FMAN 1
262#define CONFIG_SYS_NUM_FM1_DTSEC 5
263#define CONFIG_NUM_DDR_CONTROLLERS 1
Kumar Galad80dfe42011-02-04 00:43:34 -0600264#define CONFIG_SYS_FM_MURAM_SIZE 0x28000
Kumar Galafe137112011-01-19 03:05:26 -0600265
266#elif defined(CONFIG_PPC_P3041)
267#define CONFIG_MAX_CPUS 4
Kumar Gala3842bb52011-02-16 02:03:29 -0600268#define CONFIG_SYS_FSL_NUM_CC_PLLS 2
Kumar Galafe137112011-01-19 03:05:26 -0600269#define CONFIG_SYS_FSL_NUM_LAWS 32
270#define CONFIG_SYS_FSL_SEC_COMPAT 4
Kumar Gala60d95d82011-01-25 12:42:32 -0600271#define CONFIG_SYS_NUM_FMAN 1
272#define CONFIG_SYS_NUM_FM1_DTSEC 5
273#define CONFIG_SYS_NUM_FM1_10GEC 1
274#define CONFIG_NUM_DDR_CONTROLLERS 1
Kumar Galad80dfe42011-02-04 00:43:34 -0600275#define CONFIG_SYS_FM_MURAM_SIZE 0x28000
Kumar Galafe137112011-01-19 03:05:26 -0600276
277#elif defined(CONFIG_PPC_P4040)
278#define CONFIG_MAX_CPUS 4
Kumar Gala3842bb52011-02-16 02:03:29 -0600279#define CONFIG_SYS_FSL_NUM_CC_PLLS 4
Kumar Galafe137112011-01-19 03:05:26 -0600280#define CONFIG_SYS_FSL_NUM_LAWS 32
281#define CONFIG_SYS_FSL_SEC_COMPAT 4
Kumar Galad80dfe42011-02-04 00:43:34 -0600282#define CONFIG_SYS_FM_MURAM_SIZE 0x28000
Kumar Galafe137112011-01-19 03:05:26 -0600283
284#elif defined(CONFIG_PPC_P4080)
285#define CONFIG_MAX_CPUS 8
Kumar Gala3842bb52011-02-16 02:03:29 -0600286#define CONFIG_SYS_FSL_NUM_CC_PLLS 4
Kumar Galafe137112011-01-19 03:05:26 -0600287#define CONFIG_SYS_FSL_NUM_LAWS 32
288#define CONFIG_SYS_FSL_SEC_COMPAT 4
289#define CONFIG_SYS_NUM_FMAN 2
290#define CONFIG_SYS_NUM_FM1_DTSEC 4
291#define CONFIG_SYS_NUM_FM2_DTSEC 4
292#define CONFIG_SYS_NUM_FM1_10GEC 1
293#define CONFIG_SYS_NUM_FM2_10GEC 1
294#define CONFIG_NUM_DDR_CONTROLLERS 2
Kumar Galad80dfe42011-02-04 00:43:34 -0600295#define CONFIG_SYS_FM_MURAM_SIZE 0x28000
Kumar Galafe137112011-01-19 03:05:26 -0600296#define CONFIG_SYS_FSL_ERRATUM_CPC_A002
297#define CONFIG_SYS_FSL_ERRATUM_CPC_A003
York Sun922f40f2011-01-10 12:03:01 +0000298#define CONFIG_SYS_FSL_ERRATUM_DDR_A003
Kumar Galafe137112011-01-19 03:05:26 -0600299#define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
300#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
301#define CONFIG_SYS_FSL_ERRATUM_ESDHC135
302#define CONFIG_SYS_FSL_ERRATUM_ESDHC136
303#define CONFIG_SYS_P4080_ERRATUM_CPU22
304#define CONFIG_SYS_P4080_ERRATUM_SERDES8
305
Kumar Galae4e69252011-02-05 13:45:07 -0600306/* P5010 is single core version of P5020 */
Kumar Galafe137112011-01-19 03:05:26 -0600307#elif defined(CONFIG_PPC_P5010)
308#define CONFIG_MAX_CPUS 1
Kumar Gala3842bb52011-02-16 02:03:29 -0600309#define CONFIG_SYS_FSL_NUM_CC_PLLS 2
Kumar Galafe137112011-01-19 03:05:26 -0600310#define CONFIG_SYS_FSL_NUM_LAWS 32
311#define CONFIG_SYS_FSL_SEC_COMPAT 4
Kumar Gala60d95d82011-01-25 12:42:32 -0600312#define CONFIG_SYS_NUM_FMAN 1
313#define CONFIG_SYS_NUM_FM1_DTSEC 5
314#define CONFIG_SYS_NUM_FM1_10GEC 1
315#define CONFIG_NUM_DDR_CONTROLLERS 1
Kumar Galad80dfe42011-02-04 00:43:34 -0600316#define CONFIG_SYS_FM_MURAM_SIZE 0x28000
Kumar Galafe137112011-01-19 03:05:26 -0600317
318#elif defined(CONFIG_PPC_P5020)
319#define CONFIG_MAX_CPUS 2
Kumar Gala3842bb52011-02-16 02:03:29 -0600320#define CONFIG_SYS_FSL_NUM_CC_PLLS 2
Kumar Galafe137112011-01-19 03:05:26 -0600321#define CONFIG_SYS_FSL_NUM_LAWS 32
322#define CONFIG_SYS_FSL_SEC_COMPAT 4
Kumar Gala60d95d82011-01-25 12:42:32 -0600323#define CONFIG_SYS_NUM_FMAN 1
324#define CONFIG_SYS_NUM_FM1_DTSEC 5
325#define CONFIG_SYS_NUM_FM1_10GEC 1
326#define CONFIG_NUM_DDR_CONTROLLERS 2
Kumar Galad80dfe42011-02-04 00:43:34 -0600327#define CONFIG_SYS_FM_MURAM_SIZE 0x28000
Kumar Galafe137112011-01-19 03:05:26 -0600328
329#else
330#error Processor type not defined for this platform
331#endif
332
333#endif /* _ASM_MPC85xx_CONFIG_H_ */