blob: 3d8bd9a819b0c255d1ffec30a83171075fccf479 [file] [log] [blame]
Kumar Galafe137112011-01-19 03:05:26 -06001/*
Prabhakar Kushwahabeebb882012-04-24 20:16:49 +00002 * Copyright 2011-2012 Freescale Semiconductor, Inc.
Kumar Galafe137112011-01-19 03:05:26 -06003 *
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02004 * SPDX-License-Identifier: GPL-2.0+
Kumar Galafe137112011-01-19 03:05:26 -06005 */
6
7#ifndef _ASM_MPC85xx_CONFIG_H_
8#define _ASM_MPC85xx_CONFIG_H_
9
10/* SoC specific defines for Freescale MPC85xx (PQ3) and QorIQ processors */
11
Timur Tabid8f341c2011-08-04 18:03:41 -050012#ifdef CONFIG_SYS_CCSRBAR_DEFAULT
13#error "Do not define CONFIG_SYS_CCSRBAR_DEFAULT in the board header file."
14#endif
15
York Sunf066a042012-10-28 08:12:54 +000016/*
17 * This macro should be removed when we no longer care about backwards
18 * compatibility with older operating systems.
19 */
20#define CONFIG_PPC_SPINTABLE_COMPATIBLE
21
York Sun7d69ea32012-10-08 07:44:22 +000022#define FSL_DDR_VER_4_7 47
Prabhakar Kushwaha78512532013-09-03 11:19:54 +053023#define FSL_DDR_VER_5_0 50
York Sun7d69ea32012-10-08 07:44:22 +000024
Kumar Galafe137112011-01-19 03:05:26 -060025/* Number of TLB CAM entries we have on FSL Book-E chips */
26#if defined(CONFIG_E500MC)
27#define CONFIG_SYS_NUM_TLBCAMS 64
28#elif defined(CONFIG_E500)
29#define CONFIG_SYS_NUM_TLBCAMS 16
30#endif
31
32#if defined(CONFIG_MPC8536)
33#define CONFIG_MAX_CPUS 1
34#define CONFIG_SYS_FSL_NUM_LAWS 12
Prabhakar Kushwaha826cf622012-08-15 04:12:43 +000035#define CONFIG_SYS_PPC_E500_DEBUG_TLB 1
Kumar Galafe137112011-01-19 03:05:26 -060036#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabid8f341c2011-08-04 18:03:41 -050037#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
York Sun0cc59072013-08-20 15:09:43 -070038#define CONFIG_SYS_FSL_ERRATUM_A005125
Kumar Galafe137112011-01-19 03:05:26 -060039
Wolfgang Denka4de8352011-02-02 22:36:10 +010040#elif defined(CONFIG_MPC8540)
Kumar Galafe137112011-01-19 03:05:26 -060041#define CONFIG_MAX_CPUS 1
42#define CONFIG_SYS_FSL_NUM_LAWS 8
York Sunf0626592013-09-30 09:22:09 -070043#define CONFIG_SYS_FSL_DDRC_GEN1
Timur Tabid8f341c2011-08-04 18:03:41 -050044#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Galafe137112011-01-19 03:05:26 -060045
Wolfgang Denka4de8352011-02-02 22:36:10 +010046#elif defined(CONFIG_MPC8541)
Kumar Galafe137112011-01-19 03:05:26 -060047#define CONFIG_MAX_CPUS 1
48#define CONFIG_SYS_FSL_NUM_LAWS 8
York Sunf0626592013-09-30 09:22:09 -070049#define CONFIG_SYS_FSL_DDRC_GEN1
Kumar Galafe137112011-01-19 03:05:26 -060050#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabid8f341c2011-08-04 18:03:41 -050051#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Galafe137112011-01-19 03:05:26 -060052
53#elif defined(CONFIG_MPC8544)
54#define CONFIG_MAX_CPUS 1
55#define CONFIG_SYS_FSL_NUM_LAWS 10
York Sunf0626592013-09-30 09:22:09 -070056#define CONFIG_SYS_FSL_DDRC_GEN2
Prabhakar Kushwaha826cf622012-08-15 04:12:43 +000057#define CONFIG_SYS_PPC_E500_DEBUG_TLB 0
Kumar Galafe137112011-01-19 03:05:26 -060058#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabid8f341c2011-08-04 18:03:41 -050059#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
York Sun0cc59072013-08-20 15:09:43 -070060#define CONFIG_SYS_FSL_ERRATUM_A005125
Kumar Galafe137112011-01-19 03:05:26 -060061
62#elif defined(CONFIG_MPC8548)
63#define CONFIG_MAX_CPUS 1
64#define CONFIG_SYS_FSL_NUM_LAWS 10
York Sunf0626592013-09-30 09:22:09 -070065#define CONFIG_SYS_FSL_DDRC_GEN2
Prabhakar Kushwaha826cf622012-08-15 04:12:43 +000066#define CONFIG_SYS_PPC_E500_DEBUG_TLB 0
Kumar Galafe137112011-01-19 03:05:26 -060067#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabid8f341c2011-08-04 18:03:41 -050068#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Gala866c6fa2011-09-16 09:54:30 -050069#define CONFIG_SYS_FSL_ERRATUM_NMG_DDR120
Kumar Galaf3339d62011-10-03 08:37:57 -050070#define CONFIG_SYS_FSL_ERRATUM_NMG_LBC103
chenhui zhaoc8caa8a2011-10-03 08:38:50 -050071#define CONFIG_SYS_FSL_ERRATUM_NMG_ETSEC129
Liu Gang78deaa12012-03-08 00:33:14 +000072#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 1
73#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
74#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
75#define CONFIG_SYS_FSL_RMU
76#define CONFIG_SYS_FSL_SRIO_MSG_UNIT_NUM 2
York Sun0cc59072013-08-20 15:09:43 -070077#define CONFIG_SYS_FSL_ERRATUM_A005125
Chunhe Lan92546402013-08-16 15:10:37 +080078#define CONFIG_SYS_FSL_ERRATUM_I2C_A004447
79#define CONFIG_SYS_FSL_A004447_SVR_REV 0x00
Kumar Galafe137112011-01-19 03:05:26 -060080
81#elif defined(CONFIG_MPC8555)
82#define CONFIG_MAX_CPUS 1
83#define CONFIG_SYS_FSL_NUM_LAWS 8
York Sunf0626592013-09-30 09:22:09 -070084#define CONFIG_SYS_FSL_DDRC_GEN1
Kumar Galafe137112011-01-19 03:05:26 -060085#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabid8f341c2011-08-04 18:03:41 -050086#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Galafe137112011-01-19 03:05:26 -060087
88#elif defined(CONFIG_MPC8560)
89#define CONFIG_MAX_CPUS 1
90#define CONFIG_SYS_FSL_NUM_LAWS 8
York Sunf0626592013-09-30 09:22:09 -070091#define CONFIG_SYS_FSL_DDRC_GEN1
Timur Tabid8f341c2011-08-04 18:03:41 -050092#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Galafe137112011-01-19 03:05:26 -060093
94#elif defined(CONFIG_MPC8568)
95#define CONFIG_MAX_CPUS 1
96#define CONFIG_SYS_FSL_NUM_LAWS 10
York Sunf0626592013-09-30 09:22:09 -070097#define CONFIG_SYS_FSL_DDRC_GEN2
Kumar Galafe137112011-01-19 03:05:26 -060098#define CONFIG_SYS_FSL_SEC_COMPAT 2
Kumar Gala52bd8152011-01-31 23:09:25 -060099#define QE_MURAM_SIZE 0x10000UL
100#define MAX_QE_RISC 2
101#define QE_NUM_OF_SNUM 28
Timur Tabid8f341c2011-08-04 18:03:41 -0500102#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Liu Gang78deaa12012-03-08 00:33:14 +0000103#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 1
104#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
105#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
106#define CONFIG_SYS_FSL_RMU
107#define CONFIG_SYS_FSL_SRIO_MSG_UNIT_NUM 2
Kumar Galafe137112011-01-19 03:05:26 -0600108
109#elif defined(CONFIG_MPC8569)
110#define CONFIG_MAX_CPUS 1
111#define CONFIG_SYS_FSL_NUM_LAWS 10
112#define CONFIG_SYS_FSL_SEC_COMPAT 2
Kumar Gala52bd8152011-01-31 23:09:25 -0600113#define QE_MURAM_SIZE 0x20000UL
114#define MAX_QE_RISC 4
115#define QE_NUM_OF_SNUM 46
Timur Tabid8f341c2011-08-04 18:03:41 -0500116#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Liu Gang78deaa12012-03-08 00:33:14 +0000117#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 1
118#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
119#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
120#define CONFIG_SYS_FSL_RMU
121#define CONFIG_SYS_FSL_SRIO_MSG_UNIT_NUM 2
York Sun0cc59072013-08-20 15:09:43 -0700122#define CONFIG_SYS_FSL_ERRATUM_A005125
Kumar Galafe137112011-01-19 03:05:26 -0600123
124#elif defined(CONFIG_MPC8572)
125#define CONFIG_MAX_CPUS 2
126#define CONFIG_SYS_FSL_NUM_LAWS 12
Prabhakar Kushwaha826cf622012-08-15 04:12:43 +0000127#define CONFIG_SYS_PPC_E500_DEBUG_TLB 2
Kumar Galafe137112011-01-19 03:05:26 -0600128#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabid8f341c2011-08-04 18:03:41 -0500129#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
York Sun9aa857b2011-01-25 21:51:27 -0800130#define CONFIG_SYS_FSL_ERRATUM_DDR_115
York Sunc8fc9592011-01-25 22:05:49 -0800131#define CONFIG_SYS_FSL_ERRATUM_DDR111_DDR134
York Sun0cc59072013-08-20 15:09:43 -0700132#define CONFIG_SYS_FSL_ERRATUM_A005125
Kumar Galafe137112011-01-19 03:05:26 -0600133
134#elif defined(CONFIG_P1010)
135#define CONFIG_MAX_CPUS 1
Priyanka Jain02449632011-02-09 09:24:10 +0530136#define CONFIG_FSL_SDHC_V2_3
Kumar Galafe137112011-01-19 03:05:26 -0600137#define CONFIG_SYS_FSL_NUM_LAWS 12
Prabhakar Kushwaha3d42a962012-04-29 23:57:12 +0000138#define CONFIG_SYS_PPC_E500_DEBUG_TLB 3
Kumar Galafe137112011-01-19 03:05:26 -0600139#define CONFIG_TSECV2
140#define CONFIG_SYS_FSL_SEC_COMPAT 4
Poonam Aggrwal7373c592011-02-06 11:31:44 +0530141#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
142#define CONFIG_NUM_DDR_CONTROLLERS 1
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530143#define CONFIG_USB_MAX_CONTROLLER_COUNT 1
Mingkai Hu6f024c92013-05-16 10:18:13 +0800144#define CONFIG_SYS_FSL_IFC_BANK_COUNT 4
Poonam Aggrwal7373c592011-02-06 11:31:44 +0530145#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Gala179b1b22011-05-20 00:39:21 -0500146#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.2"
Ramneek Mehresh3fb68ee2011-03-23 15:20:43 +0530147#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
Poonam Aggrwalc7664a42011-06-30 03:00:28 -0500148#define CONFIG_SYS_FSL_ERRATUM_IFC_A002769
Poonam Aggrwalaf54a5f2011-06-29 16:32:52 +0530149#define CONFIG_SYS_FSL_ERRATUM_P1010_A003549
Shengzhou Liu097be702013-08-15 09:31:47 +0800150#define CONFIG_SYS_FSL_ERRATUM_SEC_A003571
Poonam Aggrwal46b86ca2011-07-07 20:36:47 +0530151#define CONFIG_SYS_FSL_ERRATUM_IFC_A003399
York Sun0cc59072013-08-20 15:09:43 -0700152#define CONFIG_SYS_FSL_ERRATUM_A005125
Chunhe Lan92546402013-08-16 15:10:37 +0800153#define CONFIG_SYS_FSL_ERRATUM_I2C_A004447
154#define CONFIG_SYS_FSL_A004447_SVR_REV 0x10
Kumar Galafe137112011-01-19 03:05:26 -0600155
Kumar Galae4e69252011-02-05 13:45:07 -0600156/* P1011 is single core version of P1020 */
Kumar Galafe137112011-01-19 03:05:26 -0600157#elif defined(CONFIG_P1011)
158#define CONFIG_MAX_CPUS 1
159#define CONFIG_SYS_FSL_NUM_LAWS 12
Prabhakar Kushwaha3d42a962012-04-29 23:57:12 +0000160#define CONFIG_SYS_PPC_E500_DEBUG_TLB 2
Kumar Galafe137112011-01-19 03:05:26 -0600161#define CONFIG_TSECV2
Prabhakar Kushwaha1c48e772011-02-01 15:55:58 +0000162#define CONFIG_FSL_PCIE_DISABLE_ASPM
Kumar Galafe137112011-01-19 03:05:26 -0600163#define CONFIG_SYS_FSL_SEC_COMPAT 2
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530164#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
Timur Tabid8f341c2011-08-04 18:03:41 -0500165#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Galae4e69252011-02-05 13:45:07 -0600166#define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
167#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
York Sun0cc59072013-08-20 15:09:43 -0700168#define CONFIG_SYS_FSL_ERRATUM_A005125
Kumar Galafe137112011-01-19 03:05:26 -0600169
Kumar Galae4e69252011-02-05 13:45:07 -0600170/* P1012 is single core version of P1021 */
Kumar Galafe137112011-01-19 03:05:26 -0600171#elif defined(CONFIG_P1012)
172#define CONFIG_MAX_CPUS 1
173#define CONFIG_SYS_FSL_NUM_LAWS 12
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530174#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
Prabhakar Kushwaha3d42a962012-04-29 23:57:12 +0000175#define CONFIG_SYS_PPC_E500_DEBUG_TLB 2
Kumar Galafe137112011-01-19 03:05:26 -0600176#define CONFIG_TSECV2
Prabhakar Kushwaha1c48e772011-02-01 15:55:58 +0000177#define CONFIG_FSL_PCIE_DISABLE_ASPM
Kumar Galafe137112011-01-19 03:05:26 -0600178#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabid8f341c2011-08-04 18:03:41 -0500179#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Galae4e69252011-02-05 13:45:07 -0600180#define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
181#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
Haiying Wang8cb2af72011-02-11 01:25:30 -0600182#define QE_MURAM_SIZE 0x6000UL
183#define MAX_QE_RISC 1
184#define QE_NUM_OF_SNUM 28
York Sun0cc59072013-08-20 15:09:43 -0700185#define CONFIG_SYS_FSL_ERRATUM_A005125
Kumar Galafe137112011-01-19 03:05:26 -0600186
Kumar Galae4e69252011-02-05 13:45:07 -0600187/* P1013 is single core version of P1022 */
Kumar Galafe137112011-01-19 03:05:26 -0600188#elif defined(CONFIG_P1013)
189#define CONFIG_MAX_CPUS 1
190#define CONFIG_SYS_FSL_NUM_LAWS 12
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530191#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
Prabhakar Kushwaha3d42a962012-04-29 23:57:12 +0000192#define CONFIG_SYS_PPC_E500_DEBUG_TLB 2
Kumar Galafe137112011-01-19 03:05:26 -0600193#define CONFIG_TSECV2
194#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabid8f341c2011-08-04 18:03:41 -0500195#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Jiang Yutang7cd05902011-01-30 17:06:20 -0600196#define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
197#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
198#define CONFIG_FSL_SATA_ERRATUM_A001
York Sun0cc59072013-08-20 15:09:43 -0700199#define CONFIG_SYS_FSL_ERRATUM_A005125
Kumar Galafe137112011-01-19 03:05:26 -0600200
201#elif defined(CONFIG_P1014)
202#define CONFIG_MAX_CPUS 1
Priyanka Jain02449632011-02-09 09:24:10 +0530203#define CONFIG_FSL_SDHC_V2_3
Kumar Galafe137112011-01-19 03:05:26 -0600204#define CONFIG_SYS_FSL_NUM_LAWS 12
Prabhakar Kushwaha3d42a962012-04-29 23:57:12 +0000205#define CONFIG_SYS_PPC_E500_DEBUG_TLB 3
Kumar Galafe137112011-01-19 03:05:26 -0600206#define CONFIG_TSECV2
207#define CONFIG_SYS_FSL_SEC_COMPAT 4
Poonam Aggrwal7373c592011-02-06 11:31:44 +0530208#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
209#define CONFIG_NUM_DDR_CONTROLLERS 1
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530210#define CONFIG_USB_MAX_CONTROLLER_COUNT 1
Poonam Aggrwal7373c592011-02-06 11:31:44 +0530211#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Ramneek Mehresh3fb68ee2011-03-23 15:20:43 +0530212#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
Poonam Aggrwalc7664a42011-06-30 03:00:28 -0500213#define CONFIG_SYS_FSL_ERRATUM_IFC_A002769
Poonam Aggrwalaf54a5f2011-06-29 16:32:52 +0530214#define CONFIG_SYS_FSL_ERRATUM_P1010_A003549
Poonam Aggrwal46b86ca2011-07-07 20:36:47 +0530215#define CONFIG_SYS_FSL_ERRATUM_IFC_A003399
Kumar Galafe137112011-01-19 03:05:26 -0600216
Kumar Galae4e69252011-02-05 13:45:07 -0600217/* P1017 is single core version of P1023 */
Roy Zang1de20b02011-02-03 22:14:19 -0600218#elif defined(CONFIG_P1017)
219#define CONFIG_MAX_CPUS 1
220#define CONFIG_SYS_FSL_NUM_LAWS 12
221#define CONFIG_SYS_FSL_SEC_COMPAT 4
222#define CONFIG_SYS_NUM_FMAN 1
223#define CONFIG_SYS_NUM_FM1_DTSEC 2
224#define CONFIG_NUM_DDR_CONTROLLERS 1
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530225#define CONFIG_USB_MAX_CONTROLLER_COUNT 1
Roy Zang1de20b02011-02-03 22:14:19 -0600226#define CONFIG_SYS_QMAN_NUM_PORTALS 3
227#define CONFIG_SYS_BMAN_NUM_PORTALS 3
Kumar Galad80dfe42011-02-04 00:43:34 -0600228#define CONFIG_SYS_FM_MURAM_SIZE 0x10000
Kumar Gala179b1b22011-05-20 00:39:21 -0500229#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.2"
Timur Tabid8f341c2011-08-04 18:03:41 -0500230#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff600000
York Sun0cc59072013-08-20 15:09:43 -0700231#define CONFIG_SYS_FSL_ERRATUM_A005125
Roy Zang1de20b02011-02-03 22:14:19 -0600232
Kumar Galafe137112011-01-19 03:05:26 -0600233#elif defined(CONFIG_P1020)
234#define CONFIG_MAX_CPUS 2
235#define CONFIG_SYS_FSL_NUM_LAWS 12
Prabhakar Kushwaha3d42a962012-04-29 23:57:12 +0000236#define CONFIG_SYS_PPC_E500_DEBUG_TLB 2
Kumar Galafe137112011-01-19 03:05:26 -0600237#define CONFIG_TSECV2
Prabhakar Kushwaha1c48e772011-02-01 15:55:58 +0000238#define CONFIG_FSL_PCIE_DISABLE_ASPM
Kumar Galafe137112011-01-19 03:05:26 -0600239#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabid8f341c2011-08-04 18:03:41 -0500240#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Galae4e69252011-02-05 13:45:07 -0600241#define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
242#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
York Sun0cc59072013-08-20 15:09:43 -0700243#define CONFIG_SYS_FSL_ERRATUM_A005125
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530244#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
Kumar Galafe137112011-01-19 03:05:26 -0600245
246#elif defined(CONFIG_P1021)
247#define CONFIG_MAX_CPUS 2
248#define CONFIG_SYS_FSL_NUM_LAWS 12
Prabhakar Kushwaha3d42a962012-04-29 23:57:12 +0000249#define CONFIG_SYS_PPC_E500_DEBUG_TLB 2
Kumar Galafe137112011-01-19 03:05:26 -0600250#define CONFIG_TSECV2
Prabhakar Kushwaha1c48e772011-02-01 15:55:58 +0000251#define CONFIG_FSL_PCIE_DISABLE_ASPM
Kumar Galafe137112011-01-19 03:05:26 -0600252#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabid8f341c2011-08-04 18:03:41 -0500253#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Galae4e69252011-02-05 13:45:07 -0600254#define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
255#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
Haiying Wang8cb2af72011-02-11 01:25:30 -0600256#define QE_MURAM_SIZE 0x6000UL
257#define MAX_QE_RISC 1
258#define QE_NUM_OF_SNUM 28
York Sun0cc59072013-08-20 15:09:43 -0700259#define CONFIG_SYS_FSL_ERRATUM_A005125
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530260#define CONFIG_USB_MAX_CONTROLLER_COUNT 1
Kumar Galafe137112011-01-19 03:05:26 -0600261
262#elif defined(CONFIG_P1022)
263#define CONFIG_MAX_CPUS 2
264#define CONFIG_SYS_FSL_NUM_LAWS 12
Prabhakar Kushwaha3d42a962012-04-29 23:57:12 +0000265#define CONFIG_SYS_PPC_E500_DEBUG_TLB 2
Kumar Galafe137112011-01-19 03:05:26 -0600266#define CONFIG_TSECV2
267#define CONFIG_SYS_FSL_SEC_COMPAT 2
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530268#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
Timur Tabid8f341c2011-08-04 18:03:41 -0500269#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Jiang Yutang7cd05902011-01-30 17:06:20 -0600270#define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
271#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
272#define CONFIG_FSL_SATA_ERRATUM_A001
York Sun0cc59072013-08-20 15:09:43 -0700273#define CONFIG_SYS_FSL_ERRATUM_A005125
Kumar Galafe137112011-01-19 03:05:26 -0600274
Roy Zang1de20b02011-02-03 22:14:19 -0600275#elif defined(CONFIG_P1023)
276#define CONFIG_MAX_CPUS 2
277#define CONFIG_SYS_FSL_NUM_LAWS 12
278#define CONFIG_SYS_FSL_SEC_COMPAT 4
279#define CONFIG_SYS_NUM_FMAN 1
280#define CONFIG_SYS_NUM_FM1_DTSEC 2
281#define CONFIG_NUM_DDR_CONTROLLERS 1
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530282#define CONFIG_USB_MAX_CONTROLLER_COUNT 1
Roy Zang1de20b02011-02-03 22:14:19 -0600283#define CONFIG_SYS_QMAN_NUM_PORTALS 3
284#define CONFIG_SYS_BMAN_NUM_PORTALS 3
Kumar Galad80dfe42011-02-04 00:43:34 -0600285#define CONFIG_SYS_FM_MURAM_SIZE 0x10000
Kumar Gala179b1b22011-05-20 00:39:21 -0500286#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.2"
Timur Tabid8f341c2011-08-04 18:03:41 -0500287#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff600000
York Sun0cc59072013-08-20 15:09:43 -0700288#define CONFIG_SYS_FSL_ERRATUM_A005125
Chunhe Lan92546402013-08-16 15:10:37 +0800289#define CONFIG_SYS_FSL_ERRATUM_I2C_A004447
290#define CONFIG_SYS_FSL_A004447_SVR_REV 0x11
Roy Zang1de20b02011-02-03 22:14:19 -0600291
Kumar Galae4e69252011-02-05 13:45:07 -0600292/* P1024 is lower end variant of P1020 */
293#elif defined(CONFIG_P1024)
294#define CONFIG_MAX_CPUS 2
295#define CONFIG_SYS_FSL_NUM_LAWS 12
Prabhakar Kushwaha3d42a962012-04-29 23:57:12 +0000296#define CONFIG_SYS_PPC_E500_DEBUG_TLB 2
Kumar Galae4e69252011-02-05 13:45:07 -0600297#define CONFIG_TSECV2
298#define CONFIG_FSL_PCIE_DISABLE_ASPM
299#define CONFIG_SYS_FSL_SEC_COMPAT 2
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530300#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
Timur Tabid8f341c2011-08-04 18:03:41 -0500301#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Galae4e69252011-02-05 13:45:07 -0600302#define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
303#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
York Sun0cc59072013-08-20 15:09:43 -0700304#define CONFIG_SYS_FSL_ERRATUM_A005125
Kumar Galae4e69252011-02-05 13:45:07 -0600305
306/* P1025 is lower end variant of P1021 */
307#elif defined(CONFIG_P1025)
308#define CONFIG_MAX_CPUS 2
309#define CONFIG_SYS_FSL_NUM_LAWS 12
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530310#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
Prabhakar Kushwaha3d42a962012-04-29 23:57:12 +0000311#define CONFIG_SYS_PPC_E500_DEBUG_TLB 2
Kumar Galae4e69252011-02-05 13:45:07 -0600312#define CONFIG_TSECV2
313#define CONFIG_FSL_PCIE_DISABLE_ASPM
314#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabid8f341c2011-08-04 18:03:41 -0500315#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Galae4e69252011-02-05 13:45:07 -0600316#define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
317#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
Haiying Wang8cb2af72011-02-11 01:25:30 -0600318#define QE_MURAM_SIZE 0x6000UL
319#define MAX_QE_RISC 1
320#define QE_NUM_OF_SNUM 28
York Sun0cc59072013-08-20 15:09:43 -0700321#define CONFIG_SYS_FSL_ERRATUM_A005125
Kumar Galae4e69252011-02-05 13:45:07 -0600322
323/* P2010 is single core version of P2020 */
Kumar Galafe137112011-01-19 03:05:26 -0600324#elif defined(CONFIG_P2010)
325#define CONFIG_MAX_CPUS 1
326#define CONFIG_SYS_FSL_NUM_LAWS 12
Prabhakar Kushwaha3d42a962012-04-29 23:57:12 +0000327#define CONFIG_SYS_PPC_E500_DEBUG_TLB 2
Kumar Galafe137112011-01-19 03:05:26 -0600328#define CONFIG_SYS_FSL_SEC_COMPAT 2
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530329#define CONFIG_USB_MAX_CONTROLLER_COUNT 1
Timur Tabid8f341c2011-08-04 18:03:41 -0500330#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Gala7b5b4802011-01-26 01:43:15 -0600331#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
Kumar Gala9a878d52011-01-29 15:36:10 -0600332#define CONFIG_SYS_FSL_ERRATUM_ESDHC_A001
York Sun0cc59072013-08-20 15:09:43 -0700333#define CONFIG_SYS_FSL_ERRATUM_A005125
Kumar Galafe137112011-01-19 03:05:26 -0600334
335#elif defined(CONFIG_P2020)
336#define CONFIG_MAX_CPUS 2
337#define CONFIG_SYS_FSL_NUM_LAWS 12
Prabhakar Kushwaha3d42a962012-04-29 23:57:12 +0000338#define CONFIG_SYS_PPC_E500_DEBUG_TLB 2
Kumar Galafe137112011-01-19 03:05:26 -0600339#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabid8f341c2011-08-04 18:03:41 -0500340#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Gala7b5b4802011-01-26 01:43:15 -0600341#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
Kumar Gala9a878d52011-01-29 15:36:10 -0600342#define CONFIG_SYS_FSL_ERRATUM_ESDHC_A001
Liu Gang78deaa12012-03-08 00:33:14 +0000343#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 2
344#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
345#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
346#define CONFIG_SYS_FSL_RMU
347#define CONFIG_SYS_FSL_SRIO_MSG_UNIT_NUM 2
York Sun0cc59072013-08-20 15:09:43 -0700348#define CONFIG_SYS_FSL_ERRATUM_A005125
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530349#define CONFIG_USB_MAX_CONTROLLER_COUNT 1
Scott Wooda1ef48c2012-08-14 10:14:51 +0000350#elif defined(CONFIG_PPC_P2041) /* also supports P2040 */
York Sun7e0edbd2012-10-08 07:44:15 +0000351#define CONFIG_SYS_FSL_QORIQ_CHASSIS1
York Sun544f8812013-06-25 11:37:39 -0700352#define CONFIG_FSL_CORENET /* Freescale CoreNet platform */
Kumar Galafe137112011-01-19 03:05:26 -0600353#define CONFIG_MAX_CPUS 4
Kumar Gala3842bb52011-02-16 02:03:29 -0600354#define CONFIG_SYS_FSL_NUM_CC_PLLS 2
Kumar Galafe137112011-01-19 03:05:26 -0600355#define CONFIG_SYS_FSL_NUM_LAWS 32
356#define CONFIG_SYS_FSL_SEC_COMPAT 4
Kumar Gala619541b2011-05-13 01:16:07 -0500357#define CONFIG_SYS_NUM_FMAN 1
358#define CONFIG_SYS_NUM_FM1_DTSEC 5
359#define CONFIG_SYS_NUM_FM1_10GEC 1
360#define CONFIG_NUM_DDR_CONTROLLERS 1
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530361#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
Kumar Gala619541b2011-05-13 01:16:07 -0500362#define CONFIG_SYS_FM_MURAM_SIZE 0x28000
363#define CONFIG_SYS_FSL_TBCLK_DIV 32
364#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.2"
Timur Tabid8f341c2011-08-04 18:03:41 -0500365#define CONFIG_SYS_CCSRBAR_DEFAULT 0xfe000000
Kumar Gala619541b2011-05-13 01:16:07 -0500366#define CONFIG_SYS_FSL_USB1_PHY_ENABLE
367#define CONFIG_SYS_FSL_USB2_PHY_ENABLE
Kumar Galaa49034f2011-04-13 00:19:10 -0500368#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
Kumar Gala619541b2011-05-13 01:16:07 -0500369#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
York Sun9ed88112012-05-07 07:26:47 +0000370#define CONFIG_SYS_FSL_ERRATUM_NMG_CPU_A011
Xuleicf4f4932013-03-11 17:56:34 +0000371#define CONFIG_SYS_FSL_ERRATUM_USB14
Kumar Gala945e59a2011-11-22 06:51:15 -0600372#define CONFIG_SYS_FSL_ERRATUM_CPU_A003999
York Sun52db64b2013-03-25 07:30:11 +0000373#define CONFIG_SYS_FSL_ERRATUM_DDR_A003
York Sundf2be192011-11-20 10:01:35 -0800374#define CONFIG_SYS_FSL_ERRATUM_DDR_A003474
Liu Gang78deaa12012-03-08 00:33:14 +0000375#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 2
376#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
377#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
Scott Wood80806962012-08-14 10:14:53 +0000378#define CONFIG_SYS_FSL_ERRATUM_A004510
379#define CONFIG_SYS_FSL_ERRATUM_A004510_SVR_REV 0x10
380#define CONFIG_SYS_FSL_ERRATUM_A004510_SVR_REV2 0x11
381#define CONFIG_SYS_FSL_CORENET_SNOOPVEC_COREONLY 0xf0000000
Liu Gang712b6622012-09-28 21:26:19 +0000382#define CONFIG_SYS_FSL_ERRATUM_SRIO_A004034
Timur Tabie3ab8c12012-10-25 12:40:00 +0000383#define CONFIG_SYS_FSL_ERRATUM_A004849
Chunhe Lan92546402013-08-16 15:10:37 +0800384#define CONFIG_SYS_FSL_ERRATUM_I2C_A004447
385#define CONFIG_SYS_FSL_A004447_SVR_REV 0x11
Kumar Gala619541b2011-05-13 01:16:07 -0500386
Kumar Galafe137112011-01-19 03:05:26 -0600387#elif defined(CONFIG_PPC_P3041)
York Sun7e0edbd2012-10-08 07:44:15 +0000388#define CONFIG_SYS_FSL_QORIQ_CHASSIS1
York Sun544f8812013-06-25 11:37:39 -0700389#define CONFIG_FSL_CORENET /* Freescale CoreNet platform */
Kumar Galafe137112011-01-19 03:05:26 -0600390#define CONFIG_MAX_CPUS 4
Kumar Gala3842bb52011-02-16 02:03:29 -0600391#define CONFIG_SYS_FSL_NUM_CC_PLLS 2
Kumar Galafe137112011-01-19 03:05:26 -0600392#define CONFIG_SYS_FSL_NUM_LAWS 32
393#define CONFIG_SYS_FSL_SEC_COMPAT 4
Kumar Gala60d95d82011-01-25 12:42:32 -0600394#define CONFIG_SYS_NUM_FMAN 1
395#define CONFIG_SYS_NUM_FM1_DTSEC 5
396#define CONFIG_SYS_NUM_FM1_10GEC 1
397#define CONFIG_NUM_DDR_CONTROLLERS 1
Kumar Galad80dfe42011-02-04 00:43:34 -0600398#define CONFIG_SYS_FM_MURAM_SIZE 0x28000
Kumar Galaf4fb90f2011-02-18 05:40:54 -0600399#define CONFIG_SYS_FSL_TBCLK_DIV 32
Kumar Gala179b1b22011-05-20 00:39:21 -0500400#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.2"
Timur Tabid8f341c2011-08-04 18:03:41 -0500401#define CONFIG_SYS_CCSRBAR_DEFAULT 0xfe000000
Roy Zang6d6a0e12011-04-13 00:08:51 -0500402#define CONFIG_SYS_FSL_USB1_PHY_ENABLE
403#define CONFIG_SYS_FSL_USB2_PHY_ENABLE
Kumar Galaa49034f2011-04-13 00:19:10 -0500404#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530405#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
Lei Xu32276202011-04-19 15:28:41 +0800406#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
York Sun53155532012-08-08 18:04:53 +0000407#define CONFIG_SYS_FSL_ERRATUM_NMG_CPU_A011
Xuleicf4f4932013-03-11 17:56:34 +0000408#define CONFIG_SYS_FSL_ERRATUM_USB14
Kumar Gala945e59a2011-11-22 06:51:15 -0600409#define CONFIG_SYS_FSL_ERRATUM_CPU_A003999
York Sun52db64b2013-03-25 07:30:11 +0000410#define CONFIG_SYS_FSL_ERRATUM_DDR_A003
York Sundf2be192011-11-20 10:01:35 -0800411#define CONFIG_SYS_FSL_ERRATUM_DDR_A003474
Liu Gang78deaa12012-03-08 00:33:14 +0000412#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 2
413#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
414#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
Scott Wood80806962012-08-14 10:14:53 +0000415#define CONFIG_SYS_FSL_ERRATUM_A004510
416#define CONFIG_SYS_FSL_ERRATUM_A004510_SVR_REV 0x10
417#define CONFIG_SYS_FSL_ERRATUM_A004510_SVR_REV2 0x11
418#define CONFIG_SYS_FSL_CORENET_SNOOPVEC_COREONLY 0xf0000000
Liu Gang712b6622012-09-28 21:26:19 +0000419#define CONFIG_SYS_FSL_ERRATUM_SRIO_A004034
Timur Tabie3ab8c12012-10-25 12:40:00 +0000420#define CONFIG_SYS_FSL_ERRATUM_A004849
York Suncca41c52013-06-25 11:37:49 -0700421#define CONFIG_SYS_FSL_ERRATUM_A005812
Chunhe Lan92546402013-08-16 15:10:37 +0800422#define CONFIG_SYS_FSL_ERRATUM_I2C_A004447
423#define CONFIG_SYS_FSL_A004447_SVR_REV 0x20
Kumar Galafe137112011-01-19 03:05:26 -0600424
Scott Wooda1ef48c2012-08-14 10:14:51 +0000425#elif defined(CONFIG_PPC_P4080) /* also supports P4040 */
York Sun7e0edbd2012-10-08 07:44:15 +0000426#define CONFIG_SYS_FSL_QORIQ_CHASSIS1
York Sun544f8812013-06-25 11:37:39 -0700427#define CONFIG_FSL_CORENET /* Freescale CoreNet platform */
Kumar Galafe137112011-01-19 03:05:26 -0600428#define CONFIG_MAX_CPUS 8
Kumar Gala3842bb52011-02-16 02:03:29 -0600429#define CONFIG_SYS_FSL_NUM_CC_PLLS 4
Kumar Galafe137112011-01-19 03:05:26 -0600430#define CONFIG_SYS_FSL_NUM_LAWS 32
431#define CONFIG_SYS_FSL_SEC_COMPAT 4
432#define CONFIG_SYS_NUM_FMAN 2
433#define CONFIG_SYS_NUM_FM1_DTSEC 4
434#define CONFIG_SYS_NUM_FM2_DTSEC 4
435#define CONFIG_SYS_NUM_FM1_10GEC 1
436#define CONFIG_SYS_NUM_FM2_10GEC 1
437#define CONFIG_NUM_DDR_CONTROLLERS 2
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530438#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
Kumar Galad80dfe42011-02-04 00:43:34 -0600439#define CONFIG_SYS_FM_MURAM_SIZE 0x28000
Kumar Galaf4fb90f2011-02-18 05:40:54 -0600440#define CONFIG_SYS_FSL_TBCLK_DIV 16
Kumar Gala179b1b22011-05-20 00:39:21 -0500441#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,p4080-pcie"
Timur Tabid8f341c2011-08-04 18:03:41 -0500442#define CONFIG_SYS_CCSRBAR_DEFAULT 0xfe000000
Kumar Galafe137112011-01-19 03:05:26 -0600443#define CONFIG_SYS_FSL_ERRATUM_CPC_A002
444#define CONFIG_SYS_FSL_ERRATUM_CPC_A003
York Sun922f40f2011-01-10 12:03:01 +0000445#define CONFIG_SYS_FSL_ERRATUM_DDR_A003
Kumar Galafe137112011-01-19 03:05:26 -0600446#define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
447#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
448#define CONFIG_SYS_FSL_ERRATUM_ESDHC135
Zang Roy-R6191183659922012-09-18 09:50:08 +0000449#define CONFIG_SYS_FSL_ERRATUM_ESDHC13
Kumar Galafe137112011-01-19 03:05:26 -0600450#define CONFIG_SYS_P4080_ERRATUM_CPU22
York Sun9ed88112012-05-07 07:26:47 +0000451#define CONFIG_SYS_FSL_ERRATUM_NMG_CPU_A011
Kumar Galafe137112011-01-19 03:05:26 -0600452#define CONFIG_SYS_P4080_ERRATUM_SERDES8
Emil Medveb01c81f2010-08-31 22:57:38 -0500453#define CONFIG_SYS_P4080_ERRATUM_SERDES9
Timur Tabi6a62dc42011-04-18 17:16:00 -0500454#define CONFIG_SYS_P4080_ERRATUM_SERDES_A001
Timur Tabi90f381d2011-04-01 13:19:36 -0500455#define CONFIG_SYS_P4080_ERRATUM_SERDES_A005
Kumar Gala945e59a2011-11-22 06:51:15 -0600456#define CONFIG_SYS_FSL_ERRATUM_CPU_A003999
York Sundf2be192011-11-20 10:01:35 -0800457#define CONFIG_SYS_FSL_ERRATUM_DDR_A003474
Liu Gang78deaa12012-03-08 00:33:14 +0000458#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 2
459#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
460#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
461#define CONFIG_SYS_FSL_RMU
462#define CONFIG_SYS_FSL_SRIO_MSG_UNIT_NUM 2
Scott Wood80806962012-08-14 10:14:53 +0000463#define CONFIG_SYS_FSL_ERRATUM_A004510
464#define CONFIG_SYS_FSL_ERRATUM_A004510_SVR_REV 0x20
465#define CONFIG_SYS_FSL_CORENET_SNOOPVEC_COREONLY 0xff000000
Liu Gang712b6622012-09-28 21:26:19 +0000466#define CONFIG_SYS_FSL_ERRATUM_SRIO_A004034
Timur Tabie3ab8c12012-10-25 12:40:00 +0000467#define CONFIG_SYS_FSL_ERRATUM_A004849
Timur Tabic5355dd2012-11-01 08:20:23 +0000468#define CONFIG_SYS_FSL_ERRATUM_A004580
Yuanquan Chenc48234e2012-11-26 23:49:45 +0000469#define CONFIG_SYS_P4080_ERRATUM_PCIE_A003
York Suncca41c52013-06-25 11:37:49 -0700470#define CONFIG_SYS_FSL_ERRATUM_A005812
Chunhe Lan92546402013-08-16 15:10:37 +0800471#define CONFIG_SYS_FSL_ERRATUM_I2C_A004447
472#define CONFIG_SYS_FSL_A004447_SVR_REV 0x20
Kumar Galafe137112011-01-19 03:05:26 -0600473
Scott Wooda1ef48c2012-08-14 10:14:51 +0000474#elif defined(CONFIG_PPC_P5020) /* also supports P5010 */
York Sun2394a0f2012-10-08 07:44:30 +0000475#define CONFIG_SYS_PPC64 /* 64-bit core */
York Sun7e0edbd2012-10-08 07:44:15 +0000476#define CONFIG_SYS_FSL_QORIQ_CHASSIS1
York Sun544f8812013-06-25 11:37:39 -0700477#define CONFIG_FSL_CORENET /* Freescale CoreNet platform */
Kumar Galafe137112011-01-19 03:05:26 -0600478#define CONFIG_MAX_CPUS 2
Kumar Gala3842bb52011-02-16 02:03:29 -0600479#define CONFIG_SYS_FSL_NUM_CC_PLLS 2
Kumar Galafe137112011-01-19 03:05:26 -0600480#define CONFIG_SYS_FSL_NUM_LAWS 32
481#define CONFIG_SYS_FSL_SEC_COMPAT 4
Kumar Gala60d95d82011-01-25 12:42:32 -0600482#define CONFIG_SYS_NUM_FMAN 1
483#define CONFIG_SYS_NUM_FM1_DTSEC 5
484#define CONFIG_SYS_NUM_FM1_10GEC 1
485#define CONFIG_NUM_DDR_CONTROLLERS 2
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530486#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
Kumar Galad80dfe42011-02-04 00:43:34 -0600487#define CONFIG_SYS_FM_MURAM_SIZE 0x28000
Kumar Galaf4fb90f2011-02-18 05:40:54 -0600488#define CONFIG_SYS_FSL_TBCLK_DIV 32
Kumar Gala179b1b22011-05-20 00:39:21 -0500489#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.2"
Timur Tabid8f341c2011-08-04 18:03:41 -0500490#define CONFIG_SYS_CCSRBAR_DEFAULT 0xfe000000
Roy Zang6d6a0e12011-04-13 00:08:51 -0500491#define CONFIG_SYS_FSL_USB1_PHY_ENABLE
492#define CONFIG_SYS_FSL_USB2_PHY_ENABLE
Kumar Galaa49034f2011-04-13 00:19:10 -0500493#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
Lei Xu32276202011-04-19 15:28:41 +0800494#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
Xuleicf4f4932013-03-11 17:56:34 +0000495#define CONFIG_SYS_FSL_ERRATUM_USB14
York Sun52db64b2013-03-25 07:30:11 +0000496#define CONFIG_SYS_FSL_ERRATUM_DDR_A003
York Sundf2be192011-11-20 10:01:35 -0800497#define CONFIG_SYS_FSL_ERRATUM_DDR_A003474
Liu Gang78deaa12012-03-08 00:33:14 +0000498#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 2
499#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
500#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
Scott Wood80806962012-08-14 10:14:53 +0000501#define CONFIG_SYS_FSL_ERRATUM_A004510
502#define CONFIG_SYS_FSL_ERRATUM_A004510_SVR_REV 0x10
503#define CONFIG_SYS_FSL_CORENET_SNOOPVEC_COREONLY 0xc0000000
Liu Gang712b6622012-09-28 21:26:19 +0000504#define CONFIG_SYS_FSL_ERRATUM_SRIO_A004034
Chunhe Lan92546402013-08-16 15:10:37 +0800505#define CONFIG_SYS_FSL_ERRATUM_I2C_A004447
506#define CONFIG_SYS_FSL_A004447_SVR_REV 0x20
Kumar Galafe137112011-01-19 03:05:26 -0600507
Timur Tabid5e13882012-10-05 11:09:19 +0000508#elif defined(CONFIG_PPC_P5040)
Timur Tabi9a7b5a32012-10-23 10:48:09 +0000509#define CONFIG_SYS_PPC64
Timur Tabid5e13882012-10-05 11:09:19 +0000510#define CONFIG_SYS_FSL_QORIQ_CHASSIS1
York Sun544f8812013-06-25 11:37:39 -0700511#define CONFIG_FSL_CORENET /* Freescale CoreNet platform */
Timur Tabid5e13882012-10-05 11:09:19 +0000512#define CONFIG_MAX_CPUS 4
513#define CONFIG_SYS_FSL_NUM_CC_PLLS 3
514#define CONFIG_SYS_FSL_NUM_LAWS 32
515#define CONFIG_SYS_FSL_SEC_COMPAT 4
516#define CONFIG_SYS_NUM_FMAN 2
517#define CONFIG_SYS_NUM_FM1_DTSEC 5
518#define CONFIG_SYS_NUM_FM1_10GEC 1
519#define CONFIG_SYS_NUM_FM2_DTSEC 5
520#define CONFIG_SYS_NUM_FM2_10GEC 1
521#define CONFIG_NUM_DDR_CONTROLLERS 2
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530522#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
Timur Tabid5e13882012-10-05 11:09:19 +0000523#define CONFIG_SYS_FM_MURAM_SIZE 0x28000
524#define CONFIG_SYS_FSL_TBCLK_DIV 16
525#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.4"
526#define CONFIG_SYS_CCSRBAR_DEFAULT 0xfe000000
527#define CONFIG_SYS_FSL_USB1_PHY_ENABLE
528#define CONFIG_SYS_FSL_USB2_PHY_ENABLE
529#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
530#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
Xuleicf4f4932013-03-11 17:56:34 +0000531#define CONFIG_SYS_FSL_ERRATUM_USB14
Timur Tabid5e13882012-10-05 11:09:19 +0000532#define CONFIG_SYS_FSL_ERRATUM_DDR_A003
533#define CONFIG_SYS_FSL_ERRATUM_DDR_A003474
534#define CONFIG_SYS_FSL_ERRATUM_A004699
Timur Tabid5e13882012-10-05 11:09:19 +0000535#define CONFIG_SYS_FSL_ERRATUM_A004510
536#define CONFIG_SYS_FSL_ERRATUM_A004510_SVR_REV 0x10
537#define CONFIG_SYS_FSL_CORENET_SNOOPVEC_COREONLY 0xf0000000
York Suncca41c52013-06-25 11:37:49 -0700538#define CONFIG_SYS_FSL_ERRATUM_A005812
Timur Tabid5e13882012-10-05 11:09:19 +0000539
Prabhakar Kushwahabeebb882012-04-24 20:16:49 +0000540#elif defined(CONFIG_BSC9131)
541#define CONFIG_MAX_CPUS 1
542#define CONFIG_FSL_SDHC_V2_3
543#define CONFIG_SYS_FSL_NUM_LAWS 12
544#define CONFIG_TSECV2
545#define CONFIG_SYS_FSL_SEC_COMPAT 4
546#define CONFIG_NUM_DDR_CONTROLLERS 1
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530547#define CONFIG_USB_MAX_CONTROLLER_COUNT 1
Priyanka Jainf81e8b22013-04-04 09:31:54 +0530548#define CONFIG_SYS_FSL_DSP_M2_RAM_ADDR 0xb0000000
549#define CONFIG_SYS_FSL_DSP_CCSRBAR_DEFAULT 0xff600000
Mingkai Hu6f024c92013-05-16 10:18:13 +0800550#define CONFIG_SYS_FSL_IFC_BANK_COUNT 3
Prabhakar Kushwahabeebb882012-04-24 20:16:49 +0000551#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
552#define CONFIG_NAND_FSL_IFC
Prabhakar Kushwahabeebb882012-04-24 20:16:49 +0000553#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
York Sun0cc59072013-08-20 15:09:43 -0700554#define CONFIG_SYS_FSL_ERRATUM_A005125
Prabhakar Kushwahabeebb882012-04-24 20:16:49 +0000555
Prabhakar Kushwaha92543c22013-01-23 17:59:57 +0000556#elif defined(CONFIG_BSC9132)
557#define CONFIG_MAX_CPUS 2
558#define CONFIG_SYS_PPC_E500_DEBUG_TLB 3
559#define CONFIG_FSL_SDHC_V2_3
560#define CONFIG_SYS_FSL_NUM_LAWS 12
561#define CONFIG_TSECV2
562#define CONFIG_SYS_FSL_SEC_COMPAT 4
563#define CONFIG_NUM_DDR_CONTROLLERS 2
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530564#define CONFIG_USB_MAX_CONTROLLER_COUNT 1
Priyanka Jainc73b9032013-07-02 09:21:04 +0530565#define CONFIG_SYS_FSL_DSP_DDR_ADDR 0x40000000
566#define CONFIG_SYS_FSL_DSP_M2_RAM_ADDR 0xb0000000
567#define CONFIG_SYS_FSL_DSP_M3_RAM_ADDR 0xc0000000
568#define CONFIG_SYS_FSL_DSP_CCSRBAR_DEFAULT 0xff600000
York Sun84fa67e2013-04-18 19:31:01 -0700569#define CONFIG_SYS_FSL_IFC_BANK_COUNT 3
Prabhakar Kushwaha92543c22013-01-23 17:59:57 +0000570#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
571#define CONFIG_NAND_FSL_IFC
Prabhakar Kushwaha92543c22013-01-23 17:59:57 +0000572#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
573#define CONFIG_SYS_FSL_ESDHC_P1010_BROKEN_SDCLK
574#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.2"
York Sun0cc59072013-08-20 15:09:43 -0700575#define CONFIG_SYS_FSL_ERRATUM_A005125
Chunhe Lan92546402013-08-16 15:10:37 +0800576#define CONFIG_SYS_FSL_ERRATUM_I2C_A004447
577#define CONFIG_SYS_FSL_A004447_SVR_REV 0x11
Prabhakar Kushwaha92543c22013-01-23 17:59:57 +0000578
York Sun64fd08b2013-03-25 07:40:05 +0000579#elif defined(CONFIG_PPC_T4240) || defined(CONFIG_PPC_T4160)
580#define CONFIG_E6500
York Sun2394a0f2012-10-08 07:44:30 +0000581#define CONFIG_SYS_PPC64 /* 64-bit core */
York Sun9941a222012-10-08 07:44:19 +0000582#define CONFIG_FSL_CORENET /* Freescale CoreNet platform */
583#define CONFIG_SYS_FSL_QORIQ_CHASSIS2 /* Freescale Chassis generation 2 */
York Sunaa150bb2013-03-25 07:40:07 +0000584#define CONFIG_SYS_FSL_CORES_PER_CLUSTER 4
York Sun9941a222012-10-08 07:44:19 +0000585#define CONFIG_SYS_FSL_QMAN_V3 /* QMAN version 3 */
York Sun64fd08b2013-03-25 07:40:05 +0000586#ifdef CONFIG_PPC_T4240
York Sun9941a222012-10-08 07:44:19 +0000587#define CONFIG_MAX_CPUS 12
Prabhakar Kushwaha7e8382f2013-09-03 11:20:15 +0530588#define CONFIG_SYS_FSL_CLUSTER_CLOCKS { 1, 1, 4 }
York Sun9941a222012-10-08 07:44:19 +0000589#define CONFIG_SYS_NUM_FM1_DTSEC 8
590#define CONFIG_SYS_NUM_FM1_10GEC 2
591#define CONFIG_SYS_NUM_FM2_DTSEC 8
592#define CONFIG_SYS_NUM_FM2_10GEC 2
593#define CONFIG_NUM_DDR_CONTROLLERS 3
York Sun64fd08b2013-03-25 07:40:05 +0000594#else
York Sunfb5137a2013-03-25 07:33:29 +0000595#define CONFIG_MAX_CPUS 8
Prabhakar Kushwaha7e8382f2013-09-03 11:20:15 +0530596#define CONFIG_SYS_FSL_CLUSTER_CLOCKS { 1, 1 }
York Sun64fd08b2013-03-25 07:40:05 +0000597#define CONFIG_SYS_NUM_FM1_DTSEC 7
598#define CONFIG_SYS_NUM_FM1_10GEC 1
599#define CONFIG_SYS_NUM_FM2_DTSEC 7
600#define CONFIG_SYS_NUM_FM2_10GEC 1
601#define CONFIG_NUM_DDR_CONTROLLERS 2
602#endif
York Sunfb5137a2013-03-25 07:33:29 +0000603#define CONFIG_SYS_FSL_NUM_CC_PLLS 5
604#define CONFIG_SYS_FSL_NUM_LAWS 32
Prabhakar Kushwaha873e9f02013-07-31 16:56:41 +0530605#define CONFIG_SYS_FSL_SRDS_1
606#define CONFIG_SYS_FSL_SRDS_2
York Sunfb5137a2013-03-25 07:33:29 +0000607#define CONFIG_SYS_FSL_SRDS_3
608#define CONFIG_SYS_FSL_SRDS_4
609#define CONFIG_SYS_FSL_SEC_COMPAT 4
610#define CONFIG_SYS_NUM_FMAN 2
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530611#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
Prabhakar Kushwaha7e8382f2013-09-03 11:20:15 +0530612#define CONFIG_SYS_PME_CLK 0
York Sunfb5137a2013-03-25 07:33:29 +0000613#define CONFIG_SYS_FSL_DDR_VER FSL_DDR_VER_4_7
Mingkai Hu6f024c92013-05-16 10:18:13 +0800614#define CONFIG_SYS_FSL_IFC_BANK_COUNT 8
York Sunfb5137a2013-03-25 07:33:29 +0000615#define CONFIG_SYS_FMAN_V3
Prabhakar Kushwaha7e8382f2013-09-03 11:20:15 +0530616#define CONFIG_SYS_FM1_CLK 3
617#define CONFIG_SYS_FM2_CLK 3
York Sunfb5137a2013-03-25 07:33:29 +0000618#define CONFIG_SYS_FM_MURAM_SIZE 0x60000
619#define CONFIG_SYS_FSL_TBCLK_DIV 16
620#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v3.0"
621#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 2
622#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
623#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
Liu Gangd5eca7e2013-06-25 18:12:14 +0800624#define CONFIG_SYS_FSL_SRIO_LIODN
York Sunfb5137a2013-03-25 07:33:29 +0000625#define CONFIG_SYS_FSL_USB_DUAL_PHY_ENABLE
626#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
627#define CONFIG_SYS_FSL_ERRATUM_A004468
628#define CONFIG_SYS_FSL_ERRATUM_A_004934
629#define CONFIG_SYS_FSL_ERRATUM_A005871
York Sunb1954252013-09-16 12:49:31 -0700630#define CONFIG_SYS_FSL_ERRATUM_A006379
Scott Wood3f4a5c42013-05-15 17:50:13 -0500631#define CONFIG_SYS_FSL_ERRATUM_A006593
York Sunfb5137a2013-03-25 07:33:29 +0000632#define CONFIG_SYS_CCSRBAR_DEFAULT 0xfe000000
633#define CONFIG_SYS_FSL_PCI_VER_3_X
634
Poonam Aggrwal525ab512013-03-25 07:40:20 +0000635#elif defined(CONFIG_PPC_B4860) || defined(CONFIG_PPC_B4420)
636#define CONFIG_E6500
Poonam Aggrwal248865e2012-12-23 19:24:16 +0000637#define CONFIG_SYS_PPC64 /* 64-bit core */
638#define CONFIG_FSL_CORENET /* Freescale CoreNet platform */
639#define CONFIG_SYS_FSL_QORIQ_CHASSIS2 /* Freescale Chassis generation 2 */
640#define CONFIG_SYS_FSL_QMAN_V3 /* QMAN version 3 */
Poonam Aggrwal248865e2012-12-23 19:24:16 +0000641#define CONFIG_SYS_FSL_NUM_LAWS 32
Prabhakar Kushwaha873e9f02013-07-31 16:56:41 +0530642#define CONFIG_SYS_FSL_SRDS_1
643#define CONFIG_SYS_FSL_SRDS_2
Poonam Aggrwal248865e2012-12-23 19:24:16 +0000644#define CONFIG_SYS_FSL_SEC_COMPAT 4
645#define CONFIG_SYS_NUM_FMAN 1
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530646#define CONFIG_USB_MAX_CONTROLLER_COUNT 1
Prabhakar Kushwaha7e8382f2013-09-03 11:20:15 +0530647#define CONFIG_SYS_FM1_CLK 0
Poonam Aggrwal248865e2012-12-23 19:24:16 +0000648#define CONFIG_SYS_FSL_DDR_VER FSL_DDR_VER_4_7
Mingkai Hu6f024c92013-05-16 10:18:13 +0800649#define CONFIG_SYS_FSL_IFC_BANK_COUNT 4
Poonam Aggrwal248865e2012-12-23 19:24:16 +0000650#define CONFIG_SYS_FMAN_V3
651#define CONFIG_SYS_FM_MURAM_SIZE 0x60000
652#define CONFIG_SYS_FSL_TBCLK_DIV 16
653#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.4"
654#define CONFIG_SYS_FSL_USB1_PHY_ENABLE
655#define CONFIG_SYS_FSL_ERRATUM_A_004934
Shengzhou Liu5d9606e2013-02-27 21:56:54 +0000656#define CONFIG_SYS_FSL_ERRATUM_A005871
York Sunb1954252013-09-16 12:49:31 -0700657#define CONFIG_SYS_FSL_ERRATUM_A006379
Scott Wood3f4a5c42013-05-15 17:50:13 -0500658#define CONFIG_SYS_FSL_ERRATUM_A006593
Poonam Aggrwal248865e2012-12-23 19:24:16 +0000659#define CONFIG_SYS_CCSRBAR_DEFAULT 0xfe000000
660
Poonam Aggrwal525ab512013-03-25 07:40:20 +0000661#ifdef CONFIG_PPC_B4860
York Sunaa150bb2013-03-25 07:40:07 +0000662#define CONFIG_SYS_FSL_CORES_PER_CLUSTER 4
York Sunbcf7b3d2012-10-08 07:44:20 +0000663#define CONFIG_MAX_CPUS 4
664#define CONFIG_SYS_FSL_NUM_CC_PLLS 4
Prabhakar Kushwaha7e8382f2013-09-03 11:20:15 +0530665#define CONFIG_SYS_FSL_CLUSTER_CLOCKS { 1, 4, 4, 4 }
York Sunbcf7b3d2012-10-08 07:44:20 +0000666#define CONFIG_SYS_NUM_FM1_DTSEC 6
667#define CONFIG_SYS_NUM_FM1_10GEC 2
Poonam Aggrwal1c859552012-12-23 19:22:33 +0000668#define CONFIG_NUM_DDR_CONTROLLERS 2
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530669#define CONFIG_USB_MAX_CONTROLLER_COUNT 1
York Sunbcf7b3d2012-10-08 07:44:20 +0000670#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 2
671#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
672#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
Liu Gangbc6486a2013-06-25 18:12:13 +0800673#define CONFIG_SYS_FSL_SRIO_LIODN
Poonam Aggrwal525ab512013-03-25 07:40:20 +0000674#else
675#define CONFIG_MAX_CPUS 2
676#define CONFIG_SYS_FSL_CORES_PER_CLUSTER 2
677#define CONFIG_SYS_FSL_NUM_CC_PLLS 4
Prabhakar Kushwaha7e8382f2013-09-03 11:20:15 +0530678#define CONFIG_SYS_FSL_CLUSTER_CLOCKS { 1, 4 }
Poonam Aggrwal525ab512013-03-25 07:40:20 +0000679#define CONFIG_SYS_NUM_FM1_DTSEC 4
680#define CONFIG_SYS_NUM_FM1_10GEC 0
681#define CONFIG_NUM_DDR_CONTROLLERS 1
682#endif
York Sunbcf7b3d2012-10-08 07:44:20 +0000683
Priyanka Jain94dce8b2013-10-18 12:30:21 +0530684#elif defined(CONFIG_PPC_T1040) || defined(CONFIG_PPC_T1042) ||\
685defined(CONFIG_PPC_T1020) || defined(CONFIG_PPC_T1022)
York Sun46571362013-03-25 07:40:06 +0000686#define CONFIG_E5500
687#define CONFIG_FSL_CORENET /* Freescale CoreNet platform */
688#define CONFIG_SYS_FSL_QORIQ_CHASSIS2 /* Freescale Chassis generation 2 */
York Sunaa150bb2013-03-25 07:40:07 +0000689#define CONFIG_SYS_FSL_CORES_PER_CLUSTER 1
York Sun46571362013-03-25 07:40:06 +0000690#define CONFIG_SYS_FSL_QMAN_V3 /* QMAN version 3 */
Prabhakar Kushwaha78512532013-09-03 11:19:54 +0530691#if defined(CONFIG_PPC_T1040) || defined(CONFIG_PPC_T1042)
York Sun46571362013-03-25 07:40:06 +0000692#define CONFIG_MAX_CPUS 4
Prabhakar Kushwaha78512532013-09-03 11:19:54 +0530693#elif defined(CONFIG_PPC_T1020) || defined(CONFIG_PPC_T1022)
694#define CONFIG_MAX_CPUS 2
695#endif
696#define CONFIG_SYS_FSL_NUM_CC_PLLS 2
Prabhakar Kushwaha7e8382f2013-09-03 11:20:15 +0530697#define CONFIG_SYS_FSL_CLUSTER_CLOCKS { 1, 1, 1, 1 }
698#define CONFIG_SYS_SDHC_CLOCK 0
York Sun46571362013-03-25 07:40:06 +0000699#define CONFIG_SYS_FSL_NUM_LAWS 16
Prabhakar Kushwaha78512532013-09-03 11:19:54 +0530700#define CONFIG_SYS_FSL_SRDS_1
701#define CONFIG_SYS_FSL_SEC_COMPAT 5
York Sun46571362013-03-25 07:40:06 +0000702#define CONFIG_SYS_NUM_FMAN 1
703#define CONFIG_SYS_NUM_FM1_DTSEC 5
704#define CONFIG_NUM_DDR_CONTROLLERS 1
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530705#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
Prabhakar Kushwaha7e8382f2013-09-03 11:20:15 +0530706#define CONFIG_PME_PLAT_CLK_DIV 2
707#define CONFIG_SYS_PME_CLK CONFIG_PME_PLAT_CLK_DIV
Prabhakar Kushwaha78512532013-09-03 11:19:54 +0530708#define CONFIG_SYS_FSL_DDR_VER FSL_DDR_VER_5_0
709#define CONFIG_SYS_FSL_IFC_BANK_COUNT 8
York Sun46571362013-03-25 07:40:06 +0000710#define CONFIG_SYS_FMAN_V3
Prabhakar Kushwaha7e8382f2013-09-03 11:20:15 +0530711#define CONFIG_FM_PLAT_CLK_DIV 1
712#define CONFIG_SYS_FM1_CLK CONFIG_FM_PLAT_CLK_DIV
Prabhakar Kushwaha78512532013-09-03 11:19:54 +0530713#define CONFIG_SYS_FM_MURAM_SIZE 0x30000
Priyanka Jaine9dcaa82013-12-17 14:25:52 +0530714#define CONFIG_SYS_FSL_SINGLE_SOURCE_CLK
Prabhakar Kushwahae6066b02013-12-11 12:49:13 +0530715#define CONFIG_SYS_FSL_TBCLK_DIV 16
York Sun46571362013-03-25 07:40:06 +0000716#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.4"
York Sun46571362013-03-25 07:40:06 +0000717#define CONFIG_SYS_FSL_USB1_PHY_ENABLE
718#define CONFIG_SYS_FSL_USB2_PHY_ENABLE
719#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
720#define CONFIG_SYS_CCSRBAR_DEFAULT 0xfe000000
721
Shengzhou Liuf305cd22013-11-22 17:39:10 +0800722#elif defined(CONFIG_PPC_T2080) || defined(CONFIG_PPC_T2081)
723#define CONFIG_E6500
724#define CONFIG_SYS_PPC64 /* 64-bit core */
725#define CONFIG_FSL_CORENET /* Freescale CoreNet platform */
726#define CONFIG_SYS_FSL_QORIQ_CHASSIS2 /* Freescale Chassis generation 2 */
727#define CONFIG_SYS_FSL_CORES_PER_CLUSTER 4
728#define CONFIG_SYS_FSL_NUM_CC_PLLS 2
729#define CONFIG_SYS_FSL_QMAN_V3
730#define CONFIG_MAX_CPUS 4
731#define CONFIG_SYS_FSL_NUM_LAWS 32
732#define CONFIG_SYS_FSL_SEC_COMPAT 4
733#define CONFIG_SYS_NUM_FMAN 1
734#define CONFIG_SYS_FSL_CLUSTER_CLOCKS { 1, 4, 4, 4 }
735#define CONFIG_SYS_FSL_SRDS_1
736#define CONFIG_SYS_FSL_PCI_VER_3_X
737#if defined(CONFIG_PPC_T2080)
738#define CONFIG_SYS_NUM_FM1_DTSEC 8
739#define CONFIG_SYS_NUM_FM1_10GEC 4
740#define CONFIG_SYS_FSL_SRDS_2
741#define CONFIG_SYS_FSL_SRIO_LIODN
742#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 2
743#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
744#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
745#elif defined(CONFIG_PPC_T2081)
746#define CONFIG_SYS_NUM_FM1_DTSEC 6
747#define CONFIG_SYS_NUM_FM1_10GEC 2
748#endif
749#define CONFIG_SYS_FSL_NUM_USB_CTRLS 2
750#define CONFIG_NUM_DDR_CONTROLLERS 1
751#define CONFIG_PME_PLAT_CLK_DIV 1
752#define CONFIG_SYS_PME_CLK CONFIG_PME_PLAT_CLK_DIV
753#define CONFIG_SYS_FM1_CLK 0
754#define CONFIG_SYS_FSL_DDR_VER FSL_DDR_VER_4_7
755#define CONFIG_SYS_FSL_IFC_BANK_COUNT 8
756#define CONFIG_SYS_FMAN_V3
757#define CONFIG_SYS_FM_MURAM_SIZE 0x28000
758#define CONFIG_SYS_FSL_TBCLK_DIV 16
759#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v3.0"
760#define CONFIG_SYS_FSL_USB_DUAL_PHY_ENABLE
761#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
762#define CONFIG_SYS_CCSRBAR_DEFAULT 0xfe000000
763#define CONFIG_SYS_FSL_SFP_VER_3_0
764#define CONFIG_SYS_FSL_ISBC_VER 2
765
Mingkai Hu1a258072013-07-04 17:30:36 +0800766#elif defined(CONFIG_PPC_C29X)
767#define CONFIG_MAX_CPUS 1
768#define CONFIG_FSL_SDHC_V2_3
769#define CONFIG_SYS_FSL_NUM_LAWS 12
770#define CONFIG_SYS_PPC_E500_DEBUG_TLB 3
771#define CONFIG_TSECV2_1
772#define CONFIG_SYS_FSL_SEC_COMPAT 6
773#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
774#define CONFIG_NUM_DDR_CONTROLLERS 1
775#define CONFIG_SYS_FSL_IFC_BANK_COUNT 8
776#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
York Sun0cc59072013-08-20 15:09:43 -0700777#define CONFIG_SYS_FSL_ERRATUM_A005125
Mingkai Hu1a258072013-07-04 17:30:36 +0800778
Kumar Galafe137112011-01-19 03:05:26 -0600779#else
780#error Processor type not defined for this platform
781#endif
782
Timur Tabid8f341c2011-08-04 18:03:41 -0500783#ifndef CONFIG_SYS_CCSRBAR_DEFAULT
784#error "CONFIG_SYS_CCSRBAR_DEFAULT is not defined for this platform."
785#endif
786
York Sunaa150bb2013-03-25 07:40:07 +0000787#ifdef CONFIG_E6500
788#define CONFIG_SYS_FSL_THREADS_PER_CORE 2
789#else
790#define CONFIG_SYS_FSL_THREADS_PER_CORE 1
791#endif
792
York Sunf0626592013-09-30 09:22:09 -0700793#if !defined(CONFIG_SYS_FSL_DDRC_GEN1) && \
794 !defined(CONFIG_SYS_FSL_DDRC_GEN2) && \
795 !defined(CONFIG_SYS_FSL_DDRC_GEN3)
796#define CONFIG_SYS_FSL_DDRC_GEN3
797#endif
798
Kumar Galafe137112011-01-19 03:05:26 -0600799#endif /* _ASM_MPC85xx_CONFIG_H_ */