blob: df444510911a29b184c2caa90e6966f4eb9b68eb [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
Prabhakar Kushwaha62908c22014-01-18 12:28:30 +053025/* IP endianness */
26#define CONFIG_SYS_FSL_IFC_BE
27
Kumar Galafe137112011-01-19 03:05:26 -060028/* Number of TLB CAM entries we have on FSL Book-E chips */
29#if defined(CONFIG_E500MC)
30#define CONFIG_SYS_NUM_TLBCAMS 64
31#elif defined(CONFIG_E500)
32#define CONFIG_SYS_NUM_TLBCAMS 16
33#endif
34
35#if defined(CONFIG_MPC8536)
36#define CONFIG_MAX_CPUS 1
37#define CONFIG_SYS_FSL_NUM_LAWS 12
Prabhakar Kushwaha826cf622012-08-15 04:12:43 +000038#define CONFIG_SYS_PPC_E500_DEBUG_TLB 1
Kumar Galafe137112011-01-19 03:05:26 -060039#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabid8f341c2011-08-04 18:03:41 -050040#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
York Sun0cc59072013-08-20 15:09:43 -070041#define CONFIG_SYS_FSL_ERRATUM_A005125
Kumar Galafe137112011-01-19 03:05:26 -060042
Wolfgang Denka4de8352011-02-02 22:36:10 +010043#elif defined(CONFIG_MPC8540)
Kumar Galafe137112011-01-19 03:05:26 -060044#define CONFIG_MAX_CPUS 1
45#define CONFIG_SYS_FSL_NUM_LAWS 8
York Sunf0626592013-09-30 09:22:09 -070046#define CONFIG_SYS_FSL_DDRC_GEN1
Timur Tabid8f341c2011-08-04 18:03:41 -050047#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Galafe137112011-01-19 03:05:26 -060048
Wolfgang Denka4de8352011-02-02 22:36:10 +010049#elif defined(CONFIG_MPC8541)
Kumar Galafe137112011-01-19 03:05:26 -060050#define CONFIG_MAX_CPUS 1
51#define CONFIG_SYS_FSL_NUM_LAWS 8
York Sunf0626592013-09-30 09:22:09 -070052#define CONFIG_SYS_FSL_DDRC_GEN1
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_MPC8544)
57#define CONFIG_MAX_CPUS 1
58#define CONFIG_SYS_FSL_NUM_LAWS 10
York Sunf0626592013-09-30 09:22:09 -070059#define CONFIG_SYS_FSL_DDRC_GEN2
Prabhakar Kushwaha826cf622012-08-15 04:12:43 +000060#define CONFIG_SYS_PPC_E500_DEBUG_TLB 0
Kumar Galafe137112011-01-19 03:05:26 -060061#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabid8f341c2011-08-04 18:03:41 -050062#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
York Sun0cc59072013-08-20 15:09:43 -070063#define CONFIG_SYS_FSL_ERRATUM_A005125
Kumar Galafe137112011-01-19 03:05:26 -060064
65#elif defined(CONFIG_MPC8548)
66#define CONFIG_MAX_CPUS 1
67#define CONFIG_SYS_FSL_NUM_LAWS 10
York Sunf0626592013-09-30 09:22:09 -070068#define CONFIG_SYS_FSL_DDRC_GEN2
Prabhakar Kushwaha826cf622012-08-15 04:12:43 +000069#define CONFIG_SYS_PPC_E500_DEBUG_TLB 0
Kumar Galafe137112011-01-19 03:05:26 -060070#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabid8f341c2011-08-04 18:03:41 -050071#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Gala866c6fa2011-09-16 09:54:30 -050072#define CONFIG_SYS_FSL_ERRATUM_NMG_DDR120
Kumar Galaf3339d62011-10-03 08:37:57 -050073#define CONFIG_SYS_FSL_ERRATUM_NMG_LBC103
chenhui zhaoc8caa8a2011-10-03 08:38:50 -050074#define CONFIG_SYS_FSL_ERRATUM_NMG_ETSEC129
Liu Gang78deaa12012-03-08 00:33:14 +000075#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 1
76#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
77#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
78#define CONFIG_SYS_FSL_RMU
79#define CONFIG_SYS_FSL_SRIO_MSG_UNIT_NUM 2
York Sun0cc59072013-08-20 15:09:43 -070080#define CONFIG_SYS_FSL_ERRATUM_A005125
Chunhe Lan92546402013-08-16 15:10:37 +080081#define CONFIG_SYS_FSL_ERRATUM_I2C_A004447
82#define CONFIG_SYS_FSL_A004447_SVR_REV 0x00
Kumar Galafe137112011-01-19 03:05:26 -060083
84#elif defined(CONFIG_MPC8555)
85#define CONFIG_MAX_CPUS 1
86#define CONFIG_SYS_FSL_NUM_LAWS 8
York Sunf0626592013-09-30 09:22:09 -070087#define CONFIG_SYS_FSL_DDRC_GEN1
Kumar Galafe137112011-01-19 03:05:26 -060088#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabid8f341c2011-08-04 18:03:41 -050089#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Galafe137112011-01-19 03:05:26 -060090
91#elif defined(CONFIG_MPC8560)
92#define CONFIG_MAX_CPUS 1
93#define CONFIG_SYS_FSL_NUM_LAWS 8
York Sunf0626592013-09-30 09:22:09 -070094#define CONFIG_SYS_FSL_DDRC_GEN1
Timur Tabid8f341c2011-08-04 18:03:41 -050095#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Galafe137112011-01-19 03:05:26 -060096
97#elif defined(CONFIG_MPC8568)
98#define CONFIG_MAX_CPUS 1
99#define CONFIG_SYS_FSL_NUM_LAWS 10
York Sunf0626592013-09-30 09:22:09 -0700100#define CONFIG_SYS_FSL_DDRC_GEN2
Kumar Galafe137112011-01-19 03:05:26 -0600101#define CONFIG_SYS_FSL_SEC_COMPAT 2
Kumar Gala52bd8152011-01-31 23:09:25 -0600102#define QE_MURAM_SIZE 0x10000UL
103#define MAX_QE_RISC 2
104#define QE_NUM_OF_SNUM 28
Timur Tabid8f341c2011-08-04 18:03:41 -0500105#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Liu Gang78deaa12012-03-08 00:33:14 +0000106#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 1
107#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
108#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
109#define CONFIG_SYS_FSL_RMU
110#define CONFIG_SYS_FSL_SRIO_MSG_UNIT_NUM 2
Kumar Galafe137112011-01-19 03:05:26 -0600111
112#elif defined(CONFIG_MPC8569)
113#define CONFIG_MAX_CPUS 1
114#define CONFIG_SYS_FSL_NUM_LAWS 10
115#define CONFIG_SYS_FSL_SEC_COMPAT 2
Kumar Gala52bd8152011-01-31 23:09:25 -0600116#define QE_MURAM_SIZE 0x20000UL
117#define MAX_QE_RISC 4
118#define QE_NUM_OF_SNUM 46
Timur Tabid8f341c2011-08-04 18:03:41 -0500119#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Liu Gang78deaa12012-03-08 00:33:14 +0000120#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 1
121#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
122#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
123#define CONFIG_SYS_FSL_RMU
124#define CONFIG_SYS_FSL_SRIO_MSG_UNIT_NUM 2
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_MPC8572)
128#define CONFIG_MAX_CPUS 2
129#define CONFIG_SYS_FSL_NUM_LAWS 12
Prabhakar Kushwaha826cf622012-08-15 04:12:43 +0000130#define CONFIG_SYS_PPC_E500_DEBUG_TLB 2
Kumar Galafe137112011-01-19 03:05:26 -0600131#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabid8f341c2011-08-04 18:03:41 -0500132#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
York Sun9aa857b2011-01-25 21:51:27 -0800133#define CONFIG_SYS_FSL_ERRATUM_DDR_115
York Sunc8fc9592011-01-25 22:05:49 -0800134#define CONFIG_SYS_FSL_ERRATUM_DDR111_DDR134
York Sun0cc59072013-08-20 15:09:43 -0700135#define CONFIG_SYS_FSL_ERRATUM_A005125
Kumar Galafe137112011-01-19 03:05:26 -0600136
137#elif defined(CONFIG_P1010)
138#define CONFIG_MAX_CPUS 1
Priyanka Jain02449632011-02-09 09:24:10 +0530139#define CONFIG_FSL_SDHC_V2_3
Kumar Galafe137112011-01-19 03:05:26 -0600140#define CONFIG_SYS_FSL_NUM_LAWS 12
Prabhakar Kushwaha3d42a962012-04-29 23:57:12 +0000141#define CONFIG_SYS_PPC_E500_DEBUG_TLB 3
Kumar Galafe137112011-01-19 03:05:26 -0600142#define CONFIG_TSECV2
143#define CONFIG_SYS_FSL_SEC_COMPAT 4
Poonam Aggrwal7373c592011-02-06 11:31:44 +0530144#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
145#define CONFIG_NUM_DDR_CONTROLLERS 1
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530146#define CONFIG_USB_MAX_CONTROLLER_COUNT 1
Mingkai Hu6f024c92013-05-16 10:18:13 +0800147#define CONFIG_SYS_FSL_IFC_BANK_COUNT 4
Poonam Aggrwal7373c592011-02-06 11:31:44 +0530148#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Gala179b1b22011-05-20 00:39:21 -0500149#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.2"
Ramneek Mehresh3fb68ee2011-03-23 15:20:43 +0530150#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
Poonam Aggrwalc7664a42011-06-30 03:00:28 -0500151#define CONFIG_SYS_FSL_ERRATUM_IFC_A002769
Poonam Aggrwalaf54a5f2011-06-29 16:32:52 +0530152#define CONFIG_SYS_FSL_ERRATUM_P1010_A003549
Shengzhou Liu097be702013-08-15 09:31:47 +0800153#define CONFIG_SYS_FSL_ERRATUM_SEC_A003571
Poonam Aggrwal46b86ca2011-07-07 20:36:47 +0530154#define CONFIG_SYS_FSL_ERRATUM_IFC_A003399
York Sun0cc59072013-08-20 15:09:43 -0700155#define CONFIG_SYS_FSL_ERRATUM_A005125
Chunhe Lan92546402013-08-16 15:10:37 +0800156#define CONFIG_SYS_FSL_ERRATUM_I2C_A004447
Suresh Gupta086f0a72014-02-26 14:29:12 +0530157#define CONFIG_SYS_FSL_ERRATUM_A006261
Chunhe Lan92546402013-08-16 15:10:37 +0800158#define CONFIG_SYS_FSL_A004447_SVR_REV 0x10
Haijun.Zhang22e3c422014-01-10 13:52:19 +0800159#define CONFIG_ESDHC_HC_BLK_ADDR
Kumar Galafe137112011-01-19 03:05:26 -0600160
Kumar Galae4e69252011-02-05 13:45:07 -0600161/* P1011 is single core version of P1020 */
Kumar Galafe137112011-01-19 03:05:26 -0600162#elif defined(CONFIG_P1011)
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
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530169#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
Timur Tabid8f341c2011-08-04 18:03:41 -0500170#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Galae4e69252011-02-05 13:45:07 -0600171#define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
172#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
York Sun0cc59072013-08-20 15:09:43 -0700173#define CONFIG_SYS_FSL_ERRATUM_A005125
Kumar Galafe137112011-01-19 03:05:26 -0600174
Kumar Galae4e69252011-02-05 13:45:07 -0600175/* P1012 is single core version of P1021 */
Kumar Galafe137112011-01-19 03:05:26 -0600176#elif defined(CONFIG_P1012)
177#define CONFIG_MAX_CPUS 1
178#define CONFIG_SYS_FSL_NUM_LAWS 12
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530179#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
Prabhakar Kushwaha3d42a962012-04-29 23:57:12 +0000180#define CONFIG_SYS_PPC_E500_DEBUG_TLB 2
Kumar Galafe137112011-01-19 03:05:26 -0600181#define CONFIG_TSECV2
Prabhakar Kushwaha1c48e772011-02-01 15:55:58 +0000182#define CONFIG_FSL_PCIE_DISABLE_ASPM
Kumar Galafe137112011-01-19 03:05:26 -0600183#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabid8f341c2011-08-04 18:03:41 -0500184#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Galae4e69252011-02-05 13:45:07 -0600185#define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
186#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
Haiying Wang8cb2af72011-02-11 01:25:30 -0600187#define QE_MURAM_SIZE 0x6000UL
188#define MAX_QE_RISC 1
189#define QE_NUM_OF_SNUM 28
York Sun0cc59072013-08-20 15:09:43 -0700190#define CONFIG_SYS_FSL_ERRATUM_A005125
Kumar Galafe137112011-01-19 03:05:26 -0600191
Kumar Galae4e69252011-02-05 13:45:07 -0600192/* P1013 is single core version of P1022 */
Kumar Galafe137112011-01-19 03:05:26 -0600193#elif defined(CONFIG_P1013)
194#define CONFIG_MAX_CPUS 1
195#define CONFIG_SYS_FSL_NUM_LAWS 12
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530196#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
Prabhakar Kushwaha3d42a962012-04-29 23:57:12 +0000197#define CONFIG_SYS_PPC_E500_DEBUG_TLB 2
Kumar Galafe137112011-01-19 03:05:26 -0600198#define CONFIG_TSECV2
199#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabid8f341c2011-08-04 18:03:41 -0500200#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Jiang Yutang7cd05902011-01-30 17:06:20 -0600201#define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
202#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
203#define CONFIG_FSL_SATA_ERRATUM_A001
York Sun0cc59072013-08-20 15:09:43 -0700204#define CONFIG_SYS_FSL_ERRATUM_A005125
Kumar Galafe137112011-01-19 03:05:26 -0600205
206#elif defined(CONFIG_P1014)
207#define CONFIG_MAX_CPUS 1
Priyanka Jain02449632011-02-09 09:24:10 +0530208#define CONFIG_FSL_SDHC_V2_3
Kumar Galafe137112011-01-19 03:05:26 -0600209#define CONFIG_SYS_FSL_NUM_LAWS 12
Prabhakar Kushwaha3d42a962012-04-29 23:57:12 +0000210#define CONFIG_SYS_PPC_E500_DEBUG_TLB 3
Kumar Galafe137112011-01-19 03:05:26 -0600211#define CONFIG_TSECV2
212#define CONFIG_SYS_FSL_SEC_COMPAT 4
Poonam Aggrwal7373c592011-02-06 11:31:44 +0530213#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
214#define CONFIG_NUM_DDR_CONTROLLERS 1
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530215#define CONFIG_USB_MAX_CONTROLLER_COUNT 1
Poonam Aggrwal7373c592011-02-06 11:31:44 +0530216#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Ramneek Mehresh3fb68ee2011-03-23 15:20:43 +0530217#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
Poonam Aggrwalc7664a42011-06-30 03:00:28 -0500218#define CONFIG_SYS_FSL_ERRATUM_IFC_A002769
Poonam Aggrwalaf54a5f2011-06-29 16:32:52 +0530219#define CONFIG_SYS_FSL_ERRATUM_P1010_A003549
Poonam Aggrwal46b86ca2011-07-07 20:36:47 +0530220#define CONFIG_SYS_FSL_ERRATUM_IFC_A003399
Kumar Galafe137112011-01-19 03:05:26 -0600221
Kumar Galae4e69252011-02-05 13:45:07 -0600222/* P1017 is single core version of P1023 */
Roy Zang1de20b02011-02-03 22:14:19 -0600223#elif defined(CONFIG_P1017)
224#define CONFIG_MAX_CPUS 1
225#define CONFIG_SYS_FSL_NUM_LAWS 12
226#define CONFIG_SYS_FSL_SEC_COMPAT 4
227#define CONFIG_SYS_NUM_FMAN 1
228#define CONFIG_SYS_NUM_FM1_DTSEC 2
229#define CONFIG_NUM_DDR_CONTROLLERS 1
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530230#define CONFIG_USB_MAX_CONTROLLER_COUNT 1
Roy Zang1de20b02011-02-03 22:14:19 -0600231#define CONFIG_SYS_QMAN_NUM_PORTALS 3
232#define CONFIG_SYS_BMAN_NUM_PORTALS 3
Kumar Galad80dfe42011-02-04 00:43:34 -0600233#define CONFIG_SYS_FM_MURAM_SIZE 0x10000
Kumar Gala179b1b22011-05-20 00:39:21 -0500234#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.2"
Timur Tabid8f341c2011-08-04 18:03:41 -0500235#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff600000
York Sun0cc59072013-08-20 15:09:43 -0700236#define CONFIG_SYS_FSL_ERRATUM_A005125
Roy Zang1de20b02011-02-03 22:14:19 -0600237
Kumar Galafe137112011-01-19 03:05:26 -0600238#elif defined(CONFIG_P1020)
239#define CONFIG_MAX_CPUS 2
240#define CONFIG_SYS_FSL_NUM_LAWS 12
Prabhakar Kushwaha3d42a962012-04-29 23:57:12 +0000241#define CONFIG_SYS_PPC_E500_DEBUG_TLB 2
Kumar Galafe137112011-01-19 03:05:26 -0600242#define CONFIG_TSECV2
Prabhakar Kushwaha1c48e772011-02-01 15:55:58 +0000243#define CONFIG_FSL_PCIE_DISABLE_ASPM
Kumar Galafe137112011-01-19 03:05:26 -0600244#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabid8f341c2011-08-04 18:03:41 -0500245#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Galae4e69252011-02-05 13:45:07 -0600246#define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
247#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
York Sun0cc59072013-08-20 15:09:43 -0700248#define CONFIG_SYS_FSL_ERRATUM_A005125
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530249#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
Kumar Galafe137112011-01-19 03:05:26 -0600250
251#elif defined(CONFIG_P1021)
252#define CONFIG_MAX_CPUS 2
253#define CONFIG_SYS_FSL_NUM_LAWS 12
Prabhakar Kushwaha3d42a962012-04-29 23:57:12 +0000254#define CONFIG_SYS_PPC_E500_DEBUG_TLB 2
Kumar Galafe137112011-01-19 03:05:26 -0600255#define CONFIG_TSECV2
Prabhakar Kushwaha1c48e772011-02-01 15:55:58 +0000256#define CONFIG_FSL_PCIE_DISABLE_ASPM
Kumar Galafe137112011-01-19 03:05:26 -0600257#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabid8f341c2011-08-04 18:03:41 -0500258#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Galae4e69252011-02-05 13:45:07 -0600259#define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
260#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
Haiying Wang8cb2af72011-02-11 01:25:30 -0600261#define QE_MURAM_SIZE 0x6000UL
262#define MAX_QE_RISC 1
263#define QE_NUM_OF_SNUM 28
York Sun0cc59072013-08-20 15:09:43 -0700264#define CONFIG_SYS_FSL_ERRATUM_A005125
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530265#define CONFIG_USB_MAX_CONTROLLER_COUNT 1
Kumar Galafe137112011-01-19 03:05:26 -0600266
267#elif defined(CONFIG_P1022)
268#define CONFIG_MAX_CPUS 2
269#define CONFIG_SYS_FSL_NUM_LAWS 12
Prabhakar Kushwaha3d42a962012-04-29 23:57:12 +0000270#define CONFIG_SYS_PPC_E500_DEBUG_TLB 2
Kumar Galafe137112011-01-19 03:05:26 -0600271#define CONFIG_TSECV2
272#define CONFIG_SYS_FSL_SEC_COMPAT 2
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530273#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
Timur Tabid8f341c2011-08-04 18:03:41 -0500274#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Jiang Yutang7cd05902011-01-30 17:06:20 -0600275#define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
276#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
277#define CONFIG_FSL_SATA_ERRATUM_A001
York Sun0cc59072013-08-20 15:09:43 -0700278#define CONFIG_SYS_FSL_ERRATUM_A005125
Kumar Galafe137112011-01-19 03:05:26 -0600279
Roy Zang1de20b02011-02-03 22:14:19 -0600280#elif defined(CONFIG_P1023)
281#define CONFIG_MAX_CPUS 2
282#define CONFIG_SYS_FSL_NUM_LAWS 12
283#define CONFIG_SYS_FSL_SEC_COMPAT 4
284#define CONFIG_SYS_NUM_FMAN 1
285#define CONFIG_SYS_NUM_FM1_DTSEC 2
286#define CONFIG_NUM_DDR_CONTROLLERS 1
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530287#define CONFIG_USB_MAX_CONTROLLER_COUNT 1
Roy Zang1de20b02011-02-03 22:14:19 -0600288#define CONFIG_SYS_QMAN_NUM_PORTALS 3
289#define CONFIG_SYS_BMAN_NUM_PORTALS 3
Kumar Galad80dfe42011-02-04 00:43:34 -0600290#define CONFIG_SYS_FM_MURAM_SIZE 0x10000
Kumar Gala179b1b22011-05-20 00:39:21 -0500291#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.2"
Timur Tabid8f341c2011-08-04 18:03:41 -0500292#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff600000
York Sun0cc59072013-08-20 15:09:43 -0700293#define CONFIG_SYS_FSL_ERRATUM_A005125
Chunhe Lan92546402013-08-16 15:10:37 +0800294#define CONFIG_SYS_FSL_ERRATUM_I2C_A004447
295#define CONFIG_SYS_FSL_A004447_SVR_REV 0x11
Roy Zang1de20b02011-02-03 22:14:19 -0600296
Kumar Galae4e69252011-02-05 13:45:07 -0600297/* P1024 is lower end variant of P1020 */
298#elif defined(CONFIG_P1024)
299#define CONFIG_MAX_CPUS 2
300#define CONFIG_SYS_FSL_NUM_LAWS 12
Prabhakar Kushwaha3d42a962012-04-29 23:57:12 +0000301#define CONFIG_SYS_PPC_E500_DEBUG_TLB 2
Kumar Galae4e69252011-02-05 13:45:07 -0600302#define CONFIG_TSECV2
303#define CONFIG_FSL_PCIE_DISABLE_ASPM
304#define CONFIG_SYS_FSL_SEC_COMPAT 2
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530305#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
Timur Tabid8f341c2011-08-04 18:03:41 -0500306#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Galae4e69252011-02-05 13:45:07 -0600307#define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
308#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
York Sun0cc59072013-08-20 15:09:43 -0700309#define CONFIG_SYS_FSL_ERRATUM_A005125
Kumar Galae4e69252011-02-05 13:45:07 -0600310
311/* P1025 is lower end variant of P1021 */
312#elif defined(CONFIG_P1025)
313#define CONFIG_MAX_CPUS 2
314#define CONFIG_SYS_FSL_NUM_LAWS 12
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530315#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
Prabhakar Kushwaha3d42a962012-04-29 23:57:12 +0000316#define CONFIG_SYS_PPC_E500_DEBUG_TLB 2
Kumar Galae4e69252011-02-05 13:45:07 -0600317#define CONFIG_TSECV2
318#define CONFIG_FSL_PCIE_DISABLE_ASPM
319#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabid8f341c2011-08-04 18:03:41 -0500320#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Galae4e69252011-02-05 13:45:07 -0600321#define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
322#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
Haiying Wang8cb2af72011-02-11 01:25:30 -0600323#define QE_MURAM_SIZE 0x6000UL
324#define MAX_QE_RISC 1
325#define QE_NUM_OF_SNUM 28
York Sun0cc59072013-08-20 15:09:43 -0700326#define CONFIG_SYS_FSL_ERRATUM_A005125
Kumar Galae4e69252011-02-05 13:45:07 -0600327
328/* P2010 is single core version of P2020 */
Kumar Galafe137112011-01-19 03:05:26 -0600329#elif defined(CONFIG_P2010)
330#define CONFIG_MAX_CPUS 1
331#define CONFIG_SYS_FSL_NUM_LAWS 12
Prabhakar Kushwaha3d42a962012-04-29 23:57:12 +0000332#define CONFIG_SYS_PPC_E500_DEBUG_TLB 2
Kumar Galafe137112011-01-19 03:05:26 -0600333#define CONFIG_SYS_FSL_SEC_COMPAT 2
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530334#define CONFIG_USB_MAX_CONTROLLER_COUNT 1
Timur Tabid8f341c2011-08-04 18:03:41 -0500335#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Gala7b5b4802011-01-26 01:43:15 -0600336#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
Kumar Gala9a878d52011-01-29 15:36:10 -0600337#define CONFIG_SYS_FSL_ERRATUM_ESDHC_A001
York Sun0cc59072013-08-20 15:09:43 -0700338#define CONFIG_SYS_FSL_ERRATUM_A005125
Kumar Galafe137112011-01-19 03:05:26 -0600339
340#elif defined(CONFIG_P2020)
341#define CONFIG_MAX_CPUS 2
342#define CONFIG_SYS_FSL_NUM_LAWS 12
Prabhakar Kushwaha3d42a962012-04-29 23:57:12 +0000343#define CONFIG_SYS_PPC_E500_DEBUG_TLB 2
Kumar Galafe137112011-01-19 03:05:26 -0600344#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabid8f341c2011-08-04 18:03:41 -0500345#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Gala7b5b4802011-01-26 01:43:15 -0600346#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
Kumar Gala9a878d52011-01-29 15:36:10 -0600347#define CONFIG_SYS_FSL_ERRATUM_ESDHC_A001
Liu Gang78deaa12012-03-08 00:33:14 +0000348#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 2
349#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
350#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
351#define CONFIG_SYS_FSL_RMU
352#define CONFIG_SYS_FSL_SRIO_MSG_UNIT_NUM 2
York Sun0cc59072013-08-20 15:09:43 -0700353#define CONFIG_SYS_FSL_ERRATUM_A005125
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530354#define CONFIG_USB_MAX_CONTROLLER_COUNT 1
Scott Wooda1ef48c2012-08-14 10:14:51 +0000355#elif defined(CONFIG_PPC_P2041) /* also supports P2040 */
York Sun7e0edbd2012-10-08 07:44:15 +0000356#define CONFIG_SYS_FSL_QORIQ_CHASSIS1
York Sun544f8812013-06-25 11:37:39 -0700357#define CONFIG_FSL_CORENET /* Freescale CoreNet platform */
Kumar Galafe137112011-01-19 03:05:26 -0600358#define CONFIG_MAX_CPUS 4
Kumar Gala3842bb52011-02-16 02:03:29 -0600359#define CONFIG_SYS_FSL_NUM_CC_PLLS 2
Kumar Galafe137112011-01-19 03:05:26 -0600360#define CONFIG_SYS_FSL_NUM_LAWS 32
361#define CONFIG_SYS_FSL_SEC_COMPAT 4
Kumar Gala619541b2011-05-13 01:16:07 -0500362#define CONFIG_SYS_NUM_FMAN 1
363#define CONFIG_SYS_NUM_FM1_DTSEC 5
364#define CONFIG_SYS_NUM_FM1_10GEC 1
365#define CONFIG_NUM_DDR_CONTROLLERS 1
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530366#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
Kumar Gala619541b2011-05-13 01:16:07 -0500367#define CONFIG_SYS_FM_MURAM_SIZE 0x28000
368#define CONFIG_SYS_FSL_TBCLK_DIV 32
369#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.2"
Timur Tabid8f341c2011-08-04 18:03:41 -0500370#define CONFIG_SYS_CCSRBAR_DEFAULT 0xfe000000
Kumar Gala619541b2011-05-13 01:16:07 -0500371#define CONFIG_SYS_FSL_USB1_PHY_ENABLE
372#define CONFIG_SYS_FSL_USB2_PHY_ENABLE
Kumar Galaa49034f2011-04-13 00:19:10 -0500373#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
Kumar Gala619541b2011-05-13 01:16:07 -0500374#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
York Sun9ed88112012-05-07 07:26:47 +0000375#define CONFIG_SYS_FSL_ERRATUM_NMG_CPU_A011
Xuleicf4f4932013-03-11 17:56:34 +0000376#define CONFIG_SYS_FSL_ERRATUM_USB14
Kumar Gala945e59a2011-11-22 06:51:15 -0600377#define CONFIG_SYS_FSL_ERRATUM_CPU_A003999
York Sun52db64b2013-03-25 07:30:11 +0000378#define CONFIG_SYS_FSL_ERRATUM_DDR_A003
York Sundf2be192011-11-20 10:01:35 -0800379#define CONFIG_SYS_FSL_ERRATUM_DDR_A003474
Liu Gang78deaa12012-03-08 00:33:14 +0000380#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 2
381#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
382#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
Scott Wood80806962012-08-14 10:14:53 +0000383#define CONFIG_SYS_FSL_ERRATUM_A004510
384#define CONFIG_SYS_FSL_ERRATUM_A004510_SVR_REV 0x10
385#define CONFIG_SYS_FSL_ERRATUM_A004510_SVR_REV2 0x11
386#define CONFIG_SYS_FSL_CORENET_SNOOPVEC_COREONLY 0xf0000000
Liu Gang712b6622012-09-28 21:26:19 +0000387#define CONFIG_SYS_FSL_ERRATUM_SRIO_A004034
Timur Tabie3ab8c12012-10-25 12:40:00 +0000388#define CONFIG_SYS_FSL_ERRATUM_A004849
Chunhe Lan92546402013-08-16 15:10:37 +0800389#define CONFIG_SYS_FSL_ERRATUM_I2C_A004447
Suresh Gupta086f0a72014-02-26 14:29:12 +0530390#define CONFIG_SYS_FSL_ERRATUM_A006261
Chunhe Lan92546402013-08-16 15:10:37 +0800391#define CONFIG_SYS_FSL_A004447_SVR_REV 0x11
Kumar Gala619541b2011-05-13 01:16:07 -0500392
Kumar Galafe137112011-01-19 03:05:26 -0600393#elif defined(CONFIG_PPC_P3041)
York Sun7e0edbd2012-10-08 07:44:15 +0000394#define CONFIG_SYS_FSL_QORIQ_CHASSIS1
York Sun544f8812013-06-25 11:37:39 -0700395#define CONFIG_FSL_CORENET /* Freescale CoreNet platform */
Kumar Galafe137112011-01-19 03:05:26 -0600396#define CONFIG_MAX_CPUS 4
Kumar Gala3842bb52011-02-16 02:03:29 -0600397#define CONFIG_SYS_FSL_NUM_CC_PLLS 2
Kumar Galafe137112011-01-19 03:05:26 -0600398#define CONFIG_SYS_FSL_NUM_LAWS 32
399#define CONFIG_SYS_FSL_SEC_COMPAT 4
Kumar Gala60d95d82011-01-25 12:42:32 -0600400#define CONFIG_SYS_NUM_FMAN 1
401#define CONFIG_SYS_NUM_FM1_DTSEC 5
402#define CONFIG_SYS_NUM_FM1_10GEC 1
403#define CONFIG_NUM_DDR_CONTROLLERS 1
Kumar Galad80dfe42011-02-04 00:43:34 -0600404#define CONFIG_SYS_FM_MURAM_SIZE 0x28000
Kumar Galaf4fb90f2011-02-18 05:40:54 -0600405#define CONFIG_SYS_FSL_TBCLK_DIV 32
Kumar Gala179b1b22011-05-20 00:39:21 -0500406#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.2"
Timur Tabid8f341c2011-08-04 18:03:41 -0500407#define CONFIG_SYS_CCSRBAR_DEFAULT 0xfe000000
Roy Zang6d6a0e12011-04-13 00:08:51 -0500408#define CONFIG_SYS_FSL_USB1_PHY_ENABLE
409#define CONFIG_SYS_FSL_USB2_PHY_ENABLE
Kumar Galaa49034f2011-04-13 00:19:10 -0500410#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530411#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
Lei Xu32276202011-04-19 15:28:41 +0800412#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
York Sun53155532012-08-08 18:04:53 +0000413#define CONFIG_SYS_FSL_ERRATUM_NMG_CPU_A011
Xuleicf4f4932013-03-11 17:56:34 +0000414#define CONFIG_SYS_FSL_ERRATUM_USB14
Kumar Gala945e59a2011-11-22 06:51:15 -0600415#define CONFIG_SYS_FSL_ERRATUM_CPU_A003999
York Sun52db64b2013-03-25 07:30:11 +0000416#define CONFIG_SYS_FSL_ERRATUM_DDR_A003
York Sundf2be192011-11-20 10:01:35 -0800417#define CONFIG_SYS_FSL_ERRATUM_DDR_A003474
Liu Gang78deaa12012-03-08 00:33:14 +0000418#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 2
419#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
420#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
Scott Wood80806962012-08-14 10:14:53 +0000421#define CONFIG_SYS_FSL_ERRATUM_A004510
422#define CONFIG_SYS_FSL_ERRATUM_A004510_SVR_REV 0x10
423#define CONFIG_SYS_FSL_ERRATUM_A004510_SVR_REV2 0x11
424#define CONFIG_SYS_FSL_CORENET_SNOOPVEC_COREONLY 0xf0000000
Liu Gang712b6622012-09-28 21:26:19 +0000425#define CONFIG_SYS_FSL_ERRATUM_SRIO_A004034
Timur Tabie3ab8c12012-10-25 12:40:00 +0000426#define CONFIG_SYS_FSL_ERRATUM_A004849
York Suncca41c52013-06-25 11:37:49 -0700427#define CONFIG_SYS_FSL_ERRATUM_A005812
Chunhe Lan92546402013-08-16 15:10:37 +0800428#define CONFIG_SYS_FSL_ERRATUM_I2C_A004447
Suresh Gupta086f0a72014-02-26 14:29:12 +0530429#define CONFIG_SYS_FSL_ERRATUM_A006261
Chunhe Lan92546402013-08-16 15:10:37 +0800430#define CONFIG_SYS_FSL_A004447_SVR_REV 0x20
Kumar Galafe137112011-01-19 03:05:26 -0600431
Scott Wooda1ef48c2012-08-14 10:14:51 +0000432#elif defined(CONFIG_PPC_P4080) /* also supports P4040 */
York Sun7e0edbd2012-10-08 07:44:15 +0000433#define CONFIG_SYS_FSL_QORIQ_CHASSIS1
York Sun544f8812013-06-25 11:37:39 -0700434#define CONFIG_FSL_CORENET /* Freescale CoreNet platform */
Kumar Galafe137112011-01-19 03:05:26 -0600435#define CONFIG_MAX_CPUS 8
Kumar Gala3842bb52011-02-16 02:03:29 -0600436#define CONFIG_SYS_FSL_NUM_CC_PLLS 4
Kumar Galafe137112011-01-19 03:05:26 -0600437#define CONFIG_SYS_FSL_NUM_LAWS 32
438#define CONFIG_SYS_FSL_SEC_COMPAT 4
439#define CONFIG_SYS_NUM_FMAN 2
440#define CONFIG_SYS_NUM_FM1_DTSEC 4
441#define CONFIG_SYS_NUM_FM2_DTSEC 4
442#define CONFIG_SYS_NUM_FM1_10GEC 1
443#define CONFIG_SYS_NUM_FM2_10GEC 1
444#define CONFIG_NUM_DDR_CONTROLLERS 2
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530445#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
Kumar Galad80dfe42011-02-04 00:43:34 -0600446#define CONFIG_SYS_FM_MURAM_SIZE 0x28000
Kumar Galaf4fb90f2011-02-18 05:40:54 -0600447#define CONFIG_SYS_FSL_TBCLK_DIV 16
Kumar Gala179b1b22011-05-20 00:39:21 -0500448#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,p4080-pcie"
Timur Tabid8f341c2011-08-04 18:03:41 -0500449#define CONFIG_SYS_CCSRBAR_DEFAULT 0xfe000000
Kumar Galafe137112011-01-19 03:05:26 -0600450#define CONFIG_SYS_FSL_ERRATUM_CPC_A002
451#define CONFIG_SYS_FSL_ERRATUM_CPC_A003
York Sun922f40f2011-01-10 12:03:01 +0000452#define CONFIG_SYS_FSL_ERRATUM_DDR_A003
Kumar Galafe137112011-01-19 03:05:26 -0600453#define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
454#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
455#define CONFIG_SYS_FSL_ERRATUM_ESDHC135
Zang Roy-R6191183659922012-09-18 09:50:08 +0000456#define CONFIG_SYS_FSL_ERRATUM_ESDHC13
Kumar Galafe137112011-01-19 03:05:26 -0600457#define CONFIG_SYS_P4080_ERRATUM_CPU22
York Sun9ed88112012-05-07 07:26:47 +0000458#define CONFIG_SYS_FSL_ERRATUM_NMG_CPU_A011
Kumar Galafe137112011-01-19 03:05:26 -0600459#define CONFIG_SYS_P4080_ERRATUM_SERDES8
Emil Medveb01c81f2010-08-31 22:57:38 -0500460#define CONFIG_SYS_P4080_ERRATUM_SERDES9
Timur Tabi6a62dc42011-04-18 17:16:00 -0500461#define CONFIG_SYS_P4080_ERRATUM_SERDES_A001
Timur Tabi90f381d2011-04-01 13:19:36 -0500462#define CONFIG_SYS_P4080_ERRATUM_SERDES_A005
Kumar Gala945e59a2011-11-22 06:51:15 -0600463#define CONFIG_SYS_FSL_ERRATUM_CPU_A003999
York Sundf2be192011-11-20 10:01:35 -0800464#define CONFIG_SYS_FSL_ERRATUM_DDR_A003474
Liu Gang78deaa12012-03-08 00:33:14 +0000465#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 2
466#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
467#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
468#define CONFIG_SYS_FSL_RMU
469#define CONFIG_SYS_FSL_SRIO_MSG_UNIT_NUM 2
Scott Wood80806962012-08-14 10:14:53 +0000470#define CONFIG_SYS_FSL_ERRATUM_A004510
471#define CONFIG_SYS_FSL_ERRATUM_A004510_SVR_REV 0x20
472#define CONFIG_SYS_FSL_CORENET_SNOOPVEC_COREONLY 0xff000000
Liu Gang712b6622012-09-28 21:26:19 +0000473#define CONFIG_SYS_FSL_ERRATUM_SRIO_A004034
Timur Tabie3ab8c12012-10-25 12:40:00 +0000474#define CONFIG_SYS_FSL_ERRATUM_A004849
Timur Tabic5355dd2012-11-01 08:20:23 +0000475#define CONFIG_SYS_FSL_ERRATUM_A004580
Yuanquan Chenc48234e2012-11-26 23:49:45 +0000476#define CONFIG_SYS_P4080_ERRATUM_PCIE_A003
York Suncca41c52013-06-25 11:37:49 -0700477#define CONFIG_SYS_FSL_ERRATUM_A005812
Chunhe Lan92546402013-08-16 15:10:37 +0800478#define CONFIG_SYS_FSL_ERRATUM_I2C_A004447
479#define CONFIG_SYS_FSL_A004447_SVR_REV 0x20
Kumar Galafe137112011-01-19 03:05:26 -0600480
Scott Wooda1ef48c2012-08-14 10:14:51 +0000481#elif defined(CONFIG_PPC_P5020) /* also supports P5010 */
York Sun2394a0f2012-10-08 07:44:30 +0000482#define CONFIG_SYS_PPC64 /* 64-bit core */
York Sun7e0edbd2012-10-08 07:44:15 +0000483#define CONFIG_SYS_FSL_QORIQ_CHASSIS1
York Sun544f8812013-06-25 11:37:39 -0700484#define CONFIG_FSL_CORENET /* Freescale CoreNet platform */
Kumar Galafe137112011-01-19 03:05:26 -0600485#define CONFIG_MAX_CPUS 2
Kumar Gala3842bb52011-02-16 02:03:29 -0600486#define CONFIG_SYS_FSL_NUM_CC_PLLS 2
Kumar Galafe137112011-01-19 03:05:26 -0600487#define CONFIG_SYS_FSL_NUM_LAWS 32
488#define CONFIG_SYS_FSL_SEC_COMPAT 4
Kumar Gala60d95d82011-01-25 12:42:32 -0600489#define CONFIG_SYS_NUM_FMAN 1
490#define CONFIG_SYS_NUM_FM1_DTSEC 5
491#define CONFIG_SYS_NUM_FM1_10GEC 1
492#define CONFIG_NUM_DDR_CONTROLLERS 2
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530493#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
Kumar Galad80dfe42011-02-04 00:43:34 -0600494#define CONFIG_SYS_FM_MURAM_SIZE 0x28000
Kumar Galaf4fb90f2011-02-18 05:40:54 -0600495#define CONFIG_SYS_FSL_TBCLK_DIV 32
Kumar Gala179b1b22011-05-20 00:39:21 -0500496#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.2"
Timur Tabid8f341c2011-08-04 18:03:41 -0500497#define CONFIG_SYS_CCSRBAR_DEFAULT 0xfe000000
Roy Zang6d6a0e12011-04-13 00:08:51 -0500498#define CONFIG_SYS_FSL_USB1_PHY_ENABLE
499#define CONFIG_SYS_FSL_USB2_PHY_ENABLE
Kumar Galaa49034f2011-04-13 00:19:10 -0500500#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
Lei Xu32276202011-04-19 15:28:41 +0800501#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
Xuleicf4f4932013-03-11 17:56:34 +0000502#define CONFIG_SYS_FSL_ERRATUM_USB14
York Sun52db64b2013-03-25 07:30:11 +0000503#define CONFIG_SYS_FSL_ERRATUM_DDR_A003
York Sundf2be192011-11-20 10:01:35 -0800504#define CONFIG_SYS_FSL_ERRATUM_DDR_A003474
Liu Gang78deaa12012-03-08 00:33:14 +0000505#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 2
506#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
507#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
Scott Wood80806962012-08-14 10:14:53 +0000508#define CONFIG_SYS_FSL_ERRATUM_A004510
509#define CONFIG_SYS_FSL_ERRATUM_A004510_SVR_REV 0x10
510#define CONFIG_SYS_FSL_CORENET_SNOOPVEC_COREONLY 0xc0000000
Liu Gang712b6622012-09-28 21:26:19 +0000511#define CONFIG_SYS_FSL_ERRATUM_SRIO_A004034
Chunhe Lan92546402013-08-16 15:10:37 +0800512#define CONFIG_SYS_FSL_ERRATUM_I2C_A004447
Suresh Gupta086f0a72014-02-26 14:29:12 +0530513#define CONFIG_SYS_FSL_ERRATUM_A006261
Chunhe Lan92546402013-08-16 15:10:37 +0800514#define CONFIG_SYS_FSL_A004447_SVR_REV 0x20
Kumar Galafe137112011-01-19 03:05:26 -0600515
Timur Tabid5e13882012-10-05 11:09:19 +0000516#elif defined(CONFIG_PPC_P5040)
Timur Tabi9a7b5a32012-10-23 10:48:09 +0000517#define CONFIG_SYS_PPC64
Timur Tabid5e13882012-10-05 11:09:19 +0000518#define CONFIG_SYS_FSL_QORIQ_CHASSIS1
York Sun544f8812013-06-25 11:37:39 -0700519#define CONFIG_FSL_CORENET /* Freescale CoreNet platform */
Timur Tabid5e13882012-10-05 11:09:19 +0000520#define CONFIG_MAX_CPUS 4
521#define CONFIG_SYS_FSL_NUM_CC_PLLS 3
522#define CONFIG_SYS_FSL_NUM_LAWS 32
523#define CONFIG_SYS_FSL_SEC_COMPAT 4
524#define CONFIG_SYS_NUM_FMAN 2
525#define CONFIG_SYS_NUM_FM1_DTSEC 5
526#define CONFIG_SYS_NUM_FM1_10GEC 1
527#define CONFIG_SYS_NUM_FM2_DTSEC 5
528#define CONFIG_SYS_NUM_FM2_10GEC 1
529#define CONFIG_NUM_DDR_CONTROLLERS 2
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530530#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
Timur Tabid5e13882012-10-05 11:09:19 +0000531#define CONFIG_SYS_FM_MURAM_SIZE 0x28000
532#define CONFIG_SYS_FSL_TBCLK_DIV 16
533#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.4"
534#define CONFIG_SYS_CCSRBAR_DEFAULT 0xfe000000
535#define CONFIG_SYS_FSL_USB1_PHY_ENABLE
536#define CONFIG_SYS_FSL_USB2_PHY_ENABLE
537#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
538#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
Xuleicf4f4932013-03-11 17:56:34 +0000539#define CONFIG_SYS_FSL_ERRATUM_USB14
Timur Tabid5e13882012-10-05 11:09:19 +0000540#define CONFIG_SYS_FSL_ERRATUM_DDR_A003
541#define CONFIG_SYS_FSL_ERRATUM_DDR_A003474
542#define CONFIG_SYS_FSL_ERRATUM_A004699
Timur Tabid5e13882012-10-05 11:09:19 +0000543#define CONFIG_SYS_FSL_ERRATUM_A004510
544#define CONFIG_SYS_FSL_ERRATUM_A004510_SVR_REV 0x10
Suresh Gupta086f0a72014-02-26 14:29:12 +0530545#define CONFIG_SYS_FSL_ERRATUM_A006261
Timur Tabid5e13882012-10-05 11:09:19 +0000546#define CONFIG_SYS_FSL_CORENET_SNOOPVEC_COREONLY 0xf0000000
York Suncca41c52013-06-25 11:37:49 -0700547#define CONFIG_SYS_FSL_ERRATUM_A005812
Timur Tabid5e13882012-10-05 11:09:19 +0000548
Prabhakar Kushwahabeebb882012-04-24 20:16:49 +0000549#elif defined(CONFIG_BSC9131)
550#define CONFIG_MAX_CPUS 1
551#define CONFIG_FSL_SDHC_V2_3
552#define CONFIG_SYS_FSL_NUM_LAWS 12
553#define CONFIG_TSECV2
554#define CONFIG_SYS_FSL_SEC_COMPAT 4
555#define CONFIG_NUM_DDR_CONTROLLERS 1
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530556#define CONFIG_USB_MAX_CONTROLLER_COUNT 1
Priyanka Jainf81e8b22013-04-04 09:31:54 +0530557#define CONFIG_SYS_FSL_DSP_M2_RAM_ADDR 0xb0000000
558#define CONFIG_SYS_FSL_DSP_CCSRBAR_DEFAULT 0xff600000
Mingkai Hu6f024c92013-05-16 10:18:13 +0800559#define CONFIG_SYS_FSL_IFC_BANK_COUNT 3
Prabhakar Kushwahabeebb882012-04-24 20:16:49 +0000560#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
561#define CONFIG_NAND_FSL_IFC
Prabhakar Kushwahabeebb882012-04-24 20:16:49 +0000562#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
York Sun0cc59072013-08-20 15:09:43 -0700563#define CONFIG_SYS_FSL_ERRATUM_A005125
Haijun.Zhang22e3c422014-01-10 13:52:19 +0800564#define CONFIG_ESDHC_HC_BLK_ADDR
Prabhakar Kushwahabeebb882012-04-24 20:16:49 +0000565
Prabhakar Kushwaha92543c22013-01-23 17:59:57 +0000566#elif defined(CONFIG_BSC9132)
567#define CONFIG_MAX_CPUS 2
568#define CONFIG_SYS_PPC_E500_DEBUG_TLB 3
569#define CONFIG_FSL_SDHC_V2_3
570#define CONFIG_SYS_FSL_NUM_LAWS 12
571#define CONFIG_TSECV2
572#define CONFIG_SYS_FSL_SEC_COMPAT 4
573#define CONFIG_NUM_DDR_CONTROLLERS 2
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530574#define CONFIG_USB_MAX_CONTROLLER_COUNT 1
Priyanka Jainc73b9032013-07-02 09:21:04 +0530575#define CONFIG_SYS_FSL_DSP_DDR_ADDR 0x40000000
576#define CONFIG_SYS_FSL_DSP_M2_RAM_ADDR 0xb0000000
577#define CONFIG_SYS_FSL_DSP_M3_RAM_ADDR 0xc0000000
578#define CONFIG_SYS_FSL_DSP_CCSRBAR_DEFAULT 0xff600000
York Sun84fa67e2013-04-18 19:31:01 -0700579#define CONFIG_SYS_FSL_IFC_BANK_COUNT 3
Prabhakar Kushwaha92543c22013-01-23 17:59:57 +0000580#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
581#define CONFIG_NAND_FSL_IFC
Prabhakar Kushwaha92543c22013-01-23 17:59:57 +0000582#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
583#define CONFIG_SYS_FSL_ESDHC_P1010_BROKEN_SDCLK
584#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.2"
York Sun0cc59072013-08-20 15:09:43 -0700585#define CONFIG_SYS_FSL_ERRATUM_A005125
Chunhe Lan92546402013-08-16 15:10:37 +0800586#define CONFIG_SYS_FSL_ERRATUM_I2C_A004447
587#define CONFIG_SYS_FSL_A004447_SVR_REV 0x11
Haijun.Zhang22e3c422014-01-10 13:52:19 +0800588#define CONFIG_ESDHC_HC_BLK_ADDR
Prabhakar Kushwaha92543c22013-01-23 17:59:57 +0000589
York Sun64fd08b2013-03-25 07:40:05 +0000590#elif defined(CONFIG_PPC_T4240) || defined(CONFIG_PPC_T4160)
591#define CONFIG_E6500
York Sun2394a0f2012-10-08 07:44:30 +0000592#define CONFIG_SYS_PPC64 /* 64-bit core */
York Sun9941a222012-10-08 07:44:19 +0000593#define CONFIG_FSL_CORENET /* Freescale CoreNet platform */
594#define CONFIG_SYS_FSL_QORIQ_CHASSIS2 /* Freescale Chassis generation 2 */
York Sunaa150bb2013-03-25 07:40:07 +0000595#define CONFIG_SYS_FSL_CORES_PER_CLUSTER 4
York Sun9941a222012-10-08 07:44:19 +0000596#define CONFIG_SYS_FSL_QMAN_V3 /* QMAN version 3 */
York Sun64fd08b2013-03-25 07:40:05 +0000597#ifdef CONFIG_PPC_T4240
York Sun9941a222012-10-08 07:44:19 +0000598#define CONFIG_MAX_CPUS 12
Prabhakar Kushwaha7e8382f2013-09-03 11:20:15 +0530599#define CONFIG_SYS_FSL_CLUSTER_CLOCKS { 1, 1, 4 }
York Sun9941a222012-10-08 07:44:19 +0000600#define CONFIG_SYS_NUM_FM1_DTSEC 8
601#define CONFIG_SYS_NUM_FM1_10GEC 2
602#define CONFIG_SYS_NUM_FM2_DTSEC 8
603#define CONFIG_SYS_NUM_FM2_10GEC 2
604#define CONFIG_NUM_DDR_CONTROLLERS 3
York Sun64fd08b2013-03-25 07:40:05 +0000605#else
York Sunfb5137a2013-03-25 07:33:29 +0000606#define CONFIG_MAX_CPUS 8
Prabhakar Kushwaha7e8382f2013-09-03 11:20:15 +0530607#define CONFIG_SYS_FSL_CLUSTER_CLOCKS { 1, 1 }
York Sun64fd08b2013-03-25 07:40:05 +0000608#define CONFIG_SYS_NUM_FM1_DTSEC 7
609#define CONFIG_SYS_NUM_FM1_10GEC 1
610#define CONFIG_SYS_NUM_FM2_DTSEC 7
611#define CONFIG_SYS_NUM_FM2_10GEC 1
612#define CONFIG_NUM_DDR_CONTROLLERS 2
613#endif
York Sunfb5137a2013-03-25 07:33:29 +0000614#define CONFIG_SYS_FSL_NUM_CC_PLLS 5
615#define CONFIG_SYS_FSL_NUM_LAWS 32
Prabhakar Kushwaha873e9f02013-07-31 16:56:41 +0530616#define CONFIG_SYS_FSL_SRDS_1
617#define CONFIG_SYS_FSL_SRDS_2
York Sunfb5137a2013-03-25 07:33:29 +0000618#define CONFIG_SYS_FSL_SRDS_3
619#define CONFIG_SYS_FSL_SRDS_4
620#define CONFIG_SYS_FSL_SEC_COMPAT 4
621#define CONFIG_SYS_NUM_FMAN 2
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530622#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
Prabhakar Kushwaha7e8382f2013-09-03 11:20:15 +0530623#define CONFIG_SYS_PME_CLK 0
York Sunfb5137a2013-03-25 07:33:29 +0000624#define CONFIG_SYS_FSL_DDR_VER FSL_DDR_VER_4_7
Mingkai Hu6f024c92013-05-16 10:18:13 +0800625#define CONFIG_SYS_FSL_IFC_BANK_COUNT 8
York Sunfb5137a2013-03-25 07:33:29 +0000626#define CONFIG_SYS_FMAN_V3
Prabhakar Kushwaha7e8382f2013-09-03 11:20:15 +0530627#define CONFIG_SYS_FM1_CLK 3
628#define CONFIG_SYS_FM2_CLK 3
York Sunfb5137a2013-03-25 07:33:29 +0000629#define CONFIG_SYS_FM_MURAM_SIZE 0x60000
630#define CONFIG_SYS_FSL_TBCLK_DIV 16
631#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v3.0"
632#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 2
633#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
634#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
Liu Gangd5eca7e2013-06-25 18:12:14 +0800635#define CONFIG_SYS_FSL_SRIO_LIODN
York Sunfb5137a2013-03-25 07:33:29 +0000636#define CONFIG_SYS_FSL_USB_DUAL_PHY_ENABLE
637#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
638#define CONFIG_SYS_FSL_ERRATUM_A004468
639#define CONFIG_SYS_FSL_ERRATUM_A_004934
640#define CONFIG_SYS_FSL_ERRATUM_A005871
Suresh Gupta086f0a72014-02-26 14:29:12 +0530641#define CONFIG_SYS_FSL_ERRATUM_A006261
York Sunb1954252013-09-16 12:49:31 -0700642#define CONFIG_SYS_FSL_ERRATUM_A006379
Scott Wood3f4a5c42013-05-15 17:50:13 -0500643#define CONFIG_SYS_FSL_ERRATUM_A006593
York Sunfb5137a2013-03-25 07:33:29 +0000644#define CONFIG_SYS_CCSRBAR_DEFAULT 0xfe000000
645#define CONFIG_SYS_FSL_PCI_VER_3_X
646
Poonam Aggrwal525ab512013-03-25 07:40:20 +0000647#elif defined(CONFIG_PPC_B4860) || defined(CONFIG_PPC_B4420)
648#define CONFIG_E6500
Poonam Aggrwal248865e2012-12-23 19:24:16 +0000649#define CONFIG_SYS_PPC64 /* 64-bit core */
650#define CONFIG_FSL_CORENET /* Freescale CoreNet platform */
651#define CONFIG_SYS_FSL_QORIQ_CHASSIS2 /* Freescale Chassis generation 2 */
652#define CONFIG_SYS_FSL_QMAN_V3 /* QMAN version 3 */
Poonam Aggrwal248865e2012-12-23 19:24:16 +0000653#define CONFIG_SYS_FSL_NUM_LAWS 32
Prabhakar Kushwaha873e9f02013-07-31 16:56:41 +0530654#define CONFIG_SYS_FSL_SRDS_1
655#define CONFIG_SYS_FSL_SRDS_2
Poonam Aggrwal248865e2012-12-23 19:24:16 +0000656#define CONFIG_SYS_FSL_SEC_COMPAT 4
657#define CONFIG_SYS_NUM_FMAN 1
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530658#define CONFIG_USB_MAX_CONTROLLER_COUNT 1
Prabhakar Kushwaha7e8382f2013-09-03 11:20:15 +0530659#define CONFIG_SYS_FM1_CLK 0
Poonam Aggrwal248865e2012-12-23 19:24:16 +0000660#define CONFIG_SYS_FSL_DDR_VER FSL_DDR_VER_4_7
Mingkai Hu6f024c92013-05-16 10:18:13 +0800661#define CONFIG_SYS_FSL_IFC_BANK_COUNT 4
Poonam Aggrwal248865e2012-12-23 19:24:16 +0000662#define CONFIG_SYS_FMAN_V3
663#define CONFIG_SYS_FM_MURAM_SIZE 0x60000
664#define CONFIG_SYS_FSL_TBCLK_DIV 16
665#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.4"
666#define CONFIG_SYS_FSL_USB1_PHY_ENABLE
667#define CONFIG_SYS_FSL_ERRATUM_A_004934
Shengzhou Liu5d9606e2013-02-27 21:56:54 +0000668#define CONFIG_SYS_FSL_ERRATUM_A005871
York Sunb1954252013-09-16 12:49:31 -0700669#define CONFIG_SYS_FSL_ERRATUM_A006379
Scott Wood3f4a5c42013-05-15 17:50:13 -0500670#define CONFIG_SYS_FSL_ERRATUM_A006593
Shaveta Leekhad11523b2014-02-26 16:08:22 +0530671#define CONFIG_SYS_FSL_ERRATUM_A006475
672#define CONFIG_SYS_FSL_ERRATUM_A006384
Poonam Aggrwal248865e2012-12-23 19:24:16 +0000673#define CONFIG_SYS_CCSRBAR_DEFAULT 0xfe000000
674
Poonam Aggrwal525ab512013-03-25 07:40:20 +0000675#ifdef CONFIG_PPC_B4860
York Sunaa150bb2013-03-25 07:40:07 +0000676#define CONFIG_SYS_FSL_CORES_PER_CLUSTER 4
York Sunbcf7b3d2012-10-08 07:44:20 +0000677#define CONFIG_MAX_CPUS 4
Shaveta Leekha0dda3982014-02-26 16:07:37 +0530678#define CONFIG_SYS_FSL_SRDS_NUM_PLLS 2
York Sunbcf7b3d2012-10-08 07:44:20 +0000679#define CONFIG_SYS_FSL_NUM_CC_PLLS 4
Prabhakar Kushwaha7e8382f2013-09-03 11:20:15 +0530680#define CONFIG_SYS_FSL_CLUSTER_CLOCKS { 1, 4, 4, 4 }
York Sunbcf7b3d2012-10-08 07:44:20 +0000681#define CONFIG_SYS_NUM_FM1_DTSEC 6
682#define CONFIG_SYS_NUM_FM1_10GEC 2
Poonam Aggrwal1c859552012-12-23 19:22:33 +0000683#define CONFIG_NUM_DDR_CONTROLLERS 2
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530684#define CONFIG_USB_MAX_CONTROLLER_COUNT 1
York Sunbcf7b3d2012-10-08 07:44:20 +0000685#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 2
686#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
687#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
Liu Gangbc6486a2013-06-25 18:12:13 +0800688#define CONFIG_SYS_FSL_SRIO_LIODN
Poonam Aggrwal525ab512013-03-25 07:40:20 +0000689#else
690#define CONFIG_MAX_CPUS 2
Shaveta Leekha0dda3982014-02-26 16:07:37 +0530691#define CONFIG_SYS_FSL_SRDS_NUM_PLLS 1
Poonam Aggrwal525ab512013-03-25 07:40:20 +0000692#define CONFIG_SYS_FSL_CORES_PER_CLUSTER 2
693#define CONFIG_SYS_FSL_NUM_CC_PLLS 4
Prabhakar Kushwaha7e8382f2013-09-03 11:20:15 +0530694#define CONFIG_SYS_FSL_CLUSTER_CLOCKS { 1, 4 }
Poonam Aggrwal525ab512013-03-25 07:40:20 +0000695#define CONFIG_SYS_NUM_FM1_DTSEC 4
696#define CONFIG_SYS_NUM_FM1_10GEC 0
697#define CONFIG_NUM_DDR_CONTROLLERS 1
698#endif
York Sunbcf7b3d2012-10-08 07:44:20 +0000699
Priyanka Jain94dce8b2013-10-18 12:30:21 +0530700#elif defined(CONFIG_PPC_T1040) || defined(CONFIG_PPC_T1042) ||\
701defined(CONFIG_PPC_T1020) || defined(CONFIG_PPC_T1022)
York Sun46571362013-03-25 07:40:06 +0000702#define CONFIG_E5500
703#define CONFIG_FSL_CORENET /* Freescale CoreNet platform */
704#define CONFIG_SYS_FSL_QORIQ_CHASSIS2 /* Freescale Chassis generation 2 */
York Sunaa150bb2013-03-25 07:40:07 +0000705#define CONFIG_SYS_FSL_CORES_PER_CLUSTER 1
York Sun46571362013-03-25 07:40:06 +0000706#define CONFIG_SYS_FSL_QMAN_V3 /* QMAN version 3 */
Prabhakar Kushwaha78512532013-09-03 11:19:54 +0530707#if defined(CONFIG_PPC_T1040) || defined(CONFIG_PPC_T1042)
York Sun46571362013-03-25 07:40:06 +0000708#define CONFIG_MAX_CPUS 4
Prabhakar Kushwaha78512532013-09-03 11:19:54 +0530709#elif defined(CONFIG_PPC_T1020) || defined(CONFIG_PPC_T1022)
710#define CONFIG_MAX_CPUS 2
711#endif
712#define CONFIG_SYS_FSL_NUM_CC_PLLS 2
Prabhakar Kushwaha7e8382f2013-09-03 11:20:15 +0530713#define CONFIG_SYS_FSL_CLUSTER_CLOCKS { 1, 1, 1, 1 }
714#define CONFIG_SYS_SDHC_CLOCK 0
York Sun46571362013-03-25 07:40:06 +0000715#define CONFIG_SYS_FSL_NUM_LAWS 16
Prabhakar Kushwaha78512532013-09-03 11:19:54 +0530716#define CONFIG_SYS_FSL_SRDS_1
717#define CONFIG_SYS_FSL_SEC_COMPAT 5
York Sun46571362013-03-25 07:40:06 +0000718#define CONFIG_SYS_NUM_FMAN 1
719#define CONFIG_SYS_NUM_FM1_DTSEC 5
720#define CONFIG_NUM_DDR_CONTROLLERS 1
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530721#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
Prabhakar Kushwaha7e8382f2013-09-03 11:20:15 +0530722#define CONFIG_PME_PLAT_CLK_DIV 2
723#define CONFIG_SYS_PME_CLK CONFIG_PME_PLAT_CLK_DIV
Prabhakar Kushwaha78512532013-09-03 11:19:54 +0530724#define CONFIG_SYS_FSL_DDR_VER FSL_DDR_VER_5_0
725#define CONFIG_SYS_FSL_IFC_BANK_COUNT 8
York Sun46571362013-03-25 07:40:06 +0000726#define CONFIG_SYS_FMAN_V3
Prabhakar Kushwaha7e8382f2013-09-03 11:20:15 +0530727#define CONFIG_FM_PLAT_CLK_DIV 1
728#define CONFIG_SYS_FM1_CLK CONFIG_FM_PLAT_CLK_DIV
Prabhakar Kushwaha78512532013-09-03 11:19:54 +0530729#define CONFIG_SYS_FM_MURAM_SIZE 0x30000
Priyanka Jaine9dcaa82013-12-17 14:25:52 +0530730#define CONFIG_SYS_FSL_SINGLE_SOURCE_CLK
Prabhakar Kushwahae6066b02013-12-11 12:49:13 +0530731#define CONFIG_SYS_FSL_TBCLK_DIV 16
York Sun46571362013-03-25 07:40:06 +0000732#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.4"
Nikhil Badola63fcdc62014-01-27 15:21:58 +0530733#define CONFIG_SYS_FSL_USB_DUAL_PHY_ENABLE
York Sun46571362013-03-25 07:40:06 +0000734#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
Suresh Gupta086f0a72014-02-26 14:29:12 +0530735#define CONFIG_SYS_FSL_ERRATUM_A006261
York Sun46571362013-03-25 07:40:06 +0000736#define CONFIG_SYS_CCSRBAR_DEFAULT 0xfe000000
Haijun.Zhangedeb83a2014-03-18 17:04:23 +0800737#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
738#define ESDHCI_QUIRK_BROKEN_TIMEOUT_VALUE
York Sun46571362013-03-25 07:40:06 +0000739
Shengzhou Liuf305cd22013-11-22 17:39:10 +0800740#elif defined(CONFIG_PPC_T2080) || defined(CONFIG_PPC_T2081)
741#define CONFIG_E6500
742#define CONFIG_SYS_PPC64 /* 64-bit core */
743#define CONFIG_FSL_CORENET /* Freescale CoreNet platform */
744#define CONFIG_SYS_FSL_QORIQ_CHASSIS2 /* Freescale Chassis generation 2 */
745#define CONFIG_SYS_FSL_CORES_PER_CLUSTER 4
746#define CONFIG_SYS_FSL_NUM_CC_PLLS 2
747#define CONFIG_SYS_FSL_QMAN_V3
748#define CONFIG_MAX_CPUS 4
749#define CONFIG_SYS_FSL_NUM_LAWS 32
750#define CONFIG_SYS_FSL_SEC_COMPAT 4
751#define CONFIG_SYS_NUM_FMAN 1
752#define CONFIG_SYS_FSL_CLUSTER_CLOCKS { 1, 4, 4, 4 }
753#define CONFIG_SYS_FSL_SRDS_1
754#define CONFIG_SYS_FSL_PCI_VER_3_X
755#if defined(CONFIG_PPC_T2080)
756#define CONFIG_SYS_NUM_FM1_DTSEC 8
757#define CONFIG_SYS_NUM_FM1_10GEC 4
758#define CONFIG_SYS_FSL_SRDS_2
759#define CONFIG_SYS_FSL_SRIO_LIODN
760#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 2
761#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
762#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
763#elif defined(CONFIG_PPC_T2081)
764#define CONFIG_SYS_NUM_FM1_DTSEC 6
765#define CONFIG_SYS_NUM_FM1_10GEC 2
766#endif
Shengzhou Liue681c622013-12-18 10:27:55 +0800767#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
Shengzhou Liuf305cd22013-11-22 17:39:10 +0800768#define CONFIG_NUM_DDR_CONTROLLERS 1
769#define CONFIG_PME_PLAT_CLK_DIV 1
770#define CONFIG_SYS_PME_CLK CONFIG_PME_PLAT_CLK_DIV
771#define CONFIG_SYS_FM1_CLK 0
772#define CONFIG_SYS_FSL_DDR_VER FSL_DDR_VER_4_7
773#define CONFIG_SYS_FSL_IFC_BANK_COUNT 8
774#define CONFIG_SYS_FMAN_V3
775#define CONFIG_SYS_FM_MURAM_SIZE 0x28000
776#define CONFIG_SYS_FSL_TBCLK_DIV 16
777#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v3.0"
778#define CONFIG_SYS_FSL_USB_DUAL_PHY_ENABLE
779#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
780#define CONFIG_SYS_CCSRBAR_DEFAULT 0xfe000000
781#define CONFIG_SYS_FSL_SFP_VER_3_0
782#define CONFIG_SYS_FSL_ISBC_VER 2
Haijun.Zhangedeb83a2014-03-18 17:04:23 +0800783#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
784#define ESDHCI_QUIRK_BROKEN_TIMEOUT_VALUE
785
Shengzhou Liuf305cd22013-11-22 17:39:10 +0800786
Mingkai Hu1a258072013-07-04 17:30:36 +0800787#elif defined(CONFIG_PPC_C29X)
788#define CONFIG_MAX_CPUS 1
789#define CONFIG_FSL_SDHC_V2_3
790#define CONFIG_SYS_FSL_NUM_LAWS 12
791#define CONFIG_SYS_PPC_E500_DEBUG_TLB 3
792#define CONFIG_TSECV2_1
793#define CONFIG_SYS_FSL_SEC_COMPAT 6
794#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
795#define CONFIG_NUM_DDR_CONTROLLERS 1
796#define CONFIG_SYS_FSL_IFC_BANK_COUNT 8
797#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
York Sun0cc59072013-08-20 15:09:43 -0700798#define CONFIG_SYS_FSL_ERRATUM_A005125
Mingkai Hu1a258072013-07-04 17:30:36 +0800799
Kumar Galafe137112011-01-19 03:05:26 -0600800#else
801#error Processor type not defined for this platform
802#endif
803
Timur Tabid8f341c2011-08-04 18:03:41 -0500804#ifndef CONFIG_SYS_CCSRBAR_DEFAULT
805#error "CONFIG_SYS_CCSRBAR_DEFAULT is not defined for this platform."
806#endif
807
York Sunaa150bb2013-03-25 07:40:07 +0000808#ifdef CONFIG_E6500
809#define CONFIG_SYS_FSL_THREADS_PER_CORE 2
810#else
811#define CONFIG_SYS_FSL_THREADS_PER_CORE 1
812#endif
813
York Sunf0626592013-09-30 09:22:09 -0700814#if !defined(CONFIG_SYS_FSL_DDRC_GEN1) && \
815 !defined(CONFIG_SYS_FSL_DDRC_GEN2) && \
816 !defined(CONFIG_SYS_FSL_DDRC_GEN3)
817#define CONFIG_SYS_FSL_DDRC_GEN3
818#endif
819
Kumar Galafe137112011-01-19 03:05:26 -0600820#endif /* _ASM_MPC85xx_CONFIG_H_ */