blob: b51d383799a72448c08f42026d1a9d36ddcdcfd2 [file] [log] [blame]
Kumar Galafe137112011-01-19 03:05:26 -06001/*
Prabhakar Kushwahabeebb882012-04-24 20:16:49 +00002 * Copyright 2011-2012 Freescale Semiconductor, Inc.
Kumar Galafe137112011-01-19 03:05:26 -06003 *
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02004 * SPDX-License-Identifier: GPL-2.0+
Kumar Galafe137112011-01-19 03:05:26 -06005 */
6
7#ifndef _ASM_MPC85xx_CONFIG_H_
8#define _ASM_MPC85xx_CONFIG_H_
9
10/* SoC specific defines for Freescale MPC85xx (PQ3) and QorIQ processors */
11
Timur Tabid8f341c2011-08-04 18:03:41 -050012#ifdef CONFIG_SYS_CCSRBAR_DEFAULT
13#error "Do not define CONFIG_SYS_CCSRBAR_DEFAULT in the board header file."
14#endif
15
York Sunf066a042012-10-28 08:12:54 +000016/*
17 * This macro should be removed when we no longer care about backwards
18 * compatibility with older operating systems.
19 */
20#define CONFIG_PPC_SPINTABLE_COMPATIBLE
21
York Sun7d69ea32012-10-08 07:44:22 +000022#define FSL_DDR_VER_4_7 47
Prabhakar Kushwaha78512532013-09-03 11:19:54 +053023#define FSL_DDR_VER_5_0 50
York Sun7d69ea32012-10-08 07:44:22 +000024
Kumar Galafe137112011-01-19 03:05:26 -060025/* Number of TLB CAM entries we have on FSL Book-E chips */
26#if defined(CONFIG_E500MC)
27#define CONFIG_SYS_NUM_TLBCAMS 64
28#elif defined(CONFIG_E500)
29#define CONFIG_SYS_NUM_TLBCAMS 16
30#endif
31
32#if defined(CONFIG_MPC8536)
33#define CONFIG_MAX_CPUS 1
34#define CONFIG_SYS_FSL_NUM_LAWS 12
Prabhakar Kushwaha826cf622012-08-15 04:12:43 +000035#define CONFIG_SYS_PPC_E500_DEBUG_TLB 1
Kumar Galafe137112011-01-19 03:05:26 -060036#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabid8f341c2011-08-04 18:03:41 -050037#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
York Sun0cc59072013-08-20 15:09:43 -070038#define CONFIG_SYS_FSL_ERRATUM_A005125
Kumar Galafe137112011-01-19 03:05:26 -060039
Wolfgang Denka4de8352011-02-02 22:36:10 +010040#elif defined(CONFIG_MPC8540)
Kumar Galafe137112011-01-19 03:05:26 -060041#define CONFIG_MAX_CPUS 1
42#define CONFIG_SYS_FSL_NUM_LAWS 8
Timur Tabid8f341c2011-08-04 18:03:41 -050043#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Galafe137112011-01-19 03:05:26 -060044
Wolfgang Denka4de8352011-02-02 22:36:10 +010045#elif defined(CONFIG_MPC8541)
Kumar Galafe137112011-01-19 03:05:26 -060046#define CONFIG_MAX_CPUS 1
47#define CONFIG_SYS_FSL_NUM_LAWS 8
48#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabid8f341c2011-08-04 18:03:41 -050049#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Galafe137112011-01-19 03:05:26 -060050
51#elif defined(CONFIG_MPC8544)
52#define CONFIG_MAX_CPUS 1
53#define CONFIG_SYS_FSL_NUM_LAWS 10
Prabhakar Kushwaha826cf622012-08-15 04:12:43 +000054#define CONFIG_SYS_PPC_E500_DEBUG_TLB 0
Kumar Galafe137112011-01-19 03:05:26 -060055#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabid8f341c2011-08-04 18:03:41 -050056#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
York Sun0cc59072013-08-20 15:09:43 -070057#define CONFIG_SYS_FSL_ERRATUM_A005125
Kumar Galafe137112011-01-19 03:05:26 -060058
59#elif defined(CONFIG_MPC8548)
60#define CONFIG_MAX_CPUS 1
61#define CONFIG_SYS_FSL_NUM_LAWS 10
Prabhakar Kushwaha826cf622012-08-15 04:12:43 +000062#define CONFIG_SYS_PPC_E500_DEBUG_TLB 0
Kumar Galafe137112011-01-19 03:05:26 -060063#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
York Sun0cc59072013-08-20 15:09:43 -070073#define CONFIG_SYS_FSL_ERRATUM_A005125
Chunhe Lan92546402013-08-16 15:10:37 +080074#define CONFIG_SYS_FSL_ERRATUM_I2C_A004447
75#define CONFIG_SYS_FSL_A004447_SVR_REV 0x00
Kumar Galafe137112011-01-19 03:05:26 -060076
77#elif defined(CONFIG_MPC8555)
78#define CONFIG_MAX_CPUS 1
79#define CONFIG_SYS_FSL_NUM_LAWS 8
80#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabid8f341c2011-08-04 18:03:41 -050081#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Galafe137112011-01-19 03:05:26 -060082
83#elif defined(CONFIG_MPC8560)
84#define CONFIG_MAX_CPUS 1
85#define CONFIG_SYS_FSL_NUM_LAWS 8
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_MPC8568)
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 0x10000UL
93#define MAX_QE_RISC 2
94#define QE_NUM_OF_SNUM 28
Timur Tabid8f341c2011-08-04 18:03:41 -050095#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Liu Gang78deaa12012-03-08 00:33:14 +000096#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 1
97#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
98#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
99#define CONFIG_SYS_FSL_RMU
100#define CONFIG_SYS_FSL_SRIO_MSG_UNIT_NUM 2
Kumar Galafe137112011-01-19 03:05:26 -0600101
102#elif defined(CONFIG_MPC8569)
103#define CONFIG_MAX_CPUS 1
104#define CONFIG_SYS_FSL_NUM_LAWS 10
105#define CONFIG_SYS_FSL_SEC_COMPAT 2
Kumar Gala52bd8152011-01-31 23:09:25 -0600106#define QE_MURAM_SIZE 0x20000UL
107#define MAX_QE_RISC 4
108#define QE_NUM_OF_SNUM 46
Timur Tabid8f341c2011-08-04 18:03:41 -0500109#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Liu Gang78deaa12012-03-08 00:33:14 +0000110#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 1
111#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
112#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
113#define CONFIG_SYS_FSL_RMU
114#define CONFIG_SYS_FSL_SRIO_MSG_UNIT_NUM 2
York Sun0cc59072013-08-20 15:09:43 -0700115#define CONFIG_SYS_FSL_ERRATUM_A005125
Kumar Galafe137112011-01-19 03:05:26 -0600116
117#elif defined(CONFIG_MPC8572)
118#define CONFIG_MAX_CPUS 2
119#define CONFIG_SYS_FSL_NUM_LAWS 12
Prabhakar Kushwaha826cf622012-08-15 04:12:43 +0000120#define CONFIG_SYS_PPC_E500_DEBUG_TLB 2
Kumar Galafe137112011-01-19 03:05:26 -0600121#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabid8f341c2011-08-04 18:03:41 -0500122#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
York Sun9aa857b2011-01-25 21:51:27 -0800123#define CONFIG_SYS_FSL_ERRATUM_DDR_115
York Sunc8fc9592011-01-25 22:05:49 -0800124#define CONFIG_SYS_FSL_ERRATUM_DDR111_DDR134
York Sun0cc59072013-08-20 15:09:43 -0700125#define CONFIG_SYS_FSL_ERRATUM_A005125
Kumar Galafe137112011-01-19 03:05:26 -0600126
127#elif defined(CONFIG_P1010)
128#define CONFIG_MAX_CPUS 1
Priyanka Jain02449632011-02-09 09:24:10 +0530129#define CONFIG_FSL_SDHC_V2_3
Kumar Galafe137112011-01-19 03:05:26 -0600130#define CONFIG_SYS_FSL_NUM_LAWS 12
Prabhakar Kushwaha3d42a962012-04-29 23:57:12 +0000131#define CONFIG_SYS_PPC_E500_DEBUG_TLB 3
Kumar Galafe137112011-01-19 03:05:26 -0600132#define CONFIG_TSECV2
133#define CONFIG_SYS_FSL_SEC_COMPAT 4
Poonam Aggrwal7373c592011-02-06 11:31:44 +0530134#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
135#define CONFIG_NUM_DDR_CONTROLLERS 1
Mingkai Hu6f024c92013-05-16 10:18:13 +0800136#define CONFIG_SYS_FSL_IFC_BANK_COUNT 4
Poonam Aggrwal7373c592011-02-06 11:31:44 +0530137#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Gala179b1b22011-05-20 00:39:21 -0500138#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.2"
Ramneek Mehresh3fb68ee2011-03-23 15:20:43 +0530139#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
Poonam Aggrwalc7664a42011-06-30 03:00:28 -0500140#define CONFIG_SYS_FSL_ERRATUM_IFC_A002769
Poonam Aggrwalaf54a5f2011-06-29 16:32:52 +0530141#define CONFIG_SYS_FSL_ERRATUM_P1010_A003549
Shengzhou Liu097be702013-08-15 09:31:47 +0800142#define CONFIG_SYS_FSL_ERRATUM_SEC_A003571
Poonam Aggrwal46b86ca2011-07-07 20:36:47 +0530143#define CONFIG_SYS_FSL_ERRATUM_IFC_A003399
York Sun0cc59072013-08-20 15:09:43 -0700144#define CONFIG_SYS_FSL_ERRATUM_A005125
Chunhe Lan92546402013-08-16 15:10:37 +0800145#define CONFIG_SYS_FSL_ERRATUM_I2C_A004447
146#define CONFIG_SYS_FSL_A004447_SVR_REV 0x10
Kumar Galafe137112011-01-19 03:05:26 -0600147
Kumar Galae4e69252011-02-05 13:45:07 -0600148/* P1011 is single core version of P1020 */
Kumar Galafe137112011-01-19 03:05:26 -0600149#elif defined(CONFIG_P1011)
150#define CONFIG_MAX_CPUS 1
151#define CONFIG_SYS_FSL_NUM_LAWS 12
Prabhakar Kushwaha3d42a962012-04-29 23:57:12 +0000152#define CONFIG_SYS_PPC_E500_DEBUG_TLB 2
Kumar Galafe137112011-01-19 03:05:26 -0600153#define CONFIG_TSECV2
Prabhakar Kushwaha1c48e772011-02-01 15:55:58 +0000154#define CONFIG_FSL_PCIE_DISABLE_ASPM
Kumar Galafe137112011-01-19 03:05:26 -0600155#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabid8f341c2011-08-04 18:03:41 -0500156#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Galae4e69252011-02-05 13:45:07 -0600157#define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
158#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
York Sun0cc59072013-08-20 15:09:43 -0700159#define CONFIG_SYS_FSL_ERRATUM_A005125
Kumar Galafe137112011-01-19 03:05:26 -0600160
Kumar Galae4e69252011-02-05 13:45:07 -0600161/* P1012 is single core version of P1021 */
Kumar Galafe137112011-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 Kushwaha3d42a962012-04-29 23:57:12 +0000165#define CONFIG_SYS_PPC_E500_DEBUG_TLB 2
Kumar Galafe137112011-01-19 03:05:26 -0600166#define CONFIG_TSECV2
Prabhakar Kushwaha1c48e772011-02-01 15:55:58 +0000167#define CONFIG_FSL_PCIE_DISABLE_ASPM
Kumar Galafe137112011-01-19 03:05:26 -0600168#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabid8f341c2011-08-04 18:03:41 -0500169#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Galae4e69252011-02-05 13:45:07 -0600170#define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
171#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
Haiying Wang8cb2af72011-02-11 01:25:30 -0600172#define QE_MURAM_SIZE 0x6000UL
173#define MAX_QE_RISC 1
174#define QE_NUM_OF_SNUM 28
York Sun0cc59072013-08-20 15:09:43 -0700175#define CONFIG_SYS_FSL_ERRATUM_A005125
Kumar Galafe137112011-01-19 03:05:26 -0600176
Kumar Galae4e69252011-02-05 13:45:07 -0600177/* P1013 is single core version of P1022 */
Kumar Galafe137112011-01-19 03:05:26 -0600178#elif defined(CONFIG_P1013)
179#define CONFIG_MAX_CPUS 1
180#define CONFIG_SYS_FSL_NUM_LAWS 12
Prabhakar Kushwaha3d42a962012-04-29 23:57:12 +0000181#define CONFIG_SYS_PPC_E500_DEBUG_TLB 2
Kumar Galafe137112011-01-19 03:05:26 -0600182#define CONFIG_TSECV2
183#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabid8f341c2011-08-04 18:03:41 -0500184#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Jiang Yutang7cd05902011-01-30 17:06:20 -0600185#define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
186#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
187#define CONFIG_FSL_SATA_ERRATUM_A001
York Sun0cc59072013-08-20 15:09:43 -0700188#define CONFIG_SYS_FSL_ERRATUM_A005125
Kumar Galafe137112011-01-19 03:05:26 -0600189
190#elif defined(CONFIG_P1014)
191#define CONFIG_MAX_CPUS 1
Priyanka Jain02449632011-02-09 09:24:10 +0530192#define CONFIG_FSL_SDHC_V2_3
Kumar Galafe137112011-01-19 03:05:26 -0600193#define CONFIG_SYS_FSL_NUM_LAWS 12
Prabhakar Kushwaha3d42a962012-04-29 23:57:12 +0000194#define CONFIG_SYS_PPC_E500_DEBUG_TLB 3
Kumar Galafe137112011-01-19 03:05:26 -0600195#define CONFIG_TSECV2
196#define CONFIG_SYS_FSL_SEC_COMPAT 4
Poonam Aggrwal7373c592011-02-06 11:31:44 +0530197#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
198#define CONFIG_NUM_DDR_CONTROLLERS 1
199#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Ramneek Mehresh3fb68ee2011-03-23 15:20:43 +0530200#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
Poonam Aggrwalc7664a42011-06-30 03:00:28 -0500201#define CONFIG_SYS_FSL_ERRATUM_IFC_A002769
Poonam Aggrwalaf54a5f2011-06-29 16:32:52 +0530202#define CONFIG_SYS_FSL_ERRATUM_P1010_A003549
Poonam Aggrwal46b86ca2011-07-07 20:36:47 +0530203#define CONFIG_SYS_FSL_ERRATUM_IFC_A003399
Kumar Galafe137112011-01-19 03:05:26 -0600204
Kumar Galae4e69252011-02-05 13:45:07 -0600205/* P1017 is single core version of P1023 */
Roy Zang1de20b02011-02-03 22:14:19 -0600206#elif defined(CONFIG_P1017)
207#define CONFIG_MAX_CPUS 1
208#define CONFIG_SYS_FSL_NUM_LAWS 12
209#define CONFIG_SYS_FSL_SEC_COMPAT 4
210#define CONFIG_SYS_NUM_FMAN 1
211#define CONFIG_SYS_NUM_FM1_DTSEC 2
212#define CONFIG_NUM_DDR_CONTROLLERS 1
213#define CONFIG_SYS_QMAN_NUM_PORTALS 3
214#define CONFIG_SYS_BMAN_NUM_PORTALS 3
Kumar Galad80dfe42011-02-04 00:43:34 -0600215#define CONFIG_SYS_FM_MURAM_SIZE 0x10000
Kumar Gala179b1b22011-05-20 00:39:21 -0500216#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.2"
Timur Tabid8f341c2011-08-04 18:03:41 -0500217#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff600000
York Sun0cc59072013-08-20 15:09:43 -0700218#define CONFIG_SYS_FSL_ERRATUM_A005125
Roy Zang1de20b02011-02-03 22:14:19 -0600219
Kumar Galafe137112011-01-19 03:05:26 -0600220#elif defined(CONFIG_P1020)
221#define CONFIG_MAX_CPUS 2
222#define CONFIG_SYS_FSL_NUM_LAWS 12
Prabhakar Kushwaha3d42a962012-04-29 23:57:12 +0000223#define CONFIG_SYS_PPC_E500_DEBUG_TLB 2
Kumar Galafe137112011-01-19 03:05:26 -0600224#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
York Sun0cc59072013-08-20 15:09:43 -0700230#define CONFIG_SYS_FSL_ERRATUM_A005125
Kumar Galafe137112011-01-19 03:05:26 -0600231
232#elif defined(CONFIG_P1021)
233#define CONFIG_MAX_CPUS 2
234#define CONFIG_SYS_FSL_NUM_LAWS 12
Prabhakar Kushwaha3d42a962012-04-29 23:57:12 +0000235#define CONFIG_SYS_PPC_E500_DEBUG_TLB 2
Kumar Galafe137112011-01-19 03:05:26 -0600236#define CONFIG_TSECV2
Prabhakar Kushwaha1c48e772011-02-01 15:55:58 +0000237#define CONFIG_FSL_PCIE_DISABLE_ASPM
Kumar Galafe137112011-01-19 03:05:26 -0600238#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabid8f341c2011-08-04 18:03:41 -0500239#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Galae4e69252011-02-05 13:45:07 -0600240#define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
241#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
Haiying Wang8cb2af72011-02-11 01:25:30 -0600242#define QE_MURAM_SIZE 0x6000UL
243#define MAX_QE_RISC 1
244#define QE_NUM_OF_SNUM 28
York Sun0cc59072013-08-20 15:09:43 -0700245#define CONFIG_SYS_FSL_ERRATUM_A005125
Kumar Galafe137112011-01-19 03:05:26 -0600246
247#elif defined(CONFIG_P1022)
248#define CONFIG_MAX_CPUS 2
249#define CONFIG_SYS_FSL_NUM_LAWS 12
Prabhakar Kushwaha3d42a962012-04-29 23:57:12 +0000250#define CONFIG_SYS_PPC_E500_DEBUG_TLB 2
Kumar Galafe137112011-01-19 03:05:26 -0600251#define CONFIG_TSECV2
252#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabid8f341c2011-08-04 18:03:41 -0500253#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Jiang Yutang7cd05902011-01-30 17:06:20 -0600254#define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
255#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
256#define CONFIG_FSL_SATA_ERRATUM_A001
York Sun0cc59072013-08-20 15:09:43 -0700257#define CONFIG_SYS_FSL_ERRATUM_A005125
Kumar Galafe137112011-01-19 03:05:26 -0600258
Roy Zang1de20b02011-02-03 22:14:19 -0600259#elif defined(CONFIG_P1023)
260#define CONFIG_MAX_CPUS 2
261#define CONFIG_SYS_FSL_NUM_LAWS 12
262#define CONFIG_SYS_FSL_SEC_COMPAT 4
263#define CONFIG_SYS_NUM_FMAN 1
264#define CONFIG_SYS_NUM_FM1_DTSEC 2
265#define CONFIG_NUM_DDR_CONTROLLERS 1
266#define CONFIG_SYS_QMAN_NUM_PORTALS 3
267#define CONFIG_SYS_BMAN_NUM_PORTALS 3
Kumar Galad80dfe42011-02-04 00:43:34 -0600268#define CONFIG_SYS_FM_MURAM_SIZE 0x10000
Kumar Gala179b1b22011-05-20 00:39:21 -0500269#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.2"
Timur Tabid8f341c2011-08-04 18:03:41 -0500270#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff600000
York Sun0cc59072013-08-20 15:09:43 -0700271#define CONFIG_SYS_FSL_ERRATUM_A005125
Chunhe Lan92546402013-08-16 15:10:37 +0800272#define CONFIG_SYS_FSL_ERRATUM_I2C_A004447
273#define CONFIG_SYS_FSL_A004447_SVR_REV 0x11
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
Prabhakar Kushwaha3d42a962012-04-29 23:57:12 +0000279#define CONFIG_SYS_PPC_E500_DEBUG_TLB 2
Kumar Galae4e69252011-02-05 13:45:07 -0600280#define CONFIG_TSECV2
281#define CONFIG_FSL_PCIE_DISABLE_ASPM
282#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabid8f341c2011-08-04 18:03:41 -0500283#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Galae4e69252011-02-05 13:45:07 -0600284#define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
285#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
York Sun0cc59072013-08-20 15:09:43 -0700286#define CONFIG_SYS_FSL_ERRATUM_A005125
Kumar Galae4e69252011-02-05 13:45:07 -0600287
288/* P1025 is lower end variant of P1021 */
289#elif defined(CONFIG_P1025)
290#define CONFIG_MAX_CPUS 2
291#define CONFIG_SYS_FSL_NUM_LAWS 12
Prabhakar Kushwaha3d42a962012-04-29 23:57:12 +0000292#define CONFIG_SYS_PPC_E500_DEBUG_TLB 2
Kumar Galae4e69252011-02-05 13:45:07 -0600293#define CONFIG_TSECV2
294#define CONFIG_FSL_PCIE_DISABLE_ASPM
295#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabid8f341c2011-08-04 18:03:41 -0500296#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Galae4e69252011-02-05 13:45:07 -0600297#define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
298#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
Haiying Wang8cb2af72011-02-11 01:25:30 -0600299#define QE_MURAM_SIZE 0x6000UL
300#define MAX_QE_RISC 1
301#define QE_NUM_OF_SNUM 28
York Sun0cc59072013-08-20 15:09:43 -0700302#define CONFIG_SYS_FSL_ERRATUM_A005125
Kumar Galae4e69252011-02-05 13:45:07 -0600303
304/* P2010 is single core version of P2020 */
Kumar Galafe137112011-01-19 03:05:26 -0600305#elif defined(CONFIG_P2010)
306#define CONFIG_MAX_CPUS 1
307#define CONFIG_SYS_FSL_NUM_LAWS 12
Prabhakar Kushwaha3d42a962012-04-29 23:57:12 +0000308#define CONFIG_SYS_PPC_E500_DEBUG_TLB 2
Kumar Galafe137112011-01-19 03:05:26 -0600309#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabid8f341c2011-08-04 18:03:41 -0500310#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Gala7b5b4802011-01-26 01:43:15 -0600311#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
Kumar Gala9a878d52011-01-29 15:36:10 -0600312#define CONFIG_SYS_FSL_ERRATUM_ESDHC_A001
York Sun0cc59072013-08-20 15:09:43 -0700313#define CONFIG_SYS_FSL_ERRATUM_A005125
Kumar Galafe137112011-01-19 03:05:26 -0600314
315#elif defined(CONFIG_P2020)
316#define CONFIG_MAX_CPUS 2
317#define CONFIG_SYS_FSL_NUM_LAWS 12
Prabhakar Kushwaha3d42a962012-04-29 23:57:12 +0000318#define CONFIG_SYS_PPC_E500_DEBUG_TLB 2
Kumar Galafe137112011-01-19 03:05:26 -0600319#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabid8f341c2011-08-04 18:03:41 -0500320#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Gala7b5b4802011-01-26 01:43:15 -0600321#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
Kumar Gala9a878d52011-01-29 15:36:10 -0600322#define CONFIG_SYS_FSL_ERRATUM_ESDHC_A001
Liu Gang78deaa12012-03-08 00:33:14 +0000323#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 2
324#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
325#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
326#define CONFIG_SYS_FSL_RMU
327#define CONFIG_SYS_FSL_SRIO_MSG_UNIT_NUM 2
York Sun0cc59072013-08-20 15:09:43 -0700328#define CONFIG_SYS_FSL_ERRATUM_A005125
Kumar Galafe137112011-01-19 03:05:26 -0600329
Scott Wooda1ef48c2012-08-14 10:14:51 +0000330#elif defined(CONFIG_PPC_P2041) /* also supports P2040 */
York Sun7e0edbd2012-10-08 07:44:15 +0000331#define CONFIG_SYS_FSL_QORIQ_CHASSIS1
York Sun544f8812013-06-25 11:37:39 -0700332#define CONFIG_FSL_CORENET /* Freescale CoreNet platform */
Kumar Galafe137112011-01-19 03:05:26 -0600333#define CONFIG_MAX_CPUS 4
Kumar Gala3842bb52011-02-16 02:03:29 -0600334#define CONFIG_SYS_FSL_NUM_CC_PLLS 2
Kumar Galafe137112011-01-19 03:05:26 -0600335#define CONFIG_SYS_FSL_NUM_LAWS 32
336#define CONFIG_SYS_FSL_SEC_COMPAT 4
Kumar Gala619541b2011-05-13 01:16:07 -0500337#define CONFIG_SYS_NUM_FMAN 1
338#define CONFIG_SYS_NUM_FM1_DTSEC 5
339#define CONFIG_SYS_NUM_FM1_10GEC 1
340#define CONFIG_NUM_DDR_CONTROLLERS 1
341#define CONFIG_SYS_FM_MURAM_SIZE 0x28000
342#define CONFIG_SYS_FSL_TBCLK_DIV 32
343#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.2"
Timur Tabid8f341c2011-08-04 18:03:41 -0500344#define CONFIG_SYS_CCSRBAR_DEFAULT 0xfe000000
Kumar Gala619541b2011-05-13 01:16:07 -0500345#define CONFIG_SYS_FSL_USB1_PHY_ENABLE
346#define CONFIG_SYS_FSL_USB2_PHY_ENABLE
Kumar Galaa49034f2011-04-13 00:19:10 -0500347#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
Kumar Gala619541b2011-05-13 01:16:07 -0500348#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
York Sun9ed88112012-05-07 07:26:47 +0000349#define CONFIG_SYS_FSL_ERRATUM_NMG_CPU_A011
Xuleicf4f4932013-03-11 17:56:34 +0000350#define CONFIG_SYS_FSL_ERRATUM_USB14
Kumar Gala945e59a2011-11-22 06:51:15 -0600351#define CONFIG_SYS_FSL_ERRATUM_CPU_A003999
York Sun52db64b2013-03-25 07:30:11 +0000352#define CONFIG_SYS_FSL_ERRATUM_DDR_A003
York Sundf2be192011-11-20 10:01:35 -0800353#define CONFIG_SYS_FSL_ERRATUM_DDR_A003474
Liu Gang78deaa12012-03-08 00:33:14 +0000354#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 2
355#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
356#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
Scott Wood80806962012-08-14 10:14:53 +0000357#define CONFIG_SYS_FSL_ERRATUM_A004510
358#define CONFIG_SYS_FSL_ERRATUM_A004510_SVR_REV 0x10
359#define CONFIG_SYS_FSL_ERRATUM_A004510_SVR_REV2 0x11
360#define CONFIG_SYS_FSL_CORENET_SNOOPVEC_COREONLY 0xf0000000
Liu Gang712b6622012-09-28 21:26:19 +0000361#define CONFIG_SYS_FSL_ERRATUM_SRIO_A004034
Timur Tabie3ab8c12012-10-25 12:40:00 +0000362#define CONFIG_SYS_FSL_ERRATUM_A004849
Chunhe Lan92546402013-08-16 15:10:37 +0800363#define CONFIG_SYS_FSL_ERRATUM_I2C_A004447
364#define CONFIG_SYS_FSL_A004447_SVR_REV 0x11
Kumar Gala619541b2011-05-13 01:16:07 -0500365
Kumar Galafe137112011-01-19 03:05:26 -0600366#elif defined(CONFIG_PPC_P3041)
York Sun7e0edbd2012-10-08 07:44:15 +0000367#define CONFIG_SYS_FSL_QORIQ_CHASSIS1
York Sun544f8812013-06-25 11:37:39 -0700368#define CONFIG_FSL_CORENET /* Freescale CoreNet platform */
Kumar Galafe137112011-01-19 03:05:26 -0600369#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
Kumar Gala60d95d82011-01-25 12:42:32 -0600373#define CONFIG_SYS_NUM_FMAN 1
374#define CONFIG_SYS_NUM_FM1_DTSEC 5
375#define CONFIG_SYS_NUM_FM1_10GEC 1
376#define CONFIG_NUM_DDR_CONTROLLERS 1
Kumar Galad80dfe42011-02-04 00:43:34 -0600377#define CONFIG_SYS_FM_MURAM_SIZE 0x28000
Kumar Galaf4fb90f2011-02-18 05:40:54 -0600378#define CONFIG_SYS_FSL_TBCLK_DIV 32
Kumar Gala179b1b22011-05-20 00:39:21 -0500379#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.2"
Timur Tabid8f341c2011-08-04 18:03:41 -0500380#define CONFIG_SYS_CCSRBAR_DEFAULT 0xfe000000
Roy Zang6d6a0e12011-04-13 00:08:51 -0500381#define CONFIG_SYS_FSL_USB1_PHY_ENABLE
382#define CONFIG_SYS_FSL_USB2_PHY_ENABLE
Kumar Galaa49034f2011-04-13 00:19:10 -0500383#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
Lei Xu32276202011-04-19 15:28:41 +0800384#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
York Sun53155532012-08-08 18:04:53 +0000385#define CONFIG_SYS_FSL_ERRATUM_NMG_CPU_A011
Xuleicf4f4932013-03-11 17:56:34 +0000386#define CONFIG_SYS_FSL_ERRATUM_USB14
Kumar Gala945e59a2011-11-22 06:51:15 -0600387#define CONFIG_SYS_FSL_ERRATUM_CPU_A003999
York Sun52db64b2013-03-25 07:30:11 +0000388#define CONFIG_SYS_FSL_ERRATUM_DDR_A003
York Sundf2be192011-11-20 10:01:35 -0800389#define CONFIG_SYS_FSL_ERRATUM_DDR_A003474
Liu Gang78deaa12012-03-08 00:33:14 +0000390#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 2
391#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
392#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
Scott Wood80806962012-08-14 10:14:53 +0000393#define CONFIG_SYS_FSL_ERRATUM_A004510
394#define CONFIG_SYS_FSL_ERRATUM_A004510_SVR_REV 0x10
395#define CONFIG_SYS_FSL_ERRATUM_A004510_SVR_REV2 0x11
396#define CONFIG_SYS_FSL_CORENET_SNOOPVEC_COREONLY 0xf0000000
Liu Gang712b6622012-09-28 21:26:19 +0000397#define CONFIG_SYS_FSL_ERRATUM_SRIO_A004034
Timur Tabie3ab8c12012-10-25 12:40:00 +0000398#define CONFIG_SYS_FSL_ERRATUM_A004849
York Suncca41c52013-06-25 11:37:49 -0700399#define CONFIG_SYS_FSL_ERRATUM_A005812
Chunhe Lan92546402013-08-16 15:10:37 +0800400#define CONFIG_SYS_FSL_ERRATUM_I2C_A004447
401#define CONFIG_SYS_FSL_A004447_SVR_REV 0x20
Kumar Galafe137112011-01-19 03:05:26 -0600402
Scott Wooda1ef48c2012-08-14 10:14:51 +0000403#elif defined(CONFIG_PPC_P4080) /* also supports P4040 */
York Sun7e0edbd2012-10-08 07:44:15 +0000404#define CONFIG_SYS_FSL_QORIQ_CHASSIS1
York Sun544f8812013-06-25 11:37:39 -0700405#define CONFIG_FSL_CORENET /* Freescale CoreNet platform */
Kumar Galafe137112011-01-19 03:05:26 -0600406#define CONFIG_MAX_CPUS 8
Kumar Gala3842bb52011-02-16 02:03:29 -0600407#define CONFIG_SYS_FSL_NUM_CC_PLLS 4
Kumar Galafe137112011-01-19 03:05:26 -0600408#define CONFIG_SYS_FSL_NUM_LAWS 32
409#define CONFIG_SYS_FSL_SEC_COMPAT 4
410#define CONFIG_SYS_NUM_FMAN 2
411#define CONFIG_SYS_NUM_FM1_DTSEC 4
412#define CONFIG_SYS_NUM_FM2_DTSEC 4
413#define CONFIG_SYS_NUM_FM1_10GEC 1
414#define CONFIG_SYS_NUM_FM2_10GEC 1
415#define CONFIG_NUM_DDR_CONTROLLERS 2
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 Galafe137112011-01-19 03:05:26 -0600420#define CONFIG_SYS_FSL_ERRATUM_CPC_A002
421#define CONFIG_SYS_FSL_ERRATUM_CPC_A003
York Sun922f40f2011-01-10 12:03:01 +0000422#define CONFIG_SYS_FSL_ERRATUM_DDR_A003
Kumar Galafe137112011-01-19 03:05:26 -0600423#define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
424#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
425#define CONFIG_SYS_FSL_ERRATUM_ESDHC135
Zang Roy-R6191183659922012-09-18 09:50:08 +0000426#define CONFIG_SYS_FSL_ERRATUM_ESDHC13
Kumar Galafe137112011-01-19 03:05:26 -0600427#define CONFIG_SYS_P4080_ERRATUM_CPU22
York Sun9ed88112012-05-07 07:26:47 +0000428#define CONFIG_SYS_FSL_ERRATUM_NMG_CPU_A011
Kumar Galafe137112011-01-19 03:05:26 -0600429#define CONFIG_SYS_P4080_ERRATUM_SERDES8
Emil Medveb01c81f2010-08-31 22:57:38 -0500430#define CONFIG_SYS_P4080_ERRATUM_SERDES9
Timur Tabi6a62dc42011-04-18 17:16:00 -0500431#define CONFIG_SYS_P4080_ERRATUM_SERDES_A001
Timur Tabi90f381d2011-04-01 13:19:36 -0500432#define CONFIG_SYS_P4080_ERRATUM_SERDES_A005
Kumar Gala945e59a2011-11-22 06:51:15 -0600433#define CONFIG_SYS_FSL_ERRATUM_CPU_A003999
York Sundf2be192011-11-20 10:01:35 -0800434#define CONFIG_SYS_FSL_ERRATUM_DDR_A003474
Liu Gang78deaa12012-03-08 00:33:14 +0000435#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 2
436#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
437#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
438#define CONFIG_SYS_FSL_RMU
439#define CONFIG_SYS_FSL_SRIO_MSG_UNIT_NUM 2
Scott Wood80806962012-08-14 10:14:53 +0000440#define CONFIG_SYS_FSL_ERRATUM_A004510
441#define CONFIG_SYS_FSL_ERRATUM_A004510_SVR_REV 0x20
442#define CONFIG_SYS_FSL_CORENET_SNOOPVEC_COREONLY 0xff000000
Liu Gang712b6622012-09-28 21:26:19 +0000443#define CONFIG_SYS_FSL_ERRATUM_SRIO_A004034
Timur Tabie3ab8c12012-10-25 12:40:00 +0000444#define CONFIG_SYS_FSL_ERRATUM_A004849
Timur Tabic5355dd2012-11-01 08:20:23 +0000445#define CONFIG_SYS_FSL_ERRATUM_A004580
Yuanquan Chenc48234e2012-11-26 23:49:45 +0000446#define CONFIG_SYS_P4080_ERRATUM_PCIE_A003
York Suncca41c52013-06-25 11:37:49 -0700447#define CONFIG_SYS_FSL_ERRATUM_A005812
Chunhe Lan92546402013-08-16 15:10:37 +0800448#define CONFIG_SYS_FSL_ERRATUM_I2C_A004447
449#define CONFIG_SYS_FSL_A004447_SVR_REV 0x20
Kumar Galafe137112011-01-19 03:05:26 -0600450
Scott Wooda1ef48c2012-08-14 10:14:51 +0000451#elif defined(CONFIG_PPC_P5020) /* also supports P5010 */
York Sun2394a0f2012-10-08 07:44:30 +0000452#define CONFIG_SYS_PPC64 /* 64-bit core */
York Sun7e0edbd2012-10-08 07:44:15 +0000453#define CONFIG_SYS_FSL_QORIQ_CHASSIS1
York Sun544f8812013-06-25 11:37:39 -0700454#define CONFIG_FSL_CORENET /* Freescale CoreNet platform */
Kumar Galafe137112011-01-19 03:05:26 -0600455#define CONFIG_MAX_CPUS 2
Kumar Gala3842bb52011-02-16 02:03:29 -0600456#define CONFIG_SYS_FSL_NUM_CC_PLLS 2
Kumar Galafe137112011-01-19 03:05:26 -0600457#define CONFIG_SYS_FSL_NUM_LAWS 32
458#define CONFIG_SYS_FSL_SEC_COMPAT 4
Kumar Gala60d95d82011-01-25 12:42:32 -0600459#define CONFIG_SYS_NUM_FMAN 1
460#define CONFIG_SYS_NUM_FM1_DTSEC 5
461#define CONFIG_SYS_NUM_FM1_10GEC 1
462#define CONFIG_NUM_DDR_CONTROLLERS 2
Kumar Galad80dfe42011-02-04 00:43:34 -0600463#define CONFIG_SYS_FM_MURAM_SIZE 0x28000
Kumar Galaf4fb90f2011-02-18 05:40:54 -0600464#define CONFIG_SYS_FSL_TBCLK_DIV 32
Kumar Gala179b1b22011-05-20 00:39:21 -0500465#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.2"
Timur Tabid8f341c2011-08-04 18:03:41 -0500466#define CONFIG_SYS_CCSRBAR_DEFAULT 0xfe000000
Roy Zang6d6a0e12011-04-13 00:08:51 -0500467#define CONFIG_SYS_FSL_USB1_PHY_ENABLE
468#define CONFIG_SYS_FSL_USB2_PHY_ENABLE
Kumar Galaa49034f2011-04-13 00:19:10 -0500469#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
Lei Xu32276202011-04-19 15:28:41 +0800470#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
Xuleicf4f4932013-03-11 17:56:34 +0000471#define CONFIG_SYS_FSL_ERRATUM_USB14
York Sun52db64b2013-03-25 07:30:11 +0000472#define CONFIG_SYS_FSL_ERRATUM_DDR_A003
York Sundf2be192011-11-20 10:01:35 -0800473#define CONFIG_SYS_FSL_ERRATUM_DDR_A003474
Liu Gang78deaa12012-03-08 00:33:14 +0000474#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 2
475#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
476#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
Scott Wood80806962012-08-14 10:14:53 +0000477#define CONFIG_SYS_FSL_ERRATUM_A004510
478#define CONFIG_SYS_FSL_ERRATUM_A004510_SVR_REV 0x10
479#define CONFIG_SYS_FSL_CORENET_SNOOPVEC_COREONLY 0xc0000000
Liu Gang712b6622012-09-28 21:26:19 +0000480#define CONFIG_SYS_FSL_ERRATUM_SRIO_A004034
Chunhe Lan92546402013-08-16 15:10:37 +0800481#define CONFIG_SYS_FSL_ERRATUM_I2C_A004447
482#define CONFIG_SYS_FSL_A004447_SVR_REV 0x20
Kumar Galafe137112011-01-19 03:05:26 -0600483
Timur Tabid5e13882012-10-05 11:09:19 +0000484#elif defined(CONFIG_PPC_P5040)
Timur Tabi9a7b5a32012-10-23 10:48:09 +0000485#define CONFIG_SYS_PPC64
Timur Tabid5e13882012-10-05 11:09:19 +0000486#define CONFIG_SYS_FSL_QORIQ_CHASSIS1
York Sun544f8812013-06-25 11:37:39 -0700487#define CONFIG_FSL_CORENET /* Freescale CoreNet platform */
Timur Tabid5e13882012-10-05 11:09:19 +0000488#define CONFIG_MAX_CPUS 4
489#define CONFIG_SYS_FSL_NUM_CC_PLLS 3
490#define CONFIG_SYS_FSL_NUM_LAWS 32
491#define CONFIG_SYS_FSL_SEC_COMPAT 4
492#define CONFIG_SYS_NUM_FMAN 2
493#define CONFIG_SYS_NUM_FM1_DTSEC 5
494#define CONFIG_SYS_NUM_FM1_10GEC 1
495#define CONFIG_SYS_NUM_FM2_DTSEC 5
496#define CONFIG_SYS_NUM_FM2_10GEC 1
497#define CONFIG_NUM_DDR_CONTROLLERS 2
498#define CONFIG_SYS_FM_MURAM_SIZE 0x28000
499#define CONFIG_SYS_FSL_TBCLK_DIV 16
500#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.4"
501#define CONFIG_SYS_CCSRBAR_DEFAULT 0xfe000000
502#define CONFIG_SYS_FSL_USB1_PHY_ENABLE
503#define CONFIG_SYS_FSL_USB2_PHY_ENABLE
504#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
505#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
Xuleicf4f4932013-03-11 17:56:34 +0000506#define CONFIG_SYS_FSL_ERRATUM_USB14
Timur Tabid5e13882012-10-05 11:09:19 +0000507#define CONFIG_SYS_FSL_ERRATUM_DDR_A003
508#define CONFIG_SYS_FSL_ERRATUM_DDR_A003474
509#define CONFIG_SYS_FSL_ERRATUM_A004699
Timur Tabid5e13882012-10-05 11:09:19 +0000510#define CONFIG_SYS_FSL_ERRATUM_A004510
511#define CONFIG_SYS_FSL_ERRATUM_A004510_SVR_REV 0x10
512#define CONFIG_SYS_FSL_CORENET_SNOOPVEC_COREONLY 0xf0000000
York Suncca41c52013-06-25 11:37:49 -0700513#define CONFIG_SYS_FSL_ERRATUM_A005812
Timur Tabid5e13882012-10-05 11:09:19 +0000514
Prabhakar Kushwahabeebb882012-04-24 20:16:49 +0000515#elif defined(CONFIG_BSC9131)
516#define CONFIG_MAX_CPUS 1
517#define CONFIG_FSL_SDHC_V2_3
518#define CONFIG_SYS_FSL_NUM_LAWS 12
519#define CONFIG_TSECV2
520#define CONFIG_SYS_FSL_SEC_COMPAT 4
521#define CONFIG_NUM_DDR_CONTROLLERS 1
Priyanka Jainf81e8b22013-04-04 09:31:54 +0530522#define CONFIG_SYS_FSL_DSP_M2_RAM_ADDR 0xb0000000
523#define CONFIG_SYS_FSL_DSP_CCSRBAR_DEFAULT 0xff600000
Mingkai Hu6f024c92013-05-16 10:18:13 +0800524#define CONFIG_SYS_FSL_IFC_BANK_COUNT 3
Prabhakar Kushwahabeebb882012-04-24 20:16:49 +0000525#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
526#define CONFIG_NAND_FSL_IFC
Prabhakar Kushwahabeebb882012-04-24 20:16:49 +0000527#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
York Sun0cc59072013-08-20 15:09:43 -0700528#define CONFIG_SYS_FSL_ERRATUM_A005125
Prabhakar Kushwahabeebb882012-04-24 20:16:49 +0000529
Prabhakar Kushwaha92543c22013-01-23 17:59:57 +0000530#elif defined(CONFIG_BSC9132)
531#define CONFIG_MAX_CPUS 2
532#define CONFIG_SYS_PPC_E500_DEBUG_TLB 3
533#define CONFIG_FSL_SDHC_V2_3
534#define CONFIG_SYS_FSL_NUM_LAWS 12
535#define CONFIG_TSECV2
536#define CONFIG_SYS_FSL_SEC_COMPAT 4
537#define CONFIG_NUM_DDR_CONTROLLERS 2
Priyanka Jainc73b9032013-07-02 09:21:04 +0530538#define CONFIG_SYS_FSL_DSP_DDR_ADDR 0x40000000
539#define CONFIG_SYS_FSL_DSP_M2_RAM_ADDR 0xb0000000
540#define CONFIG_SYS_FSL_DSP_M3_RAM_ADDR 0xc0000000
541#define CONFIG_SYS_FSL_DSP_CCSRBAR_DEFAULT 0xff600000
York Sun84fa67e2013-04-18 19:31:01 -0700542#define CONFIG_SYS_FSL_IFC_BANK_COUNT 3
Prabhakar Kushwaha92543c22013-01-23 17:59:57 +0000543#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
544#define CONFIG_NAND_FSL_IFC
Prabhakar Kushwaha92543c22013-01-23 17:59:57 +0000545#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
546#define CONFIG_SYS_FSL_ESDHC_P1010_BROKEN_SDCLK
547#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.2"
York Sun0cc59072013-08-20 15:09:43 -0700548#define CONFIG_SYS_FSL_ERRATUM_A005125
Chunhe Lan92546402013-08-16 15:10:37 +0800549#define CONFIG_SYS_FSL_ERRATUM_I2C_A004447
550#define CONFIG_SYS_FSL_A004447_SVR_REV 0x11
Prabhakar Kushwaha92543c22013-01-23 17:59:57 +0000551
York Sun64fd08b2013-03-25 07:40:05 +0000552#elif defined(CONFIG_PPC_T4240) || defined(CONFIG_PPC_T4160)
553#define CONFIG_E6500
York Sun2394a0f2012-10-08 07:44:30 +0000554#define CONFIG_SYS_PPC64 /* 64-bit core */
York Sun9941a222012-10-08 07:44:19 +0000555#define CONFIG_FSL_CORENET /* Freescale CoreNet platform */
556#define CONFIG_SYS_FSL_QORIQ_CHASSIS2 /* Freescale Chassis generation 2 */
York Sunaa150bb2013-03-25 07:40:07 +0000557#define CONFIG_SYS_FSL_CORES_PER_CLUSTER 4
York Sun9941a222012-10-08 07:44:19 +0000558#define CONFIG_SYS_FSL_QMAN_V3 /* QMAN version 3 */
York Sun64fd08b2013-03-25 07:40:05 +0000559#ifdef CONFIG_PPC_T4240
York Sun9941a222012-10-08 07:44:19 +0000560#define CONFIG_MAX_CPUS 12
Prabhakar Kushwaha7e8382f2013-09-03 11:20:15 +0530561#define CONFIG_SYS_FSL_CLUSTER_CLOCKS { 1, 1, 4 }
York Sun9941a222012-10-08 07:44:19 +0000562#define CONFIG_SYS_NUM_FM1_DTSEC 8
563#define CONFIG_SYS_NUM_FM1_10GEC 2
564#define CONFIG_SYS_NUM_FM2_DTSEC 8
565#define CONFIG_SYS_NUM_FM2_10GEC 2
566#define CONFIG_NUM_DDR_CONTROLLERS 3
York Sun64fd08b2013-03-25 07:40:05 +0000567#else
York Sunfb5137a2013-03-25 07:33:29 +0000568#define CONFIG_MAX_CPUS 8
Prabhakar Kushwaha7e8382f2013-09-03 11:20:15 +0530569#define CONFIG_SYS_FSL_CLUSTER_CLOCKS { 1, 1 }
York Sun64fd08b2013-03-25 07:40:05 +0000570#define CONFIG_SYS_NUM_FM1_DTSEC 7
571#define CONFIG_SYS_NUM_FM1_10GEC 1
572#define CONFIG_SYS_NUM_FM2_DTSEC 7
573#define CONFIG_SYS_NUM_FM2_10GEC 1
574#define CONFIG_NUM_DDR_CONTROLLERS 2
575#endif
York Sunfb5137a2013-03-25 07:33:29 +0000576#define CONFIG_SYS_FSL_NUM_CC_PLLS 5
577#define CONFIG_SYS_FSL_NUM_LAWS 32
Prabhakar Kushwaha873e9f02013-07-31 16:56:41 +0530578#define CONFIG_SYS_FSL_SRDS_1
579#define CONFIG_SYS_FSL_SRDS_2
York Sunfb5137a2013-03-25 07:33:29 +0000580#define CONFIG_SYS_FSL_SRDS_3
581#define CONFIG_SYS_FSL_SRDS_4
582#define CONFIG_SYS_FSL_SEC_COMPAT 4
583#define CONFIG_SYS_NUM_FMAN 2
Prabhakar Kushwaha7e8382f2013-09-03 11:20:15 +0530584#define CONFIG_SYS_PME_CLK 0
York Sunfb5137a2013-03-25 07:33:29 +0000585#define CONFIG_SYS_FSL_DDR_VER FSL_DDR_VER_4_7
Mingkai Hu6f024c92013-05-16 10:18:13 +0800586#define CONFIG_SYS_FSL_IFC_BANK_COUNT 8
York Sunfb5137a2013-03-25 07:33:29 +0000587#define CONFIG_SYS_FMAN_V3
Prabhakar Kushwaha7e8382f2013-09-03 11:20:15 +0530588#define CONFIG_SYS_FM1_CLK 3
589#define CONFIG_SYS_FM2_CLK 3
York Sunfb5137a2013-03-25 07:33:29 +0000590#define CONFIG_SYS_FM_MURAM_SIZE 0x60000
591#define CONFIG_SYS_FSL_TBCLK_DIV 16
592#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v3.0"
593#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 2
594#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
595#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
Liu Gangd5eca7e2013-06-25 18:12:14 +0800596#define CONFIG_SYS_FSL_SRIO_LIODN
York Sunfb5137a2013-03-25 07:33:29 +0000597#define CONFIG_SYS_FSL_USB_DUAL_PHY_ENABLE
598#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
599#define CONFIG_SYS_FSL_ERRATUM_A004468
600#define CONFIG_SYS_FSL_ERRATUM_A_004934
601#define CONFIG_SYS_FSL_ERRATUM_A005871
Scott Wood3f4a5c42013-05-15 17:50:13 -0500602#define CONFIG_SYS_FSL_ERRATUM_A006593
York Sunfb5137a2013-03-25 07:33:29 +0000603#define CONFIG_SYS_CCSRBAR_DEFAULT 0xfe000000
604#define CONFIG_SYS_FSL_PCI_VER_3_X
605
Poonam Aggrwal525ab512013-03-25 07:40:20 +0000606#elif defined(CONFIG_PPC_B4860) || defined(CONFIG_PPC_B4420)
607#define CONFIG_E6500
Poonam Aggrwal248865e2012-12-23 19:24:16 +0000608#define CONFIG_SYS_PPC64 /* 64-bit core */
609#define CONFIG_FSL_CORENET /* Freescale CoreNet platform */
610#define CONFIG_SYS_FSL_QORIQ_CHASSIS2 /* Freescale Chassis generation 2 */
611#define CONFIG_SYS_FSL_QMAN_V3 /* QMAN version 3 */
Poonam Aggrwal248865e2012-12-23 19:24:16 +0000612#define CONFIG_SYS_FSL_NUM_LAWS 32
Prabhakar Kushwaha873e9f02013-07-31 16:56:41 +0530613#define CONFIG_SYS_FSL_SRDS_1
614#define CONFIG_SYS_FSL_SRDS_2
Poonam Aggrwal248865e2012-12-23 19:24:16 +0000615#define CONFIG_SYS_FSL_SEC_COMPAT 4
616#define CONFIG_SYS_NUM_FMAN 1
Prabhakar Kushwaha7e8382f2013-09-03 11:20:15 +0530617#define CONFIG_SYS_FM1_CLK 0
Poonam Aggrwal248865e2012-12-23 19:24:16 +0000618#define CONFIG_SYS_FSL_DDR_VER FSL_DDR_VER_4_7
Mingkai Hu6f024c92013-05-16 10:18:13 +0800619#define CONFIG_SYS_FSL_IFC_BANK_COUNT 4
Poonam Aggrwal248865e2012-12-23 19:24:16 +0000620#define CONFIG_SYS_FMAN_V3
621#define CONFIG_SYS_FM_MURAM_SIZE 0x60000
622#define CONFIG_SYS_FSL_TBCLK_DIV 16
623#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.4"
624#define CONFIG_SYS_FSL_USB1_PHY_ENABLE
625#define CONFIG_SYS_FSL_ERRATUM_A_004934
Shengzhou Liu5d9606e2013-02-27 21:56:54 +0000626#define CONFIG_SYS_FSL_ERRATUM_A005871
Scott Wood3f4a5c42013-05-15 17:50:13 -0500627#define CONFIG_SYS_FSL_ERRATUM_A006593
Poonam Aggrwal248865e2012-12-23 19:24:16 +0000628#define CONFIG_SYS_CCSRBAR_DEFAULT 0xfe000000
629
Poonam Aggrwal525ab512013-03-25 07:40:20 +0000630#ifdef CONFIG_PPC_B4860
York Sunaa150bb2013-03-25 07:40:07 +0000631#define CONFIG_SYS_FSL_CORES_PER_CLUSTER 4
York Sunbcf7b3d2012-10-08 07:44:20 +0000632#define CONFIG_MAX_CPUS 4
633#define CONFIG_SYS_FSL_NUM_CC_PLLS 4
Prabhakar Kushwaha7e8382f2013-09-03 11:20:15 +0530634#define CONFIG_SYS_FSL_CLUSTER_CLOCKS { 1, 4, 4, 4 }
York Sunbcf7b3d2012-10-08 07:44:20 +0000635#define CONFIG_SYS_NUM_FM1_DTSEC 6
636#define CONFIG_SYS_NUM_FM1_10GEC 2
Poonam Aggrwal1c859552012-12-23 19:22:33 +0000637#define CONFIG_NUM_DDR_CONTROLLERS 2
York Sunbcf7b3d2012-10-08 07:44:20 +0000638#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 2
639#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
640#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
Liu Gangbc6486a2013-06-25 18:12:13 +0800641#define CONFIG_SYS_FSL_SRIO_LIODN
Poonam Aggrwal525ab512013-03-25 07:40:20 +0000642#else
643#define CONFIG_MAX_CPUS 2
644#define CONFIG_SYS_FSL_CORES_PER_CLUSTER 2
645#define CONFIG_SYS_FSL_NUM_CC_PLLS 4
Prabhakar Kushwaha7e8382f2013-09-03 11:20:15 +0530646#define CONFIG_SYS_FSL_CLUSTER_CLOCKS { 1, 4 }
Poonam Aggrwal525ab512013-03-25 07:40:20 +0000647#define CONFIG_SYS_NUM_FM1_DTSEC 4
648#define CONFIG_SYS_NUM_FM1_10GEC 0
649#define CONFIG_NUM_DDR_CONTROLLERS 1
650#endif
York Sunbcf7b3d2012-10-08 07:44:20 +0000651
York Sun46571362013-03-25 07:40:06 +0000652#elif defined(CONFIG_PPC_T1040)
653#define CONFIG_E5500
654#define CONFIG_FSL_CORENET /* Freescale CoreNet platform */
655#define CONFIG_SYS_FSL_QORIQ_CHASSIS2 /* Freescale Chassis generation 2 */
York Sunaa150bb2013-03-25 07:40:07 +0000656#define CONFIG_SYS_FSL_CORES_PER_CLUSTER 1
York Sun46571362013-03-25 07:40:06 +0000657#define CONFIG_SYS_FSL_QMAN_V3 /* QMAN version 3 */
Prabhakar Kushwaha78512532013-09-03 11:19:54 +0530658#if defined(CONFIG_PPC_T1040) || defined(CONFIG_PPC_T1042)
York Sun46571362013-03-25 07:40:06 +0000659#define CONFIG_MAX_CPUS 4
Prabhakar Kushwaha78512532013-09-03 11:19:54 +0530660#elif defined(CONFIG_PPC_T1020) || defined(CONFIG_PPC_T1022)
661#define CONFIG_MAX_CPUS 2
662#endif
663#define CONFIG_SYS_FSL_NUM_CC_PLLS 2
Prabhakar Kushwaha7e8382f2013-09-03 11:20:15 +0530664#define CONFIG_SYS_FSL_CLUSTER_CLOCKS { 1, 1, 1, 1 }
665#define CONFIG_SYS_SDHC_CLOCK 0
York Sun46571362013-03-25 07:40:06 +0000666#define CONFIG_SYS_FSL_NUM_LAWS 16
Prabhakar Kushwaha78512532013-09-03 11:19:54 +0530667#define CONFIG_SYS_FSL_SRDS_1
668#define CONFIG_SYS_FSL_SEC_COMPAT 5
York Sun46571362013-03-25 07:40:06 +0000669#define CONFIG_SYS_NUM_FMAN 1
670#define CONFIG_SYS_NUM_FM1_DTSEC 5
671#define CONFIG_NUM_DDR_CONTROLLERS 1
Prabhakar Kushwaha7e8382f2013-09-03 11:20:15 +0530672#define CONFIG_PME_PLAT_CLK_DIV 2
673#define CONFIG_SYS_PME_CLK CONFIG_PME_PLAT_CLK_DIV
Prabhakar Kushwaha78512532013-09-03 11:19:54 +0530674#define CONFIG_SYS_FSL_DDR_VER FSL_DDR_VER_5_0
675#define CONFIG_SYS_FSL_IFC_BANK_COUNT 8
York Sun46571362013-03-25 07:40:06 +0000676#define CONFIG_SYS_FMAN_V3
Prabhakar Kushwaha7e8382f2013-09-03 11:20:15 +0530677#define CONFIG_FM_PLAT_CLK_DIV 1
678#define CONFIG_SYS_FM1_CLK CONFIG_FM_PLAT_CLK_DIV
Prabhakar Kushwaha78512532013-09-03 11:19:54 +0530679#define CONFIG_SYS_FM_MURAM_SIZE 0x30000
York Sun46571362013-03-25 07:40:06 +0000680#define CONFIG_SYS_FSL_TBCLK_DIV 32
681#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.4"
York Sun46571362013-03-25 07:40:06 +0000682#define CONFIG_SYS_FSL_USB1_PHY_ENABLE
683#define CONFIG_SYS_FSL_USB2_PHY_ENABLE
684#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
685#define CONFIG_SYS_CCSRBAR_DEFAULT 0xfe000000
686
Mingkai Hu1a258072013-07-04 17:30:36 +0800687#elif defined(CONFIG_PPC_C29X)
688#define CONFIG_MAX_CPUS 1
689#define CONFIG_FSL_SDHC_V2_3
690#define CONFIG_SYS_FSL_NUM_LAWS 12
691#define CONFIG_SYS_PPC_E500_DEBUG_TLB 3
692#define CONFIG_TSECV2_1
693#define CONFIG_SYS_FSL_SEC_COMPAT 6
694#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
695#define CONFIG_NUM_DDR_CONTROLLERS 1
696#define CONFIG_SYS_FSL_IFC_BANK_COUNT 8
697#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
York Sun0cc59072013-08-20 15:09:43 -0700698#define CONFIG_SYS_FSL_ERRATUM_A005125
Mingkai Hu1a258072013-07-04 17:30:36 +0800699
Kumar Galafe137112011-01-19 03:05:26 -0600700#else
701#error Processor type not defined for this platform
702#endif
703
Timur Tabid8f341c2011-08-04 18:03:41 -0500704#ifndef CONFIG_SYS_CCSRBAR_DEFAULT
705#error "CONFIG_SYS_CCSRBAR_DEFAULT is not defined for this platform."
706#endif
707
York Sunaa150bb2013-03-25 07:40:07 +0000708#ifdef CONFIG_E6500
709#define CONFIG_SYS_FSL_THREADS_PER_CORE 2
710#else
711#define CONFIG_SYS_FSL_THREADS_PER_CORE 1
712#endif
713
Kumar Galafe137112011-01-19 03:05:26 -0600714#endif /* _ASM_MPC85xx_CONFIG_H_ */