blob: fc78c58d036445289d44ab47459994946716d683 [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
Kumar Galafe137112011-01-19 03:05:26 -060067
68#elif defined(CONFIG_MPC8555)
69#define CONFIG_MAX_CPUS 1
70#define CONFIG_SYS_FSL_NUM_LAWS 8
71#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabid8f341c2011-08-04 18:03:41 -050072#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Galafe137112011-01-19 03:05:26 -060073
74#elif defined(CONFIG_MPC8560)
75#define CONFIG_MAX_CPUS 1
76#define CONFIG_SYS_FSL_NUM_LAWS 8
Timur Tabid8f341c2011-08-04 18:03:41 -050077#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Galafe137112011-01-19 03:05:26 -060078
79#elif defined(CONFIG_MPC8568)
80#define CONFIG_MAX_CPUS 1
81#define CONFIG_SYS_FSL_NUM_LAWS 10
82#define CONFIG_SYS_FSL_SEC_COMPAT 2
Kumar Gala52bd8152011-01-31 23:09:25 -060083#define QE_MURAM_SIZE 0x10000UL
84#define MAX_QE_RISC 2
85#define QE_NUM_OF_SNUM 28
Timur Tabid8f341c2011-08-04 18:03:41 -050086#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Galafe137112011-01-19 03:05:26 -060087
88#elif defined(CONFIG_MPC8569)
89#define CONFIG_MAX_CPUS 1
90#define CONFIG_SYS_FSL_NUM_LAWS 10
91#define CONFIG_SYS_FSL_SEC_COMPAT 2
Kumar Gala52bd8152011-01-31 23:09:25 -060092#define QE_MURAM_SIZE 0x20000UL
93#define MAX_QE_RISC 4
94#define QE_NUM_OF_SNUM 46
Timur Tabid8f341c2011-08-04 18:03:41 -050095#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Galafe137112011-01-19 03:05:26 -060096
97#elif defined(CONFIG_MPC8572)
98#define CONFIG_MAX_CPUS 2
99#define CONFIG_SYS_FSL_NUM_LAWS 12
100#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabid8f341c2011-08-04 18:03:41 -0500101#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
York Sun9aa857b2011-01-25 21:51:27 -0800102#define CONFIG_SYS_FSL_ERRATUM_DDR_115
York Sunc8fc9592011-01-25 22:05:49 -0800103#define CONFIG_SYS_FSL_ERRATUM_DDR111_DDR134
Kumar Galafe137112011-01-19 03:05:26 -0600104
105#elif defined(CONFIG_P1010)
106#define CONFIG_MAX_CPUS 1
Priyanka Jain02449632011-02-09 09:24:10 +0530107#define CONFIG_FSL_SDHC_V2_3
Kumar Galafe137112011-01-19 03:05:26 -0600108#define CONFIG_SYS_FSL_NUM_LAWS 12
109#define CONFIG_TSECV2
110#define CONFIG_SYS_FSL_SEC_COMPAT 4
Poonam Aggrwal7373c592011-02-06 11:31:44 +0530111#define CONFIG_FSL_SATA_V2
112#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
113#define CONFIG_NUM_DDR_CONTROLLERS 1
114#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Gala179b1b22011-05-20 00:39:21 -0500115#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.2"
Ramneek Mehresh3fb68ee2011-03-23 15:20:43 +0530116#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
Poonam Aggrwalc7664a42011-06-30 03:00:28 -0500117#define CONFIG_SYS_FSL_ERRATUM_IFC_A002769
Poonam Aggrwalaf54a5f2011-06-29 16:32:52 +0530118#define CONFIG_SYS_FSL_ERRATUM_P1010_A003549
Poonam Aggrwal46b86ca2011-07-07 20:36:47 +0530119#define CONFIG_SYS_FSL_ERRATUM_IFC_A003399
Kumar Galafe137112011-01-19 03:05:26 -0600120
Kumar Galae4e69252011-02-05 13:45:07 -0600121/* P1011 is single core version of P1020 */
Kumar Galafe137112011-01-19 03:05:26 -0600122#elif defined(CONFIG_P1011)
123#define CONFIG_MAX_CPUS 1
124#define CONFIG_SYS_FSL_NUM_LAWS 12
125#define CONFIG_TSECV2
Prabhakar Kushwaha1c48e772011-02-01 15:55:58 +0000126#define CONFIG_FSL_PCIE_DISABLE_ASPM
Kumar Galafe137112011-01-19 03:05:26 -0600127#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabid8f341c2011-08-04 18:03:41 -0500128#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Galae4e69252011-02-05 13:45:07 -0600129#define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
130#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
Kumar Galafe137112011-01-19 03:05:26 -0600131
Kumar Galae4e69252011-02-05 13:45:07 -0600132/* P1012 is single core version of P1021 */
Kumar Galafe137112011-01-19 03:05:26 -0600133#elif defined(CONFIG_P1012)
134#define CONFIG_MAX_CPUS 1
135#define CONFIG_SYS_FSL_NUM_LAWS 12
136#define CONFIG_TSECV2
Prabhakar Kushwaha1c48e772011-02-01 15:55:58 +0000137#define CONFIG_FSL_PCIE_DISABLE_ASPM
Kumar Galafe137112011-01-19 03:05:26 -0600138#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabid8f341c2011-08-04 18:03:41 -0500139#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Galae4e69252011-02-05 13:45:07 -0600140#define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
141#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
Haiying Wang8cb2af72011-02-11 01:25:30 -0600142#define QE_MURAM_SIZE 0x6000UL
143#define MAX_QE_RISC 1
144#define QE_NUM_OF_SNUM 28
Kumar Galafe137112011-01-19 03:05:26 -0600145
Kumar Galae4e69252011-02-05 13:45:07 -0600146/* P1013 is single core version of P1022 */
Kumar Galafe137112011-01-19 03:05:26 -0600147#elif defined(CONFIG_P1013)
148#define CONFIG_MAX_CPUS 1
149#define CONFIG_SYS_FSL_NUM_LAWS 12
150#define CONFIG_TSECV2
151#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabid8f341c2011-08-04 18:03:41 -0500152#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Jiang Yutang7cd05902011-01-30 17:06:20 -0600153#define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
154#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
155#define CONFIG_FSL_SATA_ERRATUM_A001
Kumar Galafe137112011-01-19 03:05:26 -0600156
157#elif defined(CONFIG_P1014)
158#define CONFIG_MAX_CPUS 1
Priyanka Jain02449632011-02-09 09:24:10 +0530159#define CONFIG_FSL_SDHC_V2_3
Kumar Galafe137112011-01-19 03:05:26 -0600160#define CONFIG_SYS_FSL_NUM_LAWS 12
161#define CONFIG_TSECV2
162#define CONFIG_SYS_FSL_SEC_COMPAT 4
Poonam Aggrwal7373c592011-02-06 11:31:44 +0530163#define CONFIG_FSL_SATA_V2
164#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
165#define CONFIG_NUM_DDR_CONTROLLERS 1
166#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Ramneek Mehresh3fb68ee2011-03-23 15:20:43 +0530167#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
Poonam Aggrwalc7664a42011-06-30 03:00:28 -0500168#define CONFIG_SYS_FSL_ERRATUM_IFC_A002769
Poonam Aggrwalaf54a5f2011-06-29 16:32:52 +0530169#define CONFIG_SYS_FSL_ERRATUM_P1010_A003549
Poonam Aggrwal46b86ca2011-07-07 20:36:47 +0530170#define CONFIG_SYS_FSL_ERRATUM_IFC_A003399
Kumar Galafe137112011-01-19 03:05:26 -0600171
Kumar Galae4e69252011-02-05 13:45:07 -0600172/* P1015 is single core version of P1024 */
173#elif defined(CONFIG_P1015)
174#define CONFIG_MAX_CPUS 1
175#define CONFIG_SYS_FSL_NUM_LAWS 12
176#define CONFIG_TSECV2
177#define CONFIG_FSL_PCIE_DISABLE_ASPM
178#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabid8f341c2011-08-04 18:03:41 -0500179#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Galae4e69252011-02-05 13:45:07 -0600180#define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
181#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
182
183/* P1016 is single core version of P1025 */
184#elif defined(CONFIG_P1016)
185#define CONFIG_MAX_CPUS 1
186#define CONFIG_SYS_FSL_NUM_LAWS 12
187#define CONFIG_TSECV2
188#define CONFIG_FSL_PCIE_DISABLE_ASPM
189#define CONFIG_SYS_FSL_SEC_COMPAT 2
190#define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
191#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
Haiying Wang8cb2af72011-02-11 01:25:30 -0600192#define QE_MURAM_SIZE 0x6000UL
193#define MAX_QE_RISC 1
194#define QE_NUM_OF_SNUM 28
Timur Tabid8f341c2011-08-04 18:03:41 -0500195#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Galae4e69252011-02-05 13:45:07 -0600196
197/* P1017 is single core version of P1023 */
Roy Zang1de20b02011-02-03 22:14:19 -0600198#elif defined(CONFIG_P1017)
199#define CONFIG_MAX_CPUS 1
200#define CONFIG_SYS_FSL_NUM_LAWS 12
201#define CONFIG_SYS_FSL_SEC_COMPAT 4
202#define CONFIG_SYS_NUM_FMAN 1
203#define CONFIG_SYS_NUM_FM1_DTSEC 2
204#define CONFIG_NUM_DDR_CONTROLLERS 1
205#define CONFIG_SYS_QMAN_NUM_PORTALS 3
206#define CONFIG_SYS_BMAN_NUM_PORTALS 3
Kumar Galad80dfe42011-02-04 00:43:34 -0600207#define CONFIG_SYS_FM_MURAM_SIZE 0x10000
Kumar Gala179b1b22011-05-20 00:39:21 -0500208#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.2"
Timur Tabid8f341c2011-08-04 18:03:41 -0500209#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff600000
Roy Zang1de20b02011-02-03 22:14:19 -0600210
Kumar Galafe137112011-01-19 03:05:26 -0600211#elif defined(CONFIG_P1020)
212#define CONFIG_MAX_CPUS 2
213#define CONFIG_SYS_FSL_NUM_LAWS 12
214#define CONFIG_TSECV2
Prabhakar Kushwaha1c48e772011-02-01 15:55:58 +0000215#define CONFIG_FSL_PCIE_DISABLE_ASPM
Kumar Galafe137112011-01-19 03:05:26 -0600216#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabid8f341c2011-08-04 18:03:41 -0500217#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Galae4e69252011-02-05 13:45:07 -0600218#define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
219#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
Kumar Galafe137112011-01-19 03:05:26 -0600220
221#elif defined(CONFIG_P1021)
222#define CONFIG_MAX_CPUS 2
223#define CONFIG_SYS_FSL_NUM_LAWS 12
224#define CONFIG_TSECV2
Prabhakar Kushwaha1c48e772011-02-01 15:55:58 +0000225#define CONFIG_FSL_PCIE_DISABLE_ASPM
Kumar Galafe137112011-01-19 03:05:26 -0600226#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabid8f341c2011-08-04 18:03:41 -0500227#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Galae4e69252011-02-05 13:45:07 -0600228#define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
229#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
Haiying Wang8cb2af72011-02-11 01:25:30 -0600230#define QE_MURAM_SIZE 0x6000UL
231#define MAX_QE_RISC 1
232#define QE_NUM_OF_SNUM 28
Kumar Galafe137112011-01-19 03:05:26 -0600233
234#elif defined(CONFIG_P1022)
235#define CONFIG_MAX_CPUS 2
236#define CONFIG_SYS_FSL_NUM_LAWS 12
237#define CONFIG_TSECV2
238#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabid8f341c2011-08-04 18:03:41 -0500239#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Jiang Yutang7cd05902011-01-30 17:06:20 -0600240#define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
241#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
242#define CONFIG_FSL_SATA_ERRATUM_A001
Kumar Galafe137112011-01-19 03:05:26 -0600243
Roy Zang1de20b02011-02-03 22:14:19 -0600244#elif defined(CONFIG_P1023)
245#define CONFIG_MAX_CPUS 2
246#define CONFIG_SYS_FSL_NUM_LAWS 12
247#define CONFIG_SYS_FSL_SEC_COMPAT 4
248#define CONFIG_SYS_NUM_FMAN 1
249#define CONFIG_SYS_NUM_FM1_DTSEC 2
250#define CONFIG_NUM_DDR_CONTROLLERS 1
251#define CONFIG_SYS_QMAN_NUM_PORTALS 3
252#define CONFIG_SYS_BMAN_NUM_PORTALS 3
Kumar Galad80dfe42011-02-04 00:43:34 -0600253#define CONFIG_SYS_FM_MURAM_SIZE 0x10000
Kumar Gala179b1b22011-05-20 00:39:21 -0500254#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.2"
Timur Tabid8f341c2011-08-04 18:03:41 -0500255#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff600000
Roy Zang1de20b02011-02-03 22:14:19 -0600256
Kumar Galae4e69252011-02-05 13:45:07 -0600257/* P1024 is lower end variant of P1020 */
258#elif defined(CONFIG_P1024)
259#define CONFIG_MAX_CPUS 2
260#define CONFIG_SYS_FSL_NUM_LAWS 12
261#define CONFIG_TSECV2
262#define CONFIG_FSL_PCIE_DISABLE_ASPM
263#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabid8f341c2011-08-04 18:03:41 -0500264#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Galae4e69252011-02-05 13:45:07 -0600265#define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
266#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
267
268/* P1025 is lower end variant of P1021 */
269#elif defined(CONFIG_P1025)
270#define CONFIG_MAX_CPUS 2
271#define CONFIG_SYS_FSL_NUM_LAWS 12
272#define CONFIG_TSECV2
273#define CONFIG_FSL_PCIE_DISABLE_ASPM
274#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabid8f341c2011-08-04 18:03:41 -0500275#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Galae4e69252011-02-05 13:45:07 -0600276#define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
277#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
Haiying Wang8cb2af72011-02-11 01:25:30 -0600278#define QE_MURAM_SIZE 0x6000UL
279#define MAX_QE_RISC 1
280#define QE_NUM_OF_SNUM 28
Kumar Galae4e69252011-02-05 13:45:07 -0600281
282/* P2010 is single core version of P2020 */
Kumar Galafe137112011-01-19 03:05:26 -0600283#elif defined(CONFIG_P2010)
284#define CONFIG_MAX_CPUS 1
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_P2020)
292#define CONFIG_MAX_CPUS 2
293#define CONFIG_SYS_FSL_NUM_LAWS 12
294#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabid8f341c2011-08-04 18:03:41 -0500295#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Gala7b5b4802011-01-26 01:43:15 -0600296#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
Kumar Gala9a878d52011-01-29 15:36:10 -0600297#define CONFIG_SYS_FSL_ERRATUM_ESDHC_A001
Kumar Galafe137112011-01-19 03:05:26 -0600298
299#elif defined(CONFIG_PPC_P2040)
300#define CONFIG_MAX_CPUS 4
Kumar Gala3842bb52011-02-16 02:03:29 -0600301#define CONFIG_SYS_FSL_NUM_CC_PLLS 2
Kumar Galafe137112011-01-19 03:05:26 -0600302#define CONFIG_SYS_FSL_NUM_LAWS 32
303#define CONFIG_SYS_FSL_SEC_COMPAT 4
Kumar Gala60d95d82011-01-25 12:42:32 -0600304#define CONFIG_SYS_NUM_FMAN 1
305#define CONFIG_SYS_NUM_FM1_DTSEC 5
306#define CONFIG_NUM_DDR_CONTROLLERS 1
Kumar Galad80dfe42011-02-04 00:43:34 -0600307#define CONFIG_SYS_FM_MURAM_SIZE 0x28000
Kumar Galaf4fb90f2011-02-18 05:40:54 -0600308#define CONFIG_SYS_FSL_TBCLK_DIV 32
Kumar Gala179b1b22011-05-20 00:39:21 -0500309#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.2"
Timur Tabid8f341c2011-08-04 18:03:41 -0500310#define CONFIG_SYS_CCSRBAR_DEFAULT 0xfe000000
Roy Zang6d6a0e12011-04-13 00:08:51 -0500311#define CONFIG_SYS_FSL_USB1_PHY_ENABLE
312#define CONFIG_SYS_FSL_USB2_PHY_ENABLE
Kumar Galaa49034f2011-04-13 00:19:10 -0500313#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
Lei Xu32276202011-04-19 15:28:41 +0800314#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
Kumar Galafe137112011-01-19 03:05:26 -0600315
Kumar Gala619541b2011-05-13 01:16:07 -0500316#elif defined(CONFIG_PPC_P2041)
317#define CONFIG_MAX_CPUS 4
318#define CONFIG_SYS_FSL_NUM_CC_PLLS 2
319#define CONFIG_SYS_FSL_NUM_LAWS 32
320#define CONFIG_SYS_FSL_SEC_COMPAT 4
321#define CONFIG_SYS_NUM_FMAN 1
322#define CONFIG_SYS_NUM_FM1_DTSEC 5
323#define CONFIG_SYS_NUM_FM1_10GEC 1
324#define CONFIG_NUM_DDR_CONTROLLERS 1
325#define CONFIG_SYS_FM_MURAM_SIZE 0x28000
326#define CONFIG_SYS_FSL_TBCLK_DIV 32
327#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.2"
Timur Tabid8f341c2011-08-04 18:03:41 -0500328#define CONFIG_SYS_CCSRBAR_DEFAULT 0xfe000000
Kumar Gala619541b2011-05-13 01:16:07 -0500329#define CONFIG_SYS_FSL_USB1_PHY_ENABLE
330#define CONFIG_SYS_FSL_USB2_PHY_ENABLE
Kumar Galaa49034f2011-04-13 00:19:10 -0500331#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
Kumar Gala619541b2011-05-13 01:16:07 -0500332#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
333
Kumar Galafe137112011-01-19 03:05:26 -0600334#elif defined(CONFIG_PPC_P3041)
335#define CONFIG_MAX_CPUS 4
Kumar Gala3842bb52011-02-16 02:03:29 -0600336#define CONFIG_SYS_FSL_NUM_CC_PLLS 2
Kumar Galafe137112011-01-19 03:05:26 -0600337#define CONFIG_SYS_FSL_NUM_LAWS 32
338#define CONFIG_SYS_FSL_SEC_COMPAT 4
Kumar Gala60d95d82011-01-25 12:42:32 -0600339#define CONFIG_SYS_NUM_FMAN 1
340#define CONFIG_SYS_NUM_FM1_DTSEC 5
341#define CONFIG_SYS_NUM_FM1_10GEC 1
342#define CONFIG_NUM_DDR_CONTROLLERS 1
Kumar Galad80dfe42011-02-04 00:43:34 -0600343#define CONFIG_SYS_FM_MURAM_SIZE 0x28000
Kumar Galaf4fb90f2011-02-18 05:40:54 -0600344#define CONFIG_SYS_FSL_TBCLK_DIV 32
Kumar Gala179b1b22011-05-20 00:39:21 -0500345#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.2"
Timur Tabid8f341c2011-08-04 18:03:41 -0500346#define CONFIG_SYS_CCSRBAR_DEFAULT 0xfe000000
Roy Zang6d6a0e12011-04-13 00:08:51 -0500347#define CONFIG_SYS_FSL_USB1_PHY_ENABLE
348#define CONFIG_SYS_FSL_USB2_PHY_ENABLE
Kumar Galaa49034f2011-04-13 00:19:10 -0500349#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
Lei Xu32276202011-04-19 15:28:41 +0800350#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
Kumar Galafe137112011-01-19 03:05:26 -0600351
352#elif defined(CONFIG_PPC_P4040)
353#define CONFIG_MAX_CPUS 4
Kumar Gala3842bb52011-02-16 02:03:29 -0600354#define CONFIG_SYS_FSL_NUM_CC_PLLS 4
Kumar Galafe137112011-01-19 03:05:26 -0600355#define CONFIG_SYS_FSL_NUM_LAWS 32
356#define CONFIG_SYS_FSL_SEC_COMPAT 4
Kumar Galad80dfe42011-02-04 00:43:34 -0600357#define CONFIG_SYS_FM_MURAM_SIZE 0x28000
Kumar Galaf4fb90f2011-02-18 05:40:54 -0600358#define CONFIG_SYS_FSL_TBCLK_DIV 16
Kumar Gala179b1b22011-05-20 00:39:21 -0500359#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,p4080-pcie"
Timur Tabid8f341c2011-08-04 18:03:41 -0500360#define CONFIG_SYS_CCSRBAR_DEFAULT 0xfe000000
Kumar Galafe137112011-01-19 03:05:26 -0600361
362#elif defined(CONFIG_PPC_P4080)
363#define CONFIG_MAX_CPUS 8
Kumar Gala3842bb52011-02-16 02:03:29 -0600364#define CONFIG_SYS_FSL_NUM_CC_PLLS 4
Kumar Galafe137112011-01-19 03:05:26 -0600365#define CONFIG_SYS_FSL_NUM_LAWS 32
366#define CONFIG_SYS_FSL_SEC_COMPAT 4
367#define CONFIG_SYS_NUM_FMAN 2
368#define CONFIG_SYS_NUM_FM1_DTSEC 4
369#define CONFIG_SYS_NUM_FM2_DTSEC 4
370#define CONFIG_SYS_NUM_FM1_10GEC 1
371#define CONFIG_SYS_NUM_FM2_10GEC 1
372#define CONFIG_NUM_DDR_CONTROLLERS 2
Kumar Galad80dfe42011-02-04 00:43:34 -0600373#define CONFIG_SYS_FM_MURAM_SIZE 0x28000
Kumar Galaf4fb90f2011-02-18 05:40:54 -0600374#define CONFIG_SYS_FSL_TBCLK_DIV 16
Kumar Gala179b1b22011-05-20 00:39:21 -0500375#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,p4080-pcie"
Timur Tabid8f341c2011-08-04 18:03:41 -0500376#define CONFIG_SYS_CCSRBAR_DEFAULT 0xfe000000
Kumar Galafe137112011-01-19 03:05:26 -0600377#define CONFIG_SYS_FSL_ERRATUM_CPC_A002
378#define CONFIG_SYS_FSL_ERRATUM_CPC_A003
York Sun922f40f2011-01-10 12:03:01 +0000379#define CONFIG_SYS_FSL_ERRATUM_DDR_A003
Kumar Galafe137112011-01-19 03:05:26 -0600380#define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
381#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
382#define CONFIG_SYS_FSL_ERRATUM_ESDHC135
383#define CONFIG_SYS_FSL_ERRATUM_ESDHC136
384#define CONFIG_SYS_P4080_ERRATUM_CPU22
385#define CONFIG_SYS_P4080_ERRATUM_SERDES8
Emil Medveb01c81f2010-08-31 22:57:38 -0500386#define CONFIG_SYS_P4080_ERRATUM_SERDES9
Timur Tabi6a62dc42011-04-18 17:16:00 -0500387#define CONFIG_SYS_P4080_ERRATUM_SERDES_A001
Timur Tabi90f381d2011-04-01 13:19:36 -0500388#define CONFIG_SYS_P4080_ERRATUM_SERDES_A005
Kumar Galafe137112011-01-19 03:05:26 -0600389
Kumar Galae4e69252011-02-05 13:45:07 -0600390/* P5010 is single core version of P5020 */
Kumar Galafe137112011-01-19 03:05:26 -0600391#elif defined(CONFIG_PPC_P5010)
392#define CONFIG_MAX_CPUS 1
Kumar Gala3842bb52011-02-16 02:03:29 -0600393#define CONFIG_SYS_FSL_NUM_CC_PLLS 2
Kumar Galafe137112011-01-19 03:05:26 -0600394#define CONFIG_SYS_FSL_NUM_LAWS 32
395#define CONFIG_SYS_FSL_SEC_COMPAT 4
Kumar Gala60d95d82011-01-25 12:42:32 -0600396#define CONFIG_SYS_NUM_FMAN 1
397#define CONFIG_SYS_NUM_FM1_DTSEC 5
398#define CONFIG_SYS_NUM_FM1_10GEC 1
399#define CONFIG_NUM_DDR_CONTROLLERS 1
Kumar Galad80dfe42011-02-04 00:43:34 -0600400#define CONFIG_SYS_FM_MURAM_SIZE 0x28000
Kumar Galaf4fb90f2011-02-18 05:40:54 -0600401#define CONFIG_SYS_FSL_TBCLK_DIV 32
Kumar Gala179b1b22011-05-20 00:39:21 -0500402#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.2"
Timur Tabid8f341c2011-08-04 18:03:41 -0500403#define CONFIG_SYS_CCSRBAR_DEFAULT 0xfe000000
Roy Zang6d6a0e12011-04-13 00:08:51 -0500404#define CONFIG_SYS_FSL_USB1_PHY_ENABLE
405#define CONFIG_SYS_FSL_USB2_PHY_ENABLE
Kumar Galaa49034f2011-04-13 00:19:10 -0500406#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
Lei Xu32276202011-04-19 15:28:41 +0800407#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
Kumar Galafe137112011-01-19 03:05:26 -0600408
409#elif defined(CONFIG_PPC_P5020)
410#define CONFIG_MAX_CPUS 2
Kumar Gala3842bb52011-02-16 02:03:29 -0600411#define CONFIG_SYS_FSL_NUM_CC_PLLS 2
Kumar Galafe137112011-01-19 03:05:26 -0600412#define CONFIG_SYS_FSL_NUM_LAWS 32
413#define CONFIG_SYS_FSL_SEC_COMPAT 4
Kumar Gala60d95d82011-01-25 12:42:32 -0600414#define CONFIG_SYS_NUM_FMAN 1
415#define CONFIG_SYS_NUM_FM1_DTSEC 5
416#define CONFIG_SYS_NUM_FM1_10GEC 1
417#define CONFIG_NUM_DDR_CONTROLLERS 2
Kumar Galad80dfe42011-02-04 00:43:34 -0600418#define CONFIG_SYS_FM_MURAM_SIZE 0x28000
Kumar Galaf4fb90f2011-02-18 05:40:54 -0600419#define CONFIG_SYS_FSL_TBCLK_DIV 32
Kumar Gala179b1b22011-05-20 00:39:21 -0500420#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.2"
Timur Tabid8f341c2011-08-04 18:03:41 -0500421#define CONFIG_SYS_CCSRBAR_DEFAULT 0xfe000000
Roy Zang6d6a0e12011-04-13 00:08:51 -0500422#define CONFIG_SYS_FSL_USB1_PHY_ENABLE
423#define CONFIG_SYS_FSL_USB2_PHY_ENABLE
Kumar Galaa49034f2011-04-13 00:19:10 -0500424#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
Lei Xu32276202011-04-19 15:28:41 +0800425#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
Kumar Galafe137112011-01-19 03:05:26 -0600426
427#else
428#error Processor type not defined for this platform
429#endif
430
Timur Tabid8f341c2011-08-04 18:03:41 -0500431#ifndef CONFIG_SYS_CCSRBAR_DEFAULT
432#error "CONFIG_SYS_CCSRBAR_DEFAULT is not defined for this platform."
433#endif
434
Kumar Galafe137112011-01-19 03:05:26 -0600435#endif /* _ASM_MPC85xx_CONFIG_H_ */