blob: 7267611cbccfb2ffe942234ff32f3fbb12350266 [file] [log] [blame]
Kumar Gala243be8e2011-01-19 03:05:26 -06001/*
Prabhakar Kushwaha19a8dbd2012-04-24 20:16:49 +00002 * Copyright 2011-2012 Freescale Semiconductor, Inc.
Kumar Gala243be8e2011-01-19 03:05:26 -06003 *
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 Tabie46fedf2011-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
York Sun2a5fcb82012-10-28 08:12:54 +000030/*
31 * This macro should be removed when we no longer care about backwards
32 * compatibility with older operating systems.
33 */
34#define CONFIG_PPC_SPINTABLE_COMPATIBLE
35
York Sun57495e42012-10-08 07:44:22 +000036#define FSL_DDR_VER_4_7 47
37
Kumar Gala243be8e2011-01-19 03:05:26 -060038/* Number of TLB CAM entries we have on FSL Book-E chips */
39#if defined(CONFIG_E500MC)
40#define CONFIG_SYS_NUM_TLBCAMS 64
41#elif defined(CONFIG_E500)
42#define CONFIG_SYS_NUM_TLBCAMS 16
43#endif
44
45#if defined(CONFIG_MPC8536)
46#define CONFIG_MAX_CPUS 1
47#define CONFIG_SYS_FSL_NUM_LAWS 12
Prabhakar Kushwahae4879af2012-08-15 04:12:43 +000048#define CONFIG_SYS_PPC_E500_DEBUG_TLB 1
Kumar Gala243be8e2011-01-19 03:05:26 -060049#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabie46fedf2011-08-04 18:03:41 -050050#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Gala243be8e2011-01-19 03:05:26 -060051
Wolfgang Denkd1a24f02011-02-02 22:36:10 +010052#elif defined(CONFIG_MPC8540)
Kumar Gala243be8e2011-01-19 03:05:26 -060053#define CONFIG_MAX_CPUS 1
54#define CONFIG_SYS_FSL_NUM_LAWS 8
Timur Tabie46fedf2011-08-04 18:03:41 -050055#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Gala243be8e2011-01-19 03:05:26 -060056
Wolfgang Denkd1a24f02011-02-02 22:36:10 +010057#elif defined(CONFIG_MPC8541)
Kumar Gala243be8e2011-01-19 03:05:26 -060058#define CONFIG_MAX_CPUS 1
59#define CONFIG_SYS_FSL_NUM_LAWS 8
60#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabie46fedf2011-08-04 18:03:41 -050061#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Gala243be8e2011-01-19 03:05:26 -060062
63#elif defined(CONFIG_MPC8544)
64#define CONFIG_MAX_CPUS 1
65#define CONFIG_SYS_FSL_NUM_LAWS 10
Prabhakar Kushwahae4879af2012-08-15 04:12:43 +000066#define CONFIG_SYS_PPC_E500_DEBUG_TLB 0
Kumar Gala243be8e2011-01-19 03:05:26 -060067#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabie46fedf2011-08-04 18:03:41 -050068#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Gala243be8e2011-01-19 03:05:26 -060069
70#elif defined(CONFIG_MPC8548)
71#define CONFIG_MAX_CPUS 1
72#define CONFIG_SYS_FSL_NUM_LAWS 10
Prabhakar Kushwahae4879af2012-08-15 04:12:43 +000073#define CONFIG_SYS_PPC_E500_DEBUG_TLB 0
Kumar Gala243be8e2011-01-19 03:05:26 -060074#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabie46fedf2011-08-04 18:03:41 -050075#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Gala5ace2992011-09-16 09:54:30 -050076#define CONFIG_SYS_FSL_ERRATUM_NMG_DDR120
Kumar Gala2b3a1cd2011-10-03 08:37:57 -050077#define CONFIG_SYS_FSL_ERRATUM_NMG_LBC103
chenhui zhaoaada81d2011-10-03 08:38:50 -050078#define CONFIG_SYS_FSL_ERRATUM_NMG_ETSEC129
Liu Gang7d67ed52012-03-08 00:33:14 +000079#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 1
80#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
81#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
82#define CONFIG_SYS_FSL_RMU
83#define CONFIG_SYS_FSL_SRIO_MSG_UNIT_NUM 2
Kumar Gala243be8e2011-01-19 03:05:26 -060084
85#elif defined(CONFIG_MPC8555)
86#define CONFIG_MAX_CPUS 1
87#define CONFIG_SYS_FSL_NUM_LAWS 8
88#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabie46fedf2011-08-04 18:03:41 -050089#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Gala243be8e2011-01-19 03:05:26 -060090
91#elif defined(CONFIG_MPC8560)
92#define CONFIG_MAX_CPUS 1
93#define CONFIG_SYS_FSL_NUM_LAWS 8
Timur Tabie46fedf2011-08-04 18:03:41 -050094#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Gala243be8e2011-01-19 03:05:26 -060095
96#elif defined(CONFIG_MPC8568)
97#define CONFIG_MAX_CPUS 1
98#define CONFIG_SYS_FSL_NUM_LAWS 10
99#define CONFIG_SYS_FSL_SEC_COMPAT 2
Kumar Galafdb4dad2011-01-31 23:09:25 -0600100#define QE_MURAM_SIZE 0x10000UL
101#define MAX_QE_RISC 2
102#define QE_NUM_OF_SNUM 28
Timur Tabie46fedf2011-08-04 18:03:41 -0500103#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Liu Gang7d67ed52012-03-08 00:33:14 +0000104#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 1
105#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
106#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
107#define CONFIG_SYS_FSL_RMU
108#define CONFIG_SYS_FSL_SRIO_MSG_UNIT_NUM 2
Kumar Gala243be8e2011-01-19 03:05:26 -0600109
110#elif defined(CONFIG_MPC8569)
111#define CONFIG_MAX_CPUS 1
112#define CONFIG_SYS_FSL_NUM_LAWS 10
113#define CONFIG_SYS_FSL_SEC_COMPAT 2
Kumar Galafdb4dad2011-01-31 23:09:25 -0600114#define QE_MURAM_SIZE 0x20000UL
115#define MAX_QE_RISC 4
116#define QE_NUM_OF_SNUM 46
Timur Tabie46fedf2011-08-04 18:03:41 -0500117#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Liu Gang7d67ed52012-03-08 00:33:14 +0000118#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 1
119#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
120#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
121#define CONFIG_SYS_FSL_RMU
122#define CONFIG_SYS_FSL_SRIO_MSG_UNIT_NUM 2
Kumar Gala243be8e2011-01-19 03:05:26 -0600123
124#elif defined(CONFIG_MPC8572)
125#define CONFIG_MAX_CPUS 2
126#define CONFIG_SYS_FSL_NUM_LAWS 12
Prabhakar Kushwahae4879af2012-08-15 04:12:43 +0000127#define CONFIG_SYS_PPC_E500_DEBUG_TLB 2
Kumar Gala243be8e2011-01-19 03:05:26 -0600128#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabie46fedf2011-08-04 18:03:41 -0500129#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
York Suneb0aff72011-01-25 21:51:27 -0800130#define CONFIG_SYS_FSL_ERRATUM_DDR_115
York Sun91671912011-01-25 22:05:49 -0800131#define CONFIG_SYS_FSL_ERRATUM_DDR111_DDR134
Kumar Gala243be8e2011-01-19 03:05:26 -0600132
133#elif defined(CONFIG_P1010)
134#define CONFIG_MAX_CPUS 1
Priyanka Jain32c8cfb2011-02-09 09:24:10 +0530135#define CONFIG_FSL_SDHC_V2_3
Kumar Gala243be8e2011-01-19 03:05:26 -0600136#define CONFIG_SYS_FSL_NUM_LAWS 12
Prabhakar Kushwahaad75d442012-04-29 23:57:12 +0000137#define CONFIG_SYS_PPC_E500_DEBUG_TLB 3
Kumar Gala243be8e2011-01-19 03:05:26 -0600138#define CONFIG_TSECV2
139#define CONFIG_SYS_FSL_SEC_COMPAT 4
Poonam Aggrwal1fbf3482011-02-06 11:31:44 +0530140#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
141#define CONFIG_NUM_DDR_CONTROLLERS 1
142#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Gala8f290842011-05-20 00:39:21 -0500143#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.2"
Ramneek Mehresh1b719e62011-03-23 15:20:43 +0530144#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
Poonam Aggrwal42aee642011-06-30 03:00:28 -0500145#define CONFIG_SYS_FSL_ERRATUM_IFC_A002769
Poonam Aggrwalfb855f42011-06-29 16:32:52 +0530146#define CONFIG_SYS_FSL_ERRATUM_P1010_A003549
Poonam Aggrwalbc6bbd62011-07-07 20:36:47 +0530147#define CONFIG_SYS_FSL_ERRATUM_IFC_A003399
Kumar Gala243be8e2011-01-19 03:05:26 -0600148
Kumar Gala093cffb2011-02-05 13:45:07 -0600149/* P1011 is single core version of P1020 */
Kumar Gala243be8e2011-01-19 03:05:26 -0600150#elif defined(CONFIG_P1011)
151#define CONFIG_MAX_CPUS 1
152#define CONFIG_SYS_FSL_NUM_LAWS 12
Prabhakar Kushwahaad75d442012-04-29 23:57:12 +0000153#define CONFIG_SYS_PPC_E500_DEBUG_TLB 2
Kumar Gala243be8e2011-01-19 03:05:26 -0600154#define CONFIG_TSECV2
Prabhakar Kushwahab03a4662011-02-01 15:55:58 +0000155#define CONFIG_FSL_PCIE_DISABLE_ASPM
Kumar Gala243be8e2011-01-19 03:05:26 -0600156#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabie46fedf2011-08-04 18:03:41 -0500157#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Gala093cffb2011-02-05 13:45:07 -0600158#define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
159#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
Kumar Gala243be8e2011-01-19 03:05:26 -0600160
Kumar Gala093cffb2011-02-05 13:45:07 -0600161/* P1012 is single core version of P1021 */
Kumar Gala243be8e2011-01-19 03:05:26 -0600162#elif defined(CONFIG_P1012)
163#define CONFIG_MAX_CPUS 1
164#define CONFIG_SYS_FSL_NUM_LAWS 12
Prabhakar Kushwahaad75d442012-04-29 23:57:12 +0000165#define CONFIG_SYS_PPC_E500_DEBUG_TLB 2
Kumar Gala243be8e2011-01-19 03:05:26 -0600166#define CONFIG_TSECV2
Prabhakar Kushwahab03a4662011-02-01 15:55:58 +0000167#define CONFIG_FSL_PCIE_DISABLE_ASPM
Kumar Gala243be8e2011-01-19 03:05:26 -0600168#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabie46fedf2011-08-04 18:03:41 -0500169#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Gala093cffb2011-02-05 13:45:07 -0600170#define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
171#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
Haiying Wanga52d2f82011-02-11 01:25:30 -0600172#define QE_MURAM_SIZE 0x6000UL
173#define MAX_QE_RISC 1
174#define QE_NUM_OF_SNUM 28
Kumar Gala243be8e2011-01-19 03:05:26 -0600175
Kumar Gala093cffb2011-02-05 13:45:07 -0600176/* P1013 is single core version of P1022 */
Kumar Gala243be8e2011-01-19 03:05:26 -0600177#elif defined(CONFIG_P1013)
178#define CONFIG_MAX_CPUS 1
179#define CONFIG_SYS_FSL_NUM_LAWS 12
Prabhakar Kushwahaad75d442012-04-29 23:57:12 +0000180#define CONFIG_SYS_PPC_E500_DEBUG_TLB 2
Kumar Gala243be8e2011-01-19 03:05:26 -0600181#define CONFIG_TSECV2
182#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabie46fedf2011-08-04 18:03:41 -0500183#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Jiang Yutang2d7534a2011-01-30 17:06:20 -0600184#define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
185#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
186#define CONFIG_FSL_SATA_ERRATUM_A001
Kumar Gala243be8e2011-01-19 03:05:26 -0600187
188#elif defined(CONFIG_P1014)
189#define CONFIG_MAX_CPUS 1
Priyanka Jain32c8cfb2011-02-09 09:24:10 +0530190#define CONFIG_FSL_SDHC_V2_3
Kumar Gala243be8e2011-01-19 03:05:26 -0600191#define CONFIG_SYS_FSL_NUM_LAWS 12
Prabhakar Kushwahaad75d442012-04-29 23:57:12 +0000192#define CONFIG_SYS_PPC_E500_DEBUG_TLB 3
Kumar Gala243be8e2011-01-19 03:05:26 -0600193#define CONFIG_TSECV2
194#define CONFIG_SYS_FSL_SEC_COMPAT 4
Poonam Aggrwal1fbf3482011-02-06 11:31:44 +0530195#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
196#define CONFIG_NUM_DDR_CONTROLLERS 1
197#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Ramneek Mehresh1b719e62011-03-23 15:20:43 +0530198#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
Poonam Aggrwal42aee642011-06-30 03:00:28 -0500199#define CONFIG_SYS_FSL_ERRATUM_IFC_A002769
Poonam Aggrwalfb855f42011-06-29 16:32:52 +0530200#define CONFIG_SYS_FSL_ERRATUM_P1010_A003549
Poonam Aggrwalbc6bbd62011-07-07 20:36:47 +0530201#define CONFIG_SYS_FSL_ERRATUM_IFC_A003399
Kumar Gala243be8e2011-01-19 03:05:26 -0600202
Kumar Gala093cffb2011-02-05 13:45:07 -0600203/* P1017 is single core version of P1023 */
Roy Zang67a719d2011-02-03 22:14:19 -0600204#elif defined(CONFIG_P1017)
205#define CONFIG_MAX_CPUS 1
206#define CONFIG_SYS_FSL_NUM_LAWS 12
207#define CONFIG_SYS_FSL_SEC_COMPAT 4
208#define CONFIG_SYS_NUM_FMAN 1
209#define CONFIG_SYS_NUM_FM1_DTSEC 2
210#define CONFIG_NUM_DDR_CONTROLLERS 1
211#define CONFIG_SYS_QMAN_NUM_PORTALS 3
212#define CONFIG_SYS_BMAN_NUM_PORTALS 3
Kumar Galac657d892011-02-04 00:43:34 -0600213#define CONFIG_SYS_FM_MURAM_SIZE 0x10000
Kumar Gala8f290842011-05-20 00:39:21 -0500214#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.2"
Timur Tabie46fedf2011-08-04 18:03:41 -0500215#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff600000
Roy Zang67a719d2011-02-03 22:14:19 -0600216
Kumar Gala243be8e2011-01-19 03:05:26 -0600217#elif defined(CONFIG_P1020)
218#define CONFIG_MAX_CPUS 2
219#define CONFIG_SYS_FSL_NUM_LAWS 12
Prabhakar Kushwahaad75d442012-04-29 23:57:12 +0000220#define CONFIG_SYS_PPC_E500_DEBUG_TLB 2
Kumar Gala243be8e2011-01-19 03:05:26 -0600221#define CONFIG_TSECV2
Prabhakar Kushwahab03a4662011-02-01 15:55:58 +0000222#define CONFIG_FSL_PCIE_DISABLE_ASPM
Kumar Gala243be8e2011-01-19 03:05:26 -0600223#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabie46fedf2011-08-04 18:03:41 -0500224#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Gala093cffb2011-02-05 13:45:07 -0600225#define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
226#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
Kumar Gala243be8e2011-01-19 03:05:26 -0600227
228#elif defined(CONFIG_P1021)
229#define CONFIG_MAX_CPUS 2
230#define CONFIG_SYS_FSL_NUM_LAWS 12
Prabhakar Kushwahaad75d442012-04-29 23:57:12 +0000231#define CONFIG_SYS_PPC_E500_DEBUG_TLB 2
Kumar Gala243be8e2011-01-19 03:05:26 -0600232#define CONFIG_TSECV2
Prabhakar Kushwahab03a4662011-02-01 15:55:58 +0000233#define CONFIG_FSL_PCIE_DISABLE_ASPM
Kumar Gala243be8e2011-01-19 03:05:26 -0600234#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabie46fedf2011-08-04 18:03:41 -0500235#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Gala093cffb2011-02-05 13:45:07 -0600236#define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
237#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
Haiying Wanga52d2f82011-02-11 01:25:30 -0600238#define QE_MURAM_SIZE 0x6000UL
239#define MAX_QE_RISC 1
240#define QE_NUM_OF_SNUM 28
Kumar Gala243be8e2011-01-19 03:05:26 -0600241
242#elif defined(CONFIG_P1022)
243#define CONFIG_MAX_CPUS 2
244#define CONFIG_SYS_FSL_NUM_LAWS 12
Prabhakar Kushwahaad75d442012-04-29 23:57:12 +0000245#define CONFIG_SYS_PPC_E500_DEBUG_TLB 2
Kumar Gala243be8e2011-01-19 03:05:26 -0600246#define CONFIG_TSECV2
247#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabie46fedf2011-08-04 18:03:41 -0500248#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Jiang Yutang2d7534a2011-01-30 17:06:20 -0600249#define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
250#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
251#define CONFIG_FSL_SATA_ERRATUM_A001
Kumar Gala243be8e2011-01-19 03:05:26 -0600252
Roy Zang67a719d2011-02-03 22:14:19 -0600253#elif defined(CONFIG_P1023)
254#define CONFIG_MAX_CPUS 2
255#define CONFIG_SYS_FSL_NUM_LAWS 12
256#define CONFIG_SYS_FSL_SEC_COMPAT 4
257#define CONFIG_SYS_NUM_FMAN 1
258#define CONFIG_SYS_NUM_FM1_DTSEC 2
259#define CONFIG_NUM_DDR_CONTROLLERS 1
260#define CONFIG_SYS_QMAN_NUM_PORTALS 3
261#define CONFIG_SYS_BMAN_NUM_PORTALS 3
Kumar Galac657d892011-02-04 00:43:34 -0600262#define CONFIG_SYS_FM_MURAM_SIZE 0x10000
Kumar Gala8f290842011-05-20 00:39:21 -0500263#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.2"
Timur Tabie46fedf2011-08-04 18:03:41 -0500264#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff600000
Roy Zang67a719d2011-02-03 22:14:19 -0600265
Kumar Gala093cffb2011-02-05 13:45:07 -0600266/* P1024 is lower end variant of P1020 */
267#elif defined(CONFIG_P1024)
268#define CONFIG_MAX_CPUS 2
269#define CONFIG_SYS_FSL_NUM_LAWS 12
Prabhakar Kushwahaad75d442012-04-29 23:57:12 +0000270#define CONFIG_SYS_PPC_E500_DEBUG_TLB 2
Kumar Gala093cffb2011-02-05 13:45:07 -0600271#define CONFIG_TSECV2
272#define CONFIG_FSL_PCIE_DISABLE_ASPM
273#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabie46fedf2011-08-04 18:03:41 -0500274#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Gala093cffb2011-02-05 13:45:07 -0600275#define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
276#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
277
278/* P1025 is lower end variant of P1021 */
279#elif defined(CONFIG_P1025)
280#define CONFIG_MAX_CPUS 2
281#define CONFIG_SYS_FSL_NUM_LAWS 12
Prabhakar Kushwahaad75d442012-04-29 23:57:12 +0000282#define CONFIG_SYS_PPC_E500_DEBUG_TLB 2
Kumar Gala093cffb2011-02-05 13:45:07 -0600283#define CONFIG_TSECV2
284#define CONFIG_FSL_PCIE_DISABLE_ASPM
285#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabie46fedf2011-08-04 18:03:41 -0500286#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Gala093cffb2011-02-05 13:45:07 -0600287#define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
288#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
Haiying Wanga52d2f82011-02-11 01:25:30 -0600289#define QE_MURAM_SIZE 0x6000UL
290#define MAX_QE_RISC 1
291#define QE_NUM_OF_SNUM 28
Kumar Gala093cffb2011-02-05 13:45:07 -0600292
293/* P2010 is single core version of P2020 */
Kumar Gala243be8e2011-01-19 03:05:26 -0600294#elif defined(CONFIG_P2010)
295#define CONFIG_MAX_CPUS 1
296#define CONFIG_SYS_FSL_NUM_LAWS 12
Prabhakar Kushwahaad75d442012-04-29 23:57:12 +0000297#define CONFIG_SYS_PPC_E500_DEBUG_TLB 2
Kumar Gala243be8e2011-01-19 03:05:26 -0600298#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabie46fedf2011-08-04 18:03:41 -0500299#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Gala6e7f0bc02011-01-26 01:43:15 -0600300#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
Kumar Gala5103a032011-01-29 15:36:10 -0600301#define CONFIG_SYS_FSL_ERRATUM_ESDHC_A001
Kumar Gala243be8e2011-01-19 03:05:26 -0600302
303#elif defined(CONFIG_P2020)
304#define CONFIG_MAX_CPUS 2
305#define CONFIG_SYS_FSL_NUM_LAWS 12
Prabhakar Kushwahaad75d442012-04-29 23:57:12 +0000306#define CONFIG_SYS_PPC_E500_DEBUG_TLB 2
Kumar Gala243be8e2011-01-19 03:05:26 -0600307#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabie46fedf2011-08-04 18:03:41 -0500308#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Gala6e7f0bc02011-01-26 01:43:15 -0600309#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
Kumar Gala5103a032011-01-29 15:36:10 -0600310#define CONFIG_SYS_FSL_ERRATUM_ESDHC_A001
Liu Gang7d67ed52012-03-08 00:33:14 +0000311#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 2
312#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
313#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
314#define CONFIG_SYS_FSL_RMU
315#define CONFIG_SYS_FSL_SRIO_MSG_UNIT_NUM 2
Kumar Gala243be8e2011-01-19 03:05:26 -0600316
Scott Wood3e978f52012-08-14 10:14:51 +0000317#elif defined(CONFIG_PPC_P2041) /* also supports P2040 */
York Sund1001e32012-10-08 07:44:15 +0000318#define CONFIG_SYS_FSL_QORIQ_CHASSIS1
Kumar Gala1f979872011-05-13 01:16:07 -0500319#define CONFIG_MAX_CPUS 4
320#define CONFIG_SYS_FSL_NUM_CC_PLLS 2
321#define CONFIG_SYS_FSL_NUM_LAWS 32
322#define CONFIG_SYS_FSL_SEC_COMPAT 4
323#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 1
327#define CONFIG_SYS_FM_MURAM_SIZE 0x28000
328#define CONFIG_SYS_FSL_TBCLK_DIV 32
329#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.2"
Timur Tabie46fedf2011-08-04 18:03:41 -0500330#define CONFIG_SYS_CCSRBAR_DEFAULT 0xfe000000
Kumar Gala1f979872011-05-13 01:16:07 -0500331#define CONFIG_SYS_FSL_USB1_PHY_ENABLE
332#define CONFIG_SYS_FSL_USB2_PHY_ENABLE
Kumar Galab6c37222011-04-13 00:19:10 -0500333#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
Kumar Gala1f979872011-05-13 01:16:07 -0500334#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
York Sun5e23ab02012-05-07 07:26:47 +0000335#define CONFIG_SYS_FSL_ERRATUM_NMG_CPU_A011
Xulei99d7b0a2013-03-11 17:56:34 +0000336#define CONFIG_SYS_FSL_ERRATUM_USB14
Kumar Gala43f082b2011-11-22 06:51:15 -0600337#define CONFIG_SYS_FSL_ERRATUM_CPU_A003999
York Sune22be772013-03-25 07:30:11 +0000338#define CONFIG_SYS_FSL_ERRATUM_DDR_A003
York Sun41085082011-11-20 10:01:35 -0800339#define CONFIG_SYS_FSL_ERRATUM_DDR_A003474
Liu Gang19e4a002012-10-14 20:55:17 +0000340#define CONFIG_SYS_FSL_SRIO_PCIE_BOOT_MASTER
Liu Gang7d67ed52012-03-08 00:33:14 +0000341#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 2
342#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
343#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
Scott Wood33eee332012-08-14 10:14:53 +0000344#define CONFIG_SYS_FSL_ERRATUM_A004510
345#define CONFIG_SYS_FSL_ERRATUM_A004510_SVR_REV 0x10
346#define CONFIG_SYS_FSL_ERRATUM_A004510_SVR_REV2 0x11
347#define CONFIG_SYS_FSL_CORENET_SNOOPVEC_COREONLY 0xf0000000
Liu Gangd59c5572012-09-28 21:26:19 +0000348#define CONFIG_SYS_FSL_ERRATUM_SRIO_A004034
Timur Tabi01180332012-10-25 12:40:00 +0000349#define CONFIG_SYS_FSL_ERRATUM_A004849
Kumar Gala1f979872011-05-13 01:16:07 -0500350
Kumar Gala243be8e2011-01-19 03:05:26 -0600351#elif defined(CONFIG_PPC_P3041)
York Sund1001e32012-10-08 07:44:15 +0000352#define CONFIG_SYS_FSL_QORIQ_CHASSIS1
Kumar Gala243be8e2011-01-19 03:05:26 -0600353#define CONFIG_MAX_CPUS 4
Kumar Galab5c87532011-02-16 02:03:29 -0600354#define CONFIG_SYS_FSL_NUM_CC_PLLS 2
Kumar Gala243be8e2011-01-19 03:05:26 -0600355#define CONFIG_SYS_FSL_NUM_LAWS 32
356#define CONFIG_SYS_FSL_SEC_COMPAT 4
Kumar Galafbee0f72011-01-25 12:42:32 -0600357#define CONFIG_SYS_NUM_FMAN 1
358#define CONFIG_SYS_NUM_FM1_DTSEC 5
359#define CONFIG_SYS_NUM_FM1_10GEC 1
360#define CONFIG_NUM_DDR_CONTROLLERS 1
Kumar Galac657d892011-02-04 00:43:34 -0600361#define CONFIG_SYS_FM_MURAM_SIZE 0x28000
Kumar Gala66412c62011-02-18 05:40:54 -0600362#define CONFIG_SYS_FSL_TBCLK_DIV 32
Kumar Gala8f290842011-05-20 00:39:21 -0500363#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.2"
Timur Tabie46fedf2011-08-04 18:03:41 -0500364#define CONFIG_SYS_CCSRBAR_DEFAULT 0xfe000000
Roy Zang86221f02011-04-13 00:08:51 -0500365#define CONFIG_SYS_FSL_USB1_PHY_ENABLE
366#define CONFIG_SYS_FSL_USB2_PHY_ENABLE
Kumar Galab6c37222011-04-13 00:19:10 -0500367#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
Lei Xu30009762011-04-19 15:28:41 +0800368#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
York Sun57125f22012-08-08 18:04:53 +0000369#define CONFIG_SYS_FSL_ERRATUM_NMG_CPU_A011
Xulei99d7b0a2013-03-11 17:56:34 +0000370#define CONFIG_SYS_FSL_ERRATUM_USB14
Kumar Gala43f082b2011-11-22 06:51:15 -0600371#define CONFIG_SYS_FSL_ERRATUM_CPU_A003999
York Sune22be772013-03-25 07:30:11 +0000372#define CONFIG_SYS_FSL_ERRATUM_DDR_A003
York Sun41085082011-11-20 10:01:35 -0800373#define CONFIG_SYS_FSL_ERRATUM_DDR_A003474
Liu Gang19e4a002012-10-14 20:55:17 +0000374#define CONFIG_SYS_FSL_SRIO_PCIE_BOOT_MASTER
Liu Gang7d67ed52012-03-08 00:33:14 +0000375#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 2
376#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
377#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
Scott Wood33eee332012-08-14 10:14:53 +0000378#define CONFIG_SYS_FSL_ERRATUM_A004510
379#define CONFIG_SYS_FSL_ERRATUM_A004510_SVR_REV 0x10
380#define CONFIG_SYS_FSL_ERRATUM_A004510_SVR_REV2 0x11
381#define CONFIG_SYS_FSL_CORENET_SNOOPVEC_COREONLY 0xf0000000
Liu Gangd59c5572012-09-28 21:26:19 +0000382#define CONFIG_SYS_FSL_ERRATUM_SRIO_A004034
Timur Tabi01180332012-10-25 12:40:00 +0000383#define CONFIG_SYS_FSL_ERRATUM_A004849
Kumar Gala243be8e2011-01-19 03:05:26 -0600384
Scott Wood3e978f52012-08-14 10:14:51 +0000385#elif defined(CONFIG_PPC_P4080) /* also supports P4040 */
York Sund1001e32012-10-08 07:44:15 +0000386#define CONFIG_SYS_FSL_QORIQ_CHASSIS1
Kumar Gala243be8e2011-01-19 03:05:26 -0600387#define CONFIG_MAX_CPUS 8
Kumar Galab5c87532011-02-16 02:03:29 -0600388#define CONFIG_SYS_FSL_NUM_CC_PLLS 4
Kumar Gala243be8e2011-01-19 03:05:26 -0600389#define CONFIG_SYS_FSL_NUM_LAWS 32
390#define CONFIG_SYS_FSL_SEC_COMPAT 4
391#define CONFIG_SYS_NUM_FMAN 2
392#define CONFIG_SYS_NUM_FM1_DTSEC 4
393#define CONFIG_SYS_NUM_FM2_DTSEC 4
394#define CONFIG_SYS_NUM_FM1_10GEC 1
395#define CONFIG_SYS_NUM_FM2_10GEC 1
396#define CONFIG_NUM_DDR_CONTROLLERS 2
Kumar Galac657d892011-02-04 00:43:34 -0600397#define CONFIG_SYS_FM_MURAM_SIZE 0x28000
Kumar Gala66412c62011-02-18 05:40:54 -0600398#define CONFIG_SYS_FSL_TBCLK_DIV 16
Kumar Gala8f290842011-05-20 00:39:21 -0500399#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,p4080-pcie"
Timur Tabie46fedf2011-08-04 18:03:41 -0500400#define CONFIG_SYS_CCSRBAR_DEFAULT 0xfe000000
Kumar Gala243be8e2011-01-19 03:05:26 -0600401#define CONFIG_SYS_FSL_ERRATUM_CPC_A002
402#define CONFIG_SYS_FSL_ERRATUM_CPC_A003
York Sunfa8d23c2011-01-10 12:03:01 +0000403#define CONFIG_SYS_FSL_ERRATUM_DDR_A003
Kumar Gala243be8e2011-01-19 03:05:26 -0600404#define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
405#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
406#define CONFIG_SYS_FSL_ERRATUM_ESDHC135
Zang Roy-R619114e0be342012-09-18 09:50:08 +0000407#define CONFIG_SYS_FSL_ERRATUM_ESDHC13
Kumar Gala243be8e2011-01-19 03:05:26 -0600408#define CONFIG_SYS_P4080_ERRATUM_CPU22
York Sun5e23ab02012-05-07 07:26:47 +0000409#define CONFIG_SYS_FSL_ERRATUM_NMG_CPU_A011
Kumar Gala243be8e2011-01-19 03:05:26 -0600410#define CONFIG_SYS_P4080_ERRATUM_SERDES8
Emil Medvedf8af0b2010-08-31 22:57:38 -0500411#define CONFIG_SYS_P4080_ERRATUM_SERDES9
Timur Tabid90fdba2011-04-18 17:16:00 -0500412#define CONFIG_SYS_P4080_ERRATUM_SERDES_A001
Timur Tabida30b9f2011-04-01 13:19:36 -0500413#define CONFIG_SYS_P4080_ERRATUM_SERDES_A005
Kumar Gala43f082b2011-11-22 06:51:15 -0600414#define CONFIG_SYS_FSL_ERRATUM_CPU_A003999
York Sun41085082011-11-20 10:01:35 -0800415#define CONFIG_SYS_FSL_ERRATUM_DDR_A003474
Liu Gang19e4a002012-10-14 20:55:17 +0000416#define CONFIG_SYS_FSL_SRIO_PCIE_BOOT_MASTER
Liu Gang7d67ed52012-03-08 00:33:14 +0000417#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 2
418#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
419#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
420#define CONFIG_SYS_FSL_RMU
421#define CONFIG_SYS_FSL_SRIO_MSG_UNIT_NUM 2
Scott Wood33eee332012-08-14 10:14:53 +0000422#define CONFIG_SYS_FSL_ERRATUM_A004510
423#define CONFIG_SYS_FSL_ERRATUM_A004510_SVR_REV 0x20
424#define CONFIG_SYS_FSL_CORENET_SNOOPVEC_COREONLY 0xff000000
Liu Gangd59c5572012-09-28 21:26:19 +0000425#define CONFIG_SYS_FSL_ERRATUM_SRIO_A004034
Timur Tabi01180332012-10-25 12:40:00 +0000426#define CONFIG_SYS_FSL_ERRATUM_A004849
Timur Tabid607b962012-11-01 08:20:23 +0000427#define CONFIG_SYS_FSL_ERRATUM_A004580
Yuanquan Chenc0a4e6b2012-11-26 23:49:45 +0000428#define CONFIG_SYS_P4080_ERRATUM_PCIE_A003
Kumar Gala243be8e2011-01-19 03:05:26 -0600429
Scott Wood3e978f52012-08-14 10:14:51 +0000430#elif defined(CONFIG_PPC_P5020) /* also supports P5010 */
York Sunffd06e02012-10-08 07:44:30 +0000431#define CONFIG_SYS_PPC64 /* 64-bit core */
York Sund1001e32012-10-08 07:44:15 +0000432#define CONFIG_SYS_FSL_QORIQ_CHASSIS1
Kumar Gala243be8e2011-01-19 03:05:26 -0600433#define CONFIG_MAX_CPUS 2
Kumar Galab5c87532011-02-16 02:03:29 -0600434#define CONFIG_SYS_FSL_NUM_CC_PLLS 2
Kumar Gala243be8e2011-01-19 03:05:26 -0600435#define CONFIG_SYS_FSL_NUM_LAWS 32
436#define CONFIG_SYS_FSL_SEC_COMPAT 4
Kumar Galafbee0f72011-01-25 12:42:32 -0600437#define CONFIG_SYS_NUM_FMAN 1
438#define CONFIG_SYS_NUM_FM1_DTSEC 5
439#define CONFIG_SYS_NUM_FM1_10GEC 1
440#define CONFIG_NUM_DDR_CONTROLLERS 2
Kumar Galac657d892011-02-04 00:43:34 -0600441#define CONFIG_SYS_FM_MURAM_SIZE 0x28000
Kumar Gala66412c62011-02-18 05:40:54 -0600442#define CONFIG_SYS_FSL_TBCLK_DIV 32
Kumar Gala8f290842011-05-20 00:39:21 -0500443#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.2"
Timur Tabie46fedf2011-08-04 18:03:41 -0500444#define CONFIG_SYS_CCSRBAR_DEFAULT 0xfe000000
Roy Zang86221f02011-04-13 00:08:51 -0500445#define CONFIG_SYS_FSL_USB1_PHY_ENABLE
446#define CONFIG_SYS_FSL_USB2_PHY_ENABLE
Kumar Galab6c37222011-04-13 00:19:10 -0500447#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
Lei Xu30009762011-04-19 15:28:41 +0800448#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
Xulei99d7b0a2013-03-11 17:56:34 +0000449#define CONFIG_SYS_FSL_ERRATUM_USB14
York Sune22be772013-03-25 07:30:11 +0000450#define CONFIG_SYS_FSL_ERRATUM_DDR_A003
York Sun41085082011-11-20 10:01:35 -0800451#define CONFIG_SYS_FSL_ERRATUM_DDR_A003474
Liu Gang19e4a002012-10-14 20:55:17 +0000452#define CONFIG_SYS_FSL_SRIO_PCIE_BOOT_MASTER
Liu Gang7d67ed52012-03-08 00:33:14 +0000453#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 2
454#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
455#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
Scott Wood33eee332012-08-14 10:14:53 +0000456#define CONFIG_SYS_FSL_ERRATUM_A004510
457#define CONFIG_SYS_FSL_ERRATUM_A004510_SVR_REV 0x10
458#define CONFIG_SYS_FSL_CORENET_SNOOPVEC_COREONLY 0xc0000000
Liu Gangd59c5572012-09-28 21:26:19 +0000459#define CONFIG_SYS_FSL_ERRATUM_SRIO_A004034
Kumar Gala243be8e2011-01-19 03:05:26 -0600460
Timur Tabi49054432012-10-05 11:09:19 +0000461#elif defined(CONFIG_PPC_P5040)
Timur Tabi1956e432012-10-23 10:48:09 +0000462#define CONFIG_SYS_PPC64
Timur Tabi49054432012-10-05 11:09:19 +0000463#define CONFIG_SYS_FSL_QORIQ_CHASSIS1
464#define CONFIG_MAX_CPUS 4
465#define CONFIG_SYS_FSL_NUM_CC_PLLS 3
466#define CONFIG_SYS_FSL_NUM_LAWS 32
467#define CONFIG_SYS_FSL_SEC_COMPAT 4
468#define CONFIG_SYS_NUM_FMAN 2
469#define CONFIG_SYS_NUM_FM1_DTSEC 5
470#define CONFIG_SYS_NUM_FM1_10GEC 1
471#define CONFIG_SYS_NUM_FM2_DTSEC 5
472#define CONFIG_SYS_NUM_FM2_10GEC 1
473#define CONFIG_NUM_DDR_CONTROLLERS 2
474#define CONFIG_SYS_FM_MURAM_SIZE 0x28000
475#define CONFIG_SYS_FSL_TBCLK_DIV 16
476#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.4"
477#define CONFIG_SYS_CCSRBAR_DEFAULT 0xfe000000
478#define CONFIG_SYS_FSL_USB1_PHY_ENABLE
479#define CONFIG_SYS_FSL_USB2_PHY_ENABLE
480#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
481#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
Xulei99d7b0a2013-03-11 17:56:34 +0000482#define CONFIG_SYS_FSL_ERRATUM_USB14
Timur Tabi49054432012-10-05 11:09:19 +0000483#define CONFIG_SYS_FSL_ERRATUM_DDR_A003
484#define CONFIG_SYS_FSL_ERRATUM_DDR_A003474
485#define CONFIG_SYS_FSL_ERRATUM_A004699
Timur Tabi49054432012-10-05 11:09:19 +0000486#define CONFIG_SYS_FSL_ERRATUM_A004510
487#define CONFIG_SYS_FSL_ERRATUM_A004510_SVR_REV 0x10
488#define CONFIG_SYS_FSL_CORENET_SNOOPVEC_COREONLY 0xf0000000
489
Prabhakar Kushwaha19a8dbd2012-04-24 20:16:49 +0000490#elif defined(CONFIG_BSC9131)
491#define CONFIG_MAX_CPUS 1
492#define CONFIG_FSL_SDHC_V2_3
493#define CONFIG_SYS_FSL_NUM_LAWS 12
494#define CONFIG_TSECV2
495#define CONFIG_SYS_FSL_SEC_COMPAT 4
496#define CONFIG_NUM_DDR_CONTROLLERS 1
497#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
498#define CONFIG_NAND_FSL_IFC
Prabhakar Kushwaha19a8dbd2012-04-24 20:16:49 +0000499#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
500
Prabhakar Kushwaha35fe9482013-01-23 17:59:57 +0000501#elif defined(CONFIG_BSC9132)
502#define CONFIG_MAX_CPUS 2
503#define CONFIG_SYS_PPC_E500_DEBUG_TLB 3
504#define CONFIG_FSL_SDHC_V2_3
505#define CONFIG_SYS_FSL_NUM_LAWS 12
506#define CONFIG_TSECV2
507#define CONFIG_SYS_FSL_SEC_COMPAT 4
508#define CONFIG_NUM_DDR_CONTROLLERS 2
509#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
510#define CONFIG_NAND_FSL_IFC
Prabhakar Kushwaha35fe9482013-01-23 17:59:57 +0000511#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
512#define CONFIG_SYS_FSL_ESDHC_P1010_BROKEN_SDCLK
513#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.2"
514
York Sun9e758752012-10-08 07:44:19 +0000515#elif defined(CONFIG_PPC_T4240)
York Sunffd06e02012-10-08 07:44:30 +0000516#define CONFIG_SYS_PPC64 /* 64-bit core */
York Sun9e758752012-10-08 07:44:19 +0000517#define CONFIG_FSL_CORENET /* Freescale CoreNet platform */
518#define CONFIG_SYS_FSL_QORIQ_CHASSIS2 /* Freescale Chassis generation 2 */
519#define CONFIG_SYS_FSL_QMAN_V3 /* QMAN version 3 */
520#define CONFIG_MAX_CPUS 12
521#define CONFIG_SYS_FSL_NUM_CC_PLLS 5
522#define CONFIG_SYS_FSL_NUM_LAWS 32
523#define CONFIG_SYS_FSL_SRDS_3
524#define CONFIG_SYS_FSL_SRDS_4
525#define CONFIG_SYS_FSL_SEC_COMPAT 4
526#define CONFIG_SYS_NUM_FMAN 2
527#define CONFIG_SYS_NUM_FM1_DTSEC 8
528#define CONFIG_SYS_NUM_FM1_10GEC 2
529#define CONFIG_SYS_NUM_FM2_DTSEC 8
530#define CONFIG_SYS_NUM_FM2_10GEC 2
531#define CONFIG_NUM_DDR_CONTROLLERS 3
532#define CONFIG_SYS_FSL_DDR_VER FSL_DDR_VER_4_7
Roy Zang111fd192012-10-08 07:44:21 +0000533#define CONFIG_SYS_FMAN_V3
York Sun9e758752012-10-08 07:44:19 +0000534#define CONFIG_SYS_FM_MURAM_SIZE 0x60000
535#define CONFIG_SYS_FSL_TBCLK_DIV 16
536#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v3.0"
537#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 2
538#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
539#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
540#define CONFIG_SYS_FSL_USB1_PHY_ENABLE
541#define CONFIG_SYS_FSL_USB2_PHY_ENABLE
542#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
York Suneb539412012-10-08 07:44:25 +0000543#define CONFIG_SYS_FSL_ERRATUM_A004468
York Suna1d558a2012-10-08 07:44:26 +0000544#define CONFIG_SYS_FSL_ERRATUM_A_004934
Shengzhou Liu72bd83c2013-01-23 19:56:23 +0000545#define CONFIG_SYS_FSL_ERRATUM_A005871
York Sun9e758752012-10-08 07:44:19 +0000546#define CONFIG_SYS_CCSRBAR_DEFAULT 0xfe000000
547
Poonam Aggrwale1dbdd82012-12-23 19:24:16 +0000548#elif defined(CONFIG_PPC_B4420)
549#define CONFIG_SYS_PPC64 /* 64-bit core */
550#define CONFIG_FSL_CORENET /* Freescale CoreNet platform */
551#define CONFIG_SYS_FSL_QORIQ_CHASSIS2 /* Freescale Chassis generation 2 */
552#define CONFIG_SYS_FSL_QMAN_V3 /* QMAN version 3 */
553#define CONFIG_MAX_CPUS 2
554#define CONFIG_SYS_FSL_NUM_CC_PLLS 4
555#define CONFIG_SYS_FSL_NUM_LAWS 32
556#define CONFIG_SYS_FSL_SEC_COMPAT 4
557#define CONFIG_SYS_NUM_FMAN 1
558#define CONFIG_SYS_NUM_FM1_DTSEC 4
559#define CONFIG_NUM_DDR_CONTROLLERS 1
560#define CONFIG_SYS_FSL_DDR_VER FSL_DDR_VER_4_7
561#define CONFIG_SYS_FMAN_V3
562#define CONFIG_SYS_FM_MURAM_SIZE 0x60000
563#define CONFIG_SYS_FSL_TBCLK_DIV 16
564#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.4"
565#define CONFIG_SYS_FSL_USB1_PHY_ENABLE
566#define CONFIG_SYS_FSL_ERRATUM_A_004934
Shengzhou Liu04feb572013-02-27 21:56:54 +0000567#define CONFIG_SYS_FSL_ERRATUM_A005871
Poonam Aggrwale1dbdd82012-12-23 19:24:16 +0000568#define CONFIG_SYS_CCSRBAR_DEFAULT 0xfe000000
569
York Sund2404142012-10-08 07:44:20 +0000570#elif defined(CONFIG_PPC_B4860)
York Sunffd06e02012-10-08 07:44:30 +0000571#define CONFIG_SYS_PPC64 /* 64-bit core */
York Sund2404142012-10-08 07:44:20 +0000572#define CONFIG_FSL_CORENET /* Freescale CoreNet platform */
573#define CONFIG_SYS_FSL_QORIQ_CHASSIS2 /* Freescale Chassis generation 2 */
574#define CONFIG_SYS_FSL_QMAN_V3 /* QMAN version 3 */
575#define CONFIG_MAX_CPUS 4
576#define CONFIG_SYS_FSL_NUM_CC_PLLS 4
577#define CONFIG_SYS_FSL_NUM_LAWS 32
578#define CONFIG_SYS_FSL_SEC_COMPAT 4
579#define CONFIG_SYS_NUM_FMAN 1
580#define CONFIG_SYS_NUM_FM1_DTSEC 6
581#define CONFIG_SYS_NUM_FM1_10GEC 2
Poonam Aggrwale394ceb2012-12-23 19:22:33 +0000582#define CONFIG_NUM_DDR_CONTROLLERS 2
York Sund2404142012-10-08 07:44:20 +0000583#define CONFIG_SYS_FSL_DDR_VER FSL_DDR_VER_4_7
Roy Zang111fd192012-10-08 07:44:21 +0000584#define CONFIG_SYS_FMAN_V3
York Sund2404142012-10-08 07:44:20 +0000585#define CONFIG_SYS_FM_MURAM_SIZE 0x60000
586#define CONFIG_SYS_FSL_TBCLK_DIV 16
587#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.4"
588#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 2
589#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
590#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
591#define CONFIG_SYS_FSL_USB1_PHY_ENABLE
592#define CONFIG_SYS_FSL_ERRATUM_A_004934
Shengzhou Liu04feb572013-02-27 21:56:54 +0000593#define CONFIG_SYS_FSL_ERRATUM_A005871
York Sund2404142012-10-08 07:44:20 +0000594#define CONFIG_SYS_CCSRBAR_DEFAULT 0xfe000000
595
Kumar Gala243be8e2011-01-19 03:05:26 -0600596#else
597#error Processor type not defined for this platform
598#endif
599
Timur Tabie46fedf2011-08-04 18:03:41 -0500600#ifndef CONFIG_SYS_CCSRBAR_DEFAULT
601#error "CONFIG_SYS_CCSRBAR_DEFAULT is not defined for this platform."
602#endif
603
Kumar Gala243be8e2011-01-19 03:05:26 -0600604#endif /* _ASM_MPC85xx_CONFIG_H_ */