blob: 3251905f562178230345799175f3f534e0fe4644 [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
Kumar Galafe137112011-01-19 03:05:26 -0600306#define CONFIG_MAX_CPUS 4
Kumar Gala3842bb52011-02-16 02:03:29 -0600307#define CONFIG_SYS_FSL_NUM_CC_PLLS 2
Kumar Galafe137112011-01-19 03:05:26 -0600308#define CONFIG_SYS_FSL_NUM_LAWS 32
309#define CONFIG_SYS_FSL_SEC_COMPAT 4
Kumar Gala619541b2011-05-13 01:16:07 -0500310#define CONFIG_SYS_NUM_FMAN 1
311#define CONFIG_SYS_NUM_FM1_DTSEC 5
312#define CONFIG_SYS_NUM_FM1_10GEC 1
313#define CONFIG_NUM_DDR_CONTROLLERS 1
314#define CONFIG_SYS_FM_MURAM_SIZE 0x28000
315#define CONFIG_SYS_FSL_TBCLK_DIV 32
316#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.2"
Timur Tabid8f341c2011-08-04 18:03:41 -0500317#define CONFIG_SYS_CCSRBAR_DEFAULT 0xfe000000
Kumar Gala619541b2011-05-13 01:16:07 -0500318#define CONFIG_SYS_FSL_USB1_PHY_ENABLE
319#define CONFIG_SYS_FSL_USB2_PHY_ENABLE
Kumar Galaa49034f2011-04-13 00:19:10 -0500320#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
Kumar Gala619541b2011-05-13 01:16:07 -0500321#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
York Sun9ed88112012-05-07 07:26:47 +0000322#define CONFIG_SYS_FSL_ERRATUM_NMG_CPU_A011
Xuleicf4f4932013-03-11 17:56:34 +0000323#define CONFIG_SYS_FSL_ERRATUM_USB14
Kumar Gala945e59a2011-11-22 06:51:15 -0600324#define CONFIG_SYS_FSL_ERRATUM_CPU_A003999
York Sun52db64b2013-03-25 07:30:11 +0000325#define CONFIG_SYS_FSL_ERRATUM_DDR_A003
York Sundf2be192011-11-20 10:01:35 -0800326#define CONFIG_SYS_FSL_ERRATUM_DDR_A003474
Liu Gang78deaa12012-03-08 00:33:14 +0000327#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 2
328#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
329#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
Scott Wood80806962012-08-14 10:14:53 +0000330#define CONFIG_SYS_FSL_ERRATUM_A004510
331#define CONFIG_SYS_FSL_ERRATUM_A004510_SVR_REV 0x10
332#define CONFIG_SYS_FSL_ERRATUM_A004510_SVR_REV2 0x11
333#define CONFIG_SYS_FSL_CORENET_SNOOPVEC_COREONLY 0xf0000000
Liu Gang712b6622012-09-28 21:26:19 +0000334#define CONFIG_SYS_FSL_ERRATUM_SRIO_A004034
Timur Tabie3ab8c12012-10-25 12:40:00 +0000335#define CONFIG_SYS_FSL_ERRATUM_A004849
Kumar Gala619541b2011-05-13 01:16:07 -0500336
Kumar Galafe137112011-01-19 03:05:26 -0600337#elif defined(CONFIG_PPC_P3041)
York Sun7e0edbd2012-10-08 07:44:15 +0000338#define CONFIG_SYS_FSL_QORIQ_CHASSIS1
Kumar Galafe137112011-01-19 03:05:26 -0600339#define CONFIG_MAX_CPUS 4
Kumar Gala3842bb52011-02-16 02:03:29 -0600340#define CONFIG_SYS_FSL_NUM_CC_PLLS 2
Kumar Galafe137112011-01-19 03:05:26 -0600341#define CONFIG_SYS_FSL_NUM_LAWS 32
342#define CONFIG_SYS_FSL_SEC_COMPAT 4
Kumar Gala60d95d82011-01-25 12:42:32 -0600343#define CONFIG_SYS_NUM_FMAN 1
344#define CONFIG_SYS_NUM_FM1_DTSEC 5
345#define CONFIG_SYS_NUM_FM1_10GEC 1
346#define CONFIG_NUM_DDR_CONTROLLERS 1
Kumar Galad80dfe42011-02-04 00:43:34 -0600347#define CONFIG_SYS_FM_MURAM_SIZE 0x28000
Kumar Galaf4fb90f2011-02-18 05:40:54 -0600348#define CONFIG_SYS_FSL_TBCLK_DIV 32
Kumar Gala179b1b22011-05-20 00:39:21 -0500349#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.2"
Timur Tabid8f341c2011-08-04 18:03:41 -0500350#define CONFIG_SYS_CCSRBAR_DEFAULT 0xfe000000
Roy Zang6d6a0e12011-04-13 00:08:51 -0500351#define CONFIG_SYS_FSL_USB1_PHY_ENABLE
352#define CONFIG_SYS_FSL_USB2_PHY_ENABLE
Kumar Galaa49034f2011-04-13 00:19:10 -0500353#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
Lei Xu32276202011-04-19 15:28:41 +0800354#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
York Sun53155532012-08-08 18:04:53 +0000355#define CONFIG_SYS_FSL_ERRATUM_NMG_CPU_A011
Xuleicf4f4932013-03-11 17:56:34 +0000356#define CONFIG_SYS_FSL_ERRATUM_USB14
Kumar Gala945e59a2011-11-22 06:51:15 -0600357#define CONFIG_SYS_FSL_ERRATUM_CPU_A003999
York Sun52db64b2013-03-25 07:30:11 +0000358#define CONFIG_SYS_FSL_ERRATUM_DDR_A003
York Sundf2be192011-11-20 10:01:35 -0800359#define CONFIG_SYS_FSL_ERRATUM_DDR_A003474
Liu Gang78deaa12012-03-08 00:33:14 +0000360#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 2
361#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
362#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
Scott Wood80806962012-08-14 10:14:53 +0000363#define CONFIG_SYS_FSL_ERRATUM_A004510
364#define CONFIG_SYS_FSL_ERRATUM_A004510_SVR_REV 0x10
365#define CONFIG_SYS_FSL_ERRATUM_A004510_SVR_REV2 0x11
366#define CONFIG_SYS_FSL_CORENET_SNOOPVEC_COREONLY 0xf0000000
Liu Gang712b6622012-09-28 21:26:19 +0000367#define CONFIG_SYS_FSL_ERRATUM_SRIO_A004034
Timur Tabie3ab8c12012-10-25 12:40:00 +0000368#define CONFIG_SYS_FSL_ERRATUM_A004849
Kumar Galafe137112011-01-19 03:05:26 -0600369
Scott Wooda1ef48c2012-08-14 10:14:51 +0000370#elif defined(CONFIG_PPC_P4080) /* also supports P4040 */
York Sun7e0edbd2012-10-08 07:44:15 +0000371#define CONFIG_SYS_FSL_QORIQ_CHASSIS1
Kumar Galafe137112011-01-19 03:05:26 -0600372#define CONFIG_MAX_CPUS 8
Kumar Gala3842bb52011-02-16 02:03:29 -0600373#define CONFIG_SYS_FSL_NUM_CC_PLLS 4
Kumar Galafe137112011-01-19 03:05:26 -0600374#define CONFIG_SYS_FSL_NUM_LAWS 32
375#define CONFIG_SYS_FSL_SEC_COMPAT 4
376#define CONFIG_SYS_NUM_FMAN 2
377#define CONFIG_SYS_NUM_FM1_DTSEC 4
378#define CONFIG_SYS_NUM_FM2_DTSEC 4
379#define CONFIG_SYS_NUM_FM1_10GEC 1
380#define CONFIG_SYS_NUM_FM2_10GEC 1
381#define CONFIG_NUM_DDR_CONTROLLERS 2
Kumar Galad80dfe42011-02-04 00:43:34 -0600382#define CONFIG_SYS_FM_MURAM_SIZE 0x28000
Kumar Galaf4fb90f2011-02-18 05:40:54 -0600383#define CONFIG_SYS_FSL_TBCLK_DIV 16
Kumar Gala179b1b22011-05-20 00:39:21 -0500384#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,p4080-pcie"
Timur Tabid8f341c2011-08-04 18:03:41 -0500385#define CONFIG_SYS_CCSRBAR_DEFAULT 0xfe000000
Kumar Galafe137112011-01-19 03:05:26 -0600386#define CONFIG_SYS_FSL_ERRATUM_CPC_A002
387#define CONFIG_SYS_FSL_ERRATUM_CPC_A003
York Sun922f40f2011-01-10 12:03:01 +0000388#define CONFIG_SYS_FSL_ERRATUM_DDR_A003
Kumar Galafe137112011-01-19 03:05:26 -0600389#define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
390#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
391#define CONFIG_SYS_FSL_ERRATUM_ESDHC135
Zang Roy-R6191183659922012-09-18 09:50:08 +0000392#define CONFIG_SYS_FSL_ERRATUM_ESDHC13
Kumar Galafe137112011-01-19 03:05:26 -0600393#define CONFIG_SYS_P4080_ERRATUM_CPU22
York Sun9ed88112012-05-07 07:26:47 +0000394#define CONFIG_SYS_FSL_ERRATUM_NMG_CPU_A011
Kumar Galafe137112011-01-19 03:05:26 -0600395#define CONFIG_SYS_P4080_ERRATUM_SERDES8
Emil Medveb01c81f2010-08-31 22:57:38 -0500396#define CONFIG_SYS_P4080_ERRATUM_SERDES9
Timur Tabi6a62dc42011-04-18 17:16:00 -0500397#define CONFIG_SYS_P4080_ERRATUM_SERDES_A001
Timur Tabi90f381d2011-04-01 13:19:36 -0500398#define CONFIG_SYS_P4080_ERRATUM_SERDES_A005
Kumar Gala945e59a2011-11-22 06:51:15 -0600399#define CONFIG_SYS_FSL_ERRATUM_CPU_A003999
York Sundf2be192011-11-20 10:01:35 -0800400#define CONFIG_SYS_FSL_ERRATUM_DDR_A003474
Liu Gang78deaa12012-03-08 00:33:14 +0000401#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 2
402#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
403#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
404#define CONFIG_SYS_FSL_RMU
405#define CONFIG_SYS_FSL_SRIO_MSG_UNIT_NUM 2
Scott Wood80806962012-08-14 10:14:53 +0000406#define CONFIG_SYS_FSL_ERRATUM_A004510
407#define CONFIG_SYS_FSL_ERRATUM_A004510_SVR_REV 0x20
408#define CONFIG_SYS_FSL_CORENET_SNOOPVEC_COREONLY 0xff000000
Liu Gang712b6622012-09-28 21:26:19 +0000409#define CONFIG_SYS_FSL_ERRATUM_SRIO_A004034
Timur Tabie3ab8c12012-10-25 12:40:00 +0000410#define CONFIG_SYS_FSL_ERRATUM_A004849
Timur Tabic5355dd2012-11-01 08:20:23 +0000411#define CONFIG_SYS_FSL_ERRATUM_A004580
Yuanquan Chenc48234e2012-11-26 23:49:45 +0000412#define CONFIG_SYS_P4080_ERRATUM_PCIE_A003
Kumar Galafe137112011-01-19 03:05:26 -0600413
Scott Wooda1ef48c2012-08-14 10:14:51 +0000414#elif defined(CONFIG_PPC_P5020) /* also supports P5010 */
York Sun2394a0f2012-10-08 07:44:30 +0000415#define CONFIG_SYS_PPC64 /* 64-bit core */
York Sun7e0edbd2012-10-08 07:44:15 +0000416#define CONFIG_SYS_FSL_QORIQ_CHASSIS1
Kumar Galafe137112011-01-19 03:05:26 -0600417#define CONFIG_MAX_CPUS 2
Kumar Gala3842bb52011-02-16 02:03:29 -0600418#define CONFIG_SYS_FSL_NUM_CC_PLLS 2
Kumar Galafe137112011-01-19 03:05:26 -0600419#define CONFIG_SYS_FSL_NUM_LAWS 32
420#define CONFIG_SYS_FSL_SEC_COMPAT 4
Kumar Gala60d95d82011-01-25 12:42:32 -0600421#define CONFIG_SYS_NUM_FMAN 1
422#define CONFIG_SYS_NUM_FM1_DTSEC 5
423#define CONFIG_SYS_NUM_FM1_10GEC 1
424#define CONFIG_NUM_DDR_CONTROLLERS 2
Kumar Galad80dfe42011-02-04 00:43:34 -0600425#define CONFIG_SYS_FM_MURAM_SIZE 0x28000
Kumar Galaf4fb90f2011-02-18 05:40:54 -0600426#define CONFIG_SYS_FSL_TBCLK_DIV 32
Kumar Gala179b1b22011-05-20 00:39:21 -0500427#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.2"
Timur Tabid8f341c2011-08-04 18:03:41 -0500428#define CONFIG_SYS_CCSRBAR_DEFAULT 0xfe000000
Roy Zang6d6a0e12011-04-13 00:08:51 -0500429#define CONFIG_SYS_FSL_USB1_PHY_ENABLE
430#define CONFIG_SYS_FSL_USB2_PHY_ENABLE
Kumar Galaa49034f2011-04-13 00:19:10 -0500431#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
Lei Xu32276202011-04-19 15:28:41 +0800432#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
Xuleicf4f4932013-03-11 17:56:34 +0000433#define CONFIG_SYS_FSL_ERRATUM_USB14
York Sun52db64b2013-03-25 07:30:11 +0000434#define CONFIG_SYS_FSL_ERRATUM_DDR_A003
York Sundf2be192011-11-20 10:01:35 -0800435#define CONFIG_SYS_FSL_ERRATUM_DDR_A003474
Liu Gang78deaa12012-03-08 00:33:14 +0000436#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 2
437#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
438#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
Scott Wood80806962012-08-14 10:14:53 +0000439#define CONFIG_SYS_FSL_ERRATUM_A004510
440#define CONFIG_SYS_FSL_ERRATUM_A004510_SVR_REV 0x10
441#define CONFIG_SYS_FSL_CORENET_SNOOPVEC_COREONLY 0xc0000000
Liu Gang712b6622012-09-28 21:26:19 +0000442#define CONFIG_SYS_FSL_ERRATUM_SRIO_A004034
Kumar Galafe137112011-01-19 03:05:26 -0600443
Timur Tabid5e13882012-10-05 11:09:19 +0000444#elif defined(CONFIG_PPC_P5040)
Timur Tabi9a7b5a32012-10-23 10:48:09 +0000445#define CONFIG_SYS_PPC64
Timur Tabid5e13882012-10-05 11:09:19 +0000446#define CONFIG_SYS_FSL_QORIQ_CHASSIS1
447#define CONFIG_MAX_CPUS 4
448#define CONFIG_SYS_FSL_NUM_CC_PLLS 3
449#define CONFIG_SYS_FSL_NUM_LAWS 32
450#define CONFIG_SYS_FSL_SEC_COMPAT 4
451#define CONFIG_SYS_NUM_FMAN 2
452#define CONFIG_SYS_NUM_FM1_DTSEC 5
453#define CONFIG_SYS_NUM_FM1_10GEC 1
454#define CONFIG_SYS_NUM_FM2_DTSEC 5
455#define CONFIG_SYS_NUM_FM2_10GEC 1
456#define CONFIG_NUM_DDR_CONTROLLERS 2
457#define CONFIG_SYS_FM_MURAM_SIZE 0x28000
458#define CONFIG_SYS_FSL_TBCLK_DIV 16
459#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.4"
460#define CONFIG_SYS_CCSRBAR_DEFAULT 0xfe000000
461#define CONFIG_SYS_FSL_USB1_PHY_ENABLE
462#define CONFIG_SYS_FSL_USB2_PHY_ENABLE
463#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
464#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
Xuleicf4f4932013-03-11 17:56:34 +0000465#define CONFIG_SYS_FSL_ERRATUM_USB14
Timur Tabid5e13882012-10-05 11:09:19 +0000466#define CONFIG_SYS_FSL_ERRATUM_DDR_A003
467#define CONFIG_SYS_FSL_ERRATUM_DDR_A003474
468#define CONFIG_SYS_FSL_ERRATUM_A004699
Timur Tabid5e13882012-10-05 11:09:19 +0000469#define CONFIG_SYS_FSL_ERRATUM_A004510
470#define CONFIG_SYS_FSL_ERRATUM_A004510_SVR_REV 0x10
471#define CONFIG_SYS_FSL_CORENET_SNOOPVEC_COREONLY 0xf0000000
472
Prabhakar Kushwahabeebb882012-04-24 20:16:49 +0000473#elif defined(CONFIG_BSC9131)
474#define CONFIG_MAX_CPUS 1
475#define CONFIG_FSL_SDHC_V2_3
476#define CONFIG_SYS_FSL_NUM_LAWS 12
477#define CONFIG_TSECV2
478#define CONFIG_SYS_FSL_SEC_COMPAT 4
479#define CONFIG_NUM_DDR_CONTROLLERS 1
Priyanka Jainf81e8b22013-04-04 09:31:54 +0530480#define CONFIG_SYS_FSL_DSP_M2_RAM_ADDR 0xb0000000
481#define CONFIG_SYS_FSL_DSP_CCSRBAR_DEFAULT 0xff600000
Mingkai Hu6f024c92013-05-16 10:18:13 +0800482#define CONFIG_SYS_FSL_IFC_BANK_COUNT 3
Prabhakar Kushwahabeebb882012-04-24 20:16:49 +0000483#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
484#define CONFIG_NAND_FSL_IFC
Prabhakar Kushwahabeebb882012-04-24 20:16:49 +0000485#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
486
Prabhakar Kushwaha92543c22013-01-23 17:59:57 +0000487#elif defined(CONFIG_BSC9132)
488#define CONFIG_MAX_CPUS 2
489#define CONFIG_SYS_PPC_E500_DEBUG_TLB 3
490#define CONFIG_FSL_SDHC_V2_3
491#define CONFIG_SYS_FSL_NUM_LAWS 12
492#define CONFIG_TSECV2
493#define CONFIG_SYS_FSL_SEC_COMPAT 4
494#define CONFIG_NUM_DDR_CONTROLLERS 2
York Sun84fa67e2013-04-18 19:31:01 -0700495#define CONFIG_SYS_FSL_IFC_BANK_COUNT 3
Prabhakar Kushwaha92543c22013-01-23 17:59:57 +0000496#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
497#define CONFIG_NAND_FSL_IFC
Prabhakar Kushwaha92543c22013-01-23 17:59:57 +0000498#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
499#define CONFIG_SYS_FSL_ESDHC_P1010_BROKEN_SDCLK
500#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.2"
501
York Sun64fd08b2013-03-25 07:40:05 +0000502#elif defined(CONFIG_PPC_T4240) || defined(CONFIG_PPC_T4160)
503#define CONFIG_E6500
York Sun2394a0f2012-10-08 07:44:30 +0000504#define CONFIG_SYS_PPC64 /* 64-bit core */
York Sun9941a222012-10-08 07:44:19 +0000505#define CONFIG_FSL_CORENET /* Freescale CoreNet platform */
506#define CONFIG_SYS_FSL_QORIQ_CHASSIS2 /* Freescale Chassis generation 2 */
York Sunaa150bb2013-03-25 07:40:07 +0000507#define CONFIG_SYS_FSL_CORES_PER_CLUSTER 4
York Sun9941a222012-10-08 07:44:19 +0000508#define CONFIG_SYS_FSL_QMAN_V3 /* QMAN version 3 */
York Sun64fd08b2013-03-25 07:40:05 +0000509#ifdef CONFIG_PPC_T4240
York Sun9941a222012-10-08 07:44:19 +0000510#define CONFIG_MAX_CPUS 12
York Sun9941a222012-10-08 07:44:19 +0000511#define CONFIG_SYS_NUM_FM1_DTSEC 8
512#define CONFIG_SYS_NUM_FM1_10GEC 2
513#define CONFIG_SYS_NUM_FM2_DTSEC 8
514#define CONFIG_SYS_NUM_FM2_10GEC 2
515#define CONFIG_NUM_DDR_CONTROLLERS 3
York Sun64fd08b2013-03-25 07:40:05 +0000516#else
York Sunfb5137a2013-03-25 07:33:29 +0000517#define CONFIG_MAX_CPUS 8
York Sun64fd08b2013-03-25 07:40:05 +0000518#define CONFIG_SYS_NUM_FM1_DTSEC 7
519#define CONFIG_SYS_NUM_FM1_10GEC 1
520#define CONFIG_SYS_NUM_FM2_DTSEC 7
521#define CONFIG_SYS_NUM_FM2_10GEC 1
522#define CONFIG_NUM_DDR_CONTROLLERS 2
523#endif
York Sunfb5137a2013-03-25 07:33:29 +0000524#define CONFIG_SYS_FSL_NUM_CC_PLLS 5
525#define CONFIG_SYS_FSL_NUM_LAWS 32
526#define CONFIG_SYS_FSL_SRDS_3
527#define CONFIG_SYS_FSL_SRDS_4
528#define CONFIG_SYS_FSL_SEC_COMPAT 4
529#define CONFIG_SYS_NUM_FMAN 2
York Sunfb5137a2013-03-25 07:33:29 +0000530#define CONFIG_SYS_FSL_DDR_VER FSL_DDR_VER_4_7
Mingkai Hu6f024c92013-05-16 10:18:13 +0800531#define CONFIG_SYS_FSL_IFC_BANK_COUNT 8
York Sunfb5137a2013-03-25 07:33:29 +0000532#define CONFIG_SYS_FMAN_V3
533#define CONFIG_SYS_FM_MURAM_SIZE 0x60000
534#define CONFIG_SYS_FSL_TBCLK_DIV 16
535#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v3.0"
536#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 2
537#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
538#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
Liu Gangd5eca7e2013-06-25 18:12:14 +0800539#define CONFIG_SYS_FSL_SRIO_LIODN
York Sunfb5137a2013-03-25 07:33:29 +0000540#define CONFIG_SYS_FSL_USB_DUAL_PHY_ENABLE
541#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
542#define CONFIG_SYS_FSL_ERRATUM_A004468
543#define CONFIG_SYS_FSL_ERRATUM_A_004934
544#define CONFIG_SYS_FSL_ERRATUM_A005871
Scott Wood3f4a5c42013-05-15 17:50:13 -0500545#define CONFIG_SYS_FSL_ERRATUM_A006593
York Sunfb5137a2013-03-25 07:33:29 +0000546#define CONFIG_SYS_CCSRBAR_DEFAULT 0xfe000000
547#define CONFIG_SYS_FSL_PCI_VER_3_X
548
Poonam Aggrwal525ab512013-03-25 07:40:20 +0000549#elif defined(CONFIG_PPC_B4860) || defined(CONFIG_PPC_B4420)
550#define CONFIG_E6500
Poonam Aggrwal248865e2012-12-23 19:24:16 +0000551#define CONFIG_SYS_PPC64 /* 64-bit core */
552#define CONFIG_FSL_CORENET /* Freescale CoreNet platform */
553#define CONFIG_SYS_FSL_QORIQ_CHASSIS2 /* Freescale Chassis generation 2 */
554#define CONFIG_SYS_FSL_QMAN_V3 /* QMAN version 3 */
Poonam Aggrwal248865e2012-12-23 19:24:16 +0000555#define CONFIG_SYS_FSL_NUM_LAWS 32
556#define CONFIG_SYS_FSL_SEC_COMPAT 4
557#define CONFIG_SYS_NUM_FMAN 1
Poonam Aggrwal248865e2012-12-23 19:24:16 +0000558#define CONFIG_SYS_FSL_DDR_VER FSL_DDR_VER_4_7
Mingkai Hu6f024c92013-05-16 10:18:13 +0800559#define CONFIG_SYS_FSL_IFC_BANK_COUNT 4
Poonam Aggrwal248865e2012-12-23 19:24:16 +0000560#define CONFIG_SYS_FMAN_V3
561#define CONFIG_SYS_FM_MURAM_SIZE 0x60000
562#define CONFIG_SYS_FSL_TBCLK_DIV 16
563#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.4"
564#define CONFIG_SYS_FSL_USB1_PHY_ENABLE
565#define CONFIG_SYS_FSL_ERRATUM_A_004934
Shengzhou Liu5d9606e2013-02-27 21:56:54 +0000566#define CONFIG_SYS_FSL_ERRATUM_A005871
Scott Wood3f4a5c42013-05-15 17:50:13 -0500567#define CONFIG_SYS_FSL_ERRATUM_A006593
Poonam Aggrwal248865e2012-12-23 19:24:16 +0000568#define CONFIG_SYS_CCSRBAR_DEFAULT 0xfe000000
569
Poonam Aggrwal525ab512013-03-25 07:40:20 +0000570#ifdef CONFIG_PPC_B4860
York Sunaa150bb2013-03-25 07:40:07 +0000571#define CONFIG_SYS_FSL_CORES_PER_CLUSTER 4
York Sunbcf7b3d2012-10-08 07:44:20 +0000572#define CONFIG_MAX_CPUS 4
573#define CONFIG_SYS_FSL_NUM_CC_PLLS 4
York Sunbcf7b3d2012-10-08 07:44:20 +0000574#define CONFIG_SYS_NUM_FM1_DTSEC 6
575#define CONFIG_SYS_NUM_FM1_10GEC 2
Poonam Aggrwal1c859552012-12-23 19:22:33 +0000576#define CONFIG_NUM_DDR_CONTROLLERS 2
York Sunbcf7b3d2012-10-08 07:44:20 +0000577#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 2
578#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
579#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
Liu Gangbc6486a2013-06-25 18:12:13 +0800580#define CONFIG_SYS_FSL_SRIO_LIODN
Poonam Aggrwal525ab512013-03-25 07:40:20 +0000581#else
582#define CONFIG_MAX_CPUS 2
583#define CONFIG_SYS_FSL_CORES_PER_CLUSTER 2
584#define CONFIG_SYS_FSL_NUM_CC_PLLS 4
585#define CONFIG_SYS_NUM_FM1_DTSEC 4
586#define CONFIG_SYS_NUM_FM1_10GEC 0
587#define CONFIG_NUM_DDR_CONTROLLERS 1
588#endif
York Sunbcf7b3d2012-10-08 07:44:20 +0000589
York Sun46571362013-03-25 07:40:06 +0000590#elif defined(CONFIG_PPC_T1040)
591#define CONFIG_E5500
592#define CONFIG_FSL_CORENET /* Freescale CoreNet platform */
593#define CONFIG_SYS_FSL_QORIQ_CHASSIS2 /* Freescale Chassis generation 2 */
York Sunaa150bb2013-03-25 07:40:07 +0000594#define CONFIG_SYS_FSL_CORES_PER_CLUSTER 1
York Sun46571362013-03-25 07:40:06 +0000595#define CONFIG_SYS_FSL_QMAN_V3 /* QMAN version 3 */
596#define CONFIG_MAX_CPUS 4
597#define CONFIG_SYS_FSL_NUM_CC_PLLS 5
598#define CONFIG_SYS_FSL_NUM_LAWS 16
599#define CONFIG_SYS_FSL_SEC_COMPAT 4
600#define CONFIG_SYS_NUM_FMAN 1
601#define CONFIG_SYS_NUM_FM1_DTSEC 5
602#define CONFIG_NUM_DDR_CONTROLLERS 1
603#define CONFIG_SYS_FSL_DDR_VER FSL_DDR_VER_4_7
604#define CONFIG_SYS_FSL_IFC_BANK_COUNT 4
605#define CONFIG_SYS_FMAN_V3
606#define CONFIG_SYS_FM_MURAM_SIZE 0x28000
607#define CONFIG_SYS_FSL_TBCLK_DIV 32
608#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.4"
609#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 2
610#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
611#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
612#define CONFIG_SYS_FSL_USB1_PHY_ENABLE
613#define CONFIG_SYS_FSL_USB2_PHY_ENABLE
614#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
615#define CONFIG_SYS_CCSRBAR_DEFAULT 0xfe000000
616
Kumar Galafe137112011-01-19 03:05:26 -0600617#else
618#error Processor type not defined for this platform
619#endif
620
Timur Tabid8f341c2011-08-04 18:03:41 -0500621#ifndef CONFIG_SYS_CCSRBAR_DEFAULT
622#error "CONFIG_SYS_CCSRBAR_DEFAULT is not defined for this platform."
623#endif
624
York Sunaa150bb2013-03-25 07:40:07 +0000625#ifdef CONFIG_E6500
626#define CONFIG_SYS_FSL_THREADS_PER_CORE 2
627#else
628#define CONFIG_SYS_FSL_THREADS_PER_CORE 1
629#endif
630
Kumar Galafe137112011-01-19 03:05:26 -0600631#endif /* _ASM_MPC85xx_CONFIG_H_ */