blob: 191629b6284ad5332070d111fd067df4b3a71ce9 [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
Timur Tabid8f341c2011-08-04 18:03:41 -050026#ifdef CONFIG_SYS_CCSRBAR_DEFAULT
27#error "Do not define CONFIG_SYS_CCSRBAR_DEFAULT in the board header file."
28#endif
29
Kumar Galafe137112011-01-19 03:05:26 -060030/* Number of TLB CAM entries we have on FSL Book-E chips */
31#if defined(CONFIG_E500MC)
32#define CONFIG_SYS_NUM_TLBCAMS 64
33#elif defined(CONFIG_E500)
34#define CONFIG_SYS_NUM_TLBCAMS 16
35#endif
36
37#if defined(CONFIG_MPC8536)
38#define CONFIG_MAX_CPUS 1
39#define CONFIG_SYS_FSL_NUM_LAWS 12
40#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabid8f341c2011-08-04 18:03:41 -050041#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Galafe137112011-01-19 03:05:26 -060042
Wolfgang Denka4de8352011-02-02 22:36:10 +010043#elif defined(CONFIG_MPC8540)
Kumar Galafe137112011-01-19 03:05:26 -060044#define CONFIG_MAX_CPUS 1
45#define CONFIG_SYS_FSL_NUM_LAWS 8
Timur Tabid8f341c2011-08-04 18:03:41 -050046#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Galafe137112011-01-19 03:05:26 -060047
Wolfgang Denka4de8352011-02-02 22:36:10 +010048#elif defined(CONFIG_MPC8541)
Kumar Galafe137112011-01-19 03:05:26 -060049#define CONFIG_MAX_CPUS 1
50#define CONFIG_SYS_FSL_NUM_LAWS 8
51#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabid8f341c2011-08-04 18:03:41 -050052#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Galafe137112011-01-19 03:05:26 -060053
54#elif defined(CONFIG_MPC8544)
55#define CONFIG_MAX_CPUS 1
56#define CONFIG_SYS_FSL_NUM_LAWS 10
57#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabid8f341c2011-08-04 18:03:41 -050058#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Galafe137112011-01-19 03:05:26 -060059
60#elif defined(CONFIG_MPC8548)
61#define CONFIG_MAX_CPUS 1
62#define CONFIG_SYS_FSL_NUM_LAWS 10
63#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabid8f341c2011-08-04 18:03:41 -050064#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Gala866c6fa2011-09-16 09:54:30 -050065#define CONFIG_SYS_FSL_ERRATUM_NMG_DDR120
Kumar Galaf3339d62011-10-03 08:37:57 -050066#define CONFIG_SYS_FSL_ERRATUM_NMG_LBC103
chenhui zhaoc8caa8a2011-10-03 08:38:50 -050067#define CONFIG_SYS_FSL_ERRATUM_NMG_ETSEC129
Liu Gang78deaa12012-03-08 00:33:14 +000068#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 1
69#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
70#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
71#define CONFIG_SYS_FSL_RMU
72#define CONFIG_SYS_FSL_SRIO_MSG_UNIT_NUM 2
Kumar Galafe137112011-01-19 03:05:26 -060073
74#elif defined(CONFIG_MPC8555)
75#define CONFIG_MAX_CPUS 1
76#define CONFIG_SYS_FSL_NUM_LAWS 8
77#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabid8f341c2011-08-04 18:03:41 -050078#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Galafe137112011-01-19 03:05:26 -060079
80#elif defined(CONFIG_MPC8560)
81#define CONFIG_MAX_CPUS 1
82#define CONFIG_SYS_FSL_NUM_LAWS 8
Timur Tabid8f341c2011-08-04 18:03:41 -050083#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Galafe137112011-01-19 03:05:26 -060084
85#elif defined(CONFIG_MPC8568)
86#define CONFIG_MAX_CPUS 1
87#define CONFIG_SYS_FSL_NUM_LAWS 10
88#define CONFIG_SYS_FSL_SEC_COMPAT 2
Kumar Gala52bd8152011-01-31 23:09:25 -060089#define QE_MURAM_SIZE 0x10000UL
90#define MAX_QE_RISC 2
91#define QE_NUM_OF_SNUM 28
Timur Tabid8f341c2011-08-04 18:03:41 -050092#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Liu Gang78deaa12012-03-08 00:33:14 +000093#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 1
94#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
95#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
96#define CONFIG_SYS_FSL_RMU
97#define CONFIG_SYS_FSL_SRIO_MSG_UNIT_NUM 2
Kumar Galafe137112011-01-19 03:05:26 -060098
99#elif defined(CONFIG_MPC8569)
100#define CONFIG_MAX_CPUS 1
101#define CONFIG_SYS_FSL_NUM_LAWS 10
102#define CONFIG_SYS_FSL_SEC_COMPAT 2
Kumar Gala52bd8152011-01-31 23:09:25 -0600103#define QE_MURAM_SIZE 0x20000UL
104#define MAX_QE_RISC 4
105#define QE_NUM_OF_SNUM 46
Timur Tabid8f341c2011-08-04 18:03:41 -0500106#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Liu Gang78deaa12012-03-08 00:33:14 +0000107#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 1
108#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
109#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
110#define CONFIG_SYS_FSL_RMU
111#define CONFIG_SYS_FSL_SRIO_MSG_UNIT_NUM 2
Kumar Galafe137112011-01-19 03:05:26 -0600112
113#elif defined(CONFIG_MPC8572)
114#define CONFIG_MAX_CPUS 2
115#define CONFIG_SYS_FSL_NUM_LAWS 12
116#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabid8f341c2011-08-04 18:03:41 -0500117#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
York Sun9aa857b2011-01-25 21:51:27 -0800118#define CONFIG_SYS_FSL_ERRATUM_DDR_115
York Sunc8fc9592011-01-25 22:05:49 -0800119#define CONFIG_SYS_FSL_ERRATUM_DDR111_DDR134
Kumar Galafe137112011-01-19 03:05:26 -0600120
121#elif defined(CONFIG_P1010)
122#define CONFIG_MAX_CPUS 1
Priyanka Jain02449632011-02-09 09:24:10 +0530123#define CONFIG_FSL_SDHC_V2_3
Kumar Galafe137112011-01-19 03:05:26 -0600124#define CONFIG_SYS_FSL_NUM_LAWS 12
125#define CONFIG_TSECV2
126#define CONFIG_SYS_FSL_SEC_COMPAT 4
Poonam Aggrwal7373c592011-02-06 11:31:44 +0530127#define CONFIG_FSL_SATA_V2
128#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
129#define CONFIG_NUM_DDR_CONTROLLERS 1
130#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Gala179b1b22011-05-20 00:39:21 -0500131#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.2"
Ramneek Mehresh3fb68ee2011-03-23 15:20:43 +0530132#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
Poonam Aggrwalc7664a42011-06-30 03:00:28 -0500133#define CONFIG_SYS_FSL_ERRATUM_IFC_A002769
Poonam Aggrwalaf54a5f2011-06-29 16:32:52 +0530134#define CONFIG_SYS_FSL_ERRATUM_P1010_A003549
Poonam Aggrwal46b86ca2011-07-07 20:36:47 +0530135#define CONFIG_SYS_FSL_ERRATUM_IFC_A003399
Kumar Galafe137112011-01-19 03:05:26 -0600136
Kumar Galae4e69252011-02-05 13:45:07 -0600137/* P1011 is single core version of P1020 */
Kumar Galafe137112011-01-19 03:05:26 -0600138#elif defined(CONFIG_P1011)
139#define CONFIG_MAX_CPUS 1
140#define CONFIG_SYS_FSL_NUM_LAWS 12
141#define CONFIG_TSECV2
Prabhakar Kushwaha1c48e772011-02-01 15:55:58 +0000142#define CONFIG_FSL_PCIE_DISABLE_ASPM
Kumar Galafe137112011-01-19 03:05:26 -0600143#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabid8f341c2011-08-04 18:03:41 -0500144#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Galae4e69252011-02-05 13:45:07 -0600145#define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
146#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
Kumar Galafe137112011-01-19 03:05:26 -0600147
Kumar Galae4e69252011-02-05 13:45:07 -0600148/* P1012 is single core version of P1021 */
Kumar Galafe137112011-01-19 03:05:26 -0600149#elif defined(CONFIG_P1012)
150#define CONFIG_MAX_CPUS 1
151#define CONFIG_SYS_FSL_NUM_LAWS 12
152#define CONFIG_TSECV2
Prabhakar Kushwaha1c48e772011-02-01 15:55:58 +0000153#define CONFIG_FSL_PCIE_DISABLE_ASPM
Kumar Galafe137112011-01-19 03:05:26 -0600154#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabid8f341c2011-08-04 18:03:41 -0500155#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Galae4e69252011-02-05 13:45:07 -0600156#define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
157#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
Haiying Wang8cb2af72011-02-11 01:25:30 -0600158#define QE_MURAM_SIZE 0x6000UL
159#define MAX_QE_RISC 1
160#define QE_NUM_OF_SNUM 28
Kumar Galafe137112011-01-19 03:05:26 -0600161
Kumar Galae4e69252011-02-05 13:45:07 -0600162/* P1013 is single core version of P1022 */
Kumar Galafe137112011-01-19 03:05:26 -0600163#elif defined(CONFIG_P1013)
164#define CONFIG_MAX_CPUS 1
165#define CONFIG_SYS_FSL_NUM_LAWS 12
166#define CONFIG_TSECV2
167#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabi293935c2011-11-21 17:10:22 -0600168#define CONFIG_FSL_SATA_V2
Timur Tabid8f341c2011-08-04 18:03:41 -0500169#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Jiang Yutang7cd05902011-01-30 17:06:20 -0600170#define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
171#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
172#define CONFIG_FSL_SATA_ERRATUM_A001
Kumar Galafe137112011-01-19 03:05:26 -0600173
174#elif defined(CONFIG_P1014)
175#define CONFIG_MAX_CPUS 1
Priyanka Jain02449632011-02-09 09:24:10 +0530176#define CONFIG_FSL_SDHC_V2_3
Kumar Galafe137112011-01-19 03:05:26 -0600177#define CONFIG_SYS_FSL_NUM_LAWS 12
178#define CONFIG_TSECV2
179#define CONFIG_SYS_FSL_SEC_COMPAT 4
Poonam Aggrwal7373c592011-02-06 11:31:44 +0530180#define CONFIG_FSL_SATA_V2
181#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
182#define CONFIG_NUM_DDR_CONTROLLERS 1
183#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Ramneek Mehresh3fb68ee2011-03-23 15:20:43 +0530184#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
Poonam Aggrwalc7664a42011-06-30 03:00:28 -0500185#define CONFIG_SYS_FSL_ERRATUM_IFC_A002769
Poonam Aggrwalaf54a5f2011-06-29 16:32:52 +0530186#define CONFIG_SYS_FSL_ERRATUM_P1010_A003549
Poonam Aggrwal46b86ca2011-07-07 20:36:47 +0530187#define CONFIG_SYS_FSL_ERRATUM_IFC_A003399
Kumar Galafe137112011-01-19 03:05:26 -0600188
Kumar Galae4e69252011-02-05 13:45:07 -0600189/* P1015 is single core version of P1024 */
190#elif defined(CONFIG_P1015)
191#define CONFIG_MAX_CPUS 1
192#define CONFIG_SYS_FSL_NUM_LAWS 12
193#define CONFIG_TSECV2
194#define CONFIG_FSL_PCIE_DISABLE_ASPM
195#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabid8f341c2011-08-04 18:03:41 -0500196#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Galae4e69252011-02-05 13:45:07 -0600197#define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
198#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
199
200/* P1016 is single core version of P1025 */
201#elif defined(CONFIG_P1016)
202#define CONFIG_MAX_CPUS 1
203#define CONFIG_SYS_FSL_NUM_LAWS 12
204#define CONFIG_TSECV2
205#define CONFIG_FSL_PCIE_DISABLE_ASPM
206#define CONFIG_SYS_FSL_SEC_COMPAT 2
207#define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
208#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
Haiying Wang8cb2af72011-02-11 01:25:30 -0600209#define QE_MURAM_SIZE 0x6000UL
210#define MAX_QE_RISC 1
211#define QE_NUM_OF_SNUM 28
Timur Tabid8f341c2011-08-04 18:03:41 -0500212#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Galae4e69252011-02-05 13:45:07 -0600213
214/* P1017 is single core version of P1023 */
Roy Zang1de20b02011-02-03 22:14:19 -0600215#elif defined(CONFIG_P1017)
216#define CONFIG_MAX_CPUS 1
217#define CONFIG_SYS_FSL_NUM_LAWS 12
218#define CONFIG_SYS_FSL_SEC_COMPAT 4
219#define CONFIG_SYS_NUM_FMAN 1
220#define CONFIG_SYS_NUM_FM1_DTSEC 2
221#define CONFIG_NUM_DDR_CONTROLLERS 1
222#define CONFIG_SYS_QMAN_NUM_PORTALS 3
223#define CONFIG_SYS_BMAN_NUM_PORTALS 3
Kumar Galad80dfe42011-02-04 00:43:34 -0600224#define CONFIG_SYS_FM_MURAM_SIZE 0x10000
Kumar Gala179b1b22011-05-20 00:39:21 -0500225#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.2"
Timur Tabid8f341c2011-08-04 18:03:41 -0500226#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff600000
Roy Zang1de20b02011-02-03 22:14:19 -0600227
Kumar Galafe137112011-01-19 03:05:26 -0600228#elif defined(CONFIG_P1020)
229#define CONFIG_MAX_CPUS 2
230#define CONFIG_SYS_FSL_NUM_LAWS 12
231#define CONFIG_TSECV2
Prabhakar Kushwaha1c48e772011-02-01 15:55:58 +0000232#define CONFIG_FSL_PCIE_DISABLE_ASPM
Kumar Galafe137112011-01-19 03:05:26 -0600233#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabid8f341c2011-08-04 18:03:41 -0500234#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Galae4e69252011-02-05 13:45:07 -0600235#define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
236#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
Kumar Galafe137112011-01-19 03:05:26 -0600237
238#elif defined(CONFIG_P1021)
239#define CONFIG_MAX_CPUS 2
240#define CONFIG_SYS_FSL_NUM_LAWS 12
241#define CONFIG_TSECV2
Prabhakar Kushwaha1c48e772011-02-01 15:55:58 +0000242#define CONFIG_FSL_PCIE_DISABLE_ASPM
Kumar Galafe137112011-01-19 03:05:26 -0600243#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabid8f341c2011-08-04 18:03:41 -0500244#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Galae4e69252011-02-05 13:45:07 -0600245#define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
246#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
Haiying Wang8cb2af72011-02-11 01:25:30 -0600247#define QE_MURAM_SIZE 0x6000UL
248#define MAX_QE_RISC 1
249#define QE_NUM_OF_SNUM 28
Kumar Galafe137112011-01-19 03:05:26 -0600250
251#elif defined(CONFIG_P1022)
252#define CONFIG_MAX_CPUS 2
253#define CONFIG_SYS_FSL_NUM_LAWS 12
254#define CONFIG_TSECV2
255#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabi293935c2011-11-21 17:10:22 -0600256#define CONFIG_FSL_SATA_V2
Timur Tabid8f341c2011-08-04 18:03:41 -0500257#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Jiang Yutang7cd05902011-01-30 17:06:20 -0600258#define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
259#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
260#define CONFIG_FSL_SATA_ERRATUM_A001
Kumar Galafe137112011-01-19 03:05:26 -0600261
Roy Zang1de20b02011-02-03 22:14:19 -0600262#elif defined(CONFIG_P1023)
263#define CONFIG_MAX_CPUS 2
264#define CONFIG_SYS_FSL_NUM_LAWS 12
265#define CONFIG_SYS_FSL_SEC_COMPAT 4
266#define CONFIG_SYS_NUM_FMAN 1
267#define CONFIG_SYS_NUM_FM1_DTSEC 2
268#define CONFIG_NUM_DDR_CONTROLLERS 1
269#define CONFIG_SYS_QMAN_NUM_PORTALS 3
270#define CONFIG_SYS_BMAN_NUM_PORTALS 3
Kumar Galad80dfe42011-02-04 00:43:34 -0600271#define CONFIG_SYS_FM_MURAM_SIZE 0x10000
Kumar Gala179b1b22011-05-20 00:39:21 -0500272#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.2"
Timur Tabid8f341c2011-08-04 18:03:41 -0500273#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff600000
Roy Zang1de20b02011-02-03 22:14:19 -0600274
Kumar Galae4e69252011-02-05 13:45:07 -0600275/* P1024 is lower end variant of P1020 */
276#elif defined(CONFIG_P1024)
277#define CONFIG_MAX_CPUS 2
278#define CONFIG_SYS_FSL_NUM_LAWS 12
279#define CONFIG_TSECV2
280#define CONFIG_FSL_PCIE_DISABLE_ASPM
281#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabid8f341c2011-08-04 18:03:41 -0500282#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Galae4e69252011-02-05 13:45:07 -0600283#define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
284#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
285
286/* P1025 is lower end variant of P1021 */
287#elif defined(CONFIG_P1025)
288#define CONFIG_MAX_CPUS 2
289#define CONFIG_SYS_FSL_NUM_LAWS 12
290#define CONFIG_TSECV2
291#define CONFIG_FSL_PCIE_DISABLE_ASPM
292#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabid8f341c2011-08-04 18:03:41 -0500293#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Galae4e69252011-02-05 13:45:07 -0600294#define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
295#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
Haiying Wang8cb2af72011-02-11 01:25:30 -0600296#define QE_MURAM_SIZE 0x6000UL
297#define MAX_QE_RISC 1
298#define QE_NUM_OF_SNUM 28
Kumar Galae4e69252011-02-05 13:45:07 -0600299
300/* P2010 is single core version of P2020 */
Kumar Galafe137112011-01-19 03:05:26 -0600301#elif defined(CONFIG_P2010)
302#define CONFIG_MAX_CPUS 1
303#define CONFIG_SYS_FSL_NUM_LAWS 12
304#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabid8f341c2011-08-04 18:03:41 -0500305#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Gala7b5b4802011-01-26 01:43:15 -0600306#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
Kumar Gala9a878d52011-01-29 15:36:10 -0600307#define CONFIG_SYS_FSL_ERRATUM_ESDHC_A001
Kumar Galafe137112011-01-19 03:05:26 -0600308
309#elif defined(CONFIG_P2020)
310#define CONFIG_MAX_CPUS 2
311#define CONFIG_SYS_FSL_NUM_LAWS 12
312#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabid8f341c2011-08-04 18:03:41 -0500313#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Gala7b5b4802011-01-26 01:43:15 -0600314#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
Kumar Gala9a878d52011-01-29 15:36:10 -0600315#define CONFIG_SYS_FSL_ERRATUM_ESDHC_A001
Liu Gang78deaa12012-03-08 00:33:14 +0000316#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 2
317#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
318#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
319#define CONFIG_SYS_FSL_RMU
320#define CONFIG_SYS_FSL_SRIO_MSG_UNIT_NUM 2
Kumar Galafe137112011-01-19 03:05:26 -0600321
322#elif defined(CONFIG_PPC_P2040)
323#define CONFIG_MAX_CPUS 4
Kumar Gala3842bb52011-02-16 02:03:29 -0600324#define CONFIG_SYS_FSL_NUM_CC_PLLS 2
Kumar Galafe137112011-01-19 03:05:26 -0600325#define CONFIG_SYS_FSL_NUM_LAWS 32
326#define CONFIG_SYS_FSL_SEC_COMPAT 4
Kumar Gala60d95d82011-01-25 12:42:32 -0600327#define CONFIG_SYS_NUM_FMAN 1
328#define CONFIG_SYS_NUM_FM1_DTSEC 5
329#define CONFIG_NUM_DDR_CONTROLLERS 1
Kumar Galad80dfe42011-02-04 00:43:34 -0600330#define CONFIG_SYS_FM_MURAM_SIZE 0x28000
Kumar Galaf4fb90f2011-02-18 05:40:54 -0600331#define CONFIG_SYS_FSL_TBCLK_DIV 32
Kumar Gala179b1b22011-05-20 00:39:21 -0500332#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.2"
Timur Tabid8f341c2011-08-04 18:03:41 -0500333#define CONFIG_SYS_CCSRBAR_DEFAULT 0xfe000000
Roy Zang6d6a0e12011-04-13 00:08:51 -0500334#define CONFIG_SYS_FSL_USB1_PHY_ENABLE
335#define CONFIG_SYS_FSL_USB2_PHY_ENABLE
Kumar Galaa49034f2011-04-13 00:19:10 -0500336#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
Lei Xu32276202011-04-19 15:28:41 +0800337#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
Kumar Gala945e59a2011-11-22 06:51:15 -0600338#define CONFIG_SYS_FSL_ERRATUM_CPU_A003999
York Sundf2be192011-11-20 10:01:35 -0800339#define CONFIG_SYS_FSL_ERRATUM_DDR_A003474
Liu Gang78deaa12012-03-08 00:33:14 +0000340#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 2
341#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
342#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
Kumar Galafe137112011-01-19 03:05:26 -0600343
Kumar Gala619541b2011-05-13 01:16:07 -0500344#elif defined(CONFIG_PPC_P2041)
345#define CONFIG_MAX_CPUS 4
346#define CONFIG_SYS_FSL_NUM_CC_PLLS 2
347#define CONFIG_SYS_FSL_NUM_LAWS 32
348#define CONFIG_SYS_FSL_SEC_COMPAT 4
Timur Tabi293935c2011-11-21 17:10:22 -0600349#define CONFIG_FSL_SATA_V2
Kumar Gala619541b2011-05-13 01:16:07 -0500350#define CONFIG_SYS_NUM_FMAN 1
351#define CONFIG_SYS_NUM_FM1_DTSEC 5
352#define CONFIG_SYS_NUM_FM1_10GEC 1
353#define CONFIG_NUM_DDR_CONTROLLERS 1
354#define CONFIG_SYS_FM_MURAM_SIZE 0x28000
355#define CONFIG_SYS_FSL_TBCLK_DIV 32
356#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.2"
Timur Tabid8f341c2011-08-04 18:03:41 -0500357#define CONFIG_SYS_CCSRBAR_DEFAULT 0xfe000000
Kumar Gala619541b2011-05-13 01:16:07 -0500358#define CONFIG_SYS_FSL_USB1_PHY_ENABLE
359#define CONFIG_SYS_FSL_USB2_PHY_ENABLE
Kumar Galaa49034f2011-04-13 00:19:10 -0500360#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
Kumar Gala619541b2011-05-13 01:16:07 -0500361#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
Kumar Gala945e59a2011-11-22 06:51:15 -0600362#define CONFIG_SYS_FSL_ERRATUM_CPU_A003999
York Sundf2be192011-11-20 10:01:35 -0800363#define CONFIG_SYS_FSL_ERRATUM_DDR_A003474
Liu Gang78deaa12012-03-08 00:33:14 +0000364#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 2
365#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
366#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
Kumar Gala619541b2011-05-13 01:16:07 -0500367
Kumar Galafe137112011-01-19 03:05:26 -0600368#elif defined(CONFIG_PPC_P3041)
369#define CONFIG_MAX_CPUS 4
Kumar Gala3842bb52011-02-16 02:03:29 -0600370#define CONFIG_SYS_FSL_NUM_CC_PLLS 2
Kumar Galafe137112011-01-19 03:05:26 -0600371#define CONFIG_SYS_FSL_NUM_LAWS 32
372#define CONFIG_SYS_FSL_SEC_COMPAT 4
Timur Tabi293935c2011-11-21 17:10:22 -0600373#define CONFIG_FSL_SATA_V2
Kumar Gala60d95d82011-01-25 12:42:32 -0600374#define CONFIG_SYS_NUM_FMAN 1
375#define CONFIG_SYS_NUM_FM1_DTSEC 5
376#define CONFIG_SYS_NUM_FM1_10GEC 1
377#define CONFIG_NUM_DDR_CONTROLLERS 1
Kumar Galad80dfe42011-02-04 00:43:34 -0600378#define CONFIG_SYS_FM_MURAM_SIZE 0x28000
Kumar Galaf4fb90f2011-02-18 05:40:54 -0600379#define CONFIG_SYS_FSL_TBCLK_DIV 32
Kumar Gala179b1b22011-05-20 00:39:21 -0500380#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.2"
Timur Tabid8f341c2011-08-04 18:03:41 -0500381#define CONFIG_SYS_CCSRBAR_DEFAULT 0xfe000000
Roy Zang6d6a0e12011-04-13 00:08:51 -0500382#define CONFIG_SYS_FSL_USB1_PHY_ENABLE
383#define CONFIG_SYS_FSL_USB2_PHY_ENABLE
Kumar Galaa49034f2011-04-13 00:19:10 -0500384#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
Lei Xu32276202011-04-19 15:28:41 +0800385#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
Kumar Gala945e59a2011-11-22 06:51:15 -0600386#define CONFIG_SYS_FSL_ERRATUM_CPU_A003999
York Sundf2be192011-11-20 10:01:35 -0800387#define CONFIG_SYS_FSL_ERRATUM_DDR_A003474
Liu Gang78deaa12012-03-08 00:33:14 +0000388#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 2
389#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
390#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
Kumar Galafe137112011-01-19 03:05:26 -0600391
Shengzhou Liu8b033cf2011-08-31 17:48:18 +0800392#elif defined(CONFIG_PPC_P3060)
393#define CONFIG_MAX_CPUS 8
394#define CONFIG_SYS_FSL_NUM_CC_PLLS 4
395#define CONFIG_SYS_FSL_NUM_LAWS 32
396#define CONFIG_SYS_FSL_SEC_COMPAT 4
397#define CONFIG_SYS_NUM_FMAN 2
398#define CONFIG_SYS_NUM_FM1_DTSEC 4
399#define CONFIG_SYS_NUM_FM2_DTSEC 4
400#define CONFIG_NUM_DDR_CONTROLLERS 1
401#define CONFIG_SYS_FM_MURAM_SIZE 0x28000
402#define CONFIG_SYS_FSL_TBCLK_DIV 16
403#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.2"
404#define CONFIG_SYS_CCSRBAR_DEFAULT 0xfe000000
405#define CONFIG_SYS_FSL_ERRATUM_DDR_A003
Kumar Gala945e59a2011-11-22 06:51:15 -0600406#define CONFIG_SYS_FSL_ERRATUM_CPU_A003999
Liu Gang78deaa12012-03-08 00:33:14 +0000407#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 2
408#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
409#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
Shengzhou Liu8b033cf2011-08-31 17:48:18 +0800410
Kumar Galafe137112011-01-19 03:05:26 -0600411#elif defined(CONFIG_PPC_P4040)
412#define CONFIG_MAX_CPUS 4
Kumar Gala3842bb52011-02-16 02:03:29 -0600413#define CONFIG_SYS_FSL_NUM_CC_PLLS 4
Kumar Galafe137112011-01-19 03:05:26 -0600414#define CONFIG_SYS_FSL_NUM_LAWS 32
415#define CONFIG_SYS_FSL_SEC_COMPAT 4
Kumar Galad80dfe42011-02-04 00:43:34 -0600416#define CONFIG_SYS_FM_MURAM_SIZE 0x28000
Kumar Galaf4fb90f2011-02-18 05:40:54 -0600417#define CONFIG_SYS_FSL_TBCLK_DIV 16
Kumar Gala179b1b22011-05-20 00:39:21 -0500418#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,p4080-pcie"
Timur Tabid8f341c2011-08-04 18:03:41 -0500419#define CONFIG_SYS_CCSRBAR_DEFAULT 0xfe000000
Kumar Gala945e59a2011-11-22 06:51:15 -0600420#define CONFIG_SYS_FSL_ERRATUM_CPU_A003999
York Sundf2be192011-11-20 10:01:35 -0800421#define CONFIG_SYS_FSL_ERRATUM_DDR_A003474
Liu Gang78deaa12012-03-08 00:33:14 +0000422#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 2
423#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
424#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
Kumar Galafe137112011-01-19 03:05:26 -0600425
426#elif defined(CONFIG_PPC_P4080)
427#define CONFIG_MAX_CPUS 8
Kumar Gala3842bb52011-02-16 02:03:29 -0600428#define CONFIG_SYS_FSL_NUM_CC_PLLS 4
Kumar Galafe137112011-01-19 03:05:26 -0600429#define CONFIG_SYS_FSL_NUM_LAWS 32
430#define CONFIG_SYS_FSL_SEC_COMPAT 4
431#define CONFIG_SYS_NUM_FMAN 2
432#define CONFIG_SYS_NUM_FM1_DTSEC 4
433#define CONFIG_SYS_NUM_FM2_DTSEC 4
434#define CONFIG_SYS_NUM_FM1_10GEC 1
435#define CONFIG_SYS_NUM_FM2_10GEC 1
436#define CONFIG_NUM_DDR_CONTROLLERS 2
Kumar Galad80dfe42011-02-04 00:43:34 -0600437#define CONFIG_SYS_FM_MURAM_SIZE 0x28000
Kumar Galaf4fb90f2011-02-18 05:40:54 -0600438#define CONFIG_SYS_FSL_TBCLK_DIV 16
Kumar Gala179b1b22011-05-20 00:39:21 -0500439#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,p4080-pcie"
Timur Tabid8f341c2011-08-04 18:03:41 -0500440#define CONFIG_SYS_CCSRBAR_DEFAULT 0xfe000000
Kumar Galafe137112011-01-19 03:05:26 -0600441#define CONFIG_SYS_FSL_ERRATUM_CPC_A002
442#define CONFIG_SYS_FSL_ERRATUM_CPC_A003
York Sun922f40f2011-01-10 12:03:01 +0000443#define CONFIG_SYS_FSL_ERRATUM_DDR_A003
Kumar Galafe137112011-01-19 03:05:26 -0600444#define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
445#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
446#define CONFIG_SYS_FSL_ERRATUM_ESDHC135
447#define CONFIG_SYS_FSL_ERRATUM_ESDHC136
448#define CONFIG_SYS_P4080_ERRATUM_CPU22
449#define CONFIG_SYS_P4080_ERRATUM_SERDES8
Emil Medveb01c81f2010-08-31 22:57:38 -0500450#define CONFIG_SYS_P4080_ERRATUM_SERDES9
Timur Tabi6a62dc42011-04-18 17:16:00 -0500451#define CONFIG_SYS_P4080_ERRATUM_SERDES_A001
Timur Tabi90f381d2011-04-01 13:19:36 -0500452#define CONFIG_SYS_P4080_ERRATUM_SERDES_A005
Kumar Gala945e59a2011-11-22 06:51:15 -0600453#define CONFIG_SYS_FSL_ERRATUM_CPU_A003999
York Sundf2be192011-11-20 10:01:35 -0800454#define CONFIG_SYS_FSL_ERRATUM_DDR_A003474
Liu Gang78deaa12012-03-08 00:33:14 +0000455#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 2
456#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
457#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
458#define CONFIG_SYS_FSL_RMU
459#define CONFIG_SYS_FSL_SRIO_MSG_UNIT_NUM 2
Kumar Galafe137112011-01-19 03:05:26 -0600460
Kumar Galae4e69252011-02-05 13:45:07 -0600461/* P5010 is single core version of P5020 */
Kumar Galafe137112011-01-19 03:05:26 -0600462#elif defined(CONFIG_PPC_P5010)
463#define CONFIG_MAX_CPUS 1
Kumar Gala3842bb52011-02-16 02:03:29 -0600464#define CONFIG_SYS_FSL_NUM_CC_PLLS 2
Kumar Galafe137112011-01-19 03:05:26 -0600465#define CONFIG_SYS_FSL_NUM_LAWS 32
466#define CONFIG_SYS_FSL_SEC_COMPAT 4
Timur Tabi293935c2011-11-21 17:10:22 -0600467#define CONFIG_FSL_SATA_V2
Kumar Gala60d95d82011-01-25 12:42:32 -0600468#define CONFIG_SYS_NUM_FMAN 1
469#define CONFIG_SYS_NUM_FM1_DTSEC 5
470#define CONFIG_SYS_NUM_FM1_10GEC 1
471#define CONFIG_NUM_DDR_CONTROLLERS 1
Kumar Galad80dfe42011-02-04 00:43:34 -0600472#define CONFIG_SYS_FM_MURAM_SIZE 0x28000
Kumar Galaf4fb90f2011-02-18 05:40:54 -0600473#define CONFIG_SYS_FSL_TBCLK_DIV 32
Kumar Gala179b1b22011-05-20 00:39:21 -0500474#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.2"
Timur Tabid8f341c2011-08-04 18:03:41 -0500475#define CONFIG_SYS_CCSRBAR_DEFAULT 0xfe000000
Roy Zang6d6a0e12011-04-13 00:08:51 -0500476#define CONFIG_SYS_FSL_USB1_PHY_ENABLE
477#define CONFIG_SYS_FSL_USB2_PHY_ENABLE
Kumar Galaa49034f2011-04-13 00:19:10 -0500478#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
Lei Xu32276202011-04-19 15:28:41 +0800479#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
York Sundf2be192011-11-20 10:01:35 -0800480#define CONFIG_SYS_FSL_ERRATUM_DDR_A003474
Liu Gang78deaa12012-03-08 00:33:14 +0000481#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 2
482#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
483#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
Kumar Galafe137112011-01-19 03:05:26 -0600484
485#elif defined(CONFIG_PPC_P5020)
486#define CONFIG_MAX_CPUS 2
Kumar Gala3842bb52011-02-16 02:03:29 -0600487#define CONFIG_SYS_FSL_NUM_CC_PLLS 2
Kumar Galafe137112011-01-19 03:05:26 -0600488#define CONFIG_SYS_FSL_NUM_LAWS 32
489#define CONFIG_SYS_FSL_SEC_COMPAT 4
Timur Tabi293935c2011-11-21 17:10:22 -0600490#define CONFIG_FSL_SATA_V2
Kumar Gala60d95d82011-01-25 12:42:32 -0600491#define CONFIG_SYS_NUM_FMAN 1
492#define CONFIG_SYS_NUM_FM1_DTSEC 5
493#define CONFIG_SYS_NUM_FM1_10GEC 1
494#define CONFIG_NUM_DDR_CONTROLLERS 2
Kumar Galad80dfe42011-02-04 00:43:34 -0600495#define CONFIG_SYS_FM_MURAM_SIZE 0x28000
Kumar Galaf4fb90f2011-02-18 05:40:54 -0600496#define CONFIG_SYS_FSL_TBCLK_DIV 32
Kumar Gala179b1b22011-05-20 00:39:21 -0500497#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.2"
Timur Tabid8f341c2011-08-04 18:03:41 -0500498#define CONFIG_SYS_CCSRBAR_DEFAULT 0xfe000000
Roy Zang6d6a0e12011-04-13 00:08:51 -0500499#define CONFIG_SYS_FSL_USB1_PHY_ENABLE
500#define CONFIG_SYS_FSL_USB2_PHY_ENABLE
Kumar Galaa49034f2011-04-13 00:19:10 -0500501#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
Lei Xu32276202011-04-19 15:28:41 +0800502#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
York Sundf2be192011-11-20 10:01:35 -0800503#define CONFIG_SYS_FSL_ERRATUM_DDR_A003474
Liu Gang78deaa12012-03-08 00:33:14 +0000504#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 2
505#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
506#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
Kumar Galafe137112011-01-19 03:05:26 -0600507
508#else
509#error Processor type not defined for this platform
510#endif
511
Timur Tabid8f341c2011-08-04 18:03:41 -0500512#ifndef CONFIG_SYS_CCSRBAR_DEFAULT
513#error "CONFIG_SYS_CCSRBAR_DEFAULT is not defined for this platform."
514#endif
515
Kumar Galafe137112011-01-19 03:05:26 -0600516#endif /* _ASM_MPC85xx_CONFIG_H_ */