blob: 691c075582a4de5b1f9ff4fe5fde19a26d9b5da9 [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 Galafe137112011-01-19 03:05:26 -060065
66#elif defined(CONFIG_MPC8555)
67#define CONFIG_MAX_CPUS 1
68#define CONFIG_SYS_FSL_NUM_LAWS 8
69#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabid8f341c2011-08-04 18:03:41 -050070#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Galafe137112011-01-19 03:05:26 -060071
72#elif defined(CONFIG_MPC8560)
73#define CONFIG_MAX_CPUS 1
74#define CONFIG_SYS_FSL_NUM_LAWS 8
Timur Tabid8f341c2011-08-04 18:03:41 -050075#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Galafe137112011-01-19 03:05:26 -060076
77#elif defined(CONFIG_MPC8568)
78#define CONFIG_MAX_CPUS 1
79#define CONFIG_SYS_FSL_NUM_LAWS 10
80#define CONFIG_SYS_FSL_SEC_COMPAT 2
Kumar Gala52bd8152011-01-31 23:09:25 -060081#define QE_MURAM_SIZE 0x10000UL
82#define MAX_QE_RISC 2
83#define QE_NUM_OF_SNUM 28
Timur Tabid8f341c2011-08-04 18:03:41 -050084#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Galafe137112011-01-19 03:05:26 -060085
86#elif defined(CONFIG_MPC8569)
87#define CONFIG_MAX_CPUS 1
88#define CONFIG_SYS_FSL_NUM_LAWS 10
89#define CONFIG_SYS_FSL_SEC_COMPAT 2
Kumar Gala52bd8152011-01-31 23:09:25 -060090#define QE_MURAM_SIZE 0x20000UL
91#define MAX_QE_RISC 4
92#define QE_NUM_OF_SNUM 46
Timur Tabid8f341c2011-08-04 18:03:41 -050093#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Galafe137112011-01-19 03:05:26 -060094
95#elif defined(CONFIG_MPC8572)
96#define CONFIG_MAX_CPUS 2
97#define CONFIG_SYS_FSL_NUM_LAWS 12
98#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabid8f341c2011-08-04 18:03:41 -050099#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
York Sun9aa857b2011-01-25 21:51:27 -0800100#define CONFIG_SYS_FSL_ERRATUM_DDR_115
York Sunc8fc9592011-01-25 22:05:49 -0800101#define CONFIG_SYS_FSL_ERRATUM_DDR111_DDR134
Kumar Galafe137112011-01-19 03:05:26 -0600102
103#elif defined(CONFIG_P1010)
104#define CONFIG_MAX_CPUS 1
Priyanka Jain02449632011-02-09 09:24:10 +0530105#define CONFIG_FSL_SDHC_V2_3
Kumar Galafe137112011-01-19 03:05:26 -0600106#define CONFIG_SYS_FSL_NUM_LAWS 12
107#define CONFIG_TSECV2
108#define CONFIG_SYS_FSL_SEC_COMPAT 4
Poonam Aggrwal7373c592011-02-06 11:31:44 +0530109#define CONFIG_FSL_SATA_V2
110#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
111#define CONFIG_NUM_DDR_CONTROLLERS 1
112#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Gala179b1b22011-05-20 00:39:21 -0500113#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.2"
Ramneek Mehresh3fb68ee2011-03-23 15:20:43 +0530114#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
Kumar Galafe137112011-01-19 03:05:26 -0600115
Kumar Galae4e69252011-02-05 13:45:07 -0600116/* P1011 is single core version of P1020 */
Kumar Galafe137112011-01-19 03:05:26 -0600117#elif defined(CONFIG_P1011)
118#define CONFIG_MAX_CPUS 1
119#define CONFIG_SYS_FSL_NUM_LAWS 12
120#define CONFIG_TSECV2
Prabhakar Kushwaha1c48e772011-02-01 15:55:58 +0000121#define CONFIG_FSL_PCIE_DISABLE_ASPM
Kumar Galafe137112011-01-19 03:05:26 -0600122#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabid8f341c2011-08-04 18:03:41 -0500123#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Galae4e69252011-02-05 13:45:07 -0600124#define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
125#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
Kumar Galafe137112011-01-19 03:05:26 -0600126
Kumar Galae4e69252011-02-05 13:45:07 -0600127/* P1012 is single core version of P1021 */
Kumar Galafe137112011-01-19 03:05:26 -0600128#elif defined(CONFIG_P1012)
129#define CONFIG_MAX_CPUS 1
130#define CONFIG_SYS_FSL_NUM_LAWS 12
131#define CONFIG_TSECV2
Prabhakar Kushwaha1c48e772011-02-01 15:55:58 +0000132#define CONFIG_FSL_PCIE_DISABLE_ASPM
Kumar Galafe137112011-01-19 03:05:26 -0600133#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabid8f341c2011-08-04 18:03:41 -0500134#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Galae4e69252011-02-05 13:45:07 -0600135#define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
136#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
Haiying Wang8cb2af72011-02-11 01:25:30 -0600137#define QE_MURAM_SIZE 0x6000UL
138#define MAX_QE_RISC 1
139#define QE_NUM_OF_SNUM 28
Kumar Galafe137112011-01-19 03:05:26 -0600140
Kumar Galae4e69252011-02-05 13:45:07 -0600141/* P1013 is single core version of P1022 */
Kumar Galafe137112011-01-19 03:05:26 -0600142#elif defined(CONFIG_P1013)
143#define CONFIG_MAX_CPUS 1
144#define CONFIG_SYS_FSL_NUM_LAWS 12
145#define CONFIG_TSECV2
146#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabid8f341c2011-08-04 18:03:41 -0500147#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Jiang Yutang7cd05902011-01-30 17:06:20 -0600148#define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
149#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
150#define CONFIG_FSL_SATA_ERRATUM_A001
Kumar Galafe137112011-01-19 03:05:26 -0600151
152#elif defined(CONFIG_P1014)
153#define CONFIG_MAX_CPUS 1
Priyanka Jain02449632011-02-09 09:24:10 +0530154#define CONFIG_FSL_SDHC_V2_3
Kumar Galafe137112011-01-19 03:05:26 -0600155#define CONFIG_SYS_FSL_NUM_LAWS 12
156#define CONFIG_TSECV2
157#define CONFIG_SYS_FSL_SEC_COMPAT 4
Poonam Aggrwal7373c592011-02-06 11:31:44 +0530158#define CONFIG_FSL_SATA_V2
159#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
160#define CONFIG_NUM_DDR_CONTROLLERS 1
161#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Ramneek Mehresh3fb68ee2011-03-23 15:20:43 +0530162#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
Kumar Galafe137112011-01-19 03:05:26 -0600163
Kumar Galae4e69252011-02-05 13:45:07 -0600164/* P1015 is single core version of P1024 */
165#elif defined(CONFIG_P1015)
166#define CONFIG_MAX_CPUS 1
167#define CONFIG_SYS_FSL_NUM_LAWS 12
168#define CONFIG_TSECV2
169#define CONFIG_FSL_PCIE_DISABLE_ASPM
170#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabid8f341c2011-08-04 18:03:41 -0500171#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Galae4e69252011-02-05 13:45:07 -0600172#define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
173#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
174
175/* P1016 is single core version of P1025 */
176#elif defined(CONFIG_P1016)
177#define CONFIG_MAX_CPUS 1
178#define CONFIG_SYS_FSL_NUM_LAWS 12
179#define CONFIG_TSECV2
180#define CONFIG_FSL_PCIE_DISABLE_ASPM
181#define CONFIG_SYS_FSL_SEC_COMPAT 2
182#define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
183#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
Haiying Wang8cb2af72011-02-11 01:25:30 -0600184#define QE_MURAM_SIZE 0x6000UL
185#define MAX_QE_RISC 1
186#define QE_NUM_OF_SNUM 28
Timur Tabid8f341c2011-08-04 18:03:41 -0500187#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Galae4e69252011-02-05 13:45:07 -0600188
189/* P1017 is single core version of P1023 */
Roy Zang1de20b02011-02-03 22:14:19 -0600190#elif defined(CONFIG_P1017)
191#define CONFIG_MAX_CPUS 1
192#define CONFIG_SYS_FSL_NUM_LAWS 12
193#define CONFIG_SYS_FSL_SEC_COMPAT 4
194#define CONFIG_SYS_NUM_FMAN 1
195#define CONFIG_SYS_NUM_FM1_DTSEC 2
196#define CONFIG_NUM_DDR_CONTROLLERS 1
197#define CONFIG_SYS_QMAN_NUM_PORTALS 3
198#define CONFIG_SYS_BMAN_NUM_PORTALS 3
Kumar Galad80dfe42011-02-04 00:43:34 -0600199#define CONFIG_SYS_FM_MURAM_SIZE 0x10000
Kumar Gala179b1b22011-05-20 00:39:21 -0500200#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.2"
Timur Tabid8f341c2011-08-04 18:03:41 -0500201#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff600000
Roy Zang1de20b02011-02-03 22:14:19 -0600202
Kumar Galafe137112011-01-19 03:05:26 -0600203#elif defined(CONFIG_P1020)
204#define CONFIG_MAX_CPUS 2
205#define CONFIG_SYS_FSL_NUM_LAWS 12
206#define CONFIG_TSECV2
Prabhakar Kushwaha1c48e772011-02-01 15:55:58 +0000207#define CONFIG_FSL_PCIE_DISABLE_ASPM
Kumar Galafe137112011-01-19 03:05:26 -0600208#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabid8f341c2011-08-04 18:03:41 -0500209#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Galae4e69252011-02-05 13:45:07 -0600210#define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
211#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
Kumar Galafe137112011-01-19 03:05:26 -0600212
213#elif defined(CONFIG_P1021)
214#define CONFIG_MAX_CPUS 2
215#define CONFIG_SYS_FSL_NUM_LAWS 12
216#define CONFIG_TSECV2
Prabhakar Kushwaha1c48e772011-02-01 15:55:58 +0000217#define CONFIG_FSL_PCIE_DISABLE_ASPM
Kumar Galafe137112011-01-19 03:05:26 -0600218#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabid8f341c2011-08-04 18:03:41 -0500219#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Galae4e69252011-02-05 13:45:07 -0600220#define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
221#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
Haiying Wang8cb2af72011-02-11 01:25:30 -0600222#define QE_MURAM_SIZE 0x6000UL
223#define MAX_QE_RISC 1
224#define QE_NUM_OF_SNUM 28
Kumar Galafe137112011-01-19 03:05:26 -0600225
226#elif defined(CONFIG_P1022)
227#define CONFIG_MAX_CPUS 2
228#define CONFIG_SYS_FSL_NUM_LAWS 12
229#define CONFIG_TSECV2
230#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabid8f341c2011-08-04 18:03:41 -0500231#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Jiang Yutang7cd05902011-01-30 17:06:20 -0600232#define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
233#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
234#define CONFIG_FSL_SATA_ERRATUM_A001
Kumar Galafe137112011-01-19 03:05:26 -0600235
Roy Zang1de20b02011-02-03 22:14:19 -0600236#elif defined(CONFIG_P1023)
237#define CONFIG_MAX_CPUS 2
238#define CONFIG_SYS_FSL_NUM_LAWS 12
239#define CONFIG_SYS_FSL_SEC_COMPAT 4
240#define CONFIG_SYS_NUM_FMAN 1
241#define CONFIG_SYS_NUM_FM1_DTSEC 2
242#define CONFIG_NUM_DDR_CONTROLLERS 1
243#define CONFIG_SYS_QMAN_NUM_PORTALS 3
244#define CONFIG_SYS_BMAN_NUM_PORTALS 3
Kumar Galad80dfe42011-02-04 00:43:34 -0600245#define CONFIG_SYS_FM_MURAM_SIZE 0x10000
Kumar Gala179b1b22011-05-20 00:39:21 -0500246#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.2"
Timur Tabid8f341c2011-08-04 18:03:41 -0500247#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff600000
Roy Zang1de20b02011-02-03 22:14:19 -0600248
Kumar Galae4e69252011-02-05 13:45:07 -0600249/* P1024 is lower end variant of P1020 */
250#elif defined(CONFIG_P1024)
251#define CONFIG_MAX_CPUS 2
252#define CONFIG_SYS_FSL_NUM_LAWS 12
253#define CONFIG_TSECV2
254#define CONFIG_FSL_PCIE_DISABLE_ASPM
255#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabid8f341c2011-08-04 18:03:41 -0500256#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Galae4e69252011-02-05 13:45:07 -0600257#define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
258#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
259
260/* P1025 is lower end variant of P1021 */
261#elif defined(CONFIG_P1025)
262#define CONFIG_MAX_CPUS 2
263#define CONFIG_SYS_FSL_NUM_LAWS 12
264#define CONFIG_TSECV2
265#define CONFIG_FSL_PCIE_DISABLE_ASPM
266#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabid8f341c2011-08-04 18:03:41 -0500267#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Galae4e69252011-02-05 13:45:07 -0600268#define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
269#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
Haiying Wang8cb2af72011-02-11 01:25:30 -0600270#define QE_MURAM_SIZE 0x6000UL
271#define MAX_QE_RISC 1
272#define QE_NUM_OF_SNUM 28
Kumar Galae4e69252011-02-05 13:45:07 -0600273
274/* P2010 is single core version of P2020 */
Kumar Galafe137112011-01-19 03:05:26 -0600275#elif defined(CONFIG_P2010)
276#define CONFIG_MAX_CPUS 1
277#define CONFIG_SYS_FSL_NUM_LAWS 12
278#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabid8f341c2011-08-04 18:03:41 -0500279#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Gala7b5b4802011-01-26 01:43:15 -0600280#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
Kumar Gala9a878d52011-01-29 15:36:10 -0600281#define CONFIG_SYS_FSL_ERRATUM_ESDHC_A001
Kumar Galafe137112011-01-19 03:05:26 -0600282
283#elif defined(CONFIG_P2020)
284#define CONFIG_MAX_CPUS 2
285#define CONFIG_SYS_FSL_NUM_LAWS 12
286#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabid8f341c2011-08-04 18:03:41 -0500287#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Gala7b5b4802011-01-26 01:43:15 -0600288#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
Kumar Gala9a878d52011-01-29 15:36:10 -0600289#define CONFIG_SYS_FSL_ERRATUM_ESDHC_A001
Kumar Galafe137112011-01-19 03:05:26 -0600290
291#elif defined(CONFIG_PPC_P2040)
292#define CONFIG_MAX_CPUS 4
Kumar Gala3842bb52011-02-16 02:03:29 -0600293#define CONFIG_SYS_FSL_NUM_CC_PLLS 2
Kumar Galafe137112011-01-19 03:05:26 -0600294#define CONFIG_SYS_FSL_NUM_LAWS 32
295#define CONFIG_SYS_FSL_SEC_COMPAT 4
Kumar Gala60d95d82011-01-25 12:42:32 -0600296#define CONFIG_SYS_NUM_FMAN 1
297#define CONFIG_SYS_NUM_FM1_DTSEC 5
298#define CONFIG_NUM_DDR_CONTROLLERS 1
Kumar Galad80dfe42011-02-04 00:43:34 -0600299#define CONFIG_SYS_FM_MURAM_SIZE 0x28000
Kumar Galaf4fb90f2011-02-18 05:40:54 -0600300#define CONFIG_SYS_FSL_TBCLK_DIV 32
Kumar Gala179b1b22011-05-20 00:39:21 -0500301#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.2"
Timur Tabid8f341c2011-08-04 18:03:41 -0500302#define CONFIG_SYS_CCSRBAR_DEFAULT 0xfe000000
Roy Zang6d6a0e12011-04-13 00:08:51 -0500303#define CONFIG_SYS_FSL_USB1_PHY_ENABLE
304#define CONFIG_SYS_FSL_USB2_PHY_ENABLE
Kumar Galaa49034f2011-04-13 00:19:10 -0500305#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
Lei Xu32276202011-04-19 15:28:41 +0800306#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
Kumar Galafe137112011-01-19 03:05:26 -0600307
Kumar Gala619541b2011-05-13 01:16:07 -0500308#elif defined(CONFIG_PPC_P2041)
309#define CONFIG_MAX_CPUS 4
310#define CONFIG_SYS_FSL_NUM_CC_PLLS 2
311#define CONFIG_SYS_FSL_NUM_LAWS 32
312#define CONFIG_SYS_FSL_SEC_COMPAT 4
313#define CONFIG_SYS_NUM_FMAN 1
314#define CONFIG_SYS_NUM_FM1_DTSEC 5
315#define CONFIG_SYS_NUM_FM1_10GEC 1
316#define CONFIG_NUM_DDR_CONTROLLERS 1
317#define CONFIG_SYS_FM_MURAM_SIZE 0x28000
318#define CONFIG_SYS_FSL_TBCLK_DIV 32
319#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.2"
Timur Tabid8f341c2011-08-04 18:03:41 -0500320#define CONFIG_SYS_CCSRBAR_DEFAULT 0xfe000000
Kumar Gala619541b2011-05-13 01:16:07 -0500321#define CONFIG_SYS_FSL_USB1_PHY_ENABLE
322#define CONFIG_SYS_FSL_USB2_PHY_ENABLE
Kumar Galaa49034f2011-04-13 00:19:10 -0500323#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
Kumar Gala619541b2011-05-13 01:16:07 -0500324#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
325
Kumar Galafe137112011-01-19 03:05:26 -0600326#elif defined(CONFIG_PPC_P3041)
327#define CONFIG_MAX_CPUS 4
Kumar Gala3842bb52011-02-16 02:03:29 -0600328#define CONFIG_SYS_FSL_NUM_CC_PLLS 2
Kumar Galafe137112011-01-19 03:05:26 -0600329#define CONFIG_SYS_FSL_NUM_LAWS 32
330#define CONFIG_SYS_FSL_SEC_COMPAT 4
Kumar Gala60d95d82011-01-25 12:42:32 -0600331#define CONFIG_SYS_NUM_FMAN 1
332#define CONFIG_SYS_NUM_FM1_DTSEC 5
333#define CONFIG_SYS_NUM_FM1_10GEC 1
334#define CONFIG_NUM_DDR_CONTROLLERS 1
Kumar Galad80dfe42011-02-04 00:43:34 -0600335#define CONFIG_SYS_FM_MURAM_SIZE 0x28000
Kumar Galaf4fb90f2011-02-18 05:40:54 -0600336#define CONFIG_SYS_FSL_TBCLK_DIV 32
Kumar Gala179b1b22011-05-20 00:39:21 -0500337#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.2"
Timur Tabid8f341c2011-08-04 18:03:41 -0500338#define CONFIG_SYS_CCSRBAR_DEFAULT 0xfe000000
Roy Zang6d6a0e12011-04-13 00:08:51 -0500339#define CONFIG_SYS_FSL_USB1_PHY_ENABLE
340#define CONFIG_SYS_FSL_USB2_PHY_ENABLE
Kumar Galaa49034f2011-04-13 00:19:10 -0500341#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
Lei Xu32276202011-04-19 15:28:41 +0800342#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
Kumar Galafe137112011-01-19 03:05:26 -0600343
344#elif defined(CONFIG_PPC_P4040)
345#define CONFIG_MAX_CPUS 4
Kumar Gala3842bb52011-02-16 02:03:29 -0600346#define CONFIG_SYS_FSL_NUM_CC_PLLS 4
Kumar Galafe137112011-01-19 03:05:26 -0600347#define CONFIG_SYS_FSL_NUM_LAWS 32
348#define CONFIG_SYS_FSL_SEC_COMPAT 4
Kumar Galad80dfe42011-02-04 00:43:34 -0600349#define CONFIG_SYS_FM_MURAM_SIZE 0x28000
Kumar Galaf4fb90f2011-02-18 05:40:54 -0600350#define CONFIG_SYS_FSL_TBCLK_DIV 16
Kumar Gala179b1b22011-05-20 00:39:21 -0500351#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,p4080-pcie"
Timur Tabid8f341c2011-08-04 18:03:41 -0500352#define CONFIG_SYS_CCSRBAR_DEFAULT 0xfe000000
Kumar Galafe137112011-01-19 03:05:26 -0600353
354#elif defined(CONFIG_PPC_P4080)
355#define CONFIG_MAX_CPUS 8
Kumar Gala3842bb52011-02-16 02:03:29 -0600356#define CONFIG_SYS_FSL_NUM_CC_PLLS 4
Kumar Galafe137112011-01-19 03:05:26 -0600357#define CONFIG_SYS_FSL_NUM_LAWS 32
358#define CONFIG_SYS_FSL_SEC_COMPAT 4
359#define CONFIG_SYS_NUM_FMAN 2
360#define CONFIG_SYS_NUM_FM1_DTSEC 4
361#define CONFIG_SYS_NUM_FM2_DTSEC 4
362#define CONFIG_SYS_NUM_FM1_10GEC 1
363#define CONFIG_SYS_NUM_FM2_10GEC 1
364#define CONFIG_NUM_DDR_CONTROLLERS 2
Kumar Galad80dfe42011-02-04 00:43:34 -0600365#define CONFIG_SYS_FM_MURAM_SIZE 0x28000
Kumar Galaf4fb90f2011-02-18 05:40:54 -0600366#define CONFIG_SYS_FSL_TBCLK_DIV 16
Kumar Gala179b1b22011-05-20 00:39:21 -0500367#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,p4080-pcie"
Timur Tabid8f341c2011-08-04 18:03:41 -0500368#define CONFIG_SYS_CCSRBAR_DEFAULT 0xfe000000
Kumar Galafe137112011-01-19 03:05:26 -0600369#define CONFIG_SYS_FSL_ERRATUM_CPC_A002
370#define CONFIG_SYS_FSL_ERRATUM_CPC_A003
York Sun922f40f2011-01-10 12:03:01 +0000371#define CONFIG_SYS_FSL_ERRATUM_DDR_A003
Kumar Galafe137112011-01-19 03:05:26 -0600372#define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
373#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
374#define CONFIG_SYS_FSL_ERRATUM_ESDHC135
375#define CONFIG_SYS_FSL_ERRATUM_ESDHC136
376#define CONFIG_SYS_P4080_ERRATUM_CPU22
377#define CONFIG_SYS_P4080_ERRATUM_SERDES8
Emil Medveb01c81f2010-08-31 22:57:38 -0500378#define CONFIG_SYS_P4080_ERRATUM_SERDES9
Timur Tabi6a62dc42011-04-18 17:16:00 -0500379#define CONFIG_SYS_P4080_ERRATUM_SERDES_A001
Timur Tabi90f381d2011-04-01 13:19:36 -0500380#define CONFIG_SYS_P4080_ERRATUM_SERDES_A005
Kumar Galafe137112011-01-19 03:05:26 -0600381
Kumar Galae4e69252011-02-05 13:45:07 -0600382/* P5010 is single core version of P5020 */
Kumar Galafe137112011-01-19 03:05:26 -0600383#elif defined(CONFIG_PPC_P5010)
384#define CONFIG_MAX_CPUS 1
Kumar Gala3842bb52011-02-16 02:03:29 -0600385#define CONFIG_SYS_FSL_NUM_CC_PLLS 2
Kumar Galafe137112011-01-19 03:05:26 -0600386#define CONFIG_SYS_FSL_NUM_LAWS 32
387#define CONFIG_SYS_FSL_SEC_COMPAT 4
Kumar Gala60d95d82011-01-25 12:42:32 -0600388#define CONFIG_SYS_NUM_FMAN 1
389#define CONFIG_SYS_NUM_FM1_DTSEC 5
390#define CONFIG_SYS_NUM_FM1_10GEC 1
391#define CONFIG_NUM_DDR_CONTROLLERS 1
Kumar Galad80dfe42011-02-04 00:43:34 -0600392#define CONFIG_SYS_FM_MURAM_SIZE 0x28000
Kumar Galaf4fb90f2011-02-18 05:40:54 -0600393#define CONFIG_SYS_FSL_TBCLK_DIV 32
Kumar Gala179b1b22011-05-20 00:39:21 -0500394#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.2"
Timur Tabid8f341c2011-08-04 18:03:41 -0500395#define CONFIG_SYS_CCSRBAR_DEFAULT 0xfe000000
Roy Zang6d6a0e12011-04-13 00:08:51 -0500396#define CONFIG_SYS_FSL_USB1_PHY_ENABLE
397#define CONFIG_SYS_FSL_USB2_PHY_ENABLE
Kumar Galaa49034f2011-04-13 00:19:10 -0500398#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
Lei Xu32276202011-04-19 15:28:41 +0800399#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
Kumar Galafe137112011-01-19 03:05:26 -0600400
401#elif defined(CONFIG_PPC_P5020)
402#define CONFIG_MAX_CPUS 2
Kumar Gala3842bb52011-02-16 02:03:29 -0600403#define CONFIG_SYS_FSL_NUM_CC_PLLS 2
Kumar Galafe137112011-01-19 03:05:26 -0600404#define CONFIG_SYS_FSL_NUM_LAWS 32
405#define CONFIG_SYS_FSL_SEC_COMPAT 4
Kumar Gala60d95d82011-01-25 12:42:32 -0600406#define CONFIG_SYS_NUM_FMAN 1
407#define CONFIG_SYS_NUM_FM1_DTSEC 5
408#define CONFIG_SYS_NUM_FM1_10GEC 1
409#define CONFIG_NUM_DDR_CONTROLLERS 2
Kumar Galad80dfe42011-02-04 00:43:34 -0600410#define CONFIG_SYS_FM_MURAM_SIZE 0x28000
Kumar Galaf4fb90f2011-02-18 05:40:54 -0600411#define CONFIG_SYS_FSL_TBCLK_DIV 32
Kumar Gala179b1b22011-05-20 00:39:21 -0500412#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.2"
Timur Tabid8f341c2011-08-04 18:03:41 -0500413#define CONFIG_SYS_CCSRBAR_DEFAULT 0xfe000000
Roy Zang6d6a0e12011-04-13 00:08:51 -0500414#define CONFIG_SYS_FSL_USB1_PHY_ENABLE
415#define CONFIG_SYS_FSL_USB2_PHY_ENABLE
Kumar Galaa49034f2011-04-13 00:19:10 -0500416#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
Lei Xu32276202011-04-19 15:28:41 +0800417#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
Kumar Galafe137112011-01-19 03:05:26 -0600418
419#else
420#error Processor type not defined for this platform
421#endif
422
Timur Tabid8f341c2011-08-04 18:03:41 -0500423#ifndef CONFIG_SYS_CCSRBAR_DEFAULT
424#error "CONFIG_SYS_CCSRBAR_DEFAULT is not defined for this platform."
425#endif
426
Kumar Galafe137112011-01-19 03:05:26 -0600427#endif /* _ASM_MPC85xx_CONFIG_H_ */