blob: 56587aebc0b6d3e454038aff18e70d6eb306c95c [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
157#define CONFIG_SYS_FSL_A004447_SVR_REV 0x10
Haijun.Zhang22e3c422014-01-10 13:52:19 +0800158#define CONFIG_ESDHC_HC_BLK_ADDR
Kumar Galafe137112011-01-19 03:05:26 -0600159
Kumar Galae4e69252011-02-05 13:45:07 -0600160/* P1011 is single core version of P1020 */
Kumar Galafe137112011-01-19 03:05:26 -0600161#elif defined(CONFIG_P1011)
162#define CONFIG_MAX_CPUS 1
163#define CONFIG_SYS_FSL_NUM_LAWS 12
Prabhakar Kushwaha3d42a962012-04-29 23:57:12 +0000164#define CONFIG_SYS_PPC_E500_DEBUG_TLB 2
Kumar Galafe137112011-01-19 03:05:26 -0600165#define CONFIG_TSECV2
Prabhakar Kushwaha1c48e772011-02-01 15:55:58 +0000166#define CONFIG_FSL_PCIE_DISABLE_ASPM
Kumar Galafe137112011-01-19 03:05:26 -0600167#define CONFIG_SYS_FSL_SEC_COMPAT 2
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530168#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
Timur Tabid8f341c2011-08-04 18:03:41 -0500169#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Galae4e69252011-02-05 13:45:07 -0600170#define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
171#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
York Sun0cc59072013-08-20 15:09:43 -0700172#define CONFIG_SYS_FSL_ERRATUM_A005125
Kumar Galafe137112011-01-19 03:05:26 -0600173
Kumar Galae4e69252011-02-05 13:45:07 -0600174/* P1012 is single core version of P1021 */
Kumar Galafe137112011-01-19 03:05:26 -0600175#elif defined(CONFIG_P1012)
176#define CONFIG_MAX_CPUS 1
177#define CONFIG_SYS_FSL_NUM_LAWS 12
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530178#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
Prabhakar Kushwaha3d42a962012-04-29 23:57:12 +0000179#define CONFIG_SYS_PPC_E500_DEBUG_TLB 2
Kumar Galafe137112011-01-19 03:05:26 -0600180#define CONFIG_TSECV2
Prabhakar Kushwaha1c48e772011-02-01 15:55:58 +0000181#define CONFIG_FSL_PCIE_DISABLE_ASPM
Kumar Galafe137112011-01-19 03:05:26 -0600182#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabid8f341c2011-08-04 18:03:41 -0500183#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Galae4e69252011-02-05 13:45:07 -0600184#define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
185#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
Haiying Wang8cb2af72011-02-11 01:25:30 -0600186#define QE_MURAM_SIZE 0x6000UL
187#define MAX_QE_RISC 1
188#define QE_NUM_OF_SNUM 28
York Sun0cc59072013-08-20 15:09:43 -0700189#define CONFIG_SYS_FSL_ERRATUM_A005125
Kumar Galafe137112011-01-19 03:05:26 -0600190
Kumar Galae4e69252011-02-05 13:45:07 -0600191/* P1013 is single core version of P1022 */
Kumar Galafe137112011-01-19 03:05:26 -0600192#elif defined(CONFIG_P1013)
193#define CONFIG_MAX_CPUS 1
194#define CONFIG_SYS_FSL_NUM_LAWS 12
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530195#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
Prabhakar Kushwaha3d42a962012-04-29 23:57:12 +0000196#define CONFIG_SYS_PPC_E500_DEBUG_TLB 2
Kumar Galafe137112011-01-19 03:05:26 -0600197#define CONFIG_TSECV2
198#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabid8f341c2011-08-04 18:03:41 -0500199#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Jiang Yutang7cd05902011-01-30 17:06:20 -0600200#define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
201#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
202#define CONFIG_FSL_SATA_ERRATUM_A001
York Sun0cc59072013-08-20 15:09:43 -0700203#define CONFIG_SYS_FSL_ERRATUM_A005125
Kumar Galafe137112011-01-19 03:05:26 -0600204
205#elif defined(CONFIG_P1014)
206#define CONFIG_MAX_CPUS 1
Priyanka Jain02449632011-02-09 09:24:10 +0530207#define CONFIG_FSL_SDHC_V2_3
Kumar Galafe137112011-01-19 03:05:26 -0600208#define CONFIG_SYS_FSL_NUM_LAWS 12
Prabhakar Kushwaha3d42a962012-04-29 23:57:12 +0000209#define CONFIG_SYS_PPC_E500_DEBUG_TLB 3
Kumar Galafe137112011-01-19 03:05:26 -0600210#define CONFIG_TSECV2
211#define CONFIG_SYS_FSL_SEC_COMPAT 4
Poonam Aggrwal7373c592011-02-06 11:31:44 +0530212#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
213#define CONFIG_NUM_DDR_CONTROLLERS 1
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530214#define CONFIG_USB_MAX_CONTROLLER_COUNT 1
Poonam Aggrwal7373c592011-02-06 11:31:44 +0530215#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Ramneek Mehresh3fb68ee2011-03-23 15:20:43 +0530216#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
Poonam Aggrwalc7664a42011-06-30 03:00:28 -0500217#define CONFIG_SYS_FSL_ERRATUM_IFC_A002769
Poonam Aggrwalaf54a5f2011-06-29 16:32:52 +0530218#define CONFIG_SYS_FSL_ERRATUM_P1010_A003549
Poonam Aggrwal46b86ca2011-07-07 20:36:47 +0530219#define CONFIG_SYS_FSL_ERRATUM_IFC_A003399
Kumar Galafe137112011-01-19 03:05:26 -0600220
Kumar Galae4e69252011-02-05 13:45:07 -0600221/* P1017 is single core version of P1023 */
Roy Zang1de20b02011-02-03 22:14:19 -0600222#elif defined(CONFIG_P1017)
223#define CONFIG_MAX_CPUS 1
224#define CONFIG_SYS_FSL_NUM_LAWS 12
225#define CONFIG_SYS_FSL_SEC_COMPAT 4
226#define CONFIG_SYS_NUM_FMAN 1
227#define CONFIG_SYS_NUM_FM1_DTSEC 2
228#define CONFIG_NUM_DDR_CONTROLLERS 1
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530229#define CONFIG_USB_MAX_CONTROLLER_COUNT 1
Roy Zang1de20b02011-02-03 22:14:19 -0600230#define CONFIG_SYS_QMAN_NUM_PORTALS 3
231#define CONFIG_SYS_BMAN_NUM_PORTALS 3
Kumar Galad80dfe42011-02-04 00:43:34 -0600232#define CONFIG_SYS_FM_MURAM_SIZE 0x10000
Kumar Gala179b1b22011-05-20 00:39:21 -0500233#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.2"
Timur Tabid8f341c2011-08-04 18:03:41 -0500234#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff600000
York Sun0cc59072013-08-20 15:09:43 -0700235#define CONFIG_SYS_FSL_ERRATUM_A005125
Roy Zang1de20b02011-02-03 22:14:19 -0600236
Kumar Galafe137112011-01-19 03:05:26 -0600237#elif defined(CONFIG_P1020)
238#define CONFIG_MAX_CPUS 2
239#define CONFIG_SYS_FSL_NUM_LAWS 12
Prabhakar Kushwaha3d42a962012-04-29 23:57:12 +0000240#define CONFIG_SYS_PPC_E500_DEBUG_TLB 2
Kumar Galafe137112011-01-19 03:05:26 -0600241#define CONFIG_TSECV2
Prabhakar Kushwaha1c48e772011-02-01 15:55:58 +0000242#define CONFIG_FSL_PCIE_DISABLE_ASPM
Kumar Galafe137112011-01-19 03:05:26 -0600243#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabid8f341c2011-08-04 18:03:41 -0500244#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Galae4e69252011-02-05 13:45:07 -0600245#define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
246#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
York Sun0cc59072013-08-20 15:09:43 -0700247#define CONFIG_SYS_FSL_ERRATUM_A005125
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530248#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
Kumar Galafe137112011-01-19 03:05:26 -0600249
250#elif defined(CONFIG_P1021)
251#define CONFIG_MAX_CPUS 2
252#define CONFIG_SYS_FSL_NUM_LAWS 12
Prabhakar Kushwaha3d42a962012-04-29 23:57:12 +0000253#define CONFIG_SYS_PPC_E500_DEBUG_TLB 2
Kumar Galafe137112011-01-19 03:05:26 -0600254#define CONFIG_TSECV2
Prabhakar Kushwaha1c48e772011-02-01 15:55:58 +0000255#define CONFIG_FSL_PCIE_DISABLE_ASPM
Kumar Galafe137112011-01-19 03:05:26 -0600256#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabid8f341c2011-08-04 18:03:41 -0500257#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Galae4e69252011-02-05 13:45:07 -0600258#define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
259#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
Haiying Wang8cb2af72011-02-11 01:25:30 -0600260#define QE_MURAM_SIZE 0x6000UL
261#define MAX_QE_RISC 1
262#define QE_NUM_OF_SNUM 28
York Sun0cc59072013-08-20 15:09:43 -0700263#define CONFIG_SYS_FSL_ERRATUM_A005125
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530264#define CONFIG_USB_MAX_CONTROLLER_COUNT 1
Kumar Galafe137112011-01-19 03:05:26 -0600265
266#elif defined(CONFIG_P1022)
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 Galafe137112011-01-19 03:05:26 -0600270#define CONFIG_TSECV2
271#define CONFIG_SYS_FSL_SEC_COMPAT 2
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530272#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
Timur Tabid8f341c2011-08-04 18:03:41 -0500273#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Jiang Yutang7cd05902011-01-30 17:06:20 -0600274#define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
275#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
276#define CONFIG_FSL_SATA_ERRATUM_A001
York Sun0cc59072013-08-20 15:09:43 -0700277#define CONFIG_SYS_FSL_ERRATUM_A005125
Kumar Galafe137112011-01-19 03:05:26 -0600278
Roy Zang1de20b02011-02-03 22:14:19 -0600279#elif defined(CONFIG_P1023)
280#define CONFIG_MAX_CPUS 2
281#define CONFIG_SYS_FSL_NUM_LAWS 12
282#define CONFIG_SYS_FSL_SEC_COMPAT 4
283#define CONFIG_SYS_NUM_FMAN 1
284#define CONFIG_SYS_NUM_FM1_DTSEC 2
285#define CONFIG_NUM_DDR_CONTROLLERS 1
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530286#define CONFIG_USB_MAX_CONTROLLER_COUNT 1
Roy Zang1de20b02011-02-03 22:14:19 -0600287#define CONFIG_SYS_QMAN_NUM_PORTALS 3
288#define CONFIG_SYS_BMAN_NUM_PORTALS 3
Kumar Galad80dfe42011-02-04 00:43:34 -0600289#define CONFIG_SYS_FM_MURAM_SIZE 0x10000
Kumar Gala179b1b22011-05-20 00:39:21 -0500290#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.2"
Timur Tabid8f341c2011-08-04 18:03:41 -0500291#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff600000
York Sun0cc59072013-08-20 15:09:43 -0700292#define CONFIG_SYS_FSL_ERRATUM_A005125
Chunhe Lan92546402013-08-16 15:10:37 +0800293#define CONFIG_SYS_FSL_ERRATUM_I2C_A004447
294#define CONFIG_SYS_FSL_A004447_SVR_REV 0x11
Roy Zang1de20b02011-02-03 22:14:19 -0600295
Kumar Galae4e69252011-02-05 13:45:07 -0600296/* P1024 is lower end variant of P1020 */
297#elif defined(CONFIG_P1024)
298#define CONFIG_MAX_CPUS 2
299#define CONFIG_SYS_FSL_NUM_LAWS 12
Prabhakar Kushwaha3d42a962012-04-29 23:57:12 +0000300#define CONFIG_SYS_PPC_E500_DEBUG_TLB 2
Kumar Galae4e69252011-02-05 13:45:07 -0600301#define CONFIG_TSECV2
302#define CONFIG_FSL_PCIE_DISABLE_ASPM
303#define CONFIG_SYS_FSL_SEC_COMPAT 2
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530304#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
Timur Tabid8f341c2011-08-04 18:03:41 -0500305#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Galae4e69252011-02-05 13:45:07 -0600306#define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
307#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
York Sun0cc59072013-08-20 15:09:43 -0700308#define CONFIG_SYS_FSL_ERRATUM_A005125
Kumar Galae4e69252011-02-05 13:45:07 -0600309
310/* P1025 is lower end variant of P1021 */
311#elif defined(CONFIG_P1025)
312#define CONFIG_MAX_CPUS 2
313#define CONFIG_SYS_FSL_NUM_LAWS 12
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530314#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
Prabhakar Kushwaha3d42a962012-04-29 23:57:12 +0000315#define CONFIG_SYS_PPC_E500_DEBUG_TLB 2
Kumar Galae4e69252011-02-05 13:45:07 -0600316#define CONFIG_TSECV2
317#define CONFIG_FSL_PCIE_DISABLE_ASPM
318#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabid8f341c2011-08-04 18:03:41 -0500319#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Galae4e69252011-02-05 13:45:07 -0600320#define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
321#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
Haiying Wang8cb2af72011-02-11 01:25:30 -0600322#define QE_MURAM_SIZE 0x6000UL
323#define MAX_QE_RISC 1
324#define QE_NUM_OF_SNUM 28
York Sun0cc59072013-08-20 15:09:43 -0700325#define CONFIG_SYS_FSL_ERRATUM_A005125
Kumar Galae4e69252011-02-05 13:45:07 -0600326
327/* P2010 is single core version of P2020 */
Kumar Galafe137112011-01-19 03:05:26 -0600328#elif defined(CONFIG_P2010)
329#define CONFIG_MAX_CPUS 1
330#define CONFIG_SYS_FSL_NUM_LAWS 12
Prabhakar Kushwaha3d42a962012-04-29 23:57:12 +0000331#define CONFIG_SYS_PPC_E500_DEBUG_TLB 2
Kumar Galafe137112011-01-19 03:05:26 -0600332#define CONFIG_SYS_FSL_SEC_COMPAT 2
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530333#define CONFIG_USB_MAX_CONTROLLER_COUNT 1
Timur Tabid8f341c2011-08-04 18:03:41 -0500334#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Gala7b5b4802011-01-26 01:43:15 -0600335#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
Kumar Gala9a878d52011-01-29 15:36:10 -0600336#define CONFIG_SYS_FSL_ERRATUM_ESDHC_A001
York Sun0cc59072013-08-20 15:09:43 -0700337#define CONFIG_SYS_FSL_ERRATUM_A005125
Kumar Galafe137112011-01-19 03:05:26 -0600338
339#elif defined(CONFIG_P2020)
340#define CONFIG_MAX_CPUS 2
341#define CONFIG_SYS_FSL_NUM_LAWS 12
Prabhakar Kushwaha3d42a962012-04-29 23:57:12 +0000342#define CONFIG_SYS_PPC_E500_DEBUG_TLB 2
Kumar Galafe137112011-01-19 03:05:26 -0600343#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabid8f341c2011-08-04 18:03:41 -0500344#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Gala7b5b4802011-01-26 01:43:15 -0600345#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
Kumar Gala9a878d52011-01-29 15:36:10 -0600346#define CONFIG_SYS_FSL_ERRATUM_ESDHC_A001
Liu Gang78deaa12012-03-08 00:33:14 +0000347#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 2
348#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
349#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
350#define CONFIG_SYS_FSL_RMU
351#define CONFIG_SYS_FSL_SRIO_MSG_UNIT_NUM 2
York Sun0cc59072013-08-20 15:09:43 -0700352#define CONFIG_SYS_FSL_ERRATUM_A005125
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530353#define CONFIG_USB_MAX_CONTROLLER_COUNT 1
Scott Wooda1ef48c2012-08-14 10:14:51 +0000354#elif defined(CONFIG_PPC_P2041) /* also supports P2040 */
York Sun7e0edbd2012-10-08 07:44:15 +0000355#define CONFIG_SYS_FSL_QORIQ_CHASSIS1
York Sun544f8812013-06-25 11:37:39 -0700356#define CONFIG_FSL_CORENET /* Freescale CoreNet platform */
Kumar Galafe137112011-01-19 03:05:26 -0600357#define CONFIG_MAX_CPUS 4
Kumar Gala3842bb52011-02-16 02:03:29 -0600358#define CONFIG_SYS_FSL_NUM_CC_PLLS 2
Kumar Galafe137112011-01-19 03:05:26 -0600359#define CONFIG_SYS_FSL_NUM_LAWS 32
360#define CONFIG_SYS_FSL_SEC_COMPAT 4
Kumar Gala619541b2011-05-13 01:16:07 -0500361#define CONFIG_SYS_NUM_FMAN 1
362#define CONFIG_SYS_NUM_FM1_DTSEC 5
363#define CONFIG_SYS_NUM_FM1_10GEC 1
364#define CONFIG_NUM_DDR_CONTROLLERS 1
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530365#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
Kumar Gala619541b2011-05-13 01:16:07 -0500366#define CONFIG_SYS_FM_MURAM_SIZE 0x28000
367#define CONFIG_SYS_FSL_TBCLK_DIV 32
368#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.2"
Timur Tabid8f341c2011-08-04 18:03:41 -0500369#define CONFIG_SYS_CCSRBAR_DEFAULT 0xfe000000
Kumar Gala619541b2011-05-13 01:16:07 -0500370#define CONFIG_SYS_FSL_USB1_PHY_ENABLE
371#define CONFIG_SYS_FSL_USB2_PHY_ENABLE
Kumar Galaa49034f2011-04-13 00:19:10 -0500372#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
Kumar Gala619541b2011-05-13 01:16:07 -0500373#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
York Sun9ed88112012-05-07 07:26:47 +0000374#define CONFIG_SYS_FSL_ERRATUM_NMG_CPU_A011
Xuleicf4f4932013-03-11 17:56:34 +0000375#define CONFIG_SYS_FSL_ERRATUM_USB14
Kumar Gala945e59a2011-11-22 06:51:15 -0600376#define CONFIG_SYS_FSL_ERRATUM_CPU_A003999
York Sun52db64b2013-03-25 07:30:11 +0000377#define CONFIG_SYS_FSL_ERRATUM_DDR_A003
York Sundf2be192011-11-20 10:01:35 -0800378#define CONFIG_SYS_FSL_ERRATUM_DDR_A003474
Liu Gang78deaa12012-03-08 00:33:14 +0000379#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 2
380#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
381#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
Scott Wood80806962012-08-14 10:14:53 +0000382#define CONFIG_SYS_FSL_ERRATUM_A004510
383#define CONFIG_SYS_FSL_ERRATUM_A004510_SVR_REV 0x10
384#define CONFIG_SYS_FSL_ERRATUM_A004510_SVR_REV2 0x11
385#define CONFIG_SYS_FSL_CORENET_SNOOPVEC_COREONLY 0xf0000000
Liu Gang712b6622012-09-28 21:26:19 +0000386#define CONFIG_SYS_FSL_ERRATUM_SRIO_A004034
Timur Tabie3ab8c12012-10-25 12:40:00 +0000387#define CONFIG_SYS_FSL_ERRATUM_A004849
Chunhe Lan92546402013-08-16 15:10:37 +0800388#define CONFIG_SYS_FSL_ERRATUM_I2C_A004447
389#define CONFIG_SYS_FSL_A004447_SVR_REV 0x11
Kumar Gala619541b2011-05-13 01:16:07 -0500390
Kumar Galafe137112011-01-19 03:05:26 -0600391#elif defined(CONFIG_PPC_P3041)
York Sun7e0edbd2012-10-08 07:44:15 +0000392#define CONFIG_SYS_FSL_QORIQ_CHASSIS1
York Sun544f8812013-06-25 11:37:39 -0700393#define CONFIG_FSL_CORENET /* Freescale CoreNet platform */
Kumar Galafe137112011-01-19 03:05:26 -0600394#define CONFIG_MAX_CPUS 4
Kumar Gala3842bb52011-02-16 02:03:29 -0600395#define CONFIG_SYS_FSL_NUM_CC_PLLS 2
Kumar Galafe137112011-01-19 03:05:26 -0600396#define CONFIG_SYS_FSL_NUM_LAWS 32
397#define CONFIG_SYS_FSL_SEC_COMPAT 4
Kumar Gala60d95d82011-01-25 12:42:32 -0600398#define CONFIG_SYS_NUM_FMAN 1
399#define CONFIG_SYS_NUM_FM1_DTSEC 5
400#define CONFIG_SYS_NUM_FM1_10GEC 1
401#define CONFIG_NUM_DDR_CONTROLLERS 1
Kumar Galad80dfe42011-02-04 00:43:34 -0600402#define CONFIG_SYS_FM_MURAM_SIZE 0x28000
Kumar Galaf4fb90f2011-02-18 05:40:54 -0600403#define CONFIG_SYS_FSL_TBCLK_DIV 32
Kumar Gala179b1b22011-05-20 00:39:21 -0500404#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.2"
Timur Tabid8f341c2011-08-04 18:03:41 -0500405#define CONFIG_SYS_CCSRBAR_DEFAULT 0xfe000000
Roy Zang6d6a0e12011-04-13 00:08:51 -0500406#define CONFIG_SYS_FSL_USB1_PHY_ENABLE
407#define CONFIG_SYS_FSL_USB2_PHY_ENABLE
Kumar Galaa49034f2011-04-13 00:19:10 -0500408#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530409#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
Lei Xu32276202011-04-19 15:28:41 +0800410#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
York Sun53155532012-08-08 18:04:53 +0000411#define CONFIG_SYS_FSL_ERRATUM_NMG_CPU_A011
Xuleicf4f4932013-03-11 17:56:34 +0000412#define CONFIG_SYS_FSL_ERRATUM_USB14
Kumar Gala945e59a2011-11-22 06:51:15 -0600413#define CONFIG_SYS_FSL_ERRATUM_CPU_A003999
York Sun52db64b2013-03-25 07:30:11 +0000414#define CONFIG_SYS_FSL_ERRATUM_DDR_A003
York Sundf2be192011-11-20 10:01:35 -0800415#define CONFIG_SYS_FSL_ERRATUM_DDR_A003474
Liu Gang78deaa12012-03-08 00:33:14 +0000416#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 2
417#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
418#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
Scott Wood80806962012-08-14 10:14:53 +0000419#define CONFIG_SYS_FSL_ERRATUM_A004510
420#define CONFIG_SYS_FSL_ERRATUM_A004510_SVR_REV 0x10
421#define CONFIG_SYS_FSL_ERRATUM_A004510_SVR_REV2 0x11
422#define CONFIG_SYS_FSL_CORENET_SNOOPVEC_COREONLY 0xf0000000
Liu Gang712b6622012-09-28 21:26:19 +0000423#define CONFIG_SYS_FSL_ERRATUM_SRIO_A004034
Timur Tabie3ab8c12012-10-25 12:40:00 +0000424#define CONFIG_SYS_FSL_ERRATUM_A004849
York Suncca41c52013-06-25 11:37:49 -0700425#define CONFIG_SYS_FSL_ERRATUM_A005812
Chunhe Lan92546402013-08-16 15:10:37 +0800426#define CONFIG_SYS_FSL_ERRATUM_I2C_A004447
427#define CONFIG_SYS_FSL_A004447_SVR_REV 0x20
Kumar Galafe137112011-01-19 03:05:26 -0600428
Scott Wooda1ef48c2012-08-14 10:14:51 +0000429#elif defined(CONFIG_PPC_P4080) /* also supports P4040 */
York Sun7e0edbd2012-10-08 07:44:15 +0000430#define CONFIG_SYS_FSL_QORIQ_CHASSIS1
York Sun544f8812013-06-25 11:37:39 -0700431#define CONFIG_FSL_CORENET /* Freescale CoreNet platform */
Kumar Galafe137112011-01-19 03:05:26 -0600432#define CONFIG_MAX_CPUS 8
Kumar Gala3842bb52011-02-16 02:03:29 -0600433#define CONFIG_SYS_FSL_NUM_CC_PLLS 4
Kumar Galafe137112011-01-19 03:05:26 -0600434#define CONFIG_SYS_FSL_NUM_LAWS 32
435#define CONFIG_SYS_FSL_SEC_COMPAT 4
436#define CONFIG_SYS_NUM_FMAN 2
437#define CONFIG_SYS_NUM_FM1_DTSEC 4
438#define CONFIG_SYS_NUM_FM2_DTSEC 4
439#define CONFIG_SYS_NUM_FM1_10GEC 1
440#define CONFIG_SYS_NUM_FM2_10GEC 1
441#define CONFIG_NUM_DDR_CONTROLLERS 2
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530442#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
Kumar Galad80dfe42011-02-04 00:43:34 -0600443#define CONFIG_SYS_FM_MURAM_SIZE 0x28000
Kumar Galaf4fb90f2011-02-18 05:40:54 -0600444#define CONFIG_SYS_FSL_TBCLK_DIV 16
Kumar Gala179b1b22011-05-20 00:39:21 -0500445#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,p4080-pcie"
Timur Tabid8f341c2011-08-04 18:03:41 -0500446#define CONFIG_SYS_CCSRBAR_DEFAULT 0xfe000000
Kumar Galafe137112011-01-19 03:05:26 -0600447#define CONFIG_SYS_FSL_ERRATUM_CPC_A002
448#define CONFIG_SYS_FSL_ERRATUM_CPC_A003
York Sun922f40f2011-01-10 12:03:01 +0000449#define CONFIG_SYS_FSL_ERRATUM_DDR_A003
Kumar Galafe137112011-01-19 03:05:26 -0600450#define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
451#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
452#define CONFIG_SYS_FSL_ERRATUM_ESDHC135
Zang Roy-R6191183659922012-09-18 09:50:08 +0000453#define CONFIG_SYS_FSL_ERRATUM_ESDHC13
Kumar Galafe137112011-01-19 03:05:26 -0600454#define CONFIG_SYS_P4080_ERRATUM_CPU22
York Sun9ed88112012-05-07 07:26:47 +0000455#define CONFIG_SYS_FSL_ERRATUM_NMG_CPU_A011
Kumar Galafe137112011-01-19 03:05:26 -0600456#define CONFIG_SYS_P4080_ERRATUM_SERDES8
Emil Medveb01c81f2010-08-31 22:57:38 -0500457#define CONFIG_SYS_P4080_ERRATUM_SERDES9
Timur Tabi6a62dc42011-04-18 17:16:00 -0500458#define CONFIG_SYS_P4080_ERRATUM_SERDES_A001
Timur Tabi90f381d2011-04-01 13:19:36 -0500459#define CONFIG_SYS_P4080_ERRATUM_SERDES_A005
Kumar Gala945e59a2011-11-22 06:51:15 -0600460#define CONFIG_SYS_FSL_ERRATUM_CPU_A003999
York Sundf2be192011-11-20 10:01:35 -0800461#define CONFIG_SYS_FSL_ERRATUM_DDR_A003474
Liu Gang78deaa12012-03-08 00:33:14 +0000462#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 2
463#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
464#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
465#define CONFIG_SYS_FSL_RMU
466#define CONFIG_SYS_FSL_SRIO_MSG_UNIT_NUM 2
Scott Wood80806962012-08-14 10:14:53 +0000467#define CONFIG_SYS_FSL_ERRATUM_A004510
468#define CONFIG_SYS_FSL_ERRATUM_A004510_SVR_REV 0x20
469#define CONFIG_SYS_FSL_CORENET_SNOOPVEC_COREONLY 0xff000000
Liu Gang712b6622012-09-28 21:26:19 +0000470#define CONFIG_SYS_FSL_ERRATUM_SRIO_A004034
Timur Tabie3ab8c12012-10-25 12:40:00 +0000471#define CONFIG_SYS_FSL_ERRATUM_A004849
Timur Tabic5355dd2012-11-01 08:20:23 +0000472#define CONFIG_SYS_FSL_ERRATUM_A004580
Yuanquan Chenc48234e2012-11-26 23:49:45 +0000473#define CONFIG_SYS_P4080_ERRATUM_PCIE_A003
York Suncca41c52013-06-25 11:37:49 -0700474#define CONFIG_SYS_FSL_ERRATUM_A005812
Chunhe Lan92546402013-08-16 15:10:37 +0800475#define CONFIG_SYS_FSL_ERRATUM_I2C_A004447
476#define CONFIG_SYS_FSL_A004447_SVR_REV 0x20
Kumar Galafe137112011-01-19 03:05:26 -0600477
Scott Wooda1ef48c2012-08-14 10:14:51 +0000478#elif defined(CONFIG_PPC_P5020) /* also supports P5010 */
York Sun2394a0f2012-10-08 07:44:30 +0000479#define CONFIG_SYS_PPC64 /* 64-bit core */
York Sun7e0edbd2012-10-08 07:44:15 +0000480#define CONFIG_SYS_FSL_QORIQ_CHASSIS1
York Sun544f8812013-06-25 11:37:39 -0700481#define CONFIG_FSL_CORENET /* Freescale CoreNet platform */
Kumar Galafe137112011-01-19 03:05:26 -0600482#define CONFIG_MAX_CPUS 2
Kumar Gala3842bb52011-02-16 02:03:29 -0600483#define CONFIG_SYS_FSL_NUM_CC_PLLS 2
Kumar Galafe137112011-01-19 03:05:26 -0600484#define CONFIG_SYS_FSL_NUM_LAWS 32
485#define CONFIG_SYS_FSL_SEC_COMPAT 4
Kumar Gala60d95d82011-01-25 12:42:32 -0600486#define CONFIG_SYS_NUM_FMAN 1
487#define CONFIG_SYS_NUM_FM1_DTSEC 5
488#define CONFIG_SYS_NUM_FM1_10GEC 1
489#define CONFIG_NUM_DDR_CONTROLLERS 2
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530490#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
Kumar Galad80dfe42011-02-04 00:43:34 -0600491#define CONFIG_SYS_FM_MURAM_SIZE 0x28000
Kumar Galaf4fb90f2011-02-18 05:40:54 -0600492#define CONFIG_SYS_FSL_TBCLK_DIV 32
Kumar Gala179b1b22011-05-20 00:39:21 -0500493#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.2"
Timur Tabid8f341c2011-08-04 18:03:41 -0500494#define CONFIG_SYS_CCSRBAR_DEFAULT 0xfe000000
Roy Zang6d6a0e12011-04-13 00:08:51 -0500495#define CONFIG_SYS_FSL_USB1_PHY_ENABLE
496#define CONFIG_SYS_FSL_USB2_PHY_ENABLE
Kumar Galaa49034f2011-04-13 00:19:10 -0500497#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
Lei Xu32276202011-04-19 15:28:41 +0800498#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
Xuleicf4f4932013-03-11 17:56:34 +0000499#define CONFIG_SYS_FSL_ERRATUM_USB14
York Sun52db64b2013-03-25 07:30:11 +0000500#define CONFIG_SYS_FSL_ERRATUM_DDR_A003
York Sundf2be192011-11-20 10:01:35 -0800501#define CONFIG_SYS_FSL_ERRATUM_DDR_A003474
Liu Gang78deaa12012-03-08 00:33:14 +0000502#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 2
503#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
504#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
Scott Wood80806962012-08-14 10:14:53 +0000505#define CONFIG_SYS_FSL_ERRATUM_A004510
506#define CONFIG_SYS_FSL_ERRATUM_A004510_SVR_REV 0x10
507#define CONFIG_SYS_FSL_CORENET_SNOOPVEC_COREONLY 0xc0000000
Liu Gang712b6622012-09-28 21:26:19 +0000508#define CONFIG_SYS_FSL_ERRATUM_SRIO_A004034
Chunhe Lan92546402013-08-16 15:10:37 +0800509#define CONFIG_SYS_FSL_ERRATUM_I2C_A004447
510#define CONFIG_SYS_FSL_A004447_SVR_REV 0x20
Kumar Galafe137112011-01-19 03:05:26 -0600511
Timur Tabid5e13882012-10-05 11:09:19 +0000512#elif defined(CONFIG_PPC_P5040)
Timur Tabi9a7b5a32012-10-23 10:48:09 +0000513#define CONFIG_SYS_PPC64
Timur Tabid5e13882012-10-05 11:09:19 +0000514#define CONFIG_SYS_FSL_QORIQ_CHASSIS1
York Sun544f8812013-06-25 11:37:39 -0700515#define CONFIG_FSL_CORENET /* Freescale CoreNet platform */
Timur Tabid5e13882012-10-05 11:09:19 +0000516#define CONFIG_MAX_CPUS 4
517#define CONFIG_SYS_FSL_NUM_CC_PLLS 3
518#define CONFIG_SYS_FSL_NUM_LAWS 32
519#define CONFIG_SYS_FSL_SEC_COMPAT 4
520#define CONFIG_SYS_NUM_FMAN 2
521#define CONFIG_SYS_NUM_FM1_DTSEC 5
522#define CONFIG_SYS_NUM_FM1_10GEC 1
523#define CONFIG_SYS_NUM_FM2_DTSEC 5
524#define CONFIG_SYS_NUM_FM2_10GEC 1
525#define CONFIG_NUM_DDR_CONTROLLERS 2
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530526#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
Timur Tabid5e13882012-10-05 11:09:19 +0000527#define CONFIG_SYS_FM_MURAM_SIZE 0x28000
528#define CONFIG_SYS_FSL_TBCLK_DIV 16
529#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.4"
530#define CONFIG_SYS_CCSRBAR_DEFAULT 0xfe000000
531#define CONFIG_SYS_FSL_USB1_PHY_ENABLE
532#define CONFIG_SYS_FSL_USB2_PHY_ENABLE
533#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
534#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
Xuleicf4f4932013-03-11 17:56:34 +0000535#define CONFIG_SYS_FSL_ERRATUM_USB14
Timur Tabid5e13882012-10-05 11:09:19 +0000536#define CONFIG_SYS_FSL_ERRATUM_DDR_A003
537#define CONFIG_SYS_FSL_ERRATUM_DDR_A003474
538#define CONFIG_SYS_FSL_ERRATUM_A004699
Timur Tabid5e13882012-10-05 11:09:19 +0000539#define CONFIG_SYS_FSL_ERRATUM_A004510
540#define CONFIG_SYS_FSL_ERRATUM_A004510_SVR_REV 0x10
541#define CONFIG_SYS_FSL_CORENET_SNOOPVEC_COREONLY 0xf0000000
York Suncca41c52013-06-25 11:37:49 -0700542#define CONFIG_SYS_FSL_ERRATUM_A005812
Timur Tabid5e13882012-10-05 11:09:19 +0000543
Prabhakar Kushwahabeebb882012-04-24 20:16:49 +0000544#elif defined(CONFIG_BSC9131)
545#define CONFIG_MAX_CPUS 1
546#define CONFIG_FSL_SDHC_V2_3
547#define CONFIG_SYS_FSL_NUM_LAWS 12
548#define CONFIG_TSECV2
549#define CONFIG_SYS_FSL_SEC_COMPAT 4
550#define CONFIG_NUM_DDR_CONTROLLERS 1
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530551#define CONFIG_USB_MAX_CONTROLLER_COUNT 1
Priyanka Jainf81e8b22013-04-04 09:31:54 +0530552#define CONFIG_SYS_FSL_DSP_M2_RAM_ADDR 0xb0000000
553#define CONFIG_SYS_FSL_DSP_CCSRBAR_DEFAULT 0xff600000
Mingkai Hu6f024c92013-05-16 10:18:13 +0800554#define CONFIG_SYS_FSL_IFC_BANK_COUNT 3
Prabhakar Kushwahabeebb882012-04-24 20:16:49 +0000555#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
556#define CONFIG_NAND_FSL_IFC
Prabhakar Kushwahabeebb882012-04-24 20:16:49 +0000557#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
York Sun0cc59072013-08-20 15:09:43 -0700558#define CONFIG_SYS_FSL_ERRATUM_A005125
Haijun.Zhang22e3c422014-01-10 13:52:19 +0800559#define CONFIG_ESDHC_HC_BLK_ADDR
Prabhakar Kushwahabeebb882012-04-24 20:16:49 +0000560
Prabhakar Kushwaha92543c22013-01-23 17:59:57 +0000561#elif defined(CONFIG_BSC9132)
562#define CONFIG_MAX_CPUS 2
563#define CONFIG_SYS_PPC_E500_DEBUG_TLB 3
564#define CONFIG_FSL_SDHC_V2_3
565#define CONFIG_SYS_FSL_NUM_LAWS 12
566#define CONFIG_TSECV2
567#define CONFIG_SYS_FSL_SEC_COMPAT 4
568#define CONFIG_NUM_DDR_CONTROLLERS 2
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530569#define CONFIG_USB_MAX_CONTROLLER_COUNT 1
Priyanka Jainc73b9032013-07-02 09:21:04 +0530570#define CONFIG_SYS_FSL_DSP_DDR_ADDR 0x40000000
571#define CONFIG_SYS_FSL_DSP_M2_RAM_ADDR 0xb0000000
572#define CONFIG_SYS_FSL_DSP_M3_RAM_ADDR 0xc0000000
573#define CONFIG_SYS_FSL_DSP_CCSRBAR_DEFAULT 0xff600000
York Sun84fa67e2013-04-18 19:31:01 -0700574#define CONFIG_SYS_FSL_IFC_BANK_COUNT 3
Prabhakar Kushwaha92543c22013-01-23 17:59:57 +0000575#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
576#define CONFIG_NAND_FSL_IFC
Prabhakar Kushwaha92543c22013-01-23 17:59:57 +0000577#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
578#define CONFIG_SYS_FSL_ESDHC_P1010_BROKEN_SDCLK
579#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.2"
York Sun0cc59072013-08-20 15:09:43 -0700580#define CONFIG_SYS_FSL_ERRATUM_A005125
Chunhe Lan92546402013-08-16 15:10:37 +0800581#define CONFIG_SYS_FSL_ERRATUM_I2C_A004447
582#define CONFIG_SYS_FSL_A004447_SVR_REV 0x11
Haijun.Zhang22e3c422014-01-10 13:52:19 +0800583#define CONFIG_ESDHC_HC_BLK_ADDR
Prabhakar Kushwaha92543c22013-01-23 17:59:57 +0000584
York Sun64fd08b2013-03-25 07:40:05 +0000585#elif defined(CONFIG_PPC_T4240) || defined(CONFIG_PPC_T4160)
586#define CONFIG_E6500
York Sun2394a0f2012-10-08 07:44:30 +0000587#define CONFIG_SYS_PPC64 /* 64-bit core */
York Sun9941a222012-10-08 07:44:19 +0000588#define CONFIG_FSL_CORENET /* Freescale CoreNet platform */
589#define CONFIG_SYS_FSL_QORIQ_CHASSIS2 /* Freescale Chassis generation 2 */
York Sunaa150bb2013-03-25 07:40:07 +0000590#define CONFIG_SYS_FSL_CORES_PER_CLUSTER 4
York Sun9941a222012-10-08 07:44:19 +0000591#define CONFIG_SYS_FSL_QMAN_V3 /* QMAN version 3 */
York Sun64fd08b2013-03-25 07:40:05 +0000592#ifdef CONFIG_PPC_T4240
York Sun9941a222012-10-08 07:44:19 +0000593#define CONFIG_MAX_CPUS 12
Prabhakar Kushwaha7e8382f2013-09-03 11:20:15 +0530594#define CONFIG_SYS_FSL_CLUSTER_CLOCKS { 1, 1, 4 }
York Sun9941a222012-10-08 07:44:19 +0000595#define CONFIG_SYS_NUM_FM1_DTSEC 8
596#define CONFIG_SYS_NUM_FM1_10GEC 2
597#define CONFIG_SYS_NUM_FM2_DTSEC 8
598#define CONFIG_SYS_NUM_FM2_10GEC 2
599#define CONFIG_NUM_DDR_CONTROLLERS 3
York Sun64fd08b2013-03-25 07:40:05 +0000600#else
York Sunfb5137a2013-03-25 07:33:29 +0000601#define CONFIG_MAX_CPUS 8
Prabhakar Kushwaha7e8382f2013-09-03 11:20:15 +0530602#define CONFIG_SYS_FSL_CLUSTER_CLOCKS { 1, 1 }
York Sun64fd08b2013-03-25 07:40:05 +0000603#define CONFIG_SYS_NUM_FM1_DTSEC 7
604#define CONFIG_SYS_NUM_FM1_10GEC 1
605#define CONFIG_SYS_NUM_FM2_DTSEC 7
606#define CONFIG_SYS_NUM_FM2_10GEC 1
607#define CONFIG_NUM_DDR_CONTROLLERS 2
608#endif
York Sunfb5137a2013-03-25 07:33:29 +0000609#define CONFIG_SYS_FSL_NUM_CC_PLLS 5
610#define CONFIG_SYS_FSL_NUM_LAWS 32
Prabhakar Kushwaha873e9f02013-07-31 16:56:41 +0530611#define CONFIG_SYS_FSL_SRDS_1
612#define CONFIG_SYS_FSL_SRDS_2
York Sunfb5137a2013-03-25 07:33:29 +0000613#define CONFIG_SYS_FSL_SRDS_3
614#define CONFIG_SYS_FSL_SRDS_4
615#define CONFIG_SYS_FSL_SEC_COMPAT 4
616#define CONFIG_SYS_NUM_FMAN 2
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530617#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
Prabhakar Kushwaha7e8382f2013-09-03 11:20:15 +0530618#define CONFIG_SYS_PME_CLK 0
York Sunfb5137a2013-03-25 07:33:29 +0000619#define CONFIG_SYS_FSL_DDR_VER FSL_DDR_VER_4_7
Mingkai Hu6f024c92013-05-16 10:18:13 +0800620#define CONFIG_SYS_FSL_IFC_BANK_COUNT 8
York Sunfb5137a2013-03-25 07:33:29 +0000621#define CONFIG_SYS_FMAN_V3
Prabhakar Kushwaha7e8382f2013-09-03 11:20:15 +0530622#define CONFIG_SYS_FM1_CLK 3
623#define CONFIG_SYS_FM2_CLK 3
York Sunfb5137a2013-03-25 07:33:29 +0000624#define CONFIG_SYS_FM_MURAM_SIZE 0x60000
625#define CONFIG_SYS_FSL_TBCLK_DIV 16
626#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v3.0"
627#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 2
628#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
629#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
Liu Gangd5eca7e2013-06-25 18:12:14 +0800630#define CONFIG_SYS_FSL_SRIO_LIODN
York Sunfb5137a2013-03-25 07:33:29 +0000631#define CONFIG_SYS_FSL_USB_DUAL_PHY_ENABLE
632#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
633#define CONFIG_SYS_FSL_ERRATUM_A004468
634#define CONFIG_SYS_FSL_ERRATUM_A_004934
635#define CONFIG_SYS_FSL_ERRATUM_A005871
York Sunb1954252013-09-16 12:49:31 -0700636#define CONFIG_SYS_FSL_ERRATUM_A006379
Scott Wood3f4a5c42013-05-15 17:50:13 -0500637#define CONFIG_SYS_FSL_ERRATUM_A006593
York Sunfb5137a2013-03-25 07:33:29 +0000638#define CONFIG_SYS_CCSRBAR_DEFAULT 0xfe000000
639#define CONFIG_SYS_FSL_PCI_VER_3_X
640
Poonam Aggrwal525ab512013-03-25 07:40:20 +0000641#elif defined(CONFIG_PPC_B4860) || defined(CONFIG_PPC_B4420)
642#define CONFIG_E6500
Poonam Aggrwal248865e2012-12-23 19:24:16 +0000643#define CONFIG_SYS_PPC64 /* 64-bit core */
644#define CONFIG_FSL_CORENET /* Freescale CoreNet platform */
645#define CONFIG_SYS_FSL_QORIQ_CHASSIS2 /* Freescale Chassis generation 2 */
646#define CONFIG_SYS_FSL_QMAN_V3 /* QMAN version 3 */
Poonam Aggrwal248865e2012-12-23 19:24:16 +0000647#define CONFIG_SYS_FSL_NUM_LAWS 32
Prabhakar Kushwaha873e9f02013-07-31 16:56:41 +0530648#define CONFIG_SYS_FSL_SRDS_1
649#define CONFIG_SYS_FSL_SRDS_2
Poonam Aggrwal248865e2012-12-23 19:24:16 +0000650#define CONFIG_SYS_FSL_SEC_COMPAT 4
651#define CONFIG_SYS_NUM_FMAN 1
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530652#define CONFIG_USB_MAX_CONTROLLER_COUNT 1
Prabhakar Kushwaha7e8382f2013-09-03 11:20:15 +0530653#define CONFIG_SYS_FM1_CLK 0
Poonam Aggrwal248865e2012-12-23 19:24:16 +0000654#define CONFIG_SYS_FSL_DDR_VER FSL_DDR_VER_4_7
Mingkai Hu6f024c92013-05-16 10:18:13 +0800655#define CONFIG_SYS_FSL_IFC_BANK_COUNT 4
Poonam Aggrwal248865e2012-12-23 19:24:16 +0000656#define CONFIG_SYS_FMAN_V3
657#define CONFIG_SYS_FM_MURAM_SIZE 0x60000
658#define CONFIG_SYS_FSL_TBCLK_DIV 16
659#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.4"
660#define CONFIG_SYS_FSL_USB1_PHY_ENABLE
661#define CONFIG_SYS_FSL_ERRATUM_A_004934
Shengzhou Liu5d9606e2013-02-27 21:56:54 +0000662#define CONFIG_SYS_FSL_ERRATUM_A005871
York Sunb1954252013-09-16 12:49:31 -0700663#define CONFIG_SYS_FSL_ERRATUM_A006379
Scott Wood3f4a5c42013-05-15 17:50:13 -0500664#define CONFIG_SYS_FSL_ERRATUM_A006593
Poonam Aggrwal248865e2012-12-23 19:24:16 +0000665#define CONFIG_SYS_CCSRBAR_DEFAULT 0xfe000000
666
Poonam Aggrwal525ab512013-03-25 07:40:20 +0000667#ifdef CONFIG_PPC_B4860
York Sunaa150bb2013-03-25 07:40:07 +0000668#define CONFIG_SYS_FSL_CORES_PER_CLUSTER 4
York Sunbcf7b3d2012-10-08 07:44:20 +0000669#define CONFIG_MAX_CPUS 4
670#define CONFIG_SYS_FSL_NUM_CC_PLLS 4
Prabhakar Kushwaha7e8382f2013-09-03 11:20:15 +0530671#define CONFIG_SYS_FSL_CLUSTER_CLOCKS { 1, 4, 4, 4 }
York Sunbcf7b3d2012-10-08 07:44:20 +0000672#define CONFIG_SYS_NUM_FM1_DTSEC 6
673#define CONFIG_SYS_NUM_FM1_10GEC 2
Poonam Aggrwal1c859552012-12-23 19:22:33 +0000674#define CONFIG_NUM_DDR_CONTROLLERS 2
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530675#define CONFIG_USB_MAX_CONTROLLER_COUNT 1
York Sunbcf7b3d2012-10-08 07:44:20 +0000676#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 2
677#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
678#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
Liu Gangbc6486a2013-06-25 18:12:13 +0800679#define CONFIG_SYS_FSL_SRIO_LIODN
Poonam Aggrwal525ab512013-03-25 07:40:20 +0000680#else
681#define CONFIG_MAX_CPUS 2
682#define CONFIG_SYS_FSL_CORES_PER_CLUSTER 2
683#define CONFIG_SYS_FSL_NUM_CC_PLLS 4
Prabhakar Kushwaha7e8382f2013-09-03 11:20:15 +0530684#define CONFIG_SYS_FSL_CLUSTER_CLOCKS { 1, 4 }
Poonam Aggrwal525ab512013-03-25 07:40:20 +0000685#define CONFIG_SYS_NUM_FM1_DTSEC 4
686#define CONFIG_SYS_NUM_FM1_10GEC 0
687#define CONFIG_NUM_DDR_CONTROLLERS 1
688#endif
York Sunbcf7b3d2012-10-08 07:44:20 +0000689
Priyanka Jain94dce8b2013-10-18 12:30:21 +0530690#elif defined(CONFIG_PPC_T1040) || defined(CONFIG_PPC_T1042) ||\
691defined(CONFIG_PPC_T1020) || defined(CONFIG_PPC_T1022)
York Sun46571362013-03-25 07:40:06 +0000692#define CONFIG_E5500
693#define CONFIG_FSL_CORENET /* Freescale CoreNet platform */
694#define CONFIG_SYS_FSL_QORIQ_CHASSIS2 /* Freescale Chassis generation 2 */
York Sunaa150bb2013-03-25 07:40:07 +0000695#define CONFIG_SYS_FSL_CORES_PER_CLUSTER 1
York Sun46571362013-03-25 07:40:06 +0000696#define CONFIG_SYS_FSL_QMAN_V3 /* QMAN version 3 */
Prabhakar Kushwaha78512532013-09-03 11:19:54 +0530697#if defined(CONFIG_PPC_T1040) || defined(CONFIG_PPC_T1042)
York Sun46571362013-03-25 07:40:06 +0000698#define CONFIG_MAX_CPUS 4
Prabhakar Kushwaha78512532013-09-03 11:19:54 +0530699#elif defined(CONFIG_PPC_T1020) || defined(CONFIG_PPC_T1022)
700#define CONFIG_MAX_CPUS 2
701#endif
702#define CONFIG_SYS_FSL_NUM_CC_PLLS 2
Prabhakar Kushwaha7e8382f2013-09-03 11:20:15 +0530703#define CONFIG_SYS_FSL_CLUSTER_CLOCKS { 1, 1, 1, 1 }
704#define CONFIG_SYS_SDHC_CLOCK 0
York Sun46571362013-03-25 07:40:06 +0000705#define CONFIG_SYS_FSL_NUM_LAWS 16
Prabhakar Kushwaha78512532013-09-03 11:19:54 +0530706#define CONFIG_SYS_FSL_SRDS_1
707#define CONFIG_SYS_FSL_SEC_COMPAT 5
York Sun46571362013-03-25 07:40:06 +0000708#define CONFIG_SYS_NUM_FMAN 1
709#define CONFIG_SYS_NUM_FM1_DTSEC 5
710#define CONFIG_NUM_DDR_CONTROLLERS 1
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530711#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
Prabhakar Kushwaha7e8382f2013-09-03 11:20:15 +0530712#define CONFIG_PME_PLAT_CLK_DIV 2
713#define CONFIG_SYS_PME_CLK CONFIG_PME_PLAT_CLK_DIV
Prabhakar Kushwaha78512532013-09-03 11:19:54 +0530714#define CONFIG_SYS_FSL_DDR_VER FSL_DDR_VER_5_0
715#define CONFIG_SYS_FSL_IFC_BANK_COUNT 8
York Sun46571362013-03-25 07:40:06 +0000716#define CONFIG_SYS_FMAN_V3
Prabhakar Kushwaha7e8382f2013-09-03 11:20:15 +0530717#define CONFIG_FM_PLAT_CLK_DIV 1
718#define CONFIG_SYS_FM1_CLK CONFIG_FM_PLAT_CLK_DIV
Prabhakar Kushwaha78512532013-09-03 11:19:54 +0530719#define CONFIG_SYS_FM_MURAM_SIZE 0x30000
Priyanka Jaine9dcaa82013-12-17 14:25:52 +0530720#define CONFIG_SYS_FSL_SINGLE_SOURCE_CLK
Prabhakar Kushwahae6066b02013-12-11 12:49:13 +0530721#define CONFIG_SYS_FSL_TBCLK_DIV 16
York Sun46571362013-03-25 07:40:06 +0000722#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.4"
Nikhil Badola63fcdc62014-01-27 15:21:58 +0530723#define CONFIG_SYS_FSL_USB_DUAL_PHY_ENABLE
York Sun46571362013-03-25 07:40:06 +0000724#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
725#define CONFIG_SYS_CCSRBAR_DEFAULT 0xfe000000
726
Shengzhou Liuf305cd22013-11-22 17:39:10 +0800727#elif defined(CONFIG_PPC_T2080) || defined(CONFIG_PPC_T2081)
728#define CONFIG_E6500
729#define CONFIG_SYS_PPC64 /* 64-bit core */
730#define CONFIG_FSL_CORENET /* Freescale CoreNet platform */
731#define CONFIG_SYS_FSL_QORIQ_CHASSIS2 /* Freescale Chassis generation 2 */
732#define CONFIG_SYS_FSL_CORES_PER_CLUSTER 4
733#define CONFIG_SYS_FSL_NUM_CC_PLLS 2
734#define CONFIG_SYS_FSL_QMAN_V3
735#define CONFIG_MAX_CPUS 4
736#define CONFIG_SYS_FSL_NUM_LAWS 32
737#define CONFIG_SYS_FSL_SEC_COMPAT 4
738#define CONFIG_SYS_NUM_FMAN 1
739#define CONFIG_SYS_FSL_CLUSTER_CLOCKS { 1, 4, 4, 4 }
740#define CONFIG_SYS_FSL_SRDS_1
741#define CONFIG_SYS_FSL_PCI_VER_3_X
742#if defined(CONFIG_PPC_T2080)
743#define CONFIG_SYS_NUM_FM1_DTSEC 8
744#define CONFIG_SYS_NUM_FM1_10GEC 4
745#define CONFIG_SYS_FSL_SRDS_2
746#define CONFIG_SYS_FSL_SRIO_LIODN
747#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 2
748#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
749#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
750#elif defined(CONFIG_PPC_T2081)
751#define CONFIG_SYS_NUM_FM1_DTSEC 6
752#define CONFIG_SYS_NUM_FM1_10GEC 2
753#endif
Shengzhou Liue681c622013-12-18 10:27:55 +0800754#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
Shengzhou Liuf305cd22013-11-22 17:39:10 +0800755#define CONFIG_NUM_DDR_CONTROLLERS 1
756#define CONFIG_PME_PLAT_CLK_DIV 1
757#define CONFIG_SYS_PME_CLK CONFIG_PME_PLAT_CLK_DIV
758#define CONFIG_SYS_FM1_CLK 0
759#define CONFIG_SYS_FSL_DDR_VER FSL_DDR_VER_4_7
760#define CONFIG_SYS_FSL_IFC_BANK_COUNT 8
761#define CONFIG_SYS_FMAN_V3
762#define CONFIG_SYS_FM_MURAM_SIZE 0x28000
763#define CONFIG_SYS_FSL_TBCLK_DIV 16
764#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v3.0"
765#define CONFIG_SYS_FSL_USB_DUAL_PHY_ENABLE
766#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
767#define CONFIG_SYS_CCSRBAR_DEFAULT 0xfe000000
768#define CONFIG_SYS_FSL_SFP_VER_3_0
769#define CONFIG_SYS_FSL_ISBC_VER 2
770
Mingkai Hu1a258072013-07-04 17:30:36 +0800771#elif defined(CONFIG_PPC_C29X)
772#define CONFIG_MAX_CPUS 1
773#define CONFIG_FSL_SDHC_V2_3
774#define CONFIG_SYS_FSL_NUM_LAWS 12
775#define CONFIG_SYS_PPC_E500_DEBUG_TLB 3
776#define CONFIG_TSECV2_1
777#define CONFIG_SYS_FSL_SEC_COMPAT 6
778#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
779#define CONFIG_NUM_DDR_CONTROLLERS 1
780#define CONFIG_SYS_FSL_IFC_BANK_COUNT 8
781#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
York Sun0cc59072013-08-20 15:09:43 -0700782#define CONFIG_SYS_FSL_ERRATUM_A005125
Mingkai Hu1a258072013-07-04 17:30:36 +0800783
Kumar Galafe137112011-01-19 03:05:26 -0600784#else
785#error Processor type not defined for this platform
786#endif
787
Timur Tabid8f341c2011-08-04 18:03:41 -0500788#ifndef CONFIG_SYS_CCSRBAR_DEFAULT
789#error "CONFIG_SYS_CCSRBAR_DEFAULT is not defined for this platform."
790#endif
791
York Sunaa150bb2013-03-25 07:40:07 +0000792#ifdef CONFIG_E6500
793#define CONFIG_SYS_FSL_THREADS_PER_CORE 2
794#else
795#define CONFIG_SYS_FSL_THREADS_PER_CORE 1
796#endif
797
York Sunf0626592013-09-30 09:22:09 -0700798#if !defined(CONFIG_SYS_FSL_DDRC_GEN1) && \
799 !defined(CONFIG_SYS_FSL_DDRC_GEN2) && \
800 !defined(CONFIG_SYS_FSL_DDRC_GEN3)
801#define CONFIG_SYS_FSL_DDRC_GEN3
802#endif
803
Kumar Galafe137112011-01-19 03:05:26 -0600804#endif /* _ASM_MPC85xx_CONFIG_H_ */