blob: ce1bf05547a35bb08678735097d003b03861e266 [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
23
Kumar Galafe137112011-01-19 03:05:26 -060024/* Number of TLB CAM entries we have on FSL Book-E chips */
25#if defined(CONFIG_E500MC)
26#define CONFIG_SYS_NUM_TLBCAMS 64
27#elif defined(CONFIG_E500)
28#define CONFIG_SYS_NUM_TLBCAMS 16
29#endif
30
31#if defined(CONFIG_MPC8536)
32#define CONFIG_MAX_CPUS 1
33#define CONFIG_SYS_FSL_NUM_LAWS 12
Prabhakar Kushwaha826cf622012-08-15 04:12:43 +000034#define CONFIG_SYS_PPC_E500_DEBUG_TLB 1
Kumar Galafe137112011-01-19 03:05:26 -060035#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabid8f341c2011-08-04 18:03:41 -050036#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Galafe137112011-01-19 03:05:26 -060037
Wolfgang Denka4de8352011-02-02 22:36:10 +010038#elif defined(CONFIG_MPC8540)
Kumar Galafe137112011-01-19 03:05:26 -060039#define CONFIG_MAX_CPUS 1
40#define CONFIG_SYS_FSL_NUM_LAWS 8
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_MPC8541)
Kumar Galafe137112011-01-19 03:05:26 -060044#define CONFIG_MAX_CPUS 1
45#define CONFIG_SYS_FSL_NUM_LAWS 8
46#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabid8f341c2011-08-04 18:03:41 -050047#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Galafe137112011-01-19 03:05:26 -060048
49#elif defined(CONFIG_MPC8544)
50#define CONFIG_MAX_CPUS 1
51#define CONFIG_SYS_FSL_NUM_LAWS 10
Prabhakar Kushwaha826cf622012-08-15 04:12:43 +000052#define CONFIG_SYS_PPC_E500_DEBUG_TLB 0
Kumar Galafe137112011-01-19 03:05:26 -060053#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabid8f341c2011-08-04 18:03:41 -050054#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Galafe137112011-01-19 03:05:26 -060055
56#elif defined(CONFIG_MPC8548)
57#define CONFIG_MAX_CPUS 1
58#define CONFIG_SYS_FSL_NUM_LAWS 10
Prabhakar Kushwaha826cf622012-08-15 04:12:43 +000059#define CONFIG_SYS_PPC_E500_DEBUG_TLB 0
Kumar Galafe137112011-01-19 03:05:26 -060060#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabid8f341c2011-08-04 18:03:41 -050061#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Gala866c6fa2011-09-16 09:54:30 -050062#define CONFIG_SYS_FSL_ERRATUM_NMG_DDR120
Kumar Galaf3339d62011-10-03 08:37:57 -050063#define CONFIG_SYS_FSL_ERRATUM_NMG_LBC103
chenhui zhaoc8caa8a2011-10-03 08:38:50 -050064#define CONFIG_SYS_FSL_ERRATUM_NMG_ETSEC129
Liu Gang78deaa12012-03-08 00:33:14 +000065#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 1
66#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
67#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
68#define CONFIG_SYS_FSL_RMU
69#define CONFIG_SYS_FSL_SRIO_MSG_UNIT_NUM 2
Kumar Galafe137112011-01-19 03:05:26 -060070
71#elif defined(CONFIG_MPC8555)
72#define CONFIG_MAX_CPUS 1
73#define CONFIG_SYS_FSL_NUM_LAWS 8
74#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabid8f341c2011-08-04 18:03:41 -050075#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Galafe137112011-01-19 03:05:26 -060076
77#elif defined(CONFIG_MPC8560)
78#define CONFIG_MAX_CPUS 1
79#define CONFIG_SYS_FSL_NUM_LAWS 8
Timur Tabid8f341c2011-08-04 18:03:41 -050080#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Galafe137112011-01-19 03:05:26 -060081
82#elif defined(CONFIG_MPC8568)
83#define CONFIG_MAX_CPUS 1
84#define CONFIG_SYS_FSL_NUM_LAWS 10
85#define CONFIG_SYS_FSL_SEC_COMPAT 2
Kumar Gala52bd8152011-01-31 23:09:25 -060086#define QE_MURAM_SIZE 0x10000UL
87#define MAX_QE_RISC 2
88#define QE_NUM_OF_SNUM 28
Timur Tabid8f341c2011-08-04 18:03:41 -050089#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Liu Gang78deaa12012-03-08 00:33:14 +000090#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 1
91#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
92#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
93#define CONFIG_SYS_FSL_RMU
94#define CONFIG_SYS_FSL_SRIO_MSG_UNIT_NUM 2
Kumar Galafe137112011-01-19 03:05:26 -060095
96#elif defined(CONFIG_MPC8569)
97#define CONFIG_MAX_CPUS 1
98#define CONFIG_SYS_FSL_NUM_LAWS 10
99#define CONFIG_SYS_FSL_SEC_COMPAT 2
Kumar Gala52bd8152011-01-31 23:09:25 -0600100#define QE_MURAM_SIZE 0x20000UL
101#define MAX_QE_RISC 4
102#define QE_NUM_OF_SNUM 46
Timur Tabid8f341c2011-08-04 18:03:41 -0500103#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Liu Gang78deaa12012-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 Galafe137112011-01-19 03:05:26 -0600109
110#elif defined(CONFIG_MPC8572)
111#define CONFIG_MAX_CPUS 2
112#define CONFIG_SYS_FSL_NUM_LAWS 12
Prabhakar Kushwaha826cf622012-08-15 04:12:43 +0000113#define CONFIG_SYS_PPC_E500_DEBUG_TLB 2
Kumar Galafe137112011-01-19 03:05:26 -0600114#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabid8f341c2011-08-04 18:03:41 -0500115#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
York Sun9aa857b2011-01-25 21:51:27 -0800116#define CONFIG_SYS_FSL_ERRATUM_DDR_115
York Sunc8fc9592011-01-25 22:05:49 -0800117#define CONFIG_SYS_FSL_ERRATUM_DDR111_DDR134
Kumar Galafe137112011-01-19 03:05:26 -0600118
119#elif defined(CONFIG_P1010)
120#define CONFIG_MAX_CPUS 1
Priyanka Jain02449632011-02-09 09:24:10 +0530121#define CONFIG_FSL_SDHC_V2_3
Kumar Galafe137112011-01-19 03:05:26 -0600122#define CONFIG_SYS_FSL_NUM_LAWS 12
Prabhakar Kushwaha3d42a962012-04-29 23:57:12 +0000123#define CONFIG_SYS_PPC_E500_DEBUG_TLB 3
Kumar Galafe137112011-01-19 03:05:26 -0600124#define CONFIG_TSECV2
125#define CONFIG_SYS_FSL_SEC_COMPAT 4
Poonam Aggrwal7373c592011-02-06 11:31:44 +0530126#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
127#define CONFIG_NUM_DDR_CONTROLLERS 1
Mingkai Hu6f024c92013-05-16 10:18:13 +0800128#define CONFIG_SYS_FSL_IFC_BANK_COUNT 4
Poonam Aggrwal7373c592011-02-06 11:31:44 +0530129#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Gala179b1b22011-05-20 00:39:21 -0500130#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.2"
Ramneek Mehresh3fb68ee2011-03-23 15:20:43 +0530131#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
Poonam Aggrwalc7664a42011-06-30 03:00:28 -0500132#define CONFIG_SYS_FSL_ERRATUM_IFC_A002769
Poonam Aggrwalaf54a5f2011-06-29 16:32:52 +0530133#define CONFIG_SYS_FSL_ERRATUM_P1010_A003549
Poonam Aggrwal46b86ca2011-07-07 20:36:47 +0530134#define CONFIG_SYS_FSL_ERRATUM_IFC_A003399
Kumar Galafe137112011-01-19 03:05:26 -0600135
Kumar Galae4e69252011-02-05 13:45:07 -0600136/* P1011 is single core version of P1020 */
Kumar Galafe137112011-01-19 03:05:26 -0600137#elif defined(CONFIG_P1011)
138#define CONFIG_MAX_CPUS 1
139#define CONFIG_SYS_FSL_NUM_LAWS 12
Prabhakar Kushwaha3d42a962012-04-29 23:57:12 +0000140#define CONFIG_SYS_PPC_E500_DEBUG_TLB 2
Kumar Galafe137112011-01-19 03:05:26 -0600141#define CONFIG_TSECV2
Prabhakar Kushwaha1c48e772011-02-01 15:55:58 +0000142#define CONFIG_FSL_PCIE_DISABLE_ASPM
Kumar Galafe137112011-01-19 03:05:26 -0600143#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabid8f341c2011-08-04 18:03:41 -0500144#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Galae4e69252011-02-05 13:45:07 -0600145#define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
146#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
Kumar Galafe137112011-01-19 03:05:26 -0600147
Kumar Galae4e69252011-02-05 13:45:07 -0600148/* P1012 is single core version of P1021 */
Kumar Galafe137112011-01-19 03:05:26 -0600149#elif defined(CONFIG_P1012)
150#define CONFIG_MAX_CPUS 1
151#define CONFIG_SYS_FSL_NUM_LAWS 12
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
Haiying Wang8cb2af72011-02-11 01:25:30 -0600159#define QE_MURAM_SIZE 0x6000UL
160#define MAX_QE_RISC 1
161#define QE_NUM_OF_SNUM 28
Kumar Galafe137112011-01-19 03:05:26 -0600162
Kumar Galae4e69252011-02-05 13:45:07 -0600163/* P1013 is single core version of P1022 */
Kumar Galafe137112011-01-19 03:05:26 -0600164#elif defined(CONFIG_P1013)
165#define CONFIG_MAX_CPUS 1
166#define CONFIG_SYS_FSL_NUM_LAWS 12
Prabhakar Kushwaha3d42a962012-04-29 23:57:12 +0000167#define CONFIG_SYS_PPC_E500_DEBUG_TLB 2
Kumar Galafe137112011-01-19 03:05:26 -0600168#define CONFIG_TSECV2
169#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabid8f341c2011-08-04 18:03:41 -0500170#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Jiang Yutang7cd05902011-01-30 17:06:20 -0600171#define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
172#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
173#define CONFIG_FSL_SATA_ERRATUM_A001
Kumar Galafe137112011-01-19 03:05:26 -0600174
175#elif defined(CONFIG_P1014)
176#define CONFIG_MAX_CPUS 1
Priyanka Jain02449632011-02-09 09:24:10 +0530177#define CONFIG_FSL_SDHC_V2_3
Kumar Galafe137112011-01-19 03:05:26 -0600178#define CONFIG_SYS_FSL_NUM_LAWS 12
Prabhakar Kushwaha3d42a962012-04-29 23:57:12 +0000179#define CONFIG_SYS_PPC_E500_DEBUG_TLB 3
Kumar Galafe137112011-01-19 03:05:26 -0600180#define CONFIG_TSECV2
181#define CONFIG_SYS_FSL_SEC_COMPAT 4
Poonam Aggrwal7373c592011-02-06 11:31:44 +0530182#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
183#define CONFIG_NUM_DDR_CONTROLLERS 1
184#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Ramneek Mehresh3fb68ee2011-03-23 15:20:43 +0530185#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
Poonam Aggrwalc7664a42011-06-30 03:00:28 -0500186#define CONFIG_SYS_FSL_ERRATUM_IFC_A002769
Poonam Aggrwalaf54a5f2011-06-29 16:32:52 +0530187#define CONFIG_SYS_FSL_ERRATUM_P1010_A003549
Poonam Aggrwal46b86ca2011-07-07 20:36:47 +0530188#define CONFIG_SYS_FSL_ERRATUM_IFC_A003399
Kumar Galafe137112011-01-19 03:05:26 -0600189
Kumar Galae4e69252011-02-05 13:45:07 -0600190/* P1017 is single core version of P1023 */
Roy Zang1de20b02011-02-03 22:14:19 -0600191#elif defined(CONFIG_P1017)
192#define CONFIG_MAX_CPUS 1
193#define CONFIG_SYS_FSL_NUM_LAWS 12
194#define CONFIG_SYS_FSL_SEC_COMPAT 4
195#define CONFIG_SYS_NUM_FMAN 1
196#define CONFIG_SYS_NUM_FM1_DTSEC 2
197#define CONFIG_NUM_DDR_CONTROLLERS 1
198#define CONFIG_SYS_QMAN_NUM_PORTALS 3
199#define CONFIG_SYS_BMAN_NUM_PORTALS 3
Kumar Galad80dfe42011-02-04 00:43:34 -0600200#define CONFIG_SYS_FM_MURAM_SIZE 0x10000
Kumar Gala179b1b22011-05-20 00:39:21 -0500201#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.2"
Timur Tabid8f341c2011-08-04 18:03:41 -0500202#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff600000
Roy Zang1de20b02011-02-03 22:14:19 -0600203
Kumar Galafe137112011-01-19 03:05:26 -0600204#elif defined(CONFIG_P1020)
205#define CONFIG_MAX_CPUS 2
206#define CONFIG_SYS_FSL_NUM_LAWS 12
Prabhakar Kushwaha3d42a962012-04-29 23:57:12 +0000207#define CONFIG_SYS_PPC_E500_DEBUG_TLB 2
Kumar Galafe137112011-01-19 03:05:26 -0600208#define CONFIG_TSECV2
Prabhakar Kushwaha1c48e772011-02-01 15:55:58 +0000209#define CONFIG_FSL_PCIE_DISABLE_ASPM
Kumar Galafe137112011-01-19 03:05:26 -0600210#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabid8f341c2011-08-04 18:03:41 -0500211#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Galae4e69252011-02-05 13:45:07 -0600212#define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
213#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
Kumar Galafe137112011-01-19 03:05:26 -0600214
215#elif defined(CONFIG_P1021)
216#define CONFIG_MAX_CPUS 2
217#define CONFIG_SYS_FSL_NUM_LAWS 12
Prabhakar Kushwaha3d42a962012-04-29 23:57:12 +0000218#define CONFIG_SYS_PPC_E500_DEBUG_TLB 2
Kumar Galafe137112011-01-19 03:05:26 -0600219#define CONFIG_TSECV2
Prabhakar Kushwaha1c48e772011-02-01 15:55:58 +0000220#define CONFIG_FSL_PCIE_DISABLE_ASPM
Kumar Galafe137112011-01-19 03:05:26 -0600221#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabid8f341c2011-08-04 18:03:41 -0500222#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Galae4e69252011-02-05 13:45:07 -0600223#define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
224#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
Haiying Wang8cb2af72011-02-11 01:25:30 -0600225#define QE_MURAM_SIZE 0x6000UL
226#define MAX_QE_RISC 1
227#define QE_NUM_OF_SNUM 28
Kumar Galafe137112011-01-19 03:05:26 -0600228
229#elif defined(CONFIG_P1022)
230#define CONFIG_MAX_CPUS 2
231#define CONFIG_SYS_FSL_NUM_LAWS 12
Prabhakar Kushwaha3d42a962012-04-29 23:57:12 +0000232#define CONFIG_SYS_PPC_E500_DEBUG_TLB 2
Kumar Galafe137112011-01-19 03:05:26 -0600233#define CONFIG_TSECV2
234#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabid8f341c2011-08-04 18:03:41 -0500235#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Jiang Yutang7cd05902011-01-30 17:06:20 -0600236#define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
237#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
238#define CONFIG_FSL_SATA_ERRATUM_A001
Kumar Galafe137112011-01-19 03:05:26 -0600239
Roy Zang1de20b02011-02-03 22:14:19 -0600240#elif defined(CONFIG_P1023)
241#define CONFIG_MAX_CPUS 2
242#define CONFIG_SYS_FSL_NUM_LAWS 12
243#define CONFIG_SYS_FSL_SEC_COMPAT 4
244#define CONFIG_SYS_NUM_FMAN 1
245#define CONFIG_SYS_NUM_FM1_DTSEC 2
246#define CONFIG_NUM_DDR_CONTROLLERS 1
247#define CONFIG_SYS_QMAN_NUM_PORTALS 3
248#define CONFIG_SYS_BMAN_NUM_PORTALS 3
Kumar Galad80dfe42011-02-04 00:43:34 -0600249#define CONFIG_SYS_FM_MURAM_SIZE 0x10000
Kumar Gala179b1b22011-05-20 00:39:21 -0500250#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.2"
Timur Tabid8f341c2011-08-04 18:03:41 -0500251#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff600000
Roy Zang1de20b02011-02-03 22:14:19 -0600252
Kumar Galae4e69252011-02-05 13:45:07 -0600253/* P1024 is lower end variant of P1020 */
254#elif defined(CONFIG_P1024)
255#define CONFIG_MAX_CPUS 2
256#define CONFIG_SYS_FSL_NUM_LAWS 12
Prabhakar Kushwaha3d42a962012-04-29 23:57:12 +0000257#define CONFIG_SYS_PPC_E500_DEBUG_TLB 2
Kumar Galae4e69252011-02-05 13:45:07 -0600258#define CONFIG_TSECV2
259#define CONFIG_FSL_PCIE_DISABLE_ASPM
260#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabid8f341c2011-08-04 18:03:41 -0500261#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Galae4e69252011-02-05 13:45:07 -0600262#define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
263#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
264
265/* P1025 is lower end variant of P1021 */
266#elif defined(CONFIG_P1025)
267#define CONFIG_MAX_CPUS 2
268#define CONFIG_SYS_FSL_NUM_LAWS 12
Prabhakar Kushwaha3d42a962012-04-29 23:57:12 +0000269#define CONFIG_SYS_PPC_E500_DEBUG_TLB 2
Kumar Galae4e69252011-02-05 13:45:07 -0600270#define CONFIG_TSECV2
271#define CONFIG_FSL_PCIE_DISABLE_ASPM
272#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabid8f341c2011-08-04 18:03:41 -0500273#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Galae4e69252011-02-05 13:45:07 -0600274#define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
275#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
Haiying Wang8cb2af72011-02-11 01:25:30 -0600276#define QE_MURAM_SIZE 0x6000UL
277#define MAX_QE_RISC 1
278#define QE_NUM_OF_SNUM 28
Kumar Galae4e69252011-02-05 13:45:07 -0600279
280/* P2010 is single core version of P2020 */
Kumar Galafe137112011-01-19 03:05:26 -0600281#elif defined(CONFIG_P2010)
282#define CONFIG_MAX_CPUS 1
283#define CONFIG_SYS_FSL_NUM_LAWS 12
Prabhakar Kushwaha3d42a962012-04-29 23:57:12 +0000284#define CONFIG_SYS_PPC_E500_DEBUG_TLB 2
Kumar Galafe137112011-01-19 03:05:26 -0600285#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabid8f341c2011-08-04 18:03:41 -0500286#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Gala7b5b4802011-01-26 01:43:15 -0600287#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
Kumar Gala9a878d52011-01-29 15:36:10 -0600288#define CONFIG_SYS_FSL_ERRATUM_ESDHC_A001
Kumar Galafe137112011-01-19 03:05:26 -0600289
290#elif defined(CONFIG_P2020)
291#define CONFIG_MAX_CPUS 2
292#define CONFIG_SYS_FSL_NUM_LAWS 12
Prabhakar Kushwaha3d42a962012-04-29 23:57:12 +0000293#define CONFIG_SYS_PPC_E500_DEBUG_TLB 2
Kumar Galafe137112011-01-19 03:05:26 -0600294#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
Liu Gang78deaa12012-03-08 00:33:14 +0000298#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 2
299#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
300#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
301#define CONFIG_SYS_FSL_RMU
302#define CONFIG_SYS_FSL_SRIO_MSG_UNIT_NUM 2
Kumar Galafe137112011-01-19 03:05:26 -0600303
Scott Wooda1ef48c2012-08-14 10:14:51 +0000304#elif defined(CONFIG_PPC_P2041) /* also supports P2040 */
York Sun7e0edbd2012-10-08 07:44:15 +0000305#define CONFIG_SYS_FSL_QORIQ_CHASSIS1
York Sun544f8812013-06-25 11:37:39 -0700306#define CONFIG_FSL_CORENET /* Freescale CoreNet platform */
Kumar Galafe137112011-01-19 03:05:26 -0600307#define CONFIG_MAX_CPUS 4
Kumar Gala3842bb52011-02-16 02:03:29 -0600308#define CONFIG_SYS_FSL_NUM_CC_PLLS 2
Kumar Galafe137112011-01-19 03:05:26 -0600309#define CONFIG_SYS_FSL_NUM_LAWS 32
310#define CONFIG_SYS_FSL_SEC_COMPAT 4
Kumar Gala619541b2011-05-13 01:16:07 -0500311#define CONFIG_SYS_NUM_FMAN 1
312#define CONFIG_SYS_NUM_FM1_DTSEC 5
313#define CONFIG_SYS_NUM_FM1_10GEC 1
314#define CONFIG_NUM_DDR_CONTROLLERS 1
315#define CONFIG_SYS_FM_MURAM_SIZE 0x28000
316#define CONFIG_SYS_FSL_TBCLK_DIV 32
317#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.2"
Timur Tabid8f341c2011-08-04 18:03:41 -0500318#define CONFIG_SYS_CCSRBAR_DEFAULT 0xfe000000
Kumar Gala619541b2011-05-13 01:16:07 -0500319#define CONFIG_SYS_FSL_USB1_PHY_ENABLE
320#define CONFIG_SYS_FSL_USB2_PHY_ENABLE
Kumar Galaa49034f2011-04-13 00:19:10 -0500321#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
Kumar Gala619541b2011-05-13 01:16:07 -0500322#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
York Sun9ed88112012-05-07 07:26:47 +0000323#define CONFIG_SYS_FSL_ERRATUM_NMG_CPU_A011
Xuleicf4f4932013-03-11 17:56:34 +0000324#define CONFIG_SYS_FSL_ERRATUM_USB14
Kumar Gala945e59a2011-11-22 06:51:15 -0600325#define CONFIG_SYS_FSL_ERRATUM_CPU_A003999
York Sun52db64b2013-03-25 07:30:11 +0000326#define CONFIG_SYS_FSL_ERRATUM_DDR_A003
York Sundf2be192011-11-20 10:01:35 -0800327#define CONFIG_SYS_FSL_ERRATUM_DDR_A003474
Liu Gang78deaa12012-03-08 00:33:14 +0000328#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 2
329#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
330#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
Scott Wood80806962012-08-14 10:14:53 +0000331#define CONFIG_SYS_FSL_ERRATUM_A004510
332#define CONFIG_SYS_FSL_ERRATUM_A004510_SVR_REV 0x10
333#define CONFIG_SYS_FSL_ERRATUM_A004510_SVR_REV2 0x11
334#define CONFIG_SYS_FSL_CORENET_SNOOPVEC_COREONLY 0xf0000000
Liu Gang712b6622012-09-28 21:26:19 +0000335#define CONFIG_SYS_FSL_ERRATUM_SRIO_A004034
Timur Tabie3ab8c12012-10-25 12:40:00 +0000336#define CONFIG_SYS_FSL_ERRATUM_A004849
Kumar Gala619541b2011-05-13 01:16:07 -0500337
Kumar Galafe137112011-01-19 03:05:26 -0600338#elif defined(CONFIG_PPC_P3041)
York Sun7e0edbd2012-10-08 07:44:15 +0000339#define CONFIG_SYS_FSL_QORIQ_CHASSIS1
York Sun544f8812013-06-25 11:37:39 -0700340#define CONFIG_FSL_CORENET /* Freescale CoreNet platform */
Kumar Galafe137112011-01-19 03:05:26 -0600341#define CONFIG_MAX_CPUS 4
Kumar Gala3842bb52011-02-16 02:03:29 -0600342#define CONFIG_SYS_FSL_NUM_CC_PLLS 2
Kumar Galafe137112011-01-19 03:05:26 -0600343#define CONFIG_SYS_FSL_NUM_LAWS 32
344#define CONFIG_SYS_FSL_SEC_COMPAT 4
Kumar Gala60d95d82011-01-25 12:42:32 -0600345#define CONFIG_SYS_NUM_FMAN 1
346#define CONFIG_SYS_NUM_FM1_DTSEC 5
347#define CONFIG_SYS_NUM_FM1_10GEC 1
348#define CONFIG_NUM_DDR_CONTROLLERS 1
Kumar Galad80dfe42011-02-04 00:43:34 -0600349#define CONFIG_SYS_FM_MURAM_SIZE 0x28000
Kumar Galaf4fb90f2011-02-18 05:40:54 -0600350#define CONFIG_SYS_FSL_TBCLK_DIV 32
Kumar Gala179b1b22011-05-20 00:39:21 -0500351#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.2"
Timur Tabid8f341c2011-08-04 18:03:41 -0500352#define CONFIG_SYS_CCSRBAR_DEFAULT 0xfe000000
Roy Zang6d6a0e12011-04-13 00:08:51 -0500353#define CONFIG_SYS_FSL_USB1_PHY_ENABLE
354#define CONFIG_SYS_FSL_USB2_PHY_ENABLE
Kumar Galaa49034f2011-04-13 00:19:10 -0500355#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
Lei Xu32276202011-04-19 15:28:41 +0800356#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
York Sun53155532012-08-08 18:04:53 +0000357#define CONFIG_SYS_FSL_ERRATUM_NMG_CPU_A011
Xuleicf4f4932013-03-11 17:56:34 +0000358#define CONFIG_SYS_FSL_ERRATUM_USB14
Kumar Gala945e59a2011-11-22 06:51:15 -0600359#define CONFIG_SYS_FSL_ERRATUM_CPU_A003999
York Sun52db64b2013-03-25 07:30:11 +0000360#define CONFIG_SYS_FSL_ERRATUM_DDR_A003
York Sundf2be192011-11-20 10:01:35 -0800361#define CONFIG_SYS_FSL_ERRATUM_DDR_A003474
Liu Gang78deaa12012-03-08 00:33:14 +0000362#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 2
363#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
364#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
Scott Wood80806962012-08-14 10:14:53 +0000365#define CONFIG_SYS_FSL_ERRATUM_A004510
366#define CONFIG_SYS_FSL_ERRATUM_A004510_SVR_REV 0x10
367#define CONFIG_SYS_FSL_ERRATUM_A004510_SVR_REV2 0x11
368#define CONFIG_SYS_FSL_CORENET_SNOOPVEC_COREONLY 0xf0000000
Liu Gang712b6622012-09-28 21:26:19 +0000369#define CONFIG_SYS_FSL_ERRATUM_SRIO_A004034
Timur Tabie3ab8c12012-10-25 12:40:00 +0000370#define CONFIG_SYS_FSL_ERRATUM_A004849
York Suncca41c52013-06-25 11:37:49 -0700371#define CONFIG_SYS_FSL_ERRATUM_A005812
Kumar Galafe137112011-01-19 03:05:26 -0600372
Scott Wooda1ef48c2012-08-14 10:14:51 +0000373#elif defined(CONFIG_PPC_P4080) /* also supports P4040 */
York Sun7e0edbd2012-10-08 07:44:15 +0000374#define CONFIG_SYS_FSL_QORIQ_CHASSIS1
York Sun544f8812013-06-25 11:37:39 -0700375#define CONFIG_FSL_CORENET /* Freescale CoreNet platform */
Kumar Galafe137112011-01-19 03:05:26 -0600376#define CONFIG_MAX_CPUS 8
Kumar Gala3842bb52011-02-16 02:03:29 -0600377#define CONFIG_SYS_FSL_NUM_CC_PLLS 4
Kumar Galafe137112011-01-19 03:05:26 -0600378#define CONFIG_SYS_FSL_NUM_LAWS 32
379#define CONFIG_SYS_FSL_SEC_COMPAT 4
380#define CONFIG_SYS_NUM_FMAN 2
381#define CONFIG_SYS_NUM_FM1_DTSEC 4
382#define CONFIG_SYS_NUM_FM2_DTSEC 4
383#define CONFIG_SYS_NUM_FM1_10GEC 1
384#define CONFIG_SYS_NUM_FM2_10GEC 1
385#define CONFIG_NUM_DDR_CONTROLLERS 2
Kumar Galad80dfe42011-02-04 00:43:34 -0600386#define CONFIG_SYS_FM_MURAM_SIZE 0x28000
Kumar Galaf4fb90f2011-02-18 05:40:54 -0600387#define CONFIG_SYS_FSL_TBCLK_DIV 16
Kumar Gala179b1b22011-05-20 00:39:21 -0500388#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,p4080-pcie"
Timur Tabid8f341c2011-08-04 18:03:41 -0500389#define CONFIG_SYS_CCSRBAR_DEFAULT 0xfe000000
Kumar Galafe137112011-01-19 03:05:26 -0600390#define CONFIG_SYS_FSL_ERRATUM_CPC_A002
391#define CONFIG_SYS_FSL_ERRATUM_CPC_A003
York Sun922f40f2011-01-10 12:03:01 +0000392#define CONFIG_SYS_FSL_ERRATUM_DDR_A003
Kumar Galafe137112011-01-19 03:05:26 -0600393#define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
394#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
395#define CONFIG_SYS_FSL_ERRATUM_ESDHC135
Zang Roy-R6191183659922012-09-18 09:50:08 +0000396#define CONFIG_SYS_FSL_ERRATUM_ESDHC13
Kumar Galafe137112011-01-19 03:05:26 -0600397#define CONFIG_SYS_P4080_ERRATUM_CPU22
York Sun9ed88112012-05-07 07:26:47 +0000398#define CONFIG_SYS_FSL_ERRATUM_NMG_CPU_A011
Kumar Galafe137112011-01-19 03:05:26 -0600399#define CONFIG_SYS_P4080_ERRATUM_SERDES8
Emil Medveb01c81f2010-08-31 22:57:38 -0500400#define CONFIG_SYS_P4080_ERRATUM_SERDES9
Timur Tabi6a62dc42011-04-18 17:16:00 -0500401#define CONFIG_SYS_P4080_ERRATUM_SERDES_A001
Timur Tabi90f381d2011-04-01 13:19:36 -0500402#define CONFIG_SYS_P4080_ERRATUM_SERDES_A005
Kumar Gala945e59a2011-11-22 06:51:15 -0600403#define CONFIG_SYS_FSL_ERRATUM_CPU_A003999
York Sundf2be192011-11-20 10:01:35 -0800404#define CONFIG_SYS_FSL_ERRATUM_DDR_A003474
Liu Gang78deaa12012-03-08 00:33:14 +0000405#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 2
406#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
407#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
408#define CONFIG_SYS_FSL_RMU
409#define CONFIG_SYS_FSL_SRIO_MSG_UNIT_NUM 2
Scott Wood80806962012-08-14 10:14:53 +0000410#define CONFIG_SYS_FSL_ERRATUM_A004510
411#define CONFIG_SYS_FSL_ERRATUM_A004510_SVR_REV 0x20
412#define CONFIG_SYS_FSL_CORENET_SNOOPVEC_COREONLY 0xff000000
Liu Gang712b6622012-09-28 21:26:19 +0000413#define CONFIG_SYS_FSL_ERRATUM_SRIO_A004034
Timur Tabie3ab8c12012-10-25 12:40:00 +0000414#define CONFIG_SYS_FSL_ERRATUM_A004849
Timur Tabic5355dd2012-11-01 08:20:23 +0000415#define CONFIG_SYS_FSL_ERRATUM_A004580
Yuanquan Chenc48234e2012-11-26 23:49:45 +0000416#define CONFIG_SYS_P4080_ERRATUM_PCIE_A003
York Suncca41c52013-06-25 11:37:49 -0700417#define CONFIG_SYS_FSL_ERRATUM_A005812
Kumar Galafe137112011-01-19 03:05:26 -0600418
Scott Wooda1ef48c2012-08-14 10:14:51 +0000419#elif defined(CONFIG_PPC_P5020) /* also supports P5010 */
York Sun2394a0f2012-10-08 07:44:30 +0000420#define CONFIG_SYS_PPC64 /* 64-bit core */
York Sun7e0edbd2012-10-08 07:44:15 +0000421#define CONFIG_SYS_FSL_QORIQ_CHASSIS1
York Sun544f8812013-06-25 11:37:39 -0700422#define CONFIG_FSL_CORENET /* Freescale CoreNet platform */
Kumar Galafe137112011-01-19 03:05:26 -0600423#define CONFIG_MAX_CPUS 2
Kumar Gala3842bb52011-02-16 02:03:29 -0600424#define CONFIG_SYS_FSL_NUM_CC_PLLS 2
Kumar Galafe137112011-01-19 03:05:26 -0600425#define CONFIG_SYS_FSL_NUM_LAWS 32
426#define CONFIG_SYS_FSL_SEC_COMPAT 4
Kumar Gala60d95d82011-01-25 12:42:32 -0600427#define CONFIG_SYS_NUM_FMAN 1
428#define CONFIG_SYS_NUM_FM1_DTSEC 5
429#define CONFIG_SYS_NUM_FM1_10GEC 1
430#define CONFIG_NUM_DDR_CONTROLLERS 2
Kumar Galad80dfe42011-02-04 00:43:34 -0600431#define CONFIG_SYS_FM_MURAM_SIZE 0x28000
Kumar Galaf4fb90f2011-02-18 05:40:54 -0600432#define CONFIG_SYS_FSL_TBCLK_DIV 32
Kumar Gala179b1b22011-05-20 00:39:21 -0500433#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.2"
Timur Tabid8f341c2011-08-04 18:03:41 -0500434#define CONFIG_SYS_CCSRBAR_DEFAULT 0xfe000000
Roy Zang6d6a0e12011-04-13 00:08:51 -0500435#define CONFIG_SYS_FSL_USB1_PHY_ENABLE
436#define CONFIG_SYS_FSL_USB2_PHY_ENABLE
Kumar Galaa49034f2011-04-13 00:19:10 -0500437#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
Lei Xu32276202011-04-19 15:28:41 +0800438#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
Xuleicf4f4932013-03-11 17:56:34 +0000439#define CONFIG_SYS_FSL_ERRATUM_USB14
York Sun52db64b2013-03-25 07:30:11 +0000440#define CONFIG_SYS_FSL_ERRATUM_DDR_A003
York Sundf2be192011-11-20 10:01:35 -0800441#define CONFIG_SYS_FSL_ERRATUM_DDR_A003474
Liu Gang78deaa12012-03-08 00:33:14 +0000442#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 2
443#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
444#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
Scott Wood80806962012-08-14 10:14:53 +0000445#define CONFIG_SYS_FSL_ERRATUM_A004510
446#define CONFIG_SYS_FSL_ERRATUM_A004510_SVR_REV 0x10
447#define CONFIG_SYS_FSL_CORENET_SNOOPVEC_COREONLY 0xc0000000
Liu Gang712b6622012-09-28 21:26:19 +0000448#define CONFIG_SYS_FSL_ERRATUM_SRIO_A004034
Kumar Galafe137112011-01-19 03:05:26 -0600449
Timur Tabid5e13882012-10-05 11:09:19 +0000450#elif defined(CONFIG_PPC_P5040)
Timur Tabi9a7b5a32012-10-23 10:48:09 +0000451#define CONFIG_SYS_PPC64
Timur Tabid5e13882012-10-05 11:09:19 +0000452#define CONFIG_SYS_FSL_QORIQ_CHASSIS1
York Sun544f8812013-06-25 11:37:39 -0700453#define CONFIG_FSL_CORENET /* Freescale CoreNet platform */
Timur Tabid5e13882012-10-05 11:09:19 +0000454#define CONFIG_MAX_CPUS 4
455#define CONFIG_SYS_FSL_NUM_CC_PLLS 3
456#define CONFIG_SYS_FSL_NUM_LAWS 32
457#define CONFIG_SYS_FSL_SEC_COMPAT 4
458#define CONFIG_SYS_NUM_FMAN 2
459#define CONFIG_SYS_NUM_FM1_DTSEC 5
460#define CONFIG_SYS_NUM_FM1_10GEC 1
461#define CONFIG_SYS_NUM_FM2_DTSEC 5
462#define CONFIG_SYS_NUM_FM2_10GEC 1
463#define CONFIG_NUM_DDR_CONTROLLERS 2
464#define CONFIG_SYS_FM_MURAM_SIZE 0x28000
465#define CONFIG_SYS_FSL_TBCLK_DIV 16
466#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.4"
467#define CONFIG_SYS_CCSRBAR_DEFAULT 0xfe000000
468#define CONFIG_SYS_FSL_USB1_PHY_ENABLE
469#define CONFIG_SYS_FSL_USB2_PHY_ENABLE
470#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
471#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
Xuleicf4f4932013-03-11 17:56:34 +0000472#define CONFIG_SYS_FSL_ERRATUM_USB14
Timur Tabid5e13882012-10-05 11:09:19 +0000473#define CONFIG_SYS_FSL_ERRATUM_DDR_A003
474#define CONFIG_SYS_FSL_ERRATUM_DDR_A003474
475#define CONFIG_SYS_FSL_ERRATUM_A004699
Timur Tabid5e13882012-10-05 11:09:19 +0000476#define CONFIG_SYS_FSL_ERRATUM_A004510
477#define CONFIG_SYS_FSL_ERRATUM_A004510_SVR_REV 0x10
478#define CONFIG_SYS_FSL_CORENET_SNOOPVEC_COREONLY 0xf0000000
York Suncca41c52013-06-25 11:37:49 -0700479#define CONFIG_SYS_FSL_ERRATUM_A005812
Timur Tabid5e13882012-10-05 11:09:19 +0000480
Prabhakar Kushwahabeebb882012-04-24 20:16:49 +0000481#elif defined(CONFIG_BSC9131)
482#define CONFIG_MAX_CPUS 1
483#define CONFIG_FSL_SDHC_V2_3
484#define CONFIG_SYS_FSL_NUM_LAWS 12
485#define CONFIG_TSECV2
486#define CONFIG_SYS_FSL_SEC_COMPAT 4
487#define CONFIG_NUM_DDR_CONTROLLERS 1
Priyanka Jainf81e8b22013-04-04 09:31:54 +0530488#define CONFIG_SYS_FSL_DSP_M2_RAM_ADDR 0xb0000000
489#define CONFIG_SYS_FSL_DSP_CCSRBAR_DEFAULT 0xff600000
Mingkai Hu6f024c92013-05-16 10:18:13 +0800490#define CONFIG_SYS_FSL_IFC_BANK_COUNT 3
Prabhakar Kushwahabeebb882012-04-24 20:16:49 +0000491#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
492#define CONFIG_NAND_FSL_IFC
Prabhakar Kushwahabeebb882012-04-24 20:16:49 +0000493#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
494
Prabhakar Kushwaha92543c22013-01-23 17:59:57 +0000495#elif defined(CONFIG_BSC9132)
496#define CONFIG_MAX_CPUS 2
497#define CONFIG_SYS_PPC_E500_DEBUG_TLB 3
498#define CONFIG_FSL_SDHC_V2_3
499#define CONFIG_SYS_FSL_NUM_LAWS 12
500#define CONFIG_TSECV2
501#define CONFIG_SYS_FSL_SEC_COMPAT 4
502#define CONFIG_NUM_DDR_CONTROLLERS 2
Priyanka Jainc73b9032013-07-02 09:21:04 +0530503#define CONFIG_SYS_FSL_DSP_DDR_ADDR 0x40000000
504#define CONFIG_SYS_FSL_DSP_M2_RAM_ADDR 0xb0000000
505#define CONFIG_SYS_FSL_DSP_M3_RAM_ADDR 0xc0000000
506#define CONFIG_SYS_FSL_DSP_CCSRBAR_DEFAULT 0xff600000
York Sun84fa67e2013-04-18 19:31:01 -0700507#define CONFIG_SYS_FSL_IFC_BANK_COUNT 3
Prabhakar Kushwaha92543c22013-01-23 17:59:57 +0000508#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
509#define CONFIG_NAND_FSL_IFC
Prabhakar Kushwaha92543c22013-01-23 17:59:57 +0000510#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
511#define CONFIG_SYS_FSL_ESDHC_P1010_BROKEN_SDCLK
512#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.2"
513
York Sun64fd08b2013-03-25 07:40:05 +0000514#elif defined(CONFIG_PPC_T4240) || defined(CONFIG_PPC_T4160)
515#define CONFIG_E6500
York Sun2394a0f2012-10-08 07:44:30 +0000516#define CONFIG_SYS_PPC64 /* 64-bit core */
York Sun9941a222012-10-08 07:44:19 +0000517#define CONFIG_FSL_CORENET /* Freescale CoreNet platform */
518#define CONFIG_SYS_FSL_QORIQ_CHASSIS2 /* Freescale Chassis generation 2 */
York Sunaa150bb2013-03-25 07:40:07 +0000519#define CONFIG_SYS_FSL_CORES_PER_CLUSTER 4
York Sun9941a222012-10-08 07:44:19 +0000520#define CONFIG_SYS_FSL_QMAN_V3 /* QMAN version 3 */
York Sun64fd08b2013-03-25 07:40:05 +0000521#ifdef CONFIG_PPC_T4240
York Sun9941a222012-10-08 07:44:19 +0000522#define CONFIG_MAX_CPUS 12
York Sun9941a222012-10-08 07:44:19 +0000523#define CONFIG_SYS_NUM_FM1_DTSEC 8
524#define CONFIG_SYS_NUM_FM1_10GEC 2
525#define CONFIG_SYS_NUM_FM2_DTSEC 8
526#define CONFIG_SYS_NUM_FM2_10GEC 2
527#define CONFIG_NUM_DDR_CONTROLLERS 3
York Sun64fd08b2013-03-25 07:40:05 +0000528#else
York Sunfb5137a2013-03-25 07:33:29 +0000529#define CONFIG_MAX_CPUS 8
York Sun64fd08b2013-03-25 07:40:05 +0000530#define CONFIG_SYS_NUM_FM1_DTSEC 7
531#define CONFIG_SYS_NUM_FM1_10GEC 1
532#define CONFIG_SYS_NUM_FM2_DTSEC 7
533#define CONFIG_SYS_NUM_FM2_10GEC 1
534#define CONFIG_NUM_DDR_CONTROLLERS 2
535#endif
York Sunfb5137a2013-03-25 07:33:29 +0000536#define CONFIG_SYS_FSL_NUM_CC_PLLS 5
537#define CONFIG_SYS_FSL_NUM_LAWS 32
538#define CONFIG_SYS_FSL_SRDS_3
539#define CONFIG_SYS_FSL_SRDS_4
540#define CONFIG_SYS_FSL_SEC_COMPAT 4
541#define CONFIG_SYS_NUM_FMAN 2
York Sunfb5137a2013-03-25 07:33:29 +0000542#define CONFIG_SYS_FSL_DDR_VER FSL_DDR_VER_4_7
Mingkai Hu6f024c92013-05-16 10:18:13 +0800543#define CONFIG_SYS_FSL_IFC_BANK_COUNT 8
York Sunfb5137a2013-03-25 07:33:29 +0000544#define CONFIG_SYS_FMAN_V3
545#define CONFIG_SYS_FM_MURAM_SIZE 0x60000
546#define CONFIG_SYS_FSL_TBCLK_DIV 16
547#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v3.0"
548#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 2
549#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
550#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
Liu Gangd5eca7e2013-06-25 18:12:14 +0800551#define CONFIG_SYS_FSL_SRIO_LIODN
York Sunfb5137a2013-03-25 07:33:29 +0000552#define CONFIG_SYS_FSL_USB_DUAL_PHY_ENABLE
553#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
554#define CONFIG_SYS_FSL_ERRATUM_A004468
555#define CONFIG_SYS_FSL_ERRATUM_A_004934
556#define CONFIG_SYS_FSL_ERRATUM_A005871
Scott Wood3f4a5c42013-05-15 17:50:13 -0500557#define CONFIG_SYS_FSL_ERRATUM_A006593
York Sunfb5137a2013-03-25 07:33:29 +0000558#define CONFIG_SYS_CCSRBAR_DEFAULT 0xfe000000
559#define CONFIG_SYS_FSL_PCI_VER_3_X
560
Poonam Aggrwal525ab512013-03-25 07:40:20 +0000561#elif defined(CONFIG_PPC_B4860) || defined(CONFIG_PPC_B4420)
562#define CONFIG_E6500
Poonam Aggrwal248865e2012-12-23 19:24:16 +0000563#define CONFIG_SYS_PPC64 /* 64-bit core */
564#define CONFIG_FSL_CORENET /* Freescale CoreNet platform */
565#define CONFIG_SYS_FSL_QORIQ_CHASSIS2 /* Freescale Chassis generation 2 */
566#define CONFIG_SYS_FSL_QMAN_V3 /* QMAN version 3 */
Poonam Aggrwal248865e2012-12-23 19:24:16 +0000567#define CONFIG_SYS_FSL_NUM_LAWS 32
568#define CONFIG_SYS_FSL_SEC_COMPAT 4
569#define CONFIG_SYS_NUM_FMAN 1
Poonam Aggrwal248865e2012-12-23 19:24:16 +0000570#define CONFIG_SYS_FSL_DDR_VER FSL_DDR_VER_4_7
Mingkai Hu6f024c92013-05-16 10:18:13 +0800571#define CONFIG_SYS_FSL_IFC_BANK_COUNT 4
Poonam Aggrwal248865e2012-12-23 19:24:16 +0000572#define CONFIG_SYS_FMAN_V3
573#define CONFIG_SYS_FM_MURAM_SIZE 0x60000
574#define CONFIG_SYS_FSL_TBCLK_DIV 16
575#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.4"
576#define CONFIG_SYS_FSL_USB1_PHY_ENABLE
577#define CONFIG_SYS_FSL_ERRATUM_A_004934
Shengzhou Liu5d9606e2013-02-27 21:56:54 +0000578#define CONFIG_SYS_FSL_ERRATUM_A005871
Scott Wood3f4a5c42013-05-15 17:50:13 -0500579#define CONFIG_SYS_FSL_ERRATUM_A006593
Poonam Aggrwal248865e2012-12-23 19:24:16 +0000580#define CONFIG_SYS_CCSRBAR_DEFAULT 0xfe000000
581
Poonam Aggrwal525ab512013-03-25 07:40:20 +0000582#ifdef CONFIG_PPC_B4860
York Sunaa150bb2013-03-25 07:40:07 +0000583#define CONFIG_SYS_FSL_CORES_PER_CLUSTER 4
York Sunbcf7b3d2012-10-08 07:44:20 +0000584#define CONFIG_MAX_CPUS 4
585#define CONFIG_SYS_FSL_NUM_CC_PLLS 4
York Sunbcf7b3d2012-10-08 07:44:20 +0000586#define CONFIG_SYS_NUM_FM1_DTSEC 6
587#define CONFIG_SYS_NUM_FM1_10GEC 2
Poonam Aggrwal1c859552012-12-23 19:22:33 +0000588#define CONFIG_NUM_DDR_CONTROLLERS 2
York Sunbcf7b3d2012-10-08 07:44:20 +0000589#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 2
590#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
591#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
Liu Gangbc6486a2013-06-25 18:12:13 +0800592#define CONFIG_SYS_FSL_SRIO_LIODN
Poonam Aggrwal525ab512013-03-25 07:40:20 +0000593#else
594#define CONFIG_MAX_CPUS 2
595#define CONFIG_SYS_FSL_CORES_PER_CLUSTER 2
596#define CONFIG_SYS_FSL_NUM_CC_PLLS 4
597#define CONFIG_SYS_NUM_FM1_DTSEC 4
598#define CONFIG_SYS_NUM_FM1_10GEC 0
599#define CONFIG_NUM_DDR_CONTROLLERS 1
600#endif
York Sunbcf7b3d2012-10-08 07:44:20 +0000601
York Sun46571362013-03-25 07:40:06 +0000602#elif defined(CONFIG_PPC_T1040)
603#define CONFIG_E5500
604#define CONFIG_FSL_CORENET /* Freescale CoreNet platform */
605#define CONFIG_SYS_FSL_QORIQ_CHASSIS2 /* Freescale Chassis generation 2 */
York Sunaa150bb2013-03-25 07:40:07 +0000606#define CONFIG_SYS_FSL_CORES_PER_CLUSTER 1
York Sun46571362013-03-25 07:40:06 +0000607#define CONFIG_SYS_FSL_QMAN_V3 /* QMAN version 3 */
608#define CONFIG_MAX_CPUS 4
609#define CONFIG_SYS_FSL_NUM_CC_PLLS 5
610#define CONFIG_SYS_FSL_NUM_LAWS 16
611#define CONFIG_SYS_FSL_SEC_COMPAT 4
612#define CONFIG_SYS_NUM_FMAN 1
613#define CONFIG_SYS_NUM_FM1_DTSEC 5
614#define CONFIG_NUM_DDR_CONTROLLERS 1
615#define CONFIG_SYS_FSL_DDR_VER FSL_DDR_VER_4_7
616#define CONFIG_SYS_FSL_IFC_BANK_COUNT 4
617#define CONFIG_SYS_FMAN_V3
618#define CONFIG_SYS_FM_MURAM_SIZE 0x28000
619#define CONFIG_SYS_FSL_TBCLK_DIV 32
620#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.4"
621#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 2
622#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
623#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
624#define CONFIG_SYS_FSL_USB1_PHY_ENABLE
625#define CONFIG_SYS_FSL_USB2_PHY_ENABLE
626#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
627#define CONFIG_SYS_CCSRBAR_DEFAULT 0xfe000000
628
Mingkai Hu1a258072013-07-04 17:30:36 +0800629#elif defined(CONFIG_PPC_C29X)
630#define CONFIG_MAX_CPUS 1
631#define CONFIG_FSL_SDHC_V2_3
632#define CONFIG_SYS_FSL_NUM_LAWS 12
633#define CONFIG_SYS_PPC_E500_DEBUG_TLB 3
634#define CONFIG_TSECV2_1
635#define CONFIG_SYS_FSL_SEC_COMPAT 6
636#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
637#define CONFIG_NUM_DDR_CONTROLLERS 1
638#define CONFIG_SYS_FSL_IFC_BANK_COUNT 8
639#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
640
Kumar Galafe137112011-01-19 03:05:26 -0600641#else
642#error Processor type not defined for this platform
643#endif
644
Timur Tabid8f341c2011-08-04 18:03:41 -0500645#ifndef CONFIG_SYS_CCSRBAR_DEFAULT
646#error "CONFIG_SYS_CCSRBAR_DEFAULT is not defined for this platform."
647#endif
648
York Sunaa150bb2013-03-25 07:40:07 +0000649#ifdef CONFIG_E6500
650#define CONFIG_SYS_FSL_THREADS_PER_CORE 2
651#else
652#define CONFIG_SYS_FSL_THREADS_PER_CORE 1
653#endif
654
Kumar Galafe137112011-01-19 03:05:26 -0600655#endif /* _ASM_MPC85xx_CONFIG_H_ */