blob: 4e9fcc84fea60f1566eec6d36e1c8f65886bcff6 [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
York Sunf066a042012-10-28 08:12:54 +000012/*
13 * This macro should be removed when we no longer care about backwards
14 * compatibility with older operating systems.
15 */
16#define CONFIG_PPC_SPINTABLE_COMPATIBLE
17
York Sun2896cb72014-03-27 17:54:47 -070018#include <fsl_ddrc_version.h>
19#define CONFIG_SYS_FSL_DDR_BE
York Sun7d69ea32012-10-08 07:44:22 +000020
Prabhakar Kushwaha62908c22014-01-18 12:28:30 +053021/* IP endianness */
22#define CONFIG_SYS_FSL_IFC_BE
gaurav rana9d171da2015-02-27 09:43:49 +053023#define CONFIG_SYS_FSL_SFP_BE
gaurav rana8b5ea652015-02-27 09:46:17 +053024#define CONFIG_SYS_FSL_SEC_MON_BE
Prabhakar Kushwaha62908c22014-01-18 12:28:30 +053025
York Sun5557d6b2016-11-16 11:06:47 -080026#if defined(CONFIG_ARCH_MPC8536)
York Sun99825792014-05-23 13:15:00 -070027#define CONFIG_SYS_FSL_ERRATUM_A004508
York Sun0cc59072013-08-20 15:09:43 -070028#define CONFIG_SYS_FSL_ERRATUM_A005125
Kumar Galafe137112011-01-19 03:05:26 -060029
York Sun5ddce892016-11-16 11:13:06 -080030#elif defined(CONFIG_ARCH_MPC8540)
York Sunf0626592013-09-30 09:22:09 -070031#define CONFIG_SYS_FSL_DDRC_GEN1
Kumar Galafe137112011-01-19 03:05:26 -060032
York Sunbf820c02016-11-16 11:18:31 -080033#elif defined(CONFIG_ARCH_MPC8541)
York Sunf0626592013-09-30 09:22:09 -070034#define CONFIG_SYS_FSL_DDRC_GEN1
Kumar Galafe137112011-01-19 03:05:26 -060035
York Sun5ac012a2016-11-15 13:57:15 -080036#elif defined(CONFIG_ARCH_MPC8544)
York Sunf0626592013-09-30 09:22:09 -070037#define CONFIG_SYS_FSL_DDRC_GEN2
York Sun0cc59072013-08-20 15:09:43 -070038#define CONFIG_SYS_FSL_ERRATUM_A005125
Kumar Galafe137112011-01-19 03:05:26 -060039
York Sunefc49e02016-11-15 13:52:34 -080040#elif defined(CONFIG_ARCH_MPC8548)
York Sunf0626592013-09-30 09:22:09 -070041#define CONFIG_SYS_FSL_DDRC_GEN2
Kumar Gala866c6fa2011-09-16 09:54:30 -050042#define CONFIG_SYS_FSL_ERRATUM_NMG_DDR120
Kumar Galaf3339d62011-10-03 08:37:57 -050043#define CONFIG_SYS_FSL_ERRATUM_NMG_LBC103
chenhui zhaoc8caa8a2011-10-03 08:38:50 -050044#define CONFIG_SYS_FSL_ERRATUM_NMG_ETSEC129
Liu Gang78deaa12012-03-08 00:33:14 +000045#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 1
46#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
47#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
48#define CONFIG_SYS_FSL_RMU
49#define CONFIG_SYS_FSL_SRIO_MSG_UNIT_NUM 2
York Sun0cc59072013-08-20 15:09:43 -070050#define CONFIG_SYS_FSL_ERRATUM_A005125
Chunhe Lan92546402013-08-16 15:10:37 +080051#define CONFIG_SYS_FSL_ERRATUM_I2C_A004447
52#define CONFIG_SYS_FSL_A004447_SVR_REV 0x00
Kumar Galafe137112011-01-19 03:05:26 -060053
York Sun32be34d2016-11-16 11:23:23 -080054#elif defined(CONFIG_ARCH_MPC8555)
York Sunf0626592013-09-30 09:22:09 -070055#define CONFIG_SYS_FSL_DDRC_GEN1
Kumar Galafe137112011-01-19 03:05:26 -060056
York Sunb4046f42016-11-16 11:26:45 -080057#elif defined(CONFIG_ARCH_MPC8560)
York Sunf0626592013-09-30 09:22:09 -070058#define CONFIG_SYS_FSL_DDRC_GEN1
Kumar Galafe137112011-01-19 03:05:26 -060059
York Suna0d4b582016-11-16 11:32:17 -080060#elif defined(CONFIG_ARCH_MPC8568)
York Sunf0626592013-09-30 09:22:09 -070061#define CONFIG_SYS_FSL_DDRC_GEN2
Kumar Gala52bd8152011-01-31 23:09:25 -060062#define QE_MURAM_SIZE 0x10000UL
63#define MAX_QE_RISC 2
64#define QE_NUM_OF_SNUM 28
Liu Gang78deaa12012-03-08 00:33:14 +000065#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 1
66#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
67#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
68#define CONFIG_SYS_FSL_RMU
69#define CONFIG_SYS_FSL_SRIO_MSG_UNIT_NUM 2
Kumar Galafe137112011-01-19 03:05:26 -060070
York Sun317f2ff2016-11-16 11:34:52 -080071#elif defined(CONFIG_ARCH_MPC8569)
Kumar Gala52bd8152011-01-31 23:09:25 -060072#define QE_MURAM_SIZE 0x20000UL
73#define MAX_QE_RISC 4
74#define QE_NUM_OF_SNUM 46
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 Sun99825792014-05-23 13:15:00 -070080#define CONFIG_SYS_FSL_ERRATUM_A004508
York Sun0cc59072013-08-20 15:09:43 -070081#define CONFIG_SYS_FSL_ERRATUM_A005125
Kumar Galafe137112011-01-19 03:05:26 -060082
York Sun018874e2016-11-16 11:39:20 -080083#elif defined(CONFIG_ARCH_MPC8572)
York Sun9aa857b2011-01-25 21:51:27 -080084#define CONFIG_SYS_FSL_ERRATUM_DDR_115
York Sunc8fc9592011-01-25 22:05:49 -080085#define CONFIG_SYS_FSL_ERRATUM_DDR111_DDR134
York Sun99825792014-05-23 13:15:00 -070086#define CONFIG_SYS_FSL_ERRATUM_A004508
York Sun0cc59072013-08-20 15:09:43 -070087#define CONFIG_SYS_FSL_ERRATUM_A005125
Kumar Galafe137112011-01-19 03:05:26 -060088
York Sun24f88b32016-11-16 13:08:52 -080089#elif defined(CONFIG_ARCH_P1010)
Priyanka Jain02449632011-02-09 09:24:10 +053090#define CONFIG_FSL_SDHC_V2_3
Kumar Galafe137112011-01-19 03:05:26 -060091#define CONFIG_TSECV2
Poonam Aggrwal7373c592011-02-06 11:31:44 +053092#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
93#define CONFIG_NUM_DDR_CONTROLLERS 1
ramneek mehreshd04f8fe2013-10-18 17:40:17 +053094#define CONFIG_USB_MAX_CONTROLLER_COUNT 1
Mingkai Hu6f024c92013-05-16 10:18:13 +080095#define CONFIG_SYS_FSL_IFC_BANK_COUNT 4
Kumar Gala179b1b22011-05-20 00:39:21 -050096#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.2"
Ramneek Mehresh3fb68ee2011-03-23 15:20:43 +053097#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
Poonam Aggrwalc7664a42011-06-30 03:00:28 -050098#define CONFIG_SYS_FSL_ERRATUM_IFC_A002769
Poonam Aggrwalaf54a5f2011-06-29 16:32:52 +053099#define CONFIG_SYS_FSL_ERRATUM_P1010_A003549
Shengzhou Liu097be702013-08-15 09:31:47 +0800100#define CONFIG_SYS_FSL_ERRATUM_SEC_A003571
Poonam Aggrwal46b86ca2011-07-07 20:36:47 +0530101#define CONFIG_SYS_FSL_ERRATUM_IFC_A003399
York Sun0cc59072013-08-20 15:09:43 -0700102#define CONFIG_SYS_FSL_ERRATUM_A005125
Chunhe Lan92546402013-08-16 15:10:37 +0800103#define CONFIG_SYS_FSL_ERRATUM_I2C_A004447
York Sun99825792014-05-23 13:15:00 -0700104#define CONFIG_SYS_FSL_ERRATUM_A004508
Nikhil Badola2613cfc2014-02-26 17:43:15 +0530105#define CONFIG_SYS_FSL_ERRATUM_A007075
Sriram Dash1ae7e4c2016-08-17 11:47:53 +0530106#define CONFIG_SYS_FSL_USB1_PHY_ENABLE
Suresh Gupta086f0a72014-02-26 14:29:12 +0530107#define CONFIG_SYS_FSL_ERRATUM_A006261
Nikhil Badola288542c2014-11-21 17:25:21 +0530108#define CONFIG_SYS_FSL_ERRATUM_A004477
Chunhe Lan92546402013-08-16 15:10:37 +0800109#define CONFIG_SYS_FSL_A004447_SVR_REV 0x10
Haijun.Zhang22e3c422014-01-10 13:52:19 +0800110#define CONFIG_ESDHC_HC_BLK_ADDR
Kumar Galafe137112011-01-19 03:05:26 -0600111
Kumar Galae4e69252011-02-05 13:45:07 -0600112/* P1011 is single core version of P1020 */
York Sun3680e592016-11-16 15:54:15 -0800113#elif defined(CONFIG_ARCH_P1011)
Kumar Galafe137112011-01-19 03:05:26 -0600114#define CONFIG_TSECV2
Prabhakar Kushwaha1c48e772011-02-01 15:55:58 +0000115#define CONFIG_FSL_PCIE_DISABLE_ASPM
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530116#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
Kumar Galae4e69252011-02-05 13:45:07 -0600117#define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
118#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
York Sun99825792014-05-23 13:15:00 -0700119#define CONFIG_SYS_FSL_ERRATUM_A004508
York Sun0cc59072013-08-20 15:09:43 -0700120#define CONFIG_SYS_FSL_ERRATUM_A005125
Kumar Galafe137112011-01-19 03:05:26 -0600121
York Sunaf2dc812016-11-18 10:02:14 -0800122#elif defined(CONFIG_ARCH_P1020)
Kumar Galafe137112011-01-19 03:05:26 -0600123#define CONFIG_TSECV2
Prabhakar Kushwaha1c48e772011-02-01 15:55:58 +0000124#define CONFIG_FSL_PCIE_DISABLE_ASPM
Kumar Galae4e69252011-02-05 13:45:07 -0600125#define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
126#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
York Sun99825792014-05-23 13:15:00 -0700127#define CONFIG_SYS_FSL_ERRATUM_A004508
York Sun0cc59072013-08-20 15:09:43 -0700128#define CONFIG_SYS_FSL_ERRATUM_A005125
ramneek mehresh3ca2b9a2014-05-13 15:36:07 +0530129#ifndef CONFIG_USB_MAX_CONTROLLER_COUNT
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530130#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
ramneek mehresh3ca2b9a2014-05-13 15:36:07 +0530131#endif
Kumar Galafe137112011-01-19 03:05:26 -0600132
York Sun2f924be2016-11-18 10:59:02 -0800133#elif defined(CONFIG_ARCH_P1021)
Kumar Galafe137112011-01-19 03:05:26 -0600134#define CONFIG_TSECV2
Prabhakar Kushwaha1c48e772011-02-01 15:55:58 +0000135#define CONFIG_FSL_PCIE_DISABLE_ASPM
Kumar Galae4e69252011-02-05 13:45:07 -0600136#define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
137#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
Haiying Wang8cb2af72011-02-11 01:25:30 -0600138#define QE_MURAM_SIZE 0x6000UL
139#define MAX_QE_RISC 1
140#define QE_NUM_OF_SNUM 28
York Sun99825792014-05-23 13:15:00 -0700141#define CONFIG_SYS_FSL_ERRATUM_A004508
York Sun0cc59072013-08-20 15:09:43 -0700142#define CONFIG_SYS_FSL_ERRATUM_A005125
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530143#define CONFIG_USB_MAX_CONTROLLER_COUNT 1
Kumar Galafe137112011-01-19 03:05:26 -0600144
York Sun08672a52016-11-16 15:23:52 -0800145#elif defined(CONFIG_ARCH_P1022)
Kumar Galafe137112011-01-19 03:05:26 -0600146#define CONFIG_TSECV2
Ying Zhangf81b37f2015-01-30 14:52:11 +0800147#define CONFIG_USB_MAX_CONTROLLER_COUNT 1
Jiang Yutang7cd05902011-01-30 17:06:20 -0600148#define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
149#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
150#define CONFIG_FSL_SATA_ERRATUM_A001
York Sun99825792014-05-23 13:15:00 -0700151#define CONFIG_SYS_FSL_ERRATUM_A004508
York Sun0cc59072013-08-20 15:09:43 -0700152#define CONFIG_SYS_FSL_ERRATUM_A005125
Nikhil Badola288542c2014-11-21 17:25:21 +0530153#define CONFIG_SYS_FSL_ERRATUM_A004477
Kumar Galafe137112011-01-19 03:05:26 -0600154
York Sunfeeaae22016-11-16 15:45:31 -0800155#elif defined(CONFIG_ARCH_P1023)
Roy Zang1de20b02011-02-03 22:14:19 -0600156#define CONFIG_SYS_NUM_FMAN 1
157#define CONFIG_SYS_NUM_FM1_DTSEC 2
158#define CONFIG_NUM_DDR_CONTROLLERS 1
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530159#define CONFIG_USB_MAX_CONTROLLER_COUNT 1
Roy Zang1de20b02011-02-03 22:14:19 -0600160#define CONFIG_SYS_QMAN_NUM_PORTALS 3
161#define CONFIG_SYS_BMAN_NUM_PORTALS 3
Kumar Galad80dfe42011-02-04 00:43:34 -0600162#define CONFIG_SYS_FM_MURAM_SIZE 0x10000
Kumar Gala179b1b22011-05-20 00:39:21 -0500163#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.2"
York Sun99825792014-05-23 13:15:00 -0700164#define CONFIG_SYS_FSL_ERRATUM_A004508
York Sun0cc59072013-08-20 15:09:43 -0700165#define CONFIG_SYS_FSL_ERRATUM_A005125
Chunhe Lan92546402013-08-16 15:10:37 +0800166#define CONFIG_SYS_FSL_ERRATUM_I2C_A004447
167#define CONFIG_SYS_FSL_A004447_SVR_REV 0x11
Roy Zang1de20b02011-02-03 22:14:19 -0600168
Kumar Galae4e69252011-02-05 13:45:07 -0600169/* P1024 is lower end variant of P1020 */
York Sun76780b22016-11-18 11:00:57 -0800170#elif defined(CONFIG_ARCH_P1024)
Kumar Galae4e69252011-02-05 13:45:07 -0600171#define CONFIG_TSECV2
172#define CONFIG_FSL_PCIE_DISABLE_ASPM
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530173#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
Kumar Galae4e69252011-02-05 13:45:07 -0600174#define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
175#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
York Sun99825792014-05-23 13:15:00 -0700176#define CONFIG_SYS_FSL_ERRATUM_A004508
York Sun0cc59072013-08-20 15:09:43 -0700177#define CONFIG_SYS_FSL_ERRATUM_A005125
Kumar Galae4e69252011-02-05 13:45:07 -0600178
179/* P1025 is lower end variant of P1021 */
York Sun0f577972016-11-18 11:05:38 -0800180#elif defined(CONFIG_ARCH_P1025)
Nikhil Badolab0e3ddb2015-05-21 09:07:53 +0530181#define CONFIG_USB_MAX_CONTROLLER_COUNT 1
Kumar Galae4e69252011-02-05 13:45:07 -0600182#define CONFIG_TSECV2
183#define CONFIG_FSL_PCIE_DISABLE_ASPM
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 Sun99825792014-05-23 13:15:00 -0700189#define CONFIG_SYS_FSL_ERRATUM_A004508
York Sun0cc59072013-08-20 15:09:43 -0700190#define CONFIG_SYS_FSL_ERRATUM_A005125
Kumar Galae4e69252011-02-05 13:45:07 -0600191
York Sun4b08dd72016-11-18 11:08:43 -0800192#elif defined(CONFIG_ARCH_P2020)
Kumar Gala7b5b4802011-01-26 01:43:15 -0600193#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
Kumar Gala9a878d52011-01-29 15:36:10 -0600194#define CONFIG_SYS_FSL_ERRATUM_ESDHC_A001
Liu Gang78deaa12012-03-08 00:33:14 +0000195#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 2
196#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
197#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
198#define CONFIG_SYS_FSL_RMU
199#define CONFIG_SYS_FSL_SRIO_MSG_UNIT_NUM 2
York Sun99825792014-05-23 13:15:00 -0700200#define CONFIG_SYS_FSL_ERRATUM_A004508
York Sun0cc59072013-08-20 15:09:43 -0700201#define CONFIG_SYS_FSL_ERRATUM_A005125
Nikhil Badola288542c2014-11-21 17:25:21 +0530202#define CONFIG_SYS_FSL_ERRATUM_A004477
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530203#define CONFIG_USB_MAX_CONTROLLER_COUNT 1
York Sun99825792014-05-23 13:15:00 -0700204
York Sun5786fca2016-11-18 11:15:21 -0800205#elif defined(CONFIG_ARCH_P2041) /* also supports P2040 */
York Sun7e0edbd2012-10-08 07:44:15 +0000206#define CONFIG_SYS_FSL_QORIQ_CHASSIS1
York Sun544f8812013-06-25 11:37:39 -0700207#define CONFIG_FSL_CORENET /* Freescale CoreNet platform */
Kumar Gala3842bb52011-02-16 02:03:29 -0600208#define CONFIG_SYS_FSL_NUM_CC_PLLS 2
Kumar Gala619541b2011-05-13 01:16:07 -0500209#define CONFIG_SYS_NUM_FMAN 1
210#define CONFIG_SYS_NUM_FM1_DTSEC 5
211#define CONFIG_SYS_NUM_FM1_10GEC 1
212#define CONFIG_NUM_DDR_CONTROLLERS 1
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530213#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
Kumar Gala619541b2011-05-13 01:16:07 -0500214#define CONFIG_SYS_FM_MURAM_SIZE 0x28000
215#define CONFIG_SYS_FSL_TBCLK_DIV 32
216#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.2"
217#define CONFIG_SYS_FSL_USB1_PHY_ENABLE
218#define CONFIG_SYS_FSL_USB2_PHY_ENABLE
Kumar Galaa49034f2011-04-13 00:19:10 -0500219#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
Kumar Gala619541b2011-05-13 01:16:07 -0500220#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
York Sun9ed88112012-05-07 07:26:47 +0000221#define CONFIG_SYS_FSL_ERRATUM_NMG_CPU_A011
Xuleicf4f4932013-03-11 17:56:34 +0000222#define CONFIG_SYS_FSL_ERRATUM_USB14
Kumar Gala945e59a2011-11-22 06:51:15 -0600223#define CONFIG_SYS_FSL_ERRATUM_CPU_A003999
York Sun52db64b2013-03-25 07:30:11 +0000224#define CONFIG_SYS_FSL_ERRATUM_DDR_A003
York Sundf2be192011-11-20 10:01:35 -0800225#define CONFIG_SYS_FSL_ERRATUM_DDR_A003474
Liu Gang78deaa12012-03-08 00:33:14 +0000226#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 2
227#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
228#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
Scott Wood80806962012-08-14 10:14:53 +0000229#define CONFIG_SYS_FSL_ERRATUM_A004510
230#define CONFIG_SYS_FSL_ERRATUM_A004510_SVR_REV 0x10
231#define CONFIG_SYS_FSL_ERRATUM_A004510_SVR_REV2 0x11
232#define CONFIG_SYS_FSL_CORENET_SNOOPVEC_COREONLY 0xf0000000
Liu Gang712b6622012-09-28 21:26:19 +0000233#define CONFIG_SYS_FSL_ERRATUM_SRIO_A004034
Timur Tabie3ab8c12012-10-25 12:40:00 +0000234#define CONFIG_SYS_FSL_ERRATUM_A004849
Chunhe Lan92546402013-08-16 15:10:37 +0800235#define CONFIG_SYS_FSL_ERRATUM_I2C_A004447
Suresh Gupta086f0a72014-02-26 14:29:12 +0530236#define CONFIG_SYS_FSL_ERRATUM_A006261
Chunhe Lan92546402013-08-16 15:10:37 +0800237#define CONFIG_SYS_FSL_A004447_SVR_REV 0x11
Kumar Gala619541b2011-05-13 01:16:07 -0500238
York Sundf70d062016-11-18 11:20:40 -0800239#elif defined(CONFIG_ARCH_P3041)
York Sun7e0edbd2012-10-08 07:44:15 +0000240#define CONFIG_SYS_FSL_QORIQ_CHASSIS1
York Sun544f8812013-06-25 11:37:39 -0700241#define CONFIG_FSL_CORENET /* Freescale CoreNet platform */
Kumar Gala3842bb52011-02-16 02:03:29 -0600242#define CONFIG_SYS_FSL_NUM_CC_PLLS 2
Kumar Gala60d95d82011-01-25 12:42:32 -0600243#define CONFIG_SYS_NUM_FMAN 1
244#define CONFIG_SYS_NUM_FM1_DTSEC 5
245#define CONFIG_SYS_NUM_FM1_10GEC 1
246#define CONFIG_NUM_DDR_CONTROLLERS 1
York Sun2896cb72014-03-27 17:54:47 -0700247#define CONFIG_SYS_FSL_DDR_VER FSL_DDR_VER_4_5
Kumar Galad80dfe42011-02-04 00:43:34 -0600248#define CONFIG_SYS_FM_MURAM_SIZE 0x28000
Kumar Galaf4fb90f2011-02-18 05:40:54 -0600249#define CONFIG_SYS_FSL_TBCLK_DIV 32
Kumar Gala179b1b22011-05-20 00:39:21 -0500250#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.2"
Roy Zang6d6a0e12011-04-13 00:08:51 -0500251#define CONFIG_SYS_FSL_USB1_PHY_ENABLE
252#define CONFIG_SYS_FSL_USB2_PHY_ENABLE
Kumar Galaa49034f2011-04-13 00:19:10 -0500253#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530254#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
Lei Xu32276202011-04-19 15:28:41 +0800255#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
York Sun53155532012-08-08 18:04:53 +0000256#define CONFIG_SYS_FSL_ERRATUM_NMG_CPU_A011
Xuleicf4f4932013-03-11 17:56:34 +0000257#define CONFIG_SYS_FSL_ERRATUM_USB14
Kumar Gala945e59a2011-11-22 06:51:15 -0600258#define CONFIG_SYS_FSL_ERRATUM_CPU_A003999
York Sun52db64b2013-03-25 07:30:11 +0000259#define CONFIG_SYS_FSL_ERRATUM_DDR_A003
York Sundf2be192011-11-20 10:01:35 -0800260#define CONFIG_SYS_FSL_ERRATUM_DDR_A003474
Liu Gang78deaa12012-03-08 00:33:14 +0000261#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 2
262#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
263#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
Scott Wood80806962012-08-14 10:14:53 +0000264#define CONFIG_SYS_FSL_ERRATUM_A004510
265#define CONFIG_SYS_FSL_ERRATUM_A004510_SVR_REV 0x10
266#define CONFIG_SYS_FSL_ERRATUM_A004510_SVR_REV2 0x11
267#define CONFIG_SYS_FSL_CORENET_SNOOPVEC_COREONLY 0xf0000000
Liu Gang712b6622012-09-28 21:26:19 +0000268#define CONFIG_SYS_FSL_ERRATUM_SRIO_A004034
Timur Tabie3ab8c12012-10-25 12:40:00 +0000269#define CONFIG_SYS_FSL_ERRATUM_A004849
York Suncca41c52013-06-25 11:37:49 -0700270#define CONFIG_SYS_FSL_ERRATUM_A005812
Chunhe Lan92546402013-08-16 15:10:37 +0800271#define CONFIG_SYS_FSL_ERRATUM_I2C_A004447
Suresh Gupta086f0a72014-02-26 14:29:12 +0530272#define CONFIG_SYS_FSL_ERRATUM_A006261
Chunhe Lan92546402013-08-16 15:10:37 +0800273#define CONFIG_SYS_FSL_A004447_SVR_REV 0x20
Kumar Galafe137112011-01-19 03:05:26 -0600274
York Sun84be8a92016-11-18 11:24:40 -0800275#elif defined(CONFIG_ARCH_P4080) /* also supports P4040 */
York Sun7e0edbd2012-10-08 07:44:15 +0000276#define CONFIG_SYS_FSL_QORIQ_CHASSIS1
York Sun544f8812013-06-25 11:37:39 -0700277#define CONFIG_FSL_CORENET /* Freescale CoreNet platform */
Kumar Gala3842bb52011-02-16 02:03:29 -0600278#define CONFIG_SYS_FSL_NUM_CC_PLLS 4
Kumar Galafe137112011-01-19 03:05:26 -0600279#define CONFIG_SYS_NUM_FMAN 2
280#define CONFIG_SYS_NUM_FM1_DTSEC 4
281#define CONFIG_SYS_NUM_FM2_DTSEC 4
282#define CONFIG_SYS_NUM_FM1_10GEC 1
283#define CONFIG_SYS_NUM_FM2_10GEC 1
284#define CONFIG_NUM_DDR_CONTROLLERS 2
York Sun2896cb72014-03-27 17:54:47 -0700285#define CONFIG_SYS_FSL_DDR_VER FSL_DDR_VER_4_4
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530286#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
Kumar Galad80dfe42011-02-04 00:43:34 -0600287#define CONFIG_SYS_FM_MURAM_SIZE 0x28000
Kumar Galaf4fb90f2011-02-18 05:40:54 -0600288#define CONFIG_SYS_FSL_TBCLK_DIV 16
Kumar Gala179b1b22011-05-20 00:39:21 -0500289#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,p4080-pcie"
Kumar Galafe137112011-01-19 03:05:26 -0600290#define CONFIG_SYS_FSL_ERRATUM_CPC_A002
291#define CONFIG_SYS_FSL_ERRATUM_CPC_A003
York Sun922f40f2011-01-10 12:03:01 +0000292#define CONFIG_SYS_FSL_ERRATUM_DDR_A003
Kumar Galafe137112011-01-19 03:05:26 -0600293#define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
294#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
295#define CONFIG_SYS_FSL_ERRATUM_ESDHC135
Zang Roy-R6191183659922012-09-18 09:50:08 +0000296#define CONFIG_SYS_FSL_ERRATUM_ESDHC13
Kumar Galafe137112011-01-19 03:05:26 -0600297#define CONFIG_SYS_P4080_ERRATUM_CPU22
York Sun9ed88112012-05-07 07:26:47 +0000298#define CONFIG_SYS_FSL_ERRATUM_NMG_CPU_A011
Kumar Galafe137112011-01-19 03:05:26 -0600299#define CONFIG_SYS_P4080_ERRATUM_SERDES8
Emil Medveb01c81f2010-08-31 22:57:38 -0500300#define CONFIG_SYS_P4080_ERRATUM_SERDES9
Timur Tabi6a62dc42011-04-18 17:16:00 -0500301#define CONFIG_SYS_P4080_ERRATUM_SERDES_A001
Timur Tabi90f381d2011-04-01 13:19:36 -0500302#define CONFIG_SYS_P4080_ERRATUM_SERDES_A005
Kumar Gala945e59a2011-11-22 06:51:15 -0600303#define CONFIG_SYS_FSL_ERRATUM_CPU_A003999
York Sundf2be192011-11-20 10:01:35 -0800304#define CONFIG_SYS_FSL_ERRATUM_DDR_A003474
Liu Gang78deaa12012-03-08 00:33:14 +0000305#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 2
306#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
307#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
308#define CONFIG_SYS_FSL_RMU
309#define CONFIG_SYS_FSL_SRIO_MSG_UNIT_NUM 2
Scott Wood80806962012-08-14 10:14:53 +0000310#define CONFIG_SYS_FSL_ERRATUM_A004510
311#define CONFIG_SYS_FSL_ERRATUM_A004510_SVR_REV 0x20
312#define CONFIG_SYS_FSL_CORENET_SNOOPVEC_COREONLY 0xff000000
Liu Gang712b6622012-09-28 21:26:19 +0000313#define CONFIG_SYS_FSL_ERRATUM_SRIO_A004034
Timur Tabie3ab8c12012-10-25 12:40:00 +0000314#define CONFIG_SYS_FSL_ERRATUM_A004849
Timur Tabic5355dd2012-11-01 08:20:23 +0000315#define CONFIG_SYS_FSL_ERRATUM_A004580
Yuanquan Chenc48234e2012-11-26 23:49:45 +0000316#define CONFIG_SYS_P4080_ERRATUM_PCIE_A003
York Suncca41c52013-06-25 11:37:49 -0700317#define CONFIG_SYS_FSL_ERRATUM_A005812
Chunhe Lan92546402013-08-16 15:10:37 +0800318#define CONFIG_SYS_FSL_ERRATUM_I2C_A004447
Nikhil Badola2613cfc2014-02-26 17:43:15 +0530319#define CONFIG_SYS_FSL_ERRATUM_A007075
Chunhe Lan92546402013-08-16 15:10:37 +0800320#define CONFIG_SYS_FSL_A004447_SVR_REV 0x20
Kumar Galafe137112011-01-19 03:05:26 -0600321
York Sun2ed73f42016-11-18 11:30:56 -0800322#elif defined(CONFIG_ARCH_P5020) /* also supports P5010 */
York Sun2394a0f2012-10-08 07:44:30 +0000323#define CONFIG_SYS_PPC64 /* 64-bit core */
York Sun7e0edbd2012-10-08 07:44:15 +0000324#define CONFIG_SYS_FSL_QORIQ_CHASSIS1
York Sun544f8812013-06-25 11:37:39 -0700325#define CONFIG_FSL_CORENET /* Freescale CoreNet platform */
Kumar Gala3842bb52011-02-16 02:03:29 -0600326#define CONFIG_SYS_FSL_NUM_CC_PLLS 2
Kumar Gala60d95d82011-01-25 12:42:32 -0600327#define CONFIG_SYS_NUM_FMAN 1
328#define CONFIG_SYS_NUM_FM1_DTSEC 5
329#define CONFIG_SYS_NUM_FM1_10GEC 1
330#define CONFIG_NUM_DDR_CONTROLLERS 2
York Sun2896cb72014-03-27 17:54:47 -0700331#define CONFIG_SYS_FSL_DDR_VER FSL_DDR_VER_4_4
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530332#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
Kumar Galad80dfe42011-02-04 00:43:34 -0600333#define CONFIG_SYS_FM_MURAM_SIZE 0x28000
Kumar Galaf4fb90f2011-02-18 05:40:54 -0600334#define CONFIG_SYS_FSL_TBCLK_DIV 32
Kumar Gala179b1b22011-05-20 00:39:21 -0500335#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.2"
Roy Zang6d6a0e12011-04-13 00:08:51 -0500336#define CONFIG_SYS_FSL_USB1_PHY_ENABLE
337#define CONFIG_SYS_FSL_USB2_PHY_ENABLE
Kumar Galaa49034f2011-04-13 00:19:10 -0500338#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
Lei Xu32276202011-04-19 15:28:41 +0800339#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
Xuleicf4f4932013-03-11 17:56:34 +0000340#define CONFIG_SYS_FSL_ERRATUM_USB14
York Sun52db64b2013-03-25 07:30:11 +0000341#define CONFIG_SYS_FSL_ERRATUM_DDR_A003
York Sundf2be192011-11-20 10:01:35 -0800342#define CONFIG_SYS_FSL_ERRATUM_DDR_A003474
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
Scott Wood80806962012-08-14 10:14:53 +0000346#define CONFIG_SYS_FSL_ERRATUM_A004510
347#define CONFIG_SYS_FSL_ERRATUM_A004510_SVR_REV 0x10
348#define CONFIG_SYS_FSL_CORENET_SNOOPVEC_COREONLY 0xc0000000
Liu Gang712b6622012-09-28 21:26:19 +0000349#define CONFIG_SYS_FSL_ERRATUM_SRIO_A004034
Chunhe Lan92546402013-08-16 15:10:37 +0800350#define CONFIG_SYS_FSL_ERRATUM_I2C_A004447
Suresh Gupta086f0a72014-02-26 14:29:12 +0530351#define CONFIG_SYS_FSL_ERRATUM_A006261
Chunhe Lan92546402013-08-16 15:10:37 +0800352#define CONFIG_SYS_FSL_A004447_SVR_REV 0x20
Kumar Galafe137112011-01-19 03:05:26 -0600353
York Suna3c5b662016-11-18 11:39:36 -0800354#elif defined(CONFIG_ARCH_P5040)
Timur Tabi9a7b5a32012-10-23 10:48:09 +0000355#define CONFIG_SYS_PPC64
Timur Tabid5e13882012-10-05 11:09:19 +0000356#define CONFIG_SYS_FSL_QORIQ_CHASSIS1
York Sun544f8812013-06-25 11:37:39 -0700357#define CONFIG_FSL_CORENET /* Freescale CoreNet platform */
Timur Tabid5e13882012-10-05 11:09:19 +0000358#define CONFIG_SYS_FSL_NUM_CC_PLLS 3
Timur Tabid5e13882012-10-05 11:09:19 +0000359#define CONFIG_SYS_NUM_FMAN 2
360#define CONFIG_SYS_NUM_FM1_DTSEC 5
361#define CONFIG_SYS_NUM_FM1_10GEC 1
362#define CONFIG_SYS_NUM_FM2_DTSEC 5
363#define CONFIG_SYS_NUM_FM2_10GEC 1
364#define CONFIG_NUM_DDR_CONTROLLERS 2
York Sun2896cb72014-03-27 17:54:47 -0700365#define CONFIG_SYS_FSL_DDR_VER FSL_DDR_VER_4_4
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530366#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
Timur Tabid5e13882012-10-05 11:09:19 +0000367#define CONFIG_SYS_FM_MURAM_SIZE 0x28000
368#define CONFIG_SYS_FSL_TBCLK_DIV 16
369#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.4"
Timur Tabid5e13882012-10-05 11:09:19 +0000370#define CONFIG_SYS_FSL_USB1_PHY_ENABLE
371#define CONFIG_SYS_FSL_USB2_PHY_ENABLE
372#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
373#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
Xuleicf4f4932013-03-11 17:56:34 +0000374#define CONFIG_SYS_FSL_ERRATUM_USB14
Timur Tabid5e13882012-10-05 11:09:19 +0000375#define CONFIG_SYS_FSL_ERRATUM_DDR_A003
376#define CONFIG_SYS_FSL_ERRATUM_DDR_A003474
377#define CONFIG_SYS_FSL_ERRATUM_A004699
Timur Tabid5e13882012-10-05 11:09:19 +0000378#define CONFIG_SYS_FSL_ERRATUM_A004510
379#define CONFIG_SYS_FSL_ERRATUM_A004510_SVR_REV 0x10
Suresh Gupta086f0a72014-02-26 14:29:12 +0530380#define CONFIG_SYS_FSL_ERRATUM_A006261
Timur Tabid5e13882012-10-05 11:09:19 +0000381#define CONFIG_SYS_FSL_CORENET_SNOOPVEC_COREONLY 0xf0000000
York Suncca41c52013-06-25 11:37:49 -0700382#define CONFIG_SYS_FSL_ERRATUM_A005812
Timur Tabid5e13882012-10-05 11:09:19 +0000383
York Suna80bdf72016-11-15 14:09:50 -0800384#elif defined(CONFIG_ARCH_BSC9131)
Prabhakar Kushwahabeebb882012-04-24 20:16:49 +0000385#define CONFIG_FSL_SDHC_V2_3
Prabhakar Kushwahabeebb882012-04-24 20:16:49 +0000386#define CONFIG_TSECV2
Prabhakar Kushwahabeebb882012-04-24 20:16:49 +0000387#define CONFIG_NUM_DDR_CONTROLLERS 1
York Sun2896cb72014-03-27 17:54:47 -0700388#define CONFIG_SYS_FSL_DDR_VER FSL_DDR_VER_4_4
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530389#define CONFIG_USB_MAX_CONTROLLER_COUNT 1
Priyanka Jainf81e8b22013-04-04 09:31:54 +0530390#define CONFIG_SYS_FSL_DSP_M2_RAM_ADDR 0xb0000000
391#define CONFIG_SYS_FSL_DSP_CCSRBAR_DEFAULT 0xff600000
Mingkai Hu6f024c92013-05-16 10:18:13 +0800392#define CONFIG_SYS_FSL_IFC_BANK_COUNT 3
Prabhakar Kushwahabeebb882012-04-24 20:16:49 +0000393#define CONFIG_NAND_FSL_IFC
Prabhakar Kushwahabeebb882012-04-24 20:16:49 +0000394#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
York Sun0cc59072013-08-20 15:09:43 -0700395#define CONFIG_SYS_FSL_ERRATUM_A005125
Nikhil Badola288542c2014-11-21 17:25:21 +0530396#define CONFIG_SYS_FSL_ERRATUM_A004477
Haijun.Zhang22e3c422014-01-10 13:52:19 +0800397#define CONFIG_ESDHC_HC_BLK_ADDR
Prabhakar Kushwahabeebb882012-04-24 20:16:49 +0000398
York Suna80bdf72016-11-15 14:09:50 -0800399#elif defined(CONFIG_ARCH_BSC9132)
Prabhakar Kushwaha92543c22013-01-23 17:59:57 +0000400#define CONFIG_FSL_SDHC_V2_3
Prabhakar Kushwaha92543c22013-01-23 17:59:57 +0000401#define CONFIG_TSECV2
Prabhakar Kushwaha92543c22013-01-23 17:59:57 +0000402#define CONFIG_NUM_DDR_CONTROLLERS 2
York Sun2896cb72014-03-27 17:54:47 -0700403#define CONFIG_SYS_FSL_DDR_VER FSL_DDR_VER_4_6
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530404#define CONFIG_USB_MAX_CONTROLLER_COUNT 1
Priyanka Jainc73b9032013-07-02 09:21:04 +0530405#define CONFIG_SYS_FSL_DSP_DDR_ADDR 0x40000000
406#define CONFIG_SYS_FSL_DSP_M2_RAM_ADDR 0xb0000000
407#define CONFIG_SYS_FSL_DSP_M3_RAM_ADDR 0xc0000000
408#define CONFIG_SYS_FSL_DSP_CCSRBAR_DEFAULT 0xff600000
York Sun84fa67e2013-04-18 19:31:01 -0700409#define CONFIG_SYS_FSL_IFC_BANK_COUNT 3
Prabhakar Kushwaha92543c22013-01-23 17:59:57 +0000410#define CONFIG_NAND_FSL_IFC
Prabhakar Kushwaha92543c22013-01-23 17:59:57 +0000411#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
412#define CONFIG_SYS_FSL_ESDHC_P1010_BROKEN_SDCLK
413#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.2"
York Sun0cc59072013-08-20 15:09:43 -0700414#define CONFIG_SYS_FSL_ERRATUM_A005125
Chunhe Lan7155ad52014-05-07 10:50:20 +0800415#define CONFIG_SYS_FSL_ERRATUM_A005434
Nikhil Badola288542c2014-11-21 17:25:21 +0530416#define CONFIG_SYS_FSL_ERRATUM_A004477
Chunhe Lan92546402013-08-16 15:10:37 +0800417#define CONFIG_SYS_FSL_ERRATUM_I2C_A004447
418#define CONFIG_SYS_FSL_A004447_SVR_REV 0x11
Haijun.Zhang22e3c422014-01-10 13:52:19 +0800419#define CONFIG_ESDHC_HC_BLK_ADDR
Prabhakar Kushwaha92543c22013-01-23 17:59:57 +0000420
York Sunc1845032016-11-21 13:41:30 -0800421#elif defined(CONFIG_ARCH_T4240) || defined(CONFIG_ARCH_T4160)
York Sun64fd08b2013-03-25 07:40:05 +0000422#define CONFIG_E6500
York Sun2394a0f2012-10-08 07:44:30 +0000423#define CONFIG_SYS_PPC64 /* 64-bit core */
York Sun9941a222012-10-08 07:44:19 +0000424#define CONFIG_FSL_CORENET /* Freescale CoreNet platform */
425#define CONFIG_SYS_FSL_QORIQ_CHASSIS2 /* Freescale Chassis generation 2 */
York Sunaa150bb2013-03-25 07:40:07 +0000426#define CONFIG_SYS_FSL_CORES_PER_CLUSTER 4
York Sun9941a222012-10-08 07:44:19 +0000427#define CONFIG_SYS_FSL_QMAN_V3 /* QMAN version 3 */
York Sun0fad3262016-11-21 13:35:41 -0800428#ifdef CONFIG_ARCH_T4240
Prabhakar Kushwaha7e8382f2013-09-03 11:20:15 +0530429#define CONFIG_SYS_FSL_CLUSTER_CLOCKS { 1, 1, 4 }
York Sun9941a222012-10-08 07:44:19 +0000430#define CONFIG_SYS_NUM_FM1_DTSEC 8
431#define CONFIG_SYS_NUM_FM1_10GEC 2
432#define CONFIG_SYS_NUM_FM2_DTSEC 8
433#define CONFIG_SYS_NUM_FM2_10GEC 2
434#define CONFIG_NUM_DDR_CONTROLLERS 3
Sriram Dash5467da22016-08-17 11:47:54 +0530435#define CONFIG_SYS_FSL_ERRATUM_A006261
York Sun64fd08b2013-03-25 07:40:05 +0000436#else
Shengzhou Liu26ed2d02014-04-25 16:31:22 +0800437#define CONFIG_SYS_NUM_FM1_DTSEC 6
York Sun64fd08b2013-03-25 07:40:05 +0000438#define CONFIG_SYS_NUM_FM1_10GEC 1
Shengzhou Liu26ed2d02014-04-25 16:31:22 +0800439#define CONFIG_SYS_NUM_FM2_DTSEC 8
York Sun64fd08b2013-03-25 07:40:05 +0000440#define CONFIG_SYS_NUM_FM2_10GEC 1
441#define CONFIG_NUM_DDR_CONTROLLERS 2
York Sunc7ea9242016-11-21 13:31:34 -0800442#if defined(CONFIG_ARCH_T4160)
Shengzhou Liu26ed2d02014-04-25 16:31:22 +0800443#define CONFIG_SYS_FSL_CLUSTER_CLOCKS { 1, 1 }
Shengzhou Liu26ed2d02014-04-25 16:31:22 +0800444#endif
York Sun64fd08b2013-03-25 07:40:05 +0000445#endif
York Sunfb5137a2013-03-25 07:33:29 +0000446#define CONFIG_SYS_FSL_NUM_CC_PLLS 5
Prabhakar Kushwaha873e9f02013-07-31 16:56:41 +0530447#define CONFIG_SYS_FSL_SRDS_1
448#define CONFIG_SYS_FSL_SRDS_2
York Sunfb5137a2013-03-25 07:33:29 +0000449#define CONFIG_SYS_FSL_SRDS_3
450#define CONFIG_SYS_FSL_SRDS_4
York Sunfb5137a2013-03-25 07:33:29 +0000451#define CONFIG_SYS_NUM_FMAN 2
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530452#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
Prabhakar Kushwaha7e8382f2013-09-03 11:20:15 +0530453#define CONFIG_SYS_PME_CLK 0
York Sunfb5137a2013-03-25 07:33:29 +0000454#define CONFIG_SYS_FSL_DDR_VER FSL_DDR_VER_4_7
Mingkai Hu6f024c92013-05-16 10:18:13 +0800455#define CONFIG_SYS_FSL_IFC_BANK_COUNT 8
York Sunfb5137a2013-03-25 07:33:29 +0000456#define CONFIG_SYS_FMAN_V3
Prabhakar Kushwaha7e8382f2013-09-03 11:20:15 +0530457#define CONFIG_SYS_FM1_CLK 3
458#define CONFIG_SYS_FM2_CLK 3
York Sunfb5137a2013-03-25 07:33:29 +0000459#define CONFIG_SYS_FM_MURAM_SIZE 0x60000
460#define CONFIG_SYS_FSL_TBCLK_DIV 16
461#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v3.0"
462#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
Liu Gangd5eca7e2013-06-25 18:12:14 +0800465#define CONFIG_SYS_FSL_SRIO_LIODN
York Sunfb5137a2013-03-25 07:33:29 +0000466#define CONFIG_SYS_FSL_USB_DUAL_PHY_ENABLE
467#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
468#define CONFIG_SYS_FSL_ERRATUM_A004468
York Sunfb5137a2013-03-25 07:33:29 +0000469#define CONFIG_SYS_FSL_ERRATUM_A005871
York Sunb1954252013-09-16 12:49:31 -0700470#define CONFIG_SYS_FSL_ERRATUM_A006379
Shaveta Leekha7c0f5e82014-05-28 14:18:55 +0530471#define CONFIG_SYS_FSL_ERRATUM_A007186
Scott Wood3f4a5c42013-05-15 17:50:13 -0500472#define CONFIG_SYS_FSL_ERRATUM_A006593
Nikhil Badola67f4b262014-10-17 09:12:07 +0530473#define CONFIG_SYS_FSL_ERRATUM_A007798
Shengzhou Liu02352962016-11-15 17:15:20 +0800474#define CONFIG_SYS_FSL_ERRATUM_A009942
Shaveta Leekha7c0f5e82014-05-28 14:18:55 +0530475#define CONFIG_SYS_FSL_SFP_VER_3_0
York Sunfb5137a2013-03-25 07:33:29 +0000476#define CONFIG_SYS_FSL_PCI_VER_3_X
477
York Sunfda566d2016-11-18 11:56:57 -0800478#elif defined(CONFIG_ARCH_B4860) || defined(CONFIG_ARCH_B4420)
Poonam Aggrwal525ab512013-03-25 07:40:20 +0000479#define CONFIG_E6500
Poonam Aggrwal248865e2012-12-23 19:24:16 +0000480#define CONFIG_SYS_PPC64 /* 64-bit core */
481#define CONFIG_FSL_CORENET /* Freescale CoreNet platform */
482#define CONFIG_SYS_FSL_QORIQ_CHASSIS2 /* Freescale Chassis generation 2 */
483#define CONFIG_SYS_FSL_QMAN_V3 /* QMAN version 3 */
Shaveta Leekhadbf0bc82015-01-19 12:46:54 +0530484#define CONFIG_HETROGENOUS_CLUSTERS /* DSP/SC3900 core clusters */
485#define CONFIG_PPC_CLUSTER_START 0 /*Start index of ppc clusters*/
486#define CONFIG_DSP_CLUSTER_START 1 /*Start index of dsp clusters*/
Prabhakar Kushwaha873e9f02013-07-31 16:56:41 +0530487#define CONFIG_SYS_FSL_SRDS_1
488#define CONFIG_SYS_FSL_SRDS_2
Shaveta Leekhadbf0bc82015-01-19 12:46:54 +0530489#define CONFIG_SYS_MAPLE
490#define CONFIG_SYS_CPRI
491#define CONFIG_SYS_FSL_NUM_CC_PLLS 5
Poonam Aggrwal248865e2012-12-23 19:24:16 +0000492#define CONFIG_SYS_NUM_FMAN 1
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530493#define CONFIG_USB_MAX_CONTROLLER_COUNT 1
Prabhakar Kushwaha7e8382f2013-09-03 11:20:15 +0530494#define CONFIG_SYS_FM1_CLK 0
Shaveta Leekhadbf0bc82015-01-19 12:46:54 +0530495#define CONFIG_SYS_CPRI_CLK 3
496#define CONFIG_SYS_ULB_CLK 4
497#define CONFIG_SYS_ETVPE_CLK 1
Poonam Aggrwal248865e2012-12-23 19:24:16 +0000498#define CONFIG_SYS_FSL_DDR_VER FSL_DDR_VER_4_7
Mingkai Hu6f024c92013-05-16 10:18:13 +0800499#define CONFIG_SYS_FSL_IFC_BANK_COUNT 4
Poonam Aggrwal248865e2012-12-23 19:24:16 +0000500#define CONFIG_SYS_FMAN_V3
501#define CONFIG_SYS_FM_MURAM_SIZE 0x60000
502#define CONFIG_SYS_FSL_TBCLK_DIV 16
503#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.4"
504#define CONFIG_SYS_FSL_USB1_PHY_ENABLE
Shengzhou Liu5d9606e2013-02-27 21:56:54 +0000505#define CONFIG_SYS_FSL_ERRATUM_A005871
York Sunb1954252013-09-16 12:49:31 -0700506#define CONFIG_SYS_FSL_ERRATUM_A006379
Shaveta Leekha7c0f5e82014-05-28 14:18:55 +0530507#define CONFIG_SYS_FSL_ERRATUM_A007186
Scott Wood3f4a5c42013-05-15 17:50:13 -0500508#define CONFIG_SYS_FSL_ERRATUM_A006593
Nikhil Badola2613cfc2014-02-26 17:43:15 +0530509#define CONFIG_SYS_FSL_ERRATUM_A007075
Shaveta Leekhad11523b2014-02-26 16:08:22 +0530510#define CONFIG_SYS_FSL_ERRATUM_A006475
511#define CONFIG_SYS_FSL_ERRATUM_A006384
York Sun7b083df2014-03-28 15:07:27 -0700512#define CONFIG_SYS_FSL_ERRATUM_A007212
Nikhil Badola288542c2014-11-21 17:25:21 +0530513#define CONFIG_SYS_FSL_ERRATUM_A004477
Shengzhou Liu02352962016-11-15 17:15:20 +0800514#define CONFIG_SYS_FSL_ERRATUM_A009942
Shaveta Leekha7c0f5e82014-05-28 14:18:55 +0530515#define CONFIG_SYS_FSL_SFP_VER_3_0
Poonam Aggrwal248865e2012-12-23 19:24:16 +0000516
York Sun68eaa9a2016-11-18 11:44:43 -0800517#ifdef CONFIG_ARCH_B4860
York Sunaa150bb2013-03-25 07:40:07 +0000518#define CONFIG_SYS_FSL_CORES_PER_CLUSTER 4
Shaveta Leekhadbf0bc82015-01-19 12:46:54 +0530519#define CONFIG_MAX_DSP_CPUS 12
520#define CONFIG_NUM_DSP_CPUS 6
Shaveta Leekha0dda3982014-02-26 16:07:37 +0530521#define CONFIG_SYS_FSL_SRDS_NUM_PLLS 2
Prabhakar Kushwaha7e8382f2013-09-03 11:20:15 +0530522#define CONFIG_SYS_FSL_CLUSTER_CLOCKS { 1, 4, 4, 4 }
York Sunbcf7b3d2012-10-08 07:44:20 +0000523#define CONFIG_SYS_NUM_FM1_DTSEC 6
524#define CONFIG_SYS_NUM_FM1_10GEC 2
Poonam Aggrwal1c859552012-12-23 19:22:33 +0000525#define CONFIG_NUM_DDR_CONTROLLERS 2
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530526#define CONFIG_USB_MAX_CONTROLLER_COUNT 1
York Sunbcf7b3d2012-10-08 07:44:20 +0000527#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 2
528#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
529#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
Liu Gangbc6486a2013-06-25 18:12:13 +0800530#define CONFIG_SYS_FSL_SRIO_LIODN
Poonam Aggrwal525ab512013-03-25 07:40:20 +0000531#else
Shaveta Leekhadbf0bc82015-01-19 12:46:54 +0530532#define CONFIG_MAX_DSP_CPUS 2
Shaveta Leekha0dda3982014-02-26 16:07:37 +0530533#define CONFIG_SYS_FSL_SRDS_NUM_PLLS 1
Poonam Aggrwal525ab512013-03-25 07:40:20 +0000534#define CONFIG_SYS_FSL_CORES_PER_CLUSTER 2
Prabhakar Kushwaha7e8382f2013-09-03 11:20:15 +0530535#define CONFIG_SYS_FSL_CLUSTER_CLOCKS { 1, 4 }
Poonam Aggrwal525ab512013-03-25 07:40:20 +0000536#define CONFIG_SYS_NUM_FM1_DTSEC 4
537#define CONFIG_SYS_NUM_FM1_10GEC 0
538#define CONFIG_NUM_DDR_CONTROLLERS 1
539#endif
York Sunbcf7b3d2012-10-08 07:44:20 +0000540
York Sund7dd06c2016-12-28 08:43:32 -0800541#elif defined(CONFIG_ARCH_T1040) || defined(CONFIG_ARCH_T1042)
York Sun46571362013-03-25 07:40:06 +0000542#define CONFIG_E5500
543#define CONFIG_FSL_CORENET /* Freescale CoreNet platform */
544#define CONFIG_SYS_FSL_QORIQ_CHASSIS2 /* Freescale Chassis generation 2 */
York Sunaa150bb2013-03-25 07:40:07 +0000545#define CONFIG_SYS_FSL_CORES_PER_CLUSTER 1
York Sun46571362013-03-25 07:40:06 +0000546#define CONFIG_SYS_FSL_QMAN_V3 /* QMAN version 3 */
York Sun2896cb72014-03-27 17:54:47 -0700547#ifdef CONFIG_SYS_FSL_DDR4
548#define CONFIG_SYS_FSL_DDRC_GEN4
549#endif
Prabhakar Kushwaha78512532013-09-03 11:19:54 +0530550#define CONFIG_SYS_FSL_NUM_CC_PLLS 2
Prabhakar Kushwaha7e8382f2013-09-03 11:20:15 +0530551#define CONFIG_SYS_FSL_CLUSTER_CLOCKS { 1, 1, 1, 1 }
Prabhakar Kushwaha78512532013-09-03 11:19:54 +0530552#define CONFIG_SYS_FSL_SRDS_1
York Sun46571362013-03-25 07:40:06 +0000553#define CONFIG_SYS_NUM_FMAN 1
554#define CONFIG_SYS_NUM_FM1_DTSEC 5
555#define CONFIG_NUM_DDR_CONTROLLERS 1
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530556#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
Prabhakar Kushwaha7e8382f2013-09-03 11:20:15 +0530557#define CONFIG_PME_PLAT_CLK_DIV 2
558#define CONFIG_SYS_PME_CLK CONFIG_PME_PLAT_CLK_DIV
Prabhakar Kushwaha78512532013-09-03 11:19:54 +0530559#define CONFIG_SYS_FSL_DDR_VER FSL_DDR_VER_5_0
560#define CONFIG_SYS_FSL_IFC_BANK_COUNT 8
Prabhakar Kushwahac4c10d12014-10-29 22:33:09 +0530561#define CONFIG_SYS_FSL_ERRATUM_A008044
York Sun46571362013-03-25 07:40:06 +0000562#define CONFIG_SYS_FMAN_V3
Prabhakar Kushwaha7e8382f2013-09-03 11:20:15 +0530563#define CONFIG_FM_PLAT_CLK_DIV 1
564#define CONFIG_SYS_FM1_CLK CONFIG_FM_PLAT_CLK_DIV
Yangbo Lu163beec2015-04-22 13:57:40 +0800565#define CONFIG_SYS_SDHC_CLK 0/* Select SDHC CLK begining from PLL1
566 per rcw field value */
567#define CONFIG_SYS_SDHC_CLK_2_PLL /* Select SDHC CLK from 2 PLLs */
Prabhakar Kushwaha78512532013-09-03 11:19:54 +0530568#define CONFIG_SYS_FM_MURAM_SIZE 0x30000
Priyanka Jaine9dcaa82013-12-17 14:25:52 +0530569#define CONFIG_SYS_FSL_SINGLE_SOURCE_CLK
Prabhakar Kushwahae6066b02013-12-11 12:49:13 +0530570#define CONFIG_SYS_FSL_TBCLK_DIV 16
York Sun46571362013-03-25 07:40:06 +0000571#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.4"
Nikhil Badola63fcdc62014-01-27 15:21:58 +0530572#define CONFIG_SYS_FSL_USB_DUAL_PHY_ENABLE
York Sun46571362013-03-25 07:40:06 +0000573#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
Haijun.Zhangedeb83a2014-03-18 17:04:23 +0800574#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
575#define ESDHCI_QUIRK_BROKEN_TIMEOUT_VALUE
Zhao Qiangb818ba22014-03-21 16:21:45 +0800576#define QE_MURAM_SIZE 0x6000UL
577#define MAX_QE_RISC 1
578#define QE_NUM_OF_SNUM 28
gaurav ranaabfd4482015-03-26 15:52:47 +0530579#define CONFIG_SYS_FSL_SFP_VER_3_0
Shengzhou Liu5a46e432015-11-20 15:52:04 +0800580#define CONFIG_SYS_FSL_ERRATUM_A008378
Shengzhou Liubdda96c2015-12-16 16:45:41 +0800581#define CONFIG_SYS_FSL_ERRATUM_A009663
Shengzhou Liu02352962016-11-15 17:15:20 +0800582#define CONFIG_SYS_FSL_ERRATUM_A009942
York Sun46571362013-03-25 07:40:06 +0000583
York Sund7dd06c2016-12-28 08:43:32 -0800584#elif defined(CONFIG_ARCH_T1024) || defined(CONFIG_ARCH_T1023)
Shengzhou Liue6fb7702014-11-24 17:11:54 +0800585#define CONFIG_E5500
586#define CONFIG_FSL_CORENET /* Freescale CoreNet platform */
587#define CONFIG_SYS_FSL_QORIQ_CHASSIS2 /* Freescale Chassis generation 2 */
588#define CONFIG_SYS_FSL_CORES_PER_CLUSTER 1
589#define CONFIG_SYS_FSL_QMAN_V3 /* QMAN version 3 */
590#define CONFIG_SYS_FMAN_V3
591#ifdef CONFIG_SYS_FSL_DDR4
592#define CONFIG_SYS_FSL_DDRC_GEN4
593#endif
Shengzhou Liue6fb7702014-11-24 17:11:54 +0800594#define CONFIG_SYS_FSL_NUM_CC_PLL 2
595#define CONFIG_SYS_FSL_CLUSTER_CLOCKS { 1, 1, 1, 1 }
Shengzhou Liue6fb7702014-11-24 17:11:54 +0800596#define CONFIG_SYS_FSL_SRDS_1
Shengzhou Liue6fb7702014-11-24 17:11:54 +0800597#define CONFIG_SYS_NUM_FMAN 1
598#define CONFIG_SYS_NUM_FM1_DTSEC 4
599#define CONFIG_SYS_NUM_FM1_10GEC 1
Shengzhou Liua1ccdff2014-11-24 17:11:57 +0800600#define CONFIG_FSL_FM_10GEC_REGULAR_NOTATION
Shengzhou Liue6fb7702014-11-24 17:11:54 +0800601#define CONFIG_NUM_DDR_CONTROLLERS 1
602#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
603#define CONFIG_SYS_FSL_DDR_VER FSL_DDR_VER_5_0
604#define CONFIG_SYS_FSL_IFC_BANK_COUNT 8
605#define CONFIG_SYS_FM1_CLK 0
Yangbo Lu163beec2015-04-22 13:57:40 +0800606#define CONFIG_SYS_SDHC_CLK 0/* Select SDHC CLK begining from PLL1
607 per rcw field value */
Shengzhou Liue6fb7702014-11-24 17:11:54 +0800608#define CONFIG_QBMAN_CLK_DIV 1
609#define CONFIG_SYS_FM_MURAM_SIZE 0x30000
610#define CONFIG_SYS_FSL_SINGLE_SOURCE_CLK
611#define CONFIG_SYS_FSL_TBCLK_DIV 16
612#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.4"
613#define CONFIG_SYS_FSL_USB_DUAL_PHY_ENABLE
614#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
Shengzhou Liue6fb7702014-11-24 17:11:54 +0800615#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
616#define ESDHCI_QUIRK_BROKEN_TIMEOUT_VALUE
617#define QE_MURAM_SIZE 0x6000UL
618#define MAX_QE_RISC 1
619#define QE_NUM_OF_SNUM 28
620#define CONFIG_SYS_FSL_SFP_VER_3_0
Shengzhou Liu5a46e432015-11-20 15:52:04 +0800621#define CONFIG_SYS_FSL_ERRATUM_A008378
Shengzhou Liubdda96c2015-12-16 16:45:41 +0800622#define CONFIG_SYS_FSL_ERRATUM_A009663
Shengzhou Liu02352962016-11-15 17:15:20 +0800623#define CONFIG_SYS_FSL_ERRATUM_A009942
Shengzhou Liue6fb7702014-11-24 17:11:54 +0800624
York Sune20c6852016-11-21 12:54:19 -0800625#elif defined(CONFIG_ARCH_T2080) || defined(CONFIG_ARCH_T2081)
Shengzhou Liuf305cd22013-11-22 17:39:10 +0800626#define CONFIG_E6500
627#define CONFIG_SYS_PPC64 /* 64-bit core */
628#define CONFIG_FSL_CORENET /* Freescale CoreNet platform */
629#define CONFIG_SYS_FSL_QORIQ_CHASSIS2 /* Freescale Chassis generation 2 */
630#define CONFIG_SYS_FSL_CORES_PER_CLUSTER 4
631#define CONFIG_SYS_FSL_NUM_CC_PLLS 2
632#define CONFIG_SYS_FSL_QMAN_V3
Shengzhou Liuf305cd22013-11-22 17:39:10 +0800633#define CONFIG_SYS_NUM_FMAN 1
634#define CONFIG_SYS_FSL_CLUSTER_CLOCKS { 1, 4, 4, 4 }
635#define CONFIG_SYS_FSL_SRDS_1
636#define CONFIG_SYS_FSL_PCI_VER_3_X
York Sune20c6852016-11-21 12:54:19 -0800637#if defined(CONFIG_ARCH_T2080)
Shengzhou Liuf305cd22013-11-22 17:39:10 +0800638#define CONFIG_SYS_NUM_FM1_DTSEC 8
639#define CONFIG_SYS_NUM_FM1_10GEC 4
640#define CONFIG_SYS_FSL_SRDS_2
641#define CONFIG_SYS_FSL_SRIO_LIODN
642#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 2
643#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
644#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
York Sune20c6852016-11-21 12:54:19 -0800645#elif defined(CONFIG_ARCH_T2081)
Shengzhou Liuf305cd22013-11-22 17:39:10 +0800646#define CONFIG_SYS_NUM_FM1_DTSEC 6
647#define CONFIG_SYS_NUM_FM1_10GEC 2
648#endif
Shengzhou Liue681c622013-12-18 10:27:55 +0800649#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
Shengzhou Liuf305cd22013-11-22 17:39:10 +0800650#define CONFIG_NUM_DDR_CONTROLLERS 1
651#define CONFIG_PME_PLAT_CLK_DIV 1
652#define CONFIG_SYS_PME_CLK CONFIG_PME_PLAT_CLK_DIV
653#define CONFIG_SYS_FM1_CLK 0
Yangbo Lu163beec2015-04-22 13:57:40 +0800654#define CONFIG_SYS_SDHC_CLK 1/* Select SDHC CLK begining from PLL2
655 per rcw field value */
656#define CONFIG_SYS_SDHC_CLK_2_PLL /* Select SDHC CLK from 2 PLLs */
Shengzhou Liuf305cd22013-11-22 17:39:10 +0800657#define CONFIG_SYS_FSL_DDR_VER FSL_DDR_VER_4_7
658#define CONFIG_SYS_FSL_IFC_BANK_COUNT 8
659#define CONFIG_SYS_FMAN_V3
660#define CONFIG_SYS_FM_MURAM_SIZE 0x28000
661#define CONFIG_SYS_FSL_TBCLK_DIV 16
662#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v3.0"
663#define CONFIG_SYS_FSL_USB_DUAL_PHY_ENABLE
664#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
York Sun7b083df2014-03-28 15:07:27 -0700665#define CONFIG_SYS_FSL_ERRATUM_A007212
Shengzhou Liuf305cd22013-11-22 17:39:10 +0800666#define CONFIG_SYS_FSL_SFP_VER_3_0
667#define CONFIG_SYS_FSL_ISBC_VER 2
Haijun.Zhangedeb83a2014-03-18 17:04:23 +0800668#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
Shengzhou Liubd70f3a2014-04-24 11:10:09 +0800669#define CONFIG_SYS_FSL_ERRATUM_A006593
Shaveta Leekha7c0f5e82014-05-28 14:18:55 +0530670#define CONFIG_SYS_FSL_ERRATUM_A007186
Shengzhou Liubd70f3a2014-04-24 11:10:09 +0800671#define CONFIG_SYS_FSL_ERRATUM_A006379
Shengzhou Liu02352962016-11-15 17:15:20 +0800672#define CONFIG_SYS_FSL_ERRATUM_A009942
Haijun.Zhangedeb83a2014-03-18 17:04:23 +0800673#define ESDHCI_QUIRK_BROKEN_TIMEOUT_VALUE
Shaveta Leekha7c0f5e82014-05-28 14:18:55 +0530674#define CONFIG_SYS_FSL_SFP_VER_3_0
Haijun.Zhangedeb83a2014-03-18 17:04:23 +0800675
Shengzhou Liuf305cd22013-11-22 17:39:10 +0800676
York Sun4119aee2016-11-15 18:44:22 -0800677#elif defined(CONFIG_ARCH_C29X)
Mingkai Hu1a258072013-07-04 17:30:36 +0800678#define CONFIG_FSL_SDHC_V2_3
Mingkai Hu1a258072013-07-04 17:30:36 +0800679#define CONFIG_TSECV2_1
Mingkai Hu1a258072013-07-04 17:30:36 +0800680#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
681#define CONFIG_NUM_DDR_CONTROLLERS 1
York Sun2896cb72014-03-27 17:54:47 -0700682#define CONFIG_SYS_FSL_DDR_VER FSL_DDR_VER_4_6
Mingkai Hu1a258072013-07-04 17:30:36 +0800683#define CONFIG_SYS_FSL_IFC_BANK_COUNT 8
York Sun0cc59072013-08-20 15:09:43 -0700684#define CONFIG_SYS_FSL_ERRATUM_A005125
Alex Porosanub4848d02016-04-29 15:17:59 +0300685#define CONFIG_SYS_FSL_MAX_NUM_OF_SEC 3
686#define CONFIG_SYS_FSL_SEC_IDX_OFFSET 0x20000
Mingkai Hu1a258072013-07-04 17:30:36 +0800687
York Sun51e91e82016-11-18 12:29:51 -0800688#elif defined(CONFIG_ARCH_QEMU_E500)
Alexander Grafc3468482014-04-11 17:09:45 +0200689
Kumar Galafe137112011-01-19 03:05:26 -0600690#else
691#error Processor type not defined for this platform
692#endif
693
York Sunaa150bb2013-03-25 07:40:07 +0000694#ifdef CONFIG_E6500
695#define CONFIG_SYS_FSL_THREADS_PER_CORE 2
696#else
697#define CONFIG_SYS_FSL_THREADS_PER_CORE 1
698#endif
699
York Sunf0626592013-09-30 09:22:09 -0700700#if !defined(CONFIG_SYS_FSL_DDRC_GEN1) && \
701 !defined(CONFIG_SYS_FSL_DDRC_GEN2) && \
York Sun2896cb72014-03-27 17:54:47 -0700702 !defined(CONFIG_SYS_FSL_DDRC_GEN3) && \
703 !defined(CONFIG_SYS_FSL_DDRC_GEN4)
York Sunf0626592013-09-30 09:22:09 -0700704#define CONFIG_SYS_FSL_DDRC_GEN3
705#endif
706
York Sun4119aee2016-11-15 18:44:22 -0800707#if !defined(CONFIG_ARCH_C29X)
Alex Porosanub4848d02016-04-29 15:17:59 +0300708#define CONFIG_SYS_FSL_MAX_NUM_OF_SEC 1
709#endif
710
Kumar Galafe137112011-01-19 03:05:26 -0600711#endif /* _ASM_MPC85xx_CONFIG_H_ */