blob: 4877b759815658777a8611b6c8af56aced16d58f [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
Ruchika Guptabb7143b2014-09-09 11:50:31 +053023#define CONFIG_SYS_FSL_SEC_BE
gaurav rana9d171da2015-02-27 09:43:49 +053024#define CONFIG_SYS_FSL_SFP_BE
gaurav rana8b5ea652015-02-27 09:46:17 +053025#define CONFIG_SYS_FSL_SEC_MON_BE
Prabhakar Kushwaha62908c22014-01-18 12:28:30 +053026
Kumar Galafe137112011-01-19 03:05:26 -060027/* Number of TLB CAM entries we have on FSL Book-E chips */
28#if defined(CONFIG_E500MC)
29#define CONFIG_SYS_NUM_TLBCAMS 64
30#elif defined(CONFIG_E500)
31#define CONFIG_SYS_NUM_TLBCAMS 16
32#endif
33
York Sun5557d6b2016-11-16 11:06:47 -080034#if defined(CONFIG_ARCH_MPC8536)
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
York Sun99825792014-05-23 13:15:00 -070037#define CONFIG_SYS_FSL_ERRATUM_A004508
York Sun0cc59072013-08-20 15:09:43 -070038#define CONFIG_SYS_FSL_ERRATUM_A005125
Kumar Galafe137112011-01-19 03:05:26 -060039
York Sun5ddce892016-11-16 11:13:06 -080040#elif defined(CONFIG_ARCH_MPC8540)
York Sunf0626592013-09-30 09:22:09 -070041#define CONFIG_SYS_FSL_DDRC_GEN1
Kumar Galafe137112011-01-19 03:05:26 -060042
York Sunbf820c02016-11-16 11:18:31 -080043#elif defined(CONFIG_ARCH_MPC8541)
York Sunf0626592013-09-30 09:22:09 -070044#define CONFIG_SYS_FSL_DDRC_GEN1
Kumar Galafe137112011-01-19 03:05:26 -060045#define CONFIG_SYS_FSL_SEC_COMPAT 2
46
York Sun5ac012a2016-11-15 13:57:15 -080047#elif defined(CONFIG_ARCH_MPC8544)
York Sunf0626592013-09-30 09:22:09 -070048#define CONFIG_SYS_FSL_DDRC_GEN2
Prabhakar Kushwaha826cf622012-08-15 04:12:43 +000049#define CONFIG_SYS_PPC_E500_DEBUG_TLB 0
Kumar Galafe137112011-01-19 03:05:26 -060050#define CONFIG_SYS_FSL_SEC_COMPAT 2
York Sun0cc59072013-08-20 15:09:43 -070051#define CONFIG_SYS_FSL_ERRATUM_A005125
Kumar Galafe137112011-01-19 03:05:26 -060052
York Sunefc49e02016-11-15 13:52:34 -080053#elif defined(CONFIG_ARCH_MPC8548)
York Sunf0626592013-09-30 09:22:09 -070054#define CONFIG_SYS_FSL_DDRC_GEN2
Prabhakar Kushwaha826cf622012-08-15 04:12:43 +000055#define CONFIG_SYS_PPC_E500_DEBUG_TLB 0
Kumar Galafe137112011-01-19 03:05:26 -060056#define CONFIG_SYS_FSL_SEC_COMPAT 2
Kumar Gala866c6fa2011-09-16 09:54:30 -050057#define CONFIG_SYS_FSL_ERRATUM_NMG_DDR120
Kumar Galaf3339d62011-10-03 08:37:57 -050058#define CONFIG_SYS_FSL_ERRATUM_NMG_LBC103
chenhui zhaoc8caa8a2011-10-03 08:38:50 -050059#define CONFIG_SYS_FSL_ERRATUM_NMG_ETSEC129
Liu Gang78deaa12012-03-08 00:33:14 +000060#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 1
61#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
62#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
63#define CONFIG_SYS_FSL_RMU
64#define CONFIG_SYS_FSL_SRIO_MSG_UNIT_NUM 2
York Sun0cc59072013-08-20 15:09:43 -070065#define CONFIG_SYS_FSL_ERRATUM_A005125
Chunhe Lan92546402013-08-16 15:10:37 +080066#define CONFIG_SYS_FSL_ERRATUM_I2C_A004447
67#define CONFIG_SYS_FSL_A004447_SVR_REV 0x00
Kumar Galafe137112011-01-19 03:05:26 -060068
York Sun32be34d2016-11-16 11:23:23 -080069#elif defined(CONFIG_ARCH_MPC8555)
York Sunf0626592013-09-30 09:22:09 -070070#define CONFIG_SYS_FSL_DDRC_GEN1
Kumar Galafe137112011-01-19 03:05:26 -060071#define CONFIG_SYS_FSL_SEC_COMPAT 2
72
York Sunb4046f42016-11-16 11:26:45 -080073#elif defined(CONFIG_ARCH_MPC8560)
York Sunf0626592013-09-30 09:22:09 -070074#define CONFIG_SYS_FSL_DDRC_GEN1
Kumar Galafe137112011-01-19 03:05:26 -060075
York Suna0d4b582016-11-16 11:32:17 -080076#elif defined(CONFIG_ARCH_MPC8568)
York Sunf0626592013-09-30 09:22:09 -070077#define CONFIG_SYS_FSL_DDRC_GEN2
Kumar Galafe137112011-01-19 03:05:26 -060078#define CONFIG_SYS_FSL_SEC_COMPAT 2
Kumar Gala52bd8152011-01-31 23:09:25 -060079#define QE_MURAM_SIZE 0x10000UL
80#define MAX_QE_RISC 2
81#define QE_NUM_OF_SNUM 28
Liu Gang78deaa12012-03-08 00:33:14 +000082#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 1
83#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
84#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
85#define CONFIG_SYS_FSL_RMU
86#define CONFIG_SYS_FSL_SRIO_MSG_UNIT_NUM 2
Kumar Galafe137112011-01-19 03:05:26 -060087
York Sun317f2ff2016-11-16 11:34:52 -080088#elif defined(CONFIG_ARCH_MPC8569)
Kumar Galafe137112011-01-19 03:05:26 -060089#define CONFIG_SYS_FSL_SEC_COMPAT 2
Kumar Gala52bd8152011-01-31 23:09:25 -060090#define QE_MURAM_SIZE 0x20000UL
91#define MAX_QE_RISC 4
92#define QE_NUM_OF_SNUM 46
Liu Gang78deaa12012-03-08 00:33:14 +000093#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 1
94#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
95#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
96#define CONFIG_SYS_FSL_RMU
97#define CONFIG_SYS_FSL_SRIO_MSG_UNIT_NUM 2
York Sun99825792014-05-23 13:15:00 -070098#define CONFIG_SYS_FSL_ERRATUM_A004508
York Sun0cc59072013-08-20 15:09:43 -070099#define CONFIG_SYS_FSL_ERRATUM_A005125
Kumar Galafe137112011-01-19 03:05:26 -0600100
York Sun018874e2016-11-16 11:39:20 -0800101#elif defined(CONFIG_ARCH_MPC8572)
Prabhakar Kushwaha826cf622012-08-15 04:12:43 +0000102#define CONFIG_SYS_PPC_E500_DEBUG_TLB 2
Kumar Galafe137112011-01-19 03:05:26 -0600103#define CONFIG_SYS_FSL_SEC_COMPAT 2
York Sun9aa857b2011-01-25 21:51:27 -0800104#define CONFIG_SYS_FSL_ERRATUM_DDR_115
York Sunc8fc9592011-01-25 22:05:49 -0800105#define CONFIG_SYS_FSL_ERRATUM_DDR111_DDR134
York Sun99825792014-05-23 13:15:00 -0700106#define CONFIG_SYS_FSL_ERRATUM_A004508
York Sun0cc59072013-08-20 15:09:43 -0700107#define CONFIG_SYS_FSL_ERRATUM_A005125
Kumar Galafe137112011-01-19 03:05:26 -0600108
York Sun24f88b32016-11-16 13:08:52 -0800109#elif defined(CONFIG_ARCH_P1010)
Priyanka Jain02449632011-02-09 09:24:10 +0530110#define CONFIG_FSL_SDHC_V2_3
Prabhakar Kushwaha3d42a962012-04-29 23:57:12 +0000111#define CONFIG_SYS_PPC_E500_DEBUG_TLB 3
Kumar Galafe137112011-01-19 03:05:26 -0600112#define CONFIG_TSECV2
113#define CONFIG_SYS_FSL_SEC_COMPAT 4
Poonam Aggrwal7373c592011-02-06 11:31:44 +0530114#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
115#define CONFIG_NUM_DDR_CONTROLLERS 1
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530116#define CONFIG_USB_MAX_CONTROLLER_COUNT 1
Mingkai Hu6f024c92013-05-16 10:18:13 +0800117#define CONFIG_SYS_FSL_IFC_BANK_COUNT 4
Kumar Gala179b1b22011-05-20 00:39:21 -0500118#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.2"
Ramneek Mehresh3fb68ee2011-03-23 15:20:43 +0530119#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
Poonam Aggrwalc7664a42011-06-30 03:00:28 -0500120#define CONFIG_SYS_FSL_ERRATUM_IFC_A002769
Poonam Aggrwalaf54a5f2011-06-29 16:32:52 +0530121#define CONFIG_SYS_FSL_ERRATUM_P1010_A003549
Shengzhou Liu097be702013-08-15 09:31:47 +0800122#define CONFIG_SYS_FSL_ERRATUM_SEC_A003571
Poonam Aggrwal46b86ca2011-07-07 20:36:47 +0530123#define CONFIG_SYS_FSL_ERRATUM_IFC_A003399
York Sun0cc59072013-08-20 15:09:43 -0700124#define CONFIG_SYS_FSL_ERRATUM_A005125
Chunhe Lan92546402013-08-16 15:10:37 +0800125#define CONFIG_SYS_FSL_ERRATUM_I2C_A004447
York Sun99825792014-05-23 13:15:00 -0700126#define CONFIG_SYS_FSL_ERRATUM_A004508
Nikhil Badola2613cfc2014-02-26 17:43:15 +0530127#define CONFIG_SYS_FSL_ERRATUM_A007075
Sriram Dash1ae7e4c2016-08-17 11:47:53 +0530128#define CONFIG_SYS_FSL_USB1_PHY_ENABLE
Suresh Gupta086f0a72014-02-26 14:29:12 +0530129#define CONFIG_SYS_FSL_ERRATUM_A006261
Nikhil Badola288542c2014-11-21 17:25:21 +0530130#define CONFIG_SYS_FSL_ERRATUM_A004477
Chunhe Lan92546402013-08-16 15:10:37 +0800131#define CONFIG_SYS_FSL_A004447_SVR_REV 0x10
Haijun.Zhang22e3c422014-01-10 13:52:19 +0800132#define CONFIG_ESDHC_HC_BLK_ADDR
Kumar Galafe137112011-01-19 03:05:26 -0600133
Kumar Galae4e69252011-02-05 13:45:07 -0600134/* P1011 is single core version of P1020 */
York Sun3680e592016-11-16 15:54:15 -0800135#elif defined(CONFIG_ARCH_P1011)
Prabhakar Kushwaha3d42a962012-04-29 23:57:12 +0000136#define CONFIG_SYS_PPC_E500_DEBUG_TLB 2
Kumar Galafe137112011-01-19 03:05:26 -0600137#define CONFIG_TSECV2
Prabhakar Kushwaha1c48e772011-02-01 15:55:58 +0000138#define CONFIG_FSL_PCIE_DISABLE_ASPM
Kumar Galafe137112011-01-19 03:05:26 -0600139#define CONFIG_SYS_FSL_SEC_COMPAT 2
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530140#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
Kumar Galae4e69252011-02-05 13:45:07 -0600141#define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
142#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
York Sun99825792014-05-23 13:15:00 -0700143#define CONFIG_SYS_FSL_ERRATUM_A004508
York Sun0cc59072013-08-20 15:09:43 -0700144#define CONFIG_SYS_FSL_ERRATUM_A005125
Kumar Galafe137112011-01-19 03:05:26 -0600145
York Sunaf2dc812016-11-18 10:02:14 -0800146#elif defined(CONFIG_ARCH_P1020)
Prabhakar Kushwaha3d42a962012-04-29 23:57:12 +0000147#define CONFIG_SYS_PPC_E500_DEBUG_TLB 2
Kumar Galafe137112011-01-19 03:05:26 -0600148#define CONFIG_TSECV2
Prabhakar Kushwaha1c48e772011-02-01 15:55:58 +0000149#define CONFIG_FSL_PCIE_DISABLE_ASPM
Kumar Galafe137112011-01-19 03:05:26 -0600150#define CONFIG_SYS_FSL_SEC_COMPAT 2
Kumar Galae4e69252011-02-05 13:45:07 -0600151#define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
152#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
York Sun99825792014-05-23 13:15:00 -0700153#define CONFIG_SYS_FSL_ERRATUM_A004508
York Sun0cc59072013-08-20 15:09:43 -0700154#define CONFIG_SYS_FSL_ERRATUM_A005125
ramneek mehresh3ca2b9a2014-05-13 15:36:07 +0530155#ifndef CONFIG_USB_MAX_CONTROLLER_COUNT
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530156#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
ramneek mehresh3ca2b9a2014-05-13 15:36:07 +0530157#endif
Kumar Galafe137112011-01-19 03:05:26 -0600158
York Sun2f924be2016-11-18 10:59:02 -0800159#elif defined(CONFIG_ARCH_P1021)
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
Kumar Galae4e69252011-02-05 13:45:07 -0600164#define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
165#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
Haiying Wang8cb2af72011-02-11 01:25:30 -0600166#define QE_MURAM_SIZE 0x6000UL
167#define MAX_QE_RISC 1
168#define QE_NUM_OF_SNUM 28
York Sun99825792014-05-23 13:15:00 -0700169#define CONFIG_SYS_FSL_ERRATUM_A004508
York Sun0cc59072013-08-20 15:09:43 -0700170#define CONFIG_SYS_FSL_ERRATUM_A005125
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530171#define CONFIG_USB_MAX_CONTROLLER_COUNT 1
Kumar Galafe137112011-01-19 03:05:26 -0600172
York Sun08672a52016-11-16 15:23:52 -0800173#elif defined(CONFIG_ARCH_P1022)
Prabhakar Kushwaha3d42a962012-04-29 23:57:12 +0000174#define CONFIG_SYS_PPC_E500_DEBUG_TLB 2
Kumar Galafe137112011-01-19 03:05:26 -0600175#define CONFIG_TSECV2
176#define CONFIG_SYS_FSL_SEC_COMPAT 2
Ying Zhangf81b37f2015-01-30 14:52:11 +0800177#define CONFIG_USB_MAX_CONTROLLER_COUNT 1
Jiang Yutang7cd05902011-01-30 17:06:20 -0600178#define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
179#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
180#define CONFIG_FSL_SATA_ERRATUM_A001
York Sun99825792014-05-23 13:15:00 -0700181#define CONFIG_SYS_FSL_ERRATUM_A004508
York Sun0cc59072013-08-20 15:09:43 -0700182#define CONFIG_SYS_FSL_ERRATUM_A005125
Nikhil Badola288542c2014-11-21 17:25:21 +0530183#define CONFIG_SYS_FSL_ERRATUM_A004477
Kumar Galafe137112011-01-19 03:05:26 -0600184
York Sunfeeaae22016-11-16 15:45:31 -0800185#elif defined(CONFIG_ARCH_P1023)
Roy Zang1de20b02011-02-03 22:14:19 -0600186#define CONFIG_SYS_FSL_SEC_COMPAT 4
187#define CONFIG_SYS_NUM_FMAN 1
188#define CONFIG_SYS_NUM_FM1_DTSEC 2
189#define CONFIG_NUM_DDR_CONTROLLERS 1
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530190#define CONFIG_USB_MAX_CONTROLLER_COUNT 1
Roy Zang1de20b02011-02-03 22:14:19 -0600191#define CONFIG_SYS_QMAN_NUM_PORTALS 3
192#define CONFIG_SYS_BMAN_NUM_PORTALS 3
Kumar Galad80dfe42011-02-04 00:43:34 -0600193#define CONFIG_SYS_FM_MURAM_SIZE 0x10000
Kumar Gala179b1b22011-05-20 00:39:21 -0500194#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.2"
York Sun99825792014-05-23 13:15:00 -0700195#define CONFIG_SYS_FSL_ERRATUM_A004508
York Sun0cc59072013-08-20 15:09:43 -0700196#define CONFIG_SYS_FSL_ERRATUM_A005125
Chunhe Lan92546402013-08-16 15:10:37 +0800197#define CONFIG_SYS_FSL_ERRATUM_I2C_A004447
198#define CONFIG_SYS_FSL_A004447_SVR_REV 0x11
Roy Zang1de20b02011-02-03 22:14:19 -0600199
Kumar Galae4e69252011-02-05 13:45:07 -0600200/* P1024 is lower end variant of P1020 */
York Sun76780b22016-11-18 11:00:57 -0800201#elif defined(CONFIG_ARCH_P1024)
Prabhakar Kushwaha3d42a962012-04-29 23:57:12 +0000202#define CONFIG_SYS_PPC_E500_DEBUG_TLB 2
Kumar Galae4e69252011-02-05 13:45:07 -0600203#define CONFIG_TSECV2
204#define CONFIG_FSL_PCIE_DISABLE_ASPM
205#define CONFIG_SYS_FSL_SEC_COMPAT 2
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530206#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
Kumar Galae4e69252011-02-05 13:45:07 -0600207#define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
208#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
York Sun99825792014-05-23 13:15:00 -0700209#define CONFIG_SYS_FSL_ERRATUM_A004508
York Sun0cc59072013-08-20 15:09:43 -0700210#define CONFIG_SYS_FSL_ERRATUM_A005125
Kumar Galae4e69252011-02-05 13:45:07 -0600211
212/* P1025 is lower end variant of P1021 */
York Sun0f577972016-11-18 11:05:38 -0800213#elif defined(CONFIG_ARCH_P1025)
Nikhil Badolab0e3ddb2015-05-21 09:07:53 +0530214#define CONFIG_USB_MAX_CONTROLLER_COUNT 1
Prabhakar Kushwaha3d42a962012-04-29 23:57:12 +0000215#define CONFIG_SYS_PPC_E500_DEBUG_TLB 2
Kumar Galae4e69252011-02-05 13:45:07 -0600216#define CONFIG_TSECV2
217#define CONFIG_FSL_PCIE_DISABLE_ASPM
218#define CONFIG_SYS_FSL_SEC_COMPAT 2
219#define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
220#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
Haiying Wang8cb2af72011-02-11 01:25:30 -0600221#define QE_MURAM_SIZE 0x6000UL
222#define MAX_QE_RISC 1
223#define QE_NUM_OF_SNUM 28
York Sun99825792014-05-23 13:15:00 -0700224#define CONFIG_SYS_FSL_ERRATUM_A004508
York Sun0cc59072013-08-20 15:09:43 -0700225#define CONFIG_SYS_FSL_ERRATUM_A005125
Kumar Galae4e69252011-02-05 13:45:07 -0600226
York Sun4b08dd72016-11-18 11:08:43 -0800227#elif defined(CONFIG_ARCH_P2020)
Prabhakar Kushwaha3d42a962012-04-29 23:57:12 +0000228#define CONFIG_SYS_PPC_E500_DEBUG_TLB 2
Kumar Galafe137112011-01-19 03:05:26 -0600229#define CONFIG_SYS_FSL_SEC_COMPAT 2
Kumar Gala7b5b4802011-01-26 01:43:15 -0600230#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
Kumar Gala9a878d52011-01-29 15:36:10 -0600231#define CONFIG_SYS_FSL_ERRATUM_ESDHC_A001
Liu Gang78deaa12012-03-08 00:33:14 +0000232#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 2
233#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
234#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
235#define CONFIG_SYS_FSL_RMU
236#define CONFIG_SYS_FSL_SRIO_MSG_UNIT_NUM 2
York Sun99825792014-05-23 13:15:00 -0700237#define CONFIG_SYS_FSL_ERRATUM_A004508
York Sun0cc59072013-08-20 15:09:43 -0700238#define CONFIG_SYS_FSL_ERRATUM_A005125
Nikhil Badola288542c2014-11-21 17:25:21 +0530239#define CONFIG_SYS_FSL_ERRATUM_A004477
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530240#define CONFIG_USB_MAX_CONTROLLER_COUNT 1
York Sun99825792014-05-23 13:15:00 -0700241
York Sun5786fca2016-11-18 11:15:21 -0800242#elif defined(CONFIG_ARCH_P2041) /* also supports P2040 */
York Sun7e0edbd2012-10-08 07:44:15 +0000243#define CONFIG_SYS_FSL_QORIQ_CHASSIS1
York Sun544f8812013-06-25 11:37:39 -0700244#define CONFIG_FSL_CORENET /* Freescale CoreNet platform */
Kumar Gala3842bb52011-02-16 02:03:29 -0600245#define CONFIG_SYS_FSL_NUM_CC_PLLS 2
Kumar Galafe137112011-01-19 03:05:26 -0600246#define CONFIG_SYS_FSL_SEC_COMPAT 4
Kumar Gala619541b2011-05-13 01:16:07 -0500247#define CONFIG_SYS_NUM_FMAN 1
248#define CONFIG_SYS_NUM_FM1_DTSEC 5
249#define CONFIG_SYS_NUM_FM1_10GEC 1
250#define CONFIG_NUM_DDR_CONTROLLERS 1
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530251#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
Kumar Gala619541b2011-05-13 01:16:07 -0500252#define CONFIG_SYS_FM_MURAM_SIZE 0x28000
253#define CONFIG_SYS_FSL_TBCLK_DIV 32
254#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.2"
255#define CONFIG_SYS_FSL_USB1_PHY_ENABLE
256#define CONFIG_SYS_FSL_USB2_PHY_ENABLE
Kumar Galaa49034f2011-04-13 00:19:10 -0500257#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
Kumar Gala619541b2011-05-13 01:16:07 -0500258#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
York Sun9ed88112012-05-07 07:26:47 +0000259#define CONFIG_SYS_FSL_ERRATUM_NMG_CPU_A011
Xuleicf4f4932013-03-11 17:56:34 +0000260#define CONFIG_SYS_FSL_ERRATUM_USB14
Kumar Gala945e59a2011-11-22 06:51:15 -0600261#define CONFIG_SYS_FSL_ERRATUM_CPU_A003999
York Sun52db64b2013-03-25 07:30:11 +0000262#define CONFIG_SYS_FSL_ERRATUM_DDR_A003
York Sundf2be192011-11-20 10:01:35 -0800263#define CONFIG_SYS_FSL_ERRATUM_DDR_A003474
Liu Gang78deaa12012-03-08 00:33:14 +0000264#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 2
265#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
266#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
Scott Wood80806962012-08-14 10:14:53 +0000267#define CONFIG_SYS_FSL_ERRATUM_A004510
268#define CONFIG_SYS_FSL_ERRATUM_A004510_SVR_REV 0x10
269#define CONFIG_SYS_FSL_ERRATUM_A004510_SVR_REV2 0x11
270#define CONFIG_SYS_FSL_CORENET_SNOOPVEC_COREONLY 0xf0000000
Liu Gang712b6622012-09-28 21:26:19 +0000271#define CONFIG_SYS_FSL_ERRATUM_SRIO_A004034
Timur Tabie3ab8c12012-10-25 12:40:00 +0000272#define CONFIG_SYS_FSL_ERRATUM_A004849
Chunhe Lan92546402013-08-16 15:10:37 +0800273#define CONFIG_SYS_FSL_ERRATUM_I2C_A004447
Suresh Gupta086f0a72014-02-26 14:29:12 +0530274#define CONFIG_SYS_FSL_ERRATUM_A006261
Chunhe Lan92546402013-08-16 15:10:37 +0800275#define CONFIG_SYS_FSL_A004447_SVR_REV 0x11
Kumar Gala619541b2011-05-13 01:16:07 -0500276
York Sundf70d062016-11-18 11:20:40 -0800277#elif defined(CONFIG_ARCH_P3041)
York Sun7e0edbd2012-10-08 07:44:15 +0000278#define CONFIG_SYS_FSL_QORIQ_CHASSIS1
York Sun544f8812013-06-25 11:37:39 -0700279#define CONFIG_FSL_CORENET /* Freescale CoreNet platform */
Kumar Gala3842bb52011-02-16 02:03:29 -0600280#define CONFIG_SYS_FSL_NUM_CC_PLLS 2
Kumar Galafe137112011-01-19 03:05:26 -0600281#define CONFIG_SYS_FSL_SEC_COMPAT 4
Kumar Gala60d95d82011-01-25 12:42:32 -0600282#define CONFIG_SYS_NUM_FMAN 1
283#define CONFIG_SYS_NUM_FM1_DTSEC 5
284#define CONFIG_SYS_NUM_FM1_10GEC 1
285#define CONFIG_NUM_DDR_CONTROLLERS 1
York Sun2896cb72014-03-27 17:54:47 -0700286#define CONFIG_SYS_FSL_DDR_VER FSL_DDR_VER_4_5
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 32
Kumar Gala179b1b22011-05-20 00:39:21 -0500289#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.2"
Roy Zang6d6a0e12011-04-13 00:08:51 -0500290#define CONFIG_SYS_FSL_USB1_PHY_ENABLE
291#define CONFIG_SYS_FSL_USB2_PHY_ENABLE
Kumar Galaa49034f2011-04-13 00:19:10 -0500292#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530293#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
Lei Xu32276202011-04-19 15:28:41 +0800294#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
York Sun53155532012-08-08 18:04:53 +0000295#define CONFIG_SYS_FSL_ERRATUM_NMG_CPU_A011
Xuleicf4f4932013-03-11 17:56:34 +0000296#define CONFIG_SYS_FSL_ERRATUM_USB14
Kumar Gala945e59a2011-11-22 06:51:15 -0600297#define CONFIG_SYS_FSL_ERRATUM_CPU_A003999
York Sun52db64b2013-03-25 07:30:11 +0000298#define CONFIG_SYS_FSL_ERRATUM_DDR_A003
York Sundf2be192011-11-20 10:01:35 -0800299#define CONFIG_SYS_FSL_ERRATUM_DDR_A003474
Liu Gang78deaa12012-03-08 00:33:14 +0000300#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 2
301#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
302#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
Scott Wood80806962012-08-14 10:14:53 +0000303#define CONFIG_SYS_FSL_ERRATUM_A004510
304#define CONFIG_SYS_FSL_ERRATUM_A004510_SVR_REV 0x10
305#define CONFIG_SYS_FSL_ERRATUM_A004510_SVR_REV2 0x11
306#define CONFIG_SYS_FSL_CORENET_SNOOPVEC_COREONLY 0xf0000000
Liu Gang712b6622012-09-28 21:26:19 +0000307#define CONFIG_SYS_FSL_ERRATUM_SRIO_A004034
Timur Tabie3ab8c12012-10-25 12:40:00 +0000308#define CONFIG_SYS_FSL_ERRATUM_A004849
York Suncca41c52013-06-25 11:37:49 -0700309#define CONFIG_SYS_FSL_ERRATUM_A005812
Chunhe Lan92546402013-08-16 15:10:37 +0800310#define CONFIG_SYS_FSL_ERRATUM_I2C_A004447
Suresh Gupta086f0a72014-02-26 14:29:12 +0530311#define CONFIG_SYS_FSL_ERRATUM_A006261
Chunhe Lan92546402013-08-16 15:10:37 +0800312#define CONFIG_SYS_FSL_A004447_SVR_REV 0x20
Kumar Galafe137112011-01-19 03:05:26 -0600313
York Sun84be8a92016-11-18 11:24:40 -0800314#elif defined(CONFIG_ARCH_P4080) /* also supports P4040 */
York Sun7e0edbd2012-10-08 07:44:15 +0000315#define CONFIG_SYS_FSL_QORIQ_CHASSIS1
York Sun544f8812013-06-25 11:37:39 -0700316#define CONFIG_FSL_CORENET /* Freescale CoreNet platform */
Kumar Gala3842bb52011-02-16 02:03:29 -0600317#define CONFIG_SYS_FSL_NUM_CC_PLLS 4
Kumar Galafe137112011-01-19 03:05:26 -0600318#define CONFIG_SYS_FSL_SEC_COMPAT 4
319#define CONFIG_SYS_NUM_FMAN 2
320#define CONFIG_SYS_NUM_FM1_DTSEC 4
321#define CONFIG_SYS_NUM_FM2_DTSEC 4
322#define CONFIG_SYS_NUM_FM1_10GEC 1
323#define CONFIG_SYS_NUM_FM2_10GEC 1
324#define CONFIG_NUM_DDR_CONTROLLERS 2
York Sun2896cb72014-03-27 17:54:47 -0700325#define CONFIG_SYS_FSL_DDR_VER FSL_DDR_VER_4_4
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530326#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
Kumar Galad80dfe42011-02-04 00:43:34 -0600327#define CONFIG_SYS_FM_MURAM_SIZE 0x28000
Kumar Galaf4fb90f2011-02-18 05:40:54 -0600328#define CONFIG_SYS_FSL_TBCLK_DIV 16
Kumar Gala179b1b22011-05-20 00:39:21 -0500329#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,p4080-pcie"
Kumar Galafe137112011-01-19 03:05:26 -0600330#define CONFIG_SYS_FSL_ERRATUM_CPC_A002
331#define CONFIG_SYS_FSL_ERRATUM_CPC_A003
York Sun922f40f2011-01-10 12:03:01 +0000332#define CONFIG_SYS_FSL_ERRATUM_DDR_A003
Kumar Galafe137112011-01-19 03:05:26 -0600333#define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
334#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
335#define CONFIG_SYS_FSL_ERRATUM_ESDHC135
Zang Roy-R6191183659922012-09-18 09:50:08 +0000336#define CONFIG_SYS_FSL_ERRATUM_ESDHC13
Kumar Galafe137112011-01-19 03:05:26 -0600337#define CONFIG_SYS_P4080_ERRATUM_CPU22
York Sun9ed88112012-05-07 07:26:47 +0000338#define CONFIG_SYS_FSL_ERRATUM_NMG_CPU_A011
Kumar Galafe137112011-01-19 03:05:26 -0600339#define CONFIG_SYS_P4080_ERRATUM_SERDES8
Emil Medveb01c81f2010-08-31 22:57:38 -0500340#define CONFIG_SYS_P4080_ERRATUM_SERDES9
Timur Tabi6a62dc42011-04-18 17:16:00 -0500341#define CONFIG_SYS_P4080_ERRATUM_SERDES_A001
Timur Tabi90f381d2011-04-01 13:19:36 -0500342#define CONFIG_SYS_P4080_ERRATUM_SERDES_A005
Kumar Gala945e59a2011-11-22 06:51:15 -0600343#define CONFIG_SYS_FSL_ERRATUM_CPU_A003999
York Sundf2be192011-11-20 10:01:35 -0800344#define CONFIG_SYS_FSL_ERRATUM_DDR_A003474
Liu Gang78deaa12012-03-08 00:33:14 +0000345#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 2
346#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
347#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
348#define CONFIG_SYS_FSL_RMU
349#define CONFIG_SYS_FSL_SRIO_MSG_UNIT_NUM 2
Scott Wood80806962012-08-14 10:14:53 +0000350#define CONFIG_SYS_FSL_ERRATUM_A004510
351#define CONFIG_SYS_FSL_ERRATUM_A004510_SVR_REV 0x20
352#define CONFIG_SYS_FSL_CORENET_SNOOPVEC_COREONLY 0xff000000
Liu Gang712b6622012-09-28 21:26:19 +0000353#define CONFIG_SYS_FSL_ERRATUM_SRIO_A004034
Timur Tabie3ab8c12012-10-25 12:40:00 +0000354#define CONFIG_SYS_FSL_ERRATUM_A004849
Timur Tabic5355dd2012-11-01 08:20:23 +0000355#define CONFIG_SYS_FSL_ERRATUM_A004580
Yuanquan Chenc48234e2012-11-26 23:49:45 +0000356#define CONFIG_SYS_P4080_ERRATUM_PCIE_A003
York Suncca41c52013-06-25 11:37:49 -0700357#define CONFIG_SYS_FSL_ERRATUM_A005812
Chunhe Lan92546402013-08-16 15:10:37 +0800358#define CONFIG_SYS_FSL_ERRATUM_I2C_A004447
Nikhil Badola2613cfc2014-02-26 17:43:15 +0530359#define CONFIG_SYS_FSL_ERRATUM_A007075
Chunhe Lan92546402013-08-16 15:10:37 +0800360#define CONFIG_SYS_FSL_A004447_SVR_REV 0x20
Kumar Galafe137112011-01-19 03:05:26 -0600361
York Sun2ed73f42016-11-18 11:30:56 -0800362#elif defined(CONFIG_ARCH_P5020) /* also supports P5010 */
York Sun2394a0f2012-10-08 07:44:30 +0000363#define CONFIG_SYS_PPC64 /* 64-bit core */
York Sun7e0edbd2012-10-08 07:44:15 +0000364#define CONFIG_SYS_FSL_QORIQ_CHASSIS1
York Sun544f8812013-06-25 11:37:39 -0700365#define CONFIG_FSL_CORENET /* Freescale CoreNet platform */
Kumar Gala3842bb52011-02-16 02:03:29 -0600366#define CONFIG_SYS_FSL_NUM_CC_PLLS 2
Kumar Galafe137112011-01-19 03:05:26 -0600367#define CONFIG_SYS_FSL_SEC_COMPAT 4
Kumar Gala60d95d82011-01-25 12:42:32 -0600368#define CONFIG_SYS_NUM_FMAN 1
369#define CONFIG_SYS_NUM_FM1_DTSEC 5
370#define CONFIG_SYS_NUM_FM1_10GEC 1
371#define CONFIG_NUM_DDR_CONTROLLERS 2
York Sun2896cb72014-03-27 17:54:47 -0700372#define CONFIG_SYS_FSL_DDR_VER FSL_DDR_VER_4_4
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530373#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
Kumar Galad80dfe42011-02-04 00:43:34 -0600374#define CONFIG_SYS_FM_MURAM_SIZE 0x28000
Kumar Galaf4fb90f2011-02-18 05:40:54 -0600375#define CONFIG_SYS_FSL_TBCLK_DIV 32
Kumar Gala179b1b22011-05-20 00:39:21 -0500376#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.2"
Roy Zang6d6a0e12011-04-13 00:08:51 -0500377#define CONFIG_SYS_FSL_USB1_PHY_ENABLE
378#define CONFIG_SYS_FSL_USB2_PHY_ENABLE
Kumar Galaa49034f2011-04-13 00:19:10 -0500379#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
Lei Xu32276202011-04-19 15:28:41 +0800380#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
Xuleicf4f4932013-03-11 17:56:34 +0000381#define CONFIG_SYS_FSL_ERRATUM_USB14
York Sun52db64b2013-03-25 07:30:11 +0000382#define CONFIG_SYS_FSL_ERRATUM_DDR_A003
York Sundf2be192011-11-20 10:01:35 -0800383#define CONFIG_SYS_FSL_ERRATUM_DDR_A003474
Liu Gang78deaa12012-03-08 00:33:14 +0000384#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 2
385#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
386#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
Scott Wood80806962012-08-14 10:14:53 +0000387#define CONFIG_SYS_FSL_ERRATUM_A004510
388#define CONFIG_SYS_FSL_ERRATUM_A004510_SVR_REV 0x10
389#define CONFIG_SYS_FSL_CORENET_SNOOPVEC_COREONLY 0xc0000000
Liu Gang712b6622012-09-28 21:26:19 +0000390#define CONFIG_SYS_FSL_ERRATUM_SRIO_A004034
Chunhe Lan92546402013-08-16 15:10:37 +0800391#define CONFIG_SYS_FSL_ERRATUM_I2C_A004447
Suresh Gupta086f0a72014-02-26 14:29:12 +0530392#define CONFIG_SYS_FSL_ERRATUM_A006261
Chunhe Lan92546402013-08-16 15:10:37 +0800393#define CONFIG_SYS_FSL_A004447_SVR_REV 0x20
Kumar Galafe137112011-01-19 03:05:26 -0600394
York Suna3c5b662016-11-18 11:39:36 -0800395#elif defined(CONFIG_ARCH_P5040)
Timur Tabi9a7b5a32012-10-23 10:48:09 +0000396#define CONFIG_SYS_PPC64
Timur Tabid5e13882012-10-05 11:09:19 +0000397#define CONFIG_SYS_FSL_QORIQ_CHASSIS1
York Sun544f8812013-06-25 11:37:39 -0700398#define CONFIG_FSL_CORENET /* Freescale CoreNet platform */
Timur Tabid5e13882012-10-05 11:09:19 +0000399#define CONFIG_SYS_FSL_NUM_CC_PLLS 3
Timur Tabid5e13882012-10-05 11:09:19 +0000400#define CONFIG_SYS_FSL_SEC_COMPAT 4
401#define CONFIG_SYS_NUM_FMAN 2
402#define CONFIG_SYS_NUM_FM1_DTSEC 5
403#define CONFIG_SYS_NUM_FM1_10GEC 1
404#define CONFIG_SYS_NUM_FM2_DTSEC 5
405#define CONFIG_SYS_NUM_FM2_10GEC 1
406#define CONFIG_NUM_DDR_CONTROLLERS 2
York Sun2896cb72014-03-27 17:54:47 -0700407#define CONFIG_SYS_FSL_DDR_VER FSL_DDR_VER_4_4
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530408#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
Timur Tabid5e13882012-10-05 11:09:19 +0000409#define CONFIG_SYS_FM_MURAM_SIZE 0x28000
410#define CONFIG_SYS_FSL_TBCLK_DIV 16
411#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.4"
Timur Tabid5e13882012-10-05 11:09:19 +0000412#define CONFIG_SYS_FSL_USB1_PHY_ENABLE
413#define CONFIG_SYS_FSL_USB2_PHY_ENABLE
414#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
415#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
Xuleicf4f4932013-03-11 17:56:34 +0000416#define CONFIG_SYS_FSL_ERRATUM_USB14
Timur Tabid5e13882012-10-05 11:09:19 +0000417#define CONFIG_SYS_FSL_ERRATUM_DDR_A003
418#define CONFIG_SYS_FSL_ERRATUM_DDR_A003474
419#define CONFIG_SYS_FSL_ERRATUM_A004699
Timur Tabid5e13882012-10-05 11:09:19 +0000420#define CONFIG_SYS_FSL_ERRATUM_A004510
421#define CONFIG_SYS_FSL_ERRATUM_A004510_SVR_REV 0x10
Suresh Gupta086f0a72014-02-26 14:29:12 +0530422#define CONFIG_SYS_FSL_ERRATUM_A006261
Timur Tabid5e13882012-10-05 11:09:19 +0000423#define CONFIG_SYS_FSL_CORENET_SNOOPVEC_COREONLY 0xf0000000
York Suncca41c52013-06-25 11:37:49 -0700424#define CONFIG_SYS_FSL_ERRATUM_A005812
Timur Tabid5e13882012-10-05 11:09:19 +0000425
York Suna80bdf72016-11-15 14:09:50 -0800426#elif defined(CONFIG_ARCH_BSC9131)
Prabhakar Kushwahabeebb882012-04-24 20:16:49 +0000427#define CONFIG_FSL_SDHC_V2_3
Prabhakar Kushwahabeebb882012-04-24 20:16:49 +0000428#define CONFIG_TSECV2
429#define CONFIG_SYS_FSL_SEC_COMPAT 4
430#define CONFIG_NUM_DDR_CONTROLLERS 1
York Sun2896cb72014-03-27 17:54:47 -0700431#define CONFIG_SYS_FSL_DDR_VER FSL_DDR_VER_4_4
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530432#define CONFIG_USB_MAX_CONTROLLER_COUNT 1
Priyanka Jainf81e8b22013-04-04 09:31:54 +0530433#define CONFIG_SYS_FSL_DSP_M2_RAM_ADDR 0xb0000000
434#define CONFIG_SYS_FSL_DSP_CCSRBAR_DEFAULT 0xff600000
Mingkai Hu6f024c92013-05-16 10:18:13 +0800435#define CONFIG_SYS_FSL_IFC_BANK_COUNT 3
Prabhakar Kushwahabeebb882012-04-24 20:16:49 +0000436#define CONFIG_NAND_FSL_IFC
Prabhakar Kushwahabeebb882012-04-24 20:16:49 +0000437#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
York Sun0cc59072013-08-20 15:09:43 -0700438#define CONFIG_SYS_FSL_ERRATUM_A005125
Nikhil Badola288542c2014-11-21 17:25:21 +0530439#define CONFIG_SYS_FSL_ERRATUM_A004477
Haijun.Zhang22e3c422014-01-10 13:52:19 +0800440#define CONFIG_ESDHC_HC_BLK_ADDR
Prabhakar Kushwahabeebb882012-04-24 20:16:49 +0000441
York Suna80bdf72016-11-15 14:09:50 -0800442#elif defined(CONFIG_ARCH_BSC9132)
Prabhakar Kushwaha92543c22013-01-23 17:59:57 +0000443#define CONFIG_SYS_PPC_E500_DEBUG_TLB 3
444#define CONFIG_FSL_SDHC_V2_3
Prabhakar Kushwaha92543c22013-01-23 17:59:57 +0000445#define CONFIG_TSECV2
446#define CONFIG_SYS_FSL_SEC_COMPAT 4
447#define CONFIG_NUM_DDR_CONTROLLERS 2
York Sun2896cb72014-03-27 17:54:47 -0700448#define CONFIG_SYS_FSL_DDR_VER FSL_DDR_VER_4_6
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530449#define CONFIG_USB_MAX_CONTROLLER_COUNT 1
Priyanka Jainc73b9032013-07-02 09:21:04 +0530450#define CONFIG_SYS_FSL_DSP_DDR_ADDR 0x40000000
451#define CONFIG_SYS_FSL_DSP_M2_RAM_ADDR 0xb0000000
452#define CONFIG_SYS_FSL_DSP_M3_RAM_ADDR 0xc0000000
453#define CONFIG_SYS_FSL_DSP_CCSRBAR_DEFAULT 0xff600000
York Sun84fa67e2013-04-18 19:31:01 -0700454#define CONFIG_SYS_FSL_IFC_BANK_COUNT 3
Prabhakar Kushwaha92543c22013-01-23 17:59:57 +0000455#define CONFIG_NAND_FSL_IFC
Prabhakar Kushwaha92543c22013-01-23 17:59:57 +0000456#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
457#define CONFIG_SYS_FSL_ESDHC_P1010_BROKEN_SDCLK
458#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.2"
York Sun0cc59072013-08-20 15:09:43 -0700459#define CONFIG_SYS_FSL_ERRATUM_A005125
Chunhe Lan7155ad52014-05-07 10:50:20 +0800460#define CONFIG_SYS_FSL_ERRATUM_A005434
Nikhil Badola288542c2014-11-21 17:25:21 +0530461#define CONFIG_SYS_FSL_ERRATUM_A004477
Chunhe Lan92546402013-08-16 15:10:37 +0800462#define CONFIG_SYS_FSL_ERRATUM_I2C_A004447
463#define CONFIG_SYS_FSL_A004447_SVR_REV 0x11
Haijun.Zhang22e3c422014-01-10 13:52:19 +0800464#define CONFIG_ESDHC_HC_BLK_ADDR
Prabhakar Kushwaha92543c22013-01-23 17:59:57 +0000465
York Sunc1845032016-11-21 13:41:30 -0800466#elif defined(CONFIG_ARCH_T4240) || defined(CONFIG_ARCH_T4160)
York Sun64fd08b2013-03-25 07:40:05 +0000467#define CONFIG_E6500
York Sun2394a0f2012-10-08 07:44:30 +0000468#define CONFIG_SYS_PPC64 /* 64-bit core */
York Sun9941a222012-10-08 07:44:19 +0000469#define CONFIG_FSL_CORENET /* Freescale CoreNet platform */
470#define CONFIG_SYS_FSL_QORIQ_CHASSIS2 /* Freescale Chassis generation 2 */
York Sunaa150bb2013-03-25 07:40:07 +0000471#define CONFIG_SYS_FSL_CORES_PER_CLUSTER 4
York Sun9941a222012-10-08 07:44:19 +0000472#define CONFIG_SYS_FSL_QMAN_V3 /* QMAN version 3 */
York Sun0fad3262016-11-21 13:35:41 -0800473#ifdef CONFIG_ARCH_T4240
Prabhakar Kushwaha7e8382f2013-09-03 11:20:15 +0530474#define CONFIG_SYS_FSL_CLUSTER_CLOCKS { 1, 1, 4 }
York Sun9941a222012-10-08 07:44:19 +0000475#define CONFIG_SYS_NUM_FM1_DTSEC 8
476#define CONFIG_SYS_NUM_FM1_10GEC 2
477#define CONFIG_SYS_NUM_FM2_DTSEC 8
478#define CONFIG_SYS_NUM_FM2_10GEC 2
479#define CONFIG_NUM_DDR_CONTROLLERS 3
Sriram Dash5467da22016-08-17 11:47:54 +0530480#define CONFIG_SYS_FSL_ERRATUM_A006261
York Sun64fd08b2013-03-25 07:40:05 +0000481#else
Shengzhou Liu26ed2d02014-04-25 16:31:22 +0800482#define CONFIG_SYS_NUM_FM1_DTSEC 6
York Sun64fd08b2013-03-25 07:40:05 +0000483#define CONFIG_SYS_NUM_FM1_10GEC 1
Shengzhou Liu26ed2d02014-04-25 16:31:22 +0800484#define CONFIG_SYS_NUM_FM2_DTSEC 8
York Sun64fd08b2013-03-25 07:40:05 +0000485#define CONFIG_SYS_NUM_FM2_10GEC 1
486#define CONFIG_NUM_DDR_CONTROLLERS 2
York Sunc7ea9242016-11-21 13:31:34 -0800487#if defined(CONFIG_ARCH_T4160)
Shengzhou Liu26ed2d02014-04-25 16:31:22 +0800488#define CONFIG_SYS_FSL_CLUSTER_CLOCKS { 1, 1 }
Shengzhou Liu26ed2d02014-04-25 16:31:22 +0800489#endif
York Sun64fd08b2013-03-25 07:40:05 +0000490#endif
York Sunfb5137a2013-03-25 07:33:29 +0000491#define CONFIG_SYS_FSL_NUM_CC_PLLS 5
Prabhakar Kushwaha873e9f02013-07-31 16:56:41 +0530492#define CONFIG_SYS_FSL_SRDS_1
493#define CONFIG_SYS_FSL_SRDS_2
York Sunfb5137a2013-03-25 07:33:29 +0000494#define CONFIG_SYS_FSL_SRDS_3
495#define CONFIG_SYS_FSL_SRDS_4
496#define CONFIG_SYS_FSL_SEC_COMPAT 4
497#define CONFIG_SYS_NUM_FMAN 2
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530498#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
Prabhakar Kushwaha7e8382f2013-09-03 11:20:15 +0530499#define CONFIG_SYS_PME_CLK 0
York Sunfb5137a2013-03-25 07:33:29 +0000500#define CONFIG_SYS_FSL_DDR_VER FSL_DDR_VER_4_7
Mingkai Hu6f024c92013-05-16 10:18:13 +0800501#define CONFIG_SYS_FSL_IFC_BANK_COUNT 8
York Sunfb5137a2013-03-25 07:33:29 +0000502#define CONFIG_SYS_FMAN_V3
Prabhakar Kushwaha7e8382f2013-09-03 11:20:15 +0530503#define CONFIG_SYS_FM1_CLK 3
504#define CONFIG_SYS_FM2_CLK 3
York Sunfb5137a2013-03-25 07:33:29 +0000505#define CONFIG_SYS_FM_MURAM_SIZE 0x60000
506#define CONFIG_SYS_FSL_TBCLK_DIV 16
507#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v3.0"
508#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 2
509#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
510#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
Liu Gangd5eca7e2013-06-25 18:12:14 +0800511#define CONFIG_SYS_FSL_SRIO_LIODN
York Sunfb5137a2013-03-25 07:33:29 +0000512#define CONFIG_SYS_FSL_USB_DUAL_PHY_ENABLE
513#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
514#define CONFIG_SYS_FSL_ERRATUM_A004468
515#define CONFIG_SYS_FSL_ERRATUM_A_004934
516#define CONFIG_SYS_FSL_ERRATUM_A005871
York Sunb1954252013-09-16 12:49:31 -0700517#define CONFIG_SYS_FSL_ERRATUM_A006379
Shaveta Leekha7c0f5e82014-05-28 14:18:55 +0530518#define CONFIG_SYS_FSL_ERRATUM_A007186
Scott Wood3f4a5c42013-05-15 17:50:13 -0500519#define CONFIG_SYS_FSL_ERRATUM_A006593
Nikhil Badola67f4b262014-10-17 09:12:07 +0530520#define CONFIG_SYS_FSL_ERRATUM_A007798
Shaveta Leekha7c0f5e82014-05-28 14:18:55 +0530521#define CONFIG_SYS_FSL_SFP_VER_3_0
York Sunfb5137a2013-03-25 07:33:29 +0000522#define CONFIG_SYS_FSL_PCI_VER_3_X
523
York Sunfda566d2016-11-18 11:56:57 -0800524#elif defined(CONFIG_ARCH_B4860) || defined(CONFIG_ARCH_B4420)
Poonam Aggrwal525ab512013-03-25 07:40:20 +0000525#define CONFIG_E6500
Poonam Aggrwal248865e2012-12-23 19:24:16 +0000526#define CONFIG_SYS_PPC64 /* 64-bit core */
527#define CONFIG_FSL_CORENET /* Freescale CoreNet platform */
528#define CONFIG_SYS_FSL_QORIQ_CHASSIS2 /* Freescale Chassis generation 2 */
529#define CONFIG_SYS_FSL_QMAN_V3 /* QMAN version 3 */
Shaveta Leekhadbf0bc82015-01-19 12:46:54 +0530530#define CONFIG_HETROGENOUS_CLUSTERS /* DSP/SC3900 core clusters */
531#define CONFIG_PPC_CLUSTER_START 0 /*Start index of ppc clusters*/
532#define CONFIG_DSP_CLUSTER_START 1 /*Start index of dsp clusters*/
Prabhakar Kushwaha873e9f02013-07-31 16:56:41 +0530533#define CONFIG_SYS_FSL_SRDS_1
534#define CONFIG_SYS_FSL_SRDS_2
Shaveta Leekhadbf0bc82015-01-19 12:46:54 +0530535#define CONFIG_SYS_MAPLE
536#define CONFIG_SYS_CPRI
537#define CONFIG_SYS_FSL_NUM_CC_PLLS 5
Poonam Aggrwal248865e2012-12-23 19:24:16 +0000538#define CONFIG_SYS_FSL_SEC_COMPAT 4
539#define CONFIG_SYS_NUM_FMAN 1
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530540#define CONFIG_USB_MAX_CONTROLLER_COUNT 1
Prabhakar Kushwaha7e8382f2013-09-03 11:20:15 +0530541#define CONFIG_SYS_FM1_CLK 0
Shaveta Leekhadbf0bc82015-01-19 12:46:54 +0530542#define CONFIG_SYS_CPRI_CLK 3
543#define CONFIG_SYS_ULB_CLK 4
544#define CONFIG_SYS_ETVPE_CLK 1
Poonam Aggrwal248865e2012-12-23 19:24:16 +0000545#define CONFIG_SYS_FSL_DDR_VER FSL_DDR_VER_4_7
Mingkai Hu6f024c92013-05-16 10:18:13 +0800546#define CONFIG_SYS_FSL_IFC_BANK_COUNT 4
Poonam Aggrwal248865e2012-12-23 19:24:16 +0000547#define CONFIG_SYS_FMAN_V3
548#define CONFIG_SYS_FM_MURAM_SIZE 0x60000
549#define CONFIG_SYS_FSL_TBCLK_DIV 16
550#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.4"
551#define CONFIG_SYS_FSL_USB1_PHY_ENABLE
552#define CONFIG_SYS_FSL_ERRATUM_A_004934
Shengzhou Liu5d9606e2013-02-27 21:56:54 +0000553#define CONFIG_SYS_FSL_ERRATUM_A005871
York Sunb1954252013-09-16 12:49:31 -0700554#define CONFIG_SYS_FSL_ERRATUM_A006379
Shaveta Leekha7c0f5e82014-05-28 14:18:55 +0530555#define CONFIG_SYS_FSL_ERRATUM_A007186
Scott Wood3f4a5c42013-05-15 17:50:13 -0500556#define CONFIG_SYS_FSL_ERRATUM_A006593
Nikhil Badola2613cfc2014-02-26 17:43:15 +0530557#define CONFIG_SYS_FSL_ERRATUM_A007075
Shaveta Leekhad11523b2014-02-26 16:08:22 +0530558#define CONFIG_SYS_FSL_ERRATUM_A006475
559#define CONFIG_SYS_FSL_ERRATUM_A006384
York Sun7b083df2014-03-28 15:07:27 -0700560#define CONFIG_SYS_FSL_ERRATUM_A007212
Nikhil Badola288542c2014-11-21 17:25:21 +0530561#define CONFIG_SYS_FSL_ERRATUM_A004477
Shaveta Leekha7c0f5e82014-05-28 14:18:55 +0530562#define CONFIG_SYS_FSL_SFP_VER_3_0
Poonam Aggrwal248865e2012-12-23 19:24:16 +0000563
York Sun68eaa9a2016-11-18 11:44:43 -0800564#ifdef CONFIG_ARCH_B4860
York Sunaa150bb2013-03-25 07:40:07 +0000565#define CONFIG_SYS_FSL_CORES_PER_CLUSTER 4
Shaveta Leekhadbf0bc82015-01-19 12:46:54 +0530566#define CONFIG_MAX_DSP_CPUS 12
567#define CONFIG_NUM_DSP_CPUS 6
Shaveta Leekha0dda3982014-02-26 16:07:37 +0530568#define CONFIG_SYS_FSL_SRDS_NUM_PLLS 2
Prabhakar Kushwaha7e8382f2013-09-03 11:20:15 +0530569#define CONFIG_SYS_FSL_CLUSTER_CLOCKS { 1, 4, 4, 4 }
York Sunbcf7b3d2012-10-08 07:44:20 +0000570#define CONFIG_SYS_NUM_FM1_DTSEC 6
571#define CONFIG_SYS_NUM_FM1_10GEC 2
Poonam Aggrwal1c859552012-12-23 19:22:33 +0000572#define CONFIG_NUM_DDR_CONTROLLERS 2
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530573#define CONFIG_USB_MAX_CONTROLLER_COUNT 1
York Sunbcf7b3d2012-10-08 07:44:20 +0000574#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 2
575#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
576#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
Liu Gangbc6486a2013-06-25 18:12:13 +0800577#define CONFIG_SYS_FSL_SRIO_LIODN
Poonam Aggrwal525ab512013-03-25 07:40:20 +0000578#else
Shaveta Leekhadbf0bc82015-01-19 12:46:54 +0530579#define CONFIG_MAX_DSP_CPUS 2
Shaveta Leekha0dda3982014-02-26 16:07:37 +0530580#define CONFIG_SYS_FSL_SRDS_NUM_PLLS 1
Poonam Aggrwal525ab512013-03-25 07:40:20 +0000581#define CONFIG_SYS_FSL_CORES_PER_CLUSTER 2
Prabhakar Kushwaha7e8382f2013-09-03 11:20:15 +0530582#define CONFIG_SYS_FSL_CLUSTER_CLOCKS { 1, 4 }
Poonam Aggrwal525ab512013-03-25 07:40:20 +0000583#define CONFIG_SYS_NUM_FM1_DTSEC 4
584#define CONFIG_SYS_NUM_FM1_10GEC 0
585#define CONFIG_NUM_DDR_CONTROLLERS 1
586#endif
York Sunbcf7b3d2012-10-08 07:44:20 +0000587
York Sun2d7b2d42016-11-18 13:36:39 -0800588#elif defined(CONFIG_ARCH_T1040) || defined(CONFIG_ARCH_T1042) ||\
Priyanka Jain94dce8b2013-10-18 12:30:21 +0530589defined(CONFIG_PPC_T1020) || defined(CONFIG_PPC_T1022)
York Sun46571362013-03-25 07:40:06 +0000590#define CONFIG_E5500
591#define CONFIG_FSL_CORENET /* Freescale CoreNet platform */
592#define CONFIG_SYS_FSL_QORIQ_CHASSIS2 /* Freescale Chassis generation 2 */
York Sunaa150bb2013-03-25 07:40:07 +0000593#define CONFIG_SYS_FSL_CORES_PER_CLUSTER 1
York Sun46571362013-03-25 07:40:06 +0000594#define CONFIG_SYS_FSL_QMAN_V3 /* QMAN version 3 */
York Sun2896cb72014-03-27 17:54:47 -0700595#ifdef CONFIG_SYS_FSL_DDR4
596#define CONFIG_SYS_FSL_DDRC_GEN4
597#endif
Prabhakar Kushwaha78512532013-09-03 11:19:54 +0530598#define CONFIG_SYS_FSL_NUM_CC_PLLS 2
Prabhakar Kushwaha7e8382f2013-09-03 11:20:15 +0530599#define CONFIG_SYS_FSL_CLUSTER_CLOCKS { 1, 1, 1, 1 }
Prabhakar Kushwaha78512532013-09-03 11:19:54 +0530600#define CONFIG_SYS_FSL_SRDS_1
601#define CONFIG_SYS_FSL_SEC_COMPAT 5
York Sun46571362013-03-25 07:40:06 +0000602#define CONFIG_SYS_NUM_FMAN 1
603#define CONFIG_SYS_NUM_FM1_DTSEC 5
604#define CONFIG_NUM_DDR_CONTROLLERS 1
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530605#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
Prabhakar Kushwaha7e8382f2013-09-03 11:20:15 +0530606#define CONFIG_PME_PLAT_CLK_DIV 2
607#define CONFIG_SYS_PME_CLK CONFIG_PME_PLAT_CLK_DIV
Prabhakar Kushwaha78512532013-09-03 11:19:54 +0530608#define CONFIG_SYS_FSL_DDR_VER FSL_DDR_VER_5_0
609#define CONFIG_SYS_FSL_IFC_BANK_COUNT 8
Prabhakar Kushwahac4c10d12014-10-29 22:33:09 +0530610#define CONFIG_SYS_FSL_ERRATUM_A008044
York Sun46571362013-03-25 07:40:06 +0000611#define CONFIG_SYS_FMAN_V3
Prabhakar Kushwaha7e8382f2013-09-03 11:20:15 +0530612#define CONFIG_FM_PLAT_CLK_DIV 1
613#define CONFIG_SYS_FM1_CLK CONFIG_FM_PLAT_CLK_DIV
Yangbo Lu163beec2015-04-22 13:57:40 +0800614#define CONFIG_SYS_SDHC_CLK 0/* Select SDHC CLK begining from PLL1
615 per rcw field value */
616#define CONFIG_SYS_SDHC_CLK_2_PLL /* Select SDHC CLK from 2 PLLs */
Prabhakar Kushwaha78512532013-09-03 11:19:54 +0530617#define CONFIG_SYS_FM_MURAM_SIZE 0x30000
Priyanka Jaine9dcaa82013-12-17 14:25:52 +0530618#define CONFIG_SYS_FSL_SINGLE_SOURCE_CLK
Prabhakar Kushwahae6066b02013-12-11 12:49:13 +0530619#define CONFIG_SYS_FSL_TBCLK_DIV 16
York Sun46571362013-03-25 07:40:06 +0000620#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.4"
Nikhil Badola63fcdc62014-01-27 15:21:58 +0530621#define CONFIG_SYS_FSL_USB_DUAL_PHY_ENABLE
York Sun46571362013-03-25 07:40:06 +0000622#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
Haijun.Zhangedeb83a2014-03-18 17:04:23 +0800623#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
624#define ESDHCI_QUIRK_BROKEN_TIMEOUT_VALUE
Zhao Qiangb818ba22014-03-21 16:21:45 +0800625#define QE_MURAM_SIZE 0x6000UL
626#define MAX_QE_RISC 1
627#define QE_NUM_OF_SNUM 28
gaurav ranaabfd4482015-03-26 15:52:47 +0530628#define CONFIG_SYS_FSL_SFP_VER_3_0
Shengzhou Liu5a46e432015-11-20 15:52:04 +0800629#define CONFIG_SYS_FSL_ERRATUM_A008378
Shengzhou Liubdda96c2015-12-16 16:45:41 +0800630#define CONFIG_SYS_FSL_ERRATUM_A009663
York Sun46571362013-03-25 07:40:06 +0000631
York Sun7d29dd62016-11-18 13:01:34 -0800632#elif defined(CONFIG_ARCH_T1024) || defined(CONFIG_ARCH_T1023) ||\
Shengzhou Liue6fb7702014-11-24 17:11:54 +0800633defined(CONFIG_PPC_T1014) || defined(CONFIG_PPC_T1013)
634#define CONFIG_E5500
635#define CONFIG_FSL_CORENET /* Freescale CoreNet platform */
636#define CONFIG_SYS_FSL_QORIQ_CHASSIS2 /* Freescale Chassis generation 2 */
637#define CONFIG_SYS_FSL_CORES_PER_CLUSTER 1
638#define CONFIG_SYS_FSL_QMAN_V3 /* QMAN version 3 */
639#define CONFIG_SYS_FMAN_V3
640#ifdef CONFIG_SYS_FSL_DDR4
641#define CONFIG_SYS_FSL_DDRC_GEN4
642#endif
Shengzhou Liue6fb7702014-11-24 17:11:54 +0800643#define CONFIG_SYS_FSL_NUM_CC_PLL 2
644#define CONFIG_SYS_FSL_CLUSTER_CLOCKS { 1, 1, 1, 1 }
Shengzhou Liue6fb7702014-11-24 17:11:54 +0800645#define CONFIG_SYS_FSL_SRDS_1
646#define CONFIG_SYS_FSL_SEC_COMPAT 5
647#define CONFIG_SYS_NUM_FMAN 1
648#define CONFIG_SYS_NUM_FM1_DTSEC 4
649#define CONFIG_SYS_NUM_FM1_10GEC 1
Shengzhou Liua1ccdff2014-11-24 17:11:57 +0800650#define CONFIG_FSL_FM_10GEC_REGULAR_NOTATION
Shengzhou Liue6fb7702014-11-24 17:11:54 +0800651#define CONFIG_NUM_DDR_CONTROLLERS 1
652#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
653#define CONFIG_SYS_FSL_DDR_VER FSL_DDR_VER_5_0
654#define CONFIG_SYS_FSL_IFC_BANK_COUNT 8
655#define CONFIG_SYS_FM1_CLK 0
Yangbo Lu163beec2015-04-22 13:57:40 +0800656#define CONFIG_SYS_SDHC_CLK 0/* Select SDHC CLK begining from PLL1
657 per rcw field value */
Shengzhou Liue6fb7702014-11-24 17:11:54 +0800658#define CONFIG_QBMAN_CLK_DIV 1
659#define CONFIG_SYS_FM_MURAM_SIZE 0x30000
660#define CONFIG_SYS_FSL_SINGLE_SOURCE_CLK
661#define CONFIG_SYS_FSL_TBCLK_DIV 16
662#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.4"
663#define CONFIG_SYS_FSL_USB_DUAL_PHY_ENABLE
664#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
Shengzhou Liue6fb7702014-11-24 17:11:54 +0800665#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
666#define ESDHCI_QUIRK_BROKEN_TIMEOUT_VALUE
667#define QE_MURAM_SIZE 0x6000UL
668#define MAX_QE_RISC 1
669#define QE_NUM_OF_SNUM 28
670#define CONFIG_SYS_FSL_SFP_VER_3_0
Shengzhou Liu5a46e432015-11-20 15:52:04 +0800671#define CONFIG_SYS_FSL_ERRATUM_A008378
Shengzhou Liubdda96c2015-12-16 16:45:41 +0800672#define CONFIG_SYS_FSL_ERRATUM_A009663
Shengzhou Liue6fb7702014-11-24 17:11:54 +0800673
York Sune20c6852016-11-21 12:54:19 -0800674#elif defined(CONFIG_ARCH_T2080) || defined(CONFIG_ARCH_T2081)
Shengzhou Liuf305cd22013-11-22 17:39:10 +0800675#define CONFIG_E6500
676#define CONFIG_SYS_PPC64 /* 64-bit core */
677#define CONFIG_FSL_CORENET /* Freescale CoreNet platform */
678#define CONFIG_SYS_FSL_QORIQ_CHASSIS2 /* Freescale Chassis generation 2 */
679#define CONFIG_SYS_FSL_CORES_PER_CLUSTER 4
680#define CONFIG_SYS_FSL_NUM_CC_PLLS 2
681#define CONFIG_SYS_FSL_QMAN_V3
Shengzhou Liuf305cd22013-11-22 17:39:10 +0800682#define CONFIG_SYS_FSL_SEC_COMPAT 4
683#define CONFIG_SYS_NUM_FMAN 1
684#define CONFIG_SYS_FSL_CLUSTER_CLOCKS { 1, 4, 4, 4 }
685#define CONFIG_SYS_FSL_SRDS_1
686#define CONFIG_SYS_FSL_PCI_VER_3_X
York Sune20c6852016-11-21 12:54:19 -0800687#if defined(CONFIG_ARCH_T2080)
Shengzhou Liuf305cd22013-11-22 17:39:10 +0800688#define CONFIG_SYS_NUM_FM1_DTSEC 8
689#define CONFIG_SYS_NUM_FM1_10GEC 4
690#define CONFIG_SYS_FSL_SRDS_2
691#define CONFIG_SYS_FSL_SRIO_LIODN
692#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 2
693#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
694#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
York Sune20c6852016-11-21 12:54:19 -0800695#elif defined(CONFIG_ARCH_T2081)
Shengzhou Liuf305cd22013-11-22 17:39:10 +0800696#define CONFIG_SYS_NUM_FM1_DTSEC 6
697#define CONFIG_SYS_NUM_FM1_10GEC 2
698#endif
Shengzhou Liue681c622013-12-18 10:27:55 +0800699#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
Shengzhou Liuf305cd22013-11-22 17:39:10 +0800700#define CONFIG_NUM_DDR_CONTROLLERS 1
701#define CONFIG_PME_PLAT_CLK_DIV 1
702#define CONFIG_SYS_PME_CLK CONFIG_PME_PLAT_CLK_DIV
703#define CONFIG_SYS_FM1_CLK 0
Yangbo Lu163beec2015-04-22 13:57:40 +0800704#define CONFIG_SYS_SDHC_CLK 1/* Select SDHC CLK begining from PLL2
705 per rcw field value */
706#define CONFIG_SYS_SDHC_CLK_2_PLL /* Select SDHC CLK from 2 PLLs */
Shengzhou Liuf305cd22013-11-22 17:39:10 +0800707#define CONFIG_SYS_FSL_DDR_VER FSL_DDR_VER_4_7
708#define CONFIG_SYS_FSL_IFC_BANK_COUNT 8
709#define CONFIG_SYS_FMAN_V3
710#define CONFIG_SYS_FM_MURAM_SIZE 0x28000
711#define CONFIG_SYS_FSL_TBCLK_DIV 16
712#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v3.0"
713#define CONFIG_SYS_FSL_USB_DUAL_PHY_ENABLE
714#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
York Sun7b083df2014-03-28 15:07:27 -0700715#define CONFIG_SYS_FSL_ERRATUM_A007212
Shengzhou Liuf305cd22013-11-22 17:39:10 +0800716#define CONFIG_SYS_FSL_SFP_VER_3_0
717#define CONFIG_SYS_FSL_ISBC_VER 2
Haijun.Zhangedeb83a2014-03-18 17:04:23 +0800718#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
Shengzhou Liubd70f3a2014-04-24 11:10:09 +0800719#define CONFIG_SYS_FSL_ERRATUM_A006593
Shaveta Leekha7c0f5e82014-05-28 14:18:55 +0530720#define CONFIG_SYS_FSL_ERRATUM_A007186
Shengzhou Liubd70f3a2014-04-24 11:10:09 +0800721#define CONFIG_SYS_FSL_ERRATUM_A006379
Haijun.Zhangedeb83a2014-03-18 17:04:23 +0800722#define ESDHCI_QUIRK_BROKEN_TIMEOUT_VALUE
Shaveta Leekha7c0f5e82014-05-28 14:18:55 +0530723#define CONFIG_SYS_FSL_SFP_VER_3_0
Haijun.Zhangedeb83a2014-03-18 17:04:23 +0800724
Shengzhou Liuf305cd22013-11-22 17:39:10 +0800725
York Sun4119aee2016-11-15 18:44:22 -0800726#elif defined(CONFIG_ARCH_C29X)
Mingkai Hu1a258072013-07-04 17:30:36 +0800727#define CONFIG_FSL_SDHC_V2_3
Mingkai Hu1a258072013-07-04 17:30:36 +0800728#define CONFIG_SYS_PPC_E500_DEBUG_TLB 3
729#define CONFIG_TSECV2_1
730#define CONFIG_SYS_FSL_SEC_COMPAT 6
731#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
732#define CONFIG_NUM_DDR_CONTROLLERS 1
York Sun2896cb72014-03-27 17:54:47 -0700733#define CONFIG_SYS_FSL_DDR_VER FSL_DDR_VER_4_6
Mingkai Hu1a258072013-07-04 17:30:36 +0800734#define CONFIG_SYS_FSL_IFC_BANK_COUNT 8
York Sun0cc59072013-08-20 15:09:43 -0700735#define CONFIG_SYS_FSL_ERRATUM_A005125
Alex Porosanub4848d02016-04-29 15:17:59 +0300736#define CONFIG_SYS_FSL_MAX_NUM_OF_SEC 3
737#define CONFIG_SYS_FSL_SEC_IDX_OFFSET 0x20000
Mingkai Hu1a258072013-07-04 17:30:36 +0800738
York Sun51e91e82016-11-18 12:29:51 -0800739#elif defined(CONFIG_ARCH_QEMU_E500)
Alexander Grafc3468482014-04-11 17:09:45 +0200740
Kumar Galafe137112011-01-19 03:05:26 -0600741#else
742#error Processor type not defined for this platform
743#endif
744
York Sunaa150bb2013-03-25 07:40:07 +0000745#ifdef CONFIG_E6500
746#define CONFIG_SYS_FSL_THREADS_PER_CORE 2
747#else
748#define CONFIG_SYS_FSL_THREADS_PER_CORE 1
749#endif
750
York Sunf0626592013-09-30 09:22:09 -0700751#if !defined(CONFIG_SYS_FSL_DDRC_GEN1) && \
752 !defined(CONFIG_SYS_FSL_DDRC_GEN2) && \
York Sun2896cb72014-03-27 17:54:47 -0700753 !defined(CONFIG_SYS_FSL_DDRC_GEN3) && \
754 !defined(CONFIG_SYS_FSL_DDRC_GEN4)
York Sunf0626592013-09-30 09:22:09 -0700755#define CONFIG_SYS_FSL_DDRC_GEN3
756#endif
757
York Sun4119aee2016-11-15 18:44:22 -0800758#if !defined(CONFIG_ARCH_C29X)
Alex Porosanub4848d02016-04-29 15:17:59 +0300759#define CONFIG_SYS_FSL_MAX_NUM_OF_SEC 1
760#endif
761
Kumar Galafe137112011-01-19 03:05:26 -0600762#endif /* _ASM_MPC85xx_CONFIG_H_ */