blob: 69e05923f68c4e55db2d2c4429d33b44d1503e28 [file] [log] [blame]
Kumar Gala243be8e2011-01-19 03:05:26 -06001/*
Prabhakar Kushwaha19a8dbd2012-04-24 20:16:49 +00002 * Copyright 2011-2012 Freescale Semiconductor, Inc.
Kumar Gala243be8e2011-01-19 03:05:26 -06003 *
Wolfgang Denk1a459662013-07-08 09:37:19 +02004 * SPDX-License-Identifier: GPL-2.0+
Kumar Gala243be8e2011-01-19 03:05:26 -06005 */
6
7#ifndef _ASM_MPC85xx_CONFIG_H_
8#define _ASM_MPC85xx_CONFIG_H_
9
10/* SoC specific defines for Freescale MPC85xx (PQ3) and QorIQ processors */
11
Timur Tabie46fedf2011-08-04 18:03:41 -050012#ifdef CONFIG_SYS_CCSRBAR_DEFAULT
13#error "Do not define CONFIG_SYS_CCSRBAR_DEFAULT in the board header file."
14#endif
15
York Sun2a5fcb82012-10-28 08:12:54 +000016/*
17 * This macro should be removed when we no longer care about backwards
18 * compatibility with older operating systems.
19 */
20#define CONFIG_PPC_SPINTABLE_COMPATIBLE
21
York Sun34e026f2014-03-27 17:54:47 -070022#include <fsl_ddrc_version.h>
23#define CONFIG_SYS_FSL_DDR_BE
York Sun57495e42012-10-08 07:44:22 +000024
Prabhakar Kushwaha1b4175d2014-01-18 12:28:30 +053025/* IP endianness */
26#define CONFIG_SYS_FSL_IFC_BE
Ruchika Gupta028dbb82014-09-09 11:50:31 +053027#define CONFIG_SYS_FSL_SEC_BE
gaurav ranaa2e225e2015-02-27 09:43:49 +053028#define CONFIG_SYS_FSL_SFP_BE
gaurav ranae04916a2015-02-27 09:46:17 +053029#define CONFIG_SYS_FSL_SEC_MON_BE
Prabhakar Kushwaha1b4175d2014-01-18 12:28:30 +053030
Kumar Gala243be8e2011-01-19 03:05:26 -060031/* Number of TLB CAM entries we have on FSL Book-E chips */
32#if defined(CONFIG_E500MC)
33#define CONFIG_SYS_NUM_TLBCAMS 64
34#elif defined(CONFIG_E500)
35#define CONFIG_SYS_NUM_TLBCAMS 16
36#endif
37
38#if defined(CONFIG_MPC8536)
39#define CONFIG_MAX_CPUS 1
40#define CONFIG_SYS_FSL_NUM_LAWS 12
Prabhakar Kushwahae4879af2012-08-15 04:12:43 +000041#define CONFIG_SYS_PPC_E500_DEBUG_TLB 1
Kumar Gala243be8e2011-01-19 03:05:26 -060042#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabie46fedf2011-08-04 18:03:41 -050043#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
York Sun9855b3b2014-05-23 13:15:00 -070044#define CONFIG_SYS_FSL_ERRATUM_A004508
York Sun954a1a42013-08-20 15:09:43 -070045#define CONFIG_SYS_FSL_ERRATUM_A005125
Kumar Gala243be8e2011-01-19 03:05:26 -060046
Wolfgang Denkd1a24f02011-02-02 22:36:10 +010047#elif defined(CONFIG_MPC8540)
Kumar Gala243be8e2011-01-19 03:05:26 -060048#define CONFIG_MAX_CPUS 1
49#define CONFIG_SYS_FSL_NUM_LAWS 8
York Sun5614e712013-09-30 09:22:09 -070050#define CONFIG_SYS_FSL_DDRC_GEN1
Timur Tabie46fedf2011-08-04 18:03:41 -050051#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Gala243be8e2011-01-19 03:05:26 -060052
Wolfgang Denkd1a24f02011-02-02 22:36:10 +010053#elif defined(CONFIG_MPC8541)
Kumar Gala243be8e2011-01-19 03:05:26 -060054#define CONFIG_MAX_CPUS 1
55#define CONFIG_SYS_FSL_NUM_LAWS 8
York Sun5614e712013-09-30 09:22:09 -070056#define CONFIG_SYS_FSL_DDRC_GEN1
Kumar Gala243be8e2011-01-19 03:05:26 -060057#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabie46fedf2011-08-04 18:03:41 -050058#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Gala243be8e2011-01-19 03:05:26 -060059
60#elif defined(CONFIG_MPC8544)
61#define CONFIG_MAX_CPUS 1
62#define CONFIG_SYS_FSL_NUM_LAWS 10
York Sun5614e712013-09-30 09:22:09 -070063#define CONFIG_SYS_FSL_DDRC_GEN2
Prabhakar Kushwahae4879af2012-08-15 04:12:43 +000064#define CONFIG_SYS_PPC_E500_DEBUG_TLB 0
Kumar Gala243be8e2011-01-19 03:05:26 -060065#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabie46fedf2011-08-04 18:03:41 -050066#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
York Sun954a1a42013-08-20 15:09:43 -070067#define CONFIG_SYS_FSL_ERRATUM_A005125
Kumar Gala243be8e2011-01-19 03:05:26 -060068
69#elif defined(CONFIG_MPC8548)
70#define CONFIG_MAX_CPUS 1
71#define CONFIG_SYS_FSL_NUM_LAWS 10
York Sun5614e712013-09-30 09:22:09 -070072#define CONFIG_SYS_FSL_DDRC_GEN2
Prabhakar Kushwahae4879af2012-08-15 04:12:43 +000073#define CONFIG_SYS_PPC_E500_DEBUG_TLB 0
Kumar Gala243be8e2011-01-19 03:05:26 -060074#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabie46fedf2011-08-04 18:03:41 -050075#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Gala5ace2992011-09-16 09:54:30 -050076#define CONFIG_SYS_FSL_ERRATUM_NMG_DDR120
Kumar Gala2b3a1cd2011-10-03 08:37:57 -050077#define CONFIG_SYS_FSL_ERRATUM_NMG_LBC103
chenhui zhaoaada81d2011-10-03 08:38:50 -050078#define CONFIG_SYS_FSL_ERRATUM_NMG_ETSEC129
Liu Gang7d67ed52012-03-08 00:33:14 +000079#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 1
80#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
81#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
82#define CONFIG_SYS_FSL_RMU
83#define CONFIG_SYS_FSL_SRIO_MSG_UNIT_NUM 2
York Sun954a1a42013-08-20 15:09:43 -070084#define CONFIG_SYS_FSL_ERRATUM_A005125
Chunhe Lan9c3f77e2013-08-16 15:10:37 +080085#define CONFIG_SYS_FSL_ERRATUM_I2C_A004447
86#define CONFIG_SYS_FSL_A004447_SVR_REV 0x00
Kumar Gala243be8e2011-01-19 03:05:26 -060087
88#elif defined(CONFIG_MPC8555)
89#define CONFIG_MAX_CPUS 1
90#define CONFIG_SYS_FSL_NUM_LAWS 8
York Sun5614e712013-09-30 09:22:09 -070091#define CONFIG_SYS_FSL_DDRC_GEN1
Kumar Gala243be8e2011-01-19 03:05:26 -060092#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabie46fedf2011-08-04 18:03:41 -050093#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Gala243be8e2011-01-19 03:05:26 -060094
95#elif defined(CONFIG_MPC8560)
96#define CONFIG_MAX_CPUS 1
97#define CONFIG_SYS_FSL_NUM_LAWS 8
York Sun5614e712013-09-30 09:22:09 -070098#define CONFIG_SYS_FSL_DDRC_GEN1
Timur Tabie46fedf2011-08-04 18:03:41 -050099#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Gala243be8e2011-01-19 03:05:26 -0600100
101#elif defined(CONFIG_MPC8568)
102#define CONFIG_MAX_CPUS 1
103#define CONFIG_SYS_FSL_NUM_LAWS 10
York Sun5614e712013-09-30 09:22:09 -0700104#define CONFIG_SYS_FSL_DDRC_GEN2
Kumar Gala243be8e2011-01-19 03:05:26 -0600105#define CONFIG_SYS_FSL_SEC_COMPAT 2
Kumar Galafdb4dad2011-01-31 23:09:25 -0600106#define QE_MURAM_SIZE 0x10000UL
107#define MAX_QE_RISC 2
108#define QE_NUM_OF_SNUM 28
Timur Tabie46fedf2011-08-04 18:03:41 -0500109#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Liu Gang7d67ed52012-03-08 00:33:14 +0000110#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 1
111#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
112#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
113#define CONFIG_SYS_FSL_RMU
114#define CONFIG_SYS_FSL_SRIO_MSG_UNIT_NUM 2
Kumar Gala243be8e2011-01-19 03:05:26 -0600115
116#elif defined(CONFIG_MPC8569)
117#define CONFIG_MAX_CPUS 1
118#define CONFIG_SYS_FSL_NUM_LAWS 10
119#define CONFIG_SYS_FSL_SEC_COMPAT 2
Kumar Galafdb4dad2011-01-31 23:09:25 -0600120#define QE_MURAM_SIZE 0x20000UL
121#define MAX_QE_RISC 4
122#define QE_NUM_OF_SNUM 46
Timur Tabie46fedf2011-08-04 18:03:41 -0500123#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Liu Gang7d67ed52012-03-08 00:33:14 +0000124#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 1
125#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
126#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
127#define CONFIG_SYS_FSL_RMU
128#define CONFIG_SYS_FSL_SRIO_MSG_UNIT_NUM 2
York Sun9855b3b2014-05-23 13:15:00 -0700129#define CONFIG_SYS_FSL_ERRATUM_A004508
York Sun954a1a42013-08-20 15:09:43 -0700130#define CONFIG_SYS_FSL_ERRATUM_A005125
Kumar Gala243be8e2011-01-19 03:05:26 -0600131
132#elif defined(CONFIG_MPC8572)
133#define CONFIG_MAX_CPUS 2
134#define CONFIG_SYS_FSL_NUM_LAWS 12
Prabhakar Kushwahae4879af2012-08-15 04:12:43 +0000135#define CONFIG_SYS_PPC_E500_DEBUG_TLB 2
Kumar Gala243be8e2011-01-19 03:05:26 -0600136#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabie46fedf2011-08-04 18:03:41 -0500137#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
York Suneb0aff72011-01-25 21:51:27 -0800138#define CONFIG_SYS_FSL_ERRATUM_DDR_115
York Sun91671912011-01-25 22:05:49 -0800139#define CONFIG_SYS_FSL_ERRATUM_DDR111_DDR134
York Sun9855b3b2014-05-23 13:15:00 -0700140#define CONFIG_SYS_FSL_ERRATUM_A004508
York Sun954a1a42013-08-20 15:09:43 -0700141#define CONFIG_SYS_FSL_ERRATUM_A005125
Kumar Gala243be8e2011-01-19 03:05:26 -0600142
143#elif defined(CONFIG_P1010)
144#define CONFIG_MAX_CPUS 1
Priyanka Jain32c8cfb2011-02-09 09:24:10 +0530145#define CONFIG_FSL_SDHC_V2_3
Kumar Gala243be8e2011-01-19 03:05:26 -0600146#define CONFIG_SYS_FSL_NUM_LAWS 12
Prabhakar Kushwahaad75d442012-04-29 23:57:12 +0000147#define CONFIG_SYS_PPC_E500_DEBUG_TLB 3
Kumar Gala243be8e2011-01-19 03:05:26 -0600148#define CONFIG_TSECV2
149#define CONFIG_SYS_FSL_SEC_COMPAT 4
Poonam Aggrwal1fbf3482011-02-06 11:31:44 +0530150#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
151#define CONFIG_NUM_DDR_CONTROLLERS 1
ramneek mehreshf1810d82013-10-18 17:40:17 +0530152#define CONFIG_USB_MAX_CONTROLLER_COUNT 1
Mingkai Hu362ee042013-05-16 10:18:13 +0800153#define CONFIG_SYS_FSL_IFC_BANK_COUNT 4
Poonam Aggrwal1fbf3482011-02-06 11:31:44 +0530154#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Gala8f290842011-05-20 00:39:21 -0500155#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.2"
Ramneek Mehresh1b719e62011-03-23 15:20:43 +0530156#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
Poonam Aggrwal42aee642011-06-30 03:00:28 -0500157#define CONFIG_SYS_FSL_ERRATUM_IFC_A002769
Poonam Aggrwalfb855f42011-06-29 16:32:52 +0530158#define CONFIG_SYS_FSL_ERRATUM_P1010_A003549
Shengzhou Liu424bf942013-08-15 09:31:47 +0800159#define CONFIG_SYS_FSL_ERRATUM_SEC_A003571
Poonam Aggrwalbc6bbd62011-07-07 20:36:47 +0530160#define CONFIG_SYS_FSL_ERRATUM_IFC_A003399
York Sun954a1a42013-08-20 15:09:43 -0700161#define CONFIG_SYS_FSL_ERRATUM_A005125
Chunhe Lan9c3f77e2013-08-16 15:10:37 +0800162#define CONFIG_SYS_FSL_ERRATUM_I2C_A004447
York Sun9855b3b2014-05-23 13:15:00 -0700163#define CONFIG_SYS_FSL_ERRATUM_A004508
Nikhil Badola11856912014-02-26 17:43:15 +0530164#define CONFIG_SYS_FSL_ERRATUM_A007075
Suresh Gupta9c641a82014-02-26 14:29:12 +0530165#define CONFIG_SYS_FSL_ERRATUM_A006261
Chunhe Lan9c3f77e2013-08-16 15:10:37 +0800166#define CONFIG_SYS_FSL_A004447_SVR_REV 0x10
Haijun.Zhangf28bea02014-01-10 13:52:19 +0800167#define CONFIG_ESDHC_HC_BLK_ADDR
Kumar Gala243be8e2011-01-19 03:05:26 -0600168
Kumar Gala093cffb2011-02-05 13:45:07 -0600169/* P1011 is single core version of P1020 */
Kumar Gala243be8e2011-01-19 03:05:26 -0600170#elif defined(CONFIG_P1011)
171#define CONFIG_MAX_CPUS 1
172#define CONFIG_SYS_FSL_NUM_LAWS 12
Prabhakar Kushwahaad75d442012-04-29 23:57:12 +0000173#define CONFIG_SYS_PPC_E500_DEBUG_TLB 2
Kumar Gala243be8e2011-01-19 03:05:26 -0600174#define CONFIG_TSECV2
Prabhakar Kushwahab03a4662011-02-01 15:55:58 +0000175#define CONFIG_FSL_PCIE_DISABLE_ASPM
Kumar Gala243be8e2011-01-19 03:05:26 -0600176#define CONFIG_SYS_FSL_SEC_COMPAT 2
ramneek mehreshf1810d82013-10-18 17:40:17 +0530177#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
Timur Tabie46fedf2011-08-04 18:03:41 -0500178#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Gala093cffb2011-02-05 13:45:07 -0600179#define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
180#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
York Sun9855b3b2014-05-23 13:15:00 -0700181#define CONFIG_SYS_FSL_ERRATUM_A004508
York Sun954a1a42013-08-20 15:09:43 -0700182#define CONFIG_SYS_FSL_ERRATUM_A005125
Kumar Gala243be8e2011-01-19 03:05:26 -0600183
Kumar Gala093cffb2011-02-05 13:45:07 -0600184/* P1012 is single core version of P1021 */
Kumar Gala243be8e2011-01-19 03:05:26 -0600185#elif defined(CONFIG_P1012)
186#define CONFIG_MAX_CPUS 1
187#define CONFIG_SYS_FSL_NUM_LAWS 12
ramneek mehreshf1810d82013-10-18 17:40:17 +0530188#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
Prabhakar Kushwahaad75d442012-04-29 23:57:12 +0000189#define CONFIG_SYS_PPC_E500_DEBUG_TLB 2
Kumar Gala243be8e2011-01-19 03:05:26 -0600190#define CONFIG_TSECV2
Prabhakar Kushwahab03a4662011-02-01 15:55:58 +0000191#define CONFIG_FSL_PCIE_DISABLE_ASPM
Kumar Gala243be8e2011-01-19 03:05:26 -0600192#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabie46fedf2011-08-04 18:03:41 -0500193#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Gala093cffb2011-02-05 13:45:07 -0600194#define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
195#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
Haiying Wanga52d2f82011-02-11 01:25:30 -0600196#define QE_MURAM_SIZE 0x6000UL
197#define MAX_QE_RISC 1
198#define QE_NUM_OF_SNUM 28
York Sun9855b3b2014-05-23 13:15:00 -0700199#define CONFIG_SYS_FSL_ERRATUM_A004508
York Sun954a1a42013-08-20 15:09:43 -0700200#define CONFIG_SYS_FSL_ERRATUM_A005125
Kumar Gala243be8e2011-01-19 03:05:26 -0600201
Kumar Gala093cffb2011-02-05 13:45:07 -0600202/* P1013 is single core version of P1022 */
Kumar Gala243be8e2011-01-19 03:05:26 -0600203#elif defined(CONFIG_P1013)
204#define CONFIG_MAX_CPUS 1
205#define CONFIG_SYS_FSL_NUM_LAWS 12
Ying Zhang703f5682015-01-30 14:52:11 +0800206#define CONFIG_USB_MAX_CONTROLLER_COUNT 1
Prabhakar Kushwahaad75d442012-04-29 23:57:12 +0000207#define CONFIG_SYS_PPC_E500_DEBUG_TLB 2
Kumar Gala243be8e2011-01-19 03:05:26 -0600208#define CONFIG_TSECV2
209#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabie46fedf2011-08-04 18:03:41 -0500210#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Jiang Yutang2d7534a2011-01-30 17:06:20 -0600211#define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
212#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
213#define CONFIG_FSL_SATA_ERRATUM_A001
York Sun9855b3b2014-05-23 13:15:00 -0700214#define CONFIG_SYS_FSL_ERRATUM_A004508
York Sun954a1a42013-08-20 15:09:43 -0700215#define CONFIG_SYS_FSL_ERRATUM_A005125
Kumar Gala243be8e2011-01-19 03:05:26 -0600216
217#elif defined(CONFIG_P1014)
218#define CONFIG_MAX_CPUS 1
Priyanka Jain32c8cfb2011-02-09 09:24:10 +0530219#define CONFIG_FSL_SDHC_V2_3
Kumar Gala243be8e2011-01-19 03:05:26 -0600220#define CONFIG_SYS_FSL_NUM_LAWS 12
Prabhakar Kushwahaad75d442012-04-29 23:57:12 +0000221#define CONFIG_SYS_PPC_E500_DEBUG_TLB 3
Kumar Gala243be8e2011-01-19 03:05:26 -0600222#define CONFIG_TSECV2
223#define CONFIG_SYS_FSL_SEC_COMPAT 4
Poonam Aggrwal1fbf3482011-02-06 11:31:44 +0530224#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
225#define CONFIG_NUM_DDR_CONTROLLERS 1
ramneek mehreshf1810d82013-10-18 17:40:17 +0530226#define CONFIG_USB_MAX_CONTROLLER_COUNT 1
Poonam Aggrwal1fbf3482011-02-06 11:31:44 +0530227#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Ramneek Mehresh1b719e62011-03-23 15:20:43 +0530228#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
Poonam Aggrwal42aee642011-06-30 03:00:28 -0500229#define CONFIG_SYS_FSL_ERRATUM_IFC_A002769
Poonam Aggrwalfb855f42011-06-29 16:32:52 +0530230#define CONFIG_SYS_FSL_ERRATUM_P1010_A003549
Poonam Aggrwalbc6bbd62011-07-07 20:36:47 +0530231#define CONFIG_SYS_FSL_ERRATUM_IFC_A003399
York Sun9855b3b2014-05-23 13:15:00 -0700232#define CONFIG_SYS_FSL_ERRATUM_A004508
Kumar Gala243be8e2011-01-19 03:05:26 -0600233
Kumar Gala093cffb2011-02-05 13:45:07 -0600234/* P1017 is single core version of P1023 */
Roy Zang67a719d2011-02-03 22:14:19 -0600235#elif defined(CONFIG_P1017)
236#define CONFIG_MAX_CPUS 1
237#define CONFIG_SYS_FSL_NUM_LAWS 12
238#define CONFIG_SYS_FSL_SEC_COMPAT 4
239#define CONFIG_SYS_NUM_FMAN 1
240#define CONFIG_SYS_NUM_FM1_DTSEC 2
241#define CONFIG_NUM_DDR_CONTROLLERS 1
ramneek mehreshf1810d82013-10-18 17:40:17 +0530242#define CONFIG_USB_MAX_CONTROLLER_COUNT 1
Roy Zang67a719d2011-02-03 22:14:19 -0600243#define CONFIG_SYS_QMAN_NUM_PORTALS 3
244#define CONFIG_SYS_BMAN_NUM_PORTALS 3
Kumar Galac657d892011-02-04 00:43:34 -0600245#define CONFIG_SYS_FM_MURAM_SIZE 0x10000
Kumar Gala8f290842011-05-20 00:39:21 -0500246#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.2"
Timur Tabie46fedf2011-08-04 18:03:41 -0500247#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff600000
York Sun9855b3b2014-05-23 13:15:00 -0700248#define CONFIG_SYS_FSL_ERRATUM_A004508
York Sun954a1a42013-08-20 15:09:43 -0700249#define CONFIG_SYS_FSL_ERRATUM_A005125
Roy Zang67a719d2011-02-03 22:14:19 -0600250
Kumar Gala243be8e2011-01-19 03:05:26 -0600251#elif defined(CONFIG_P1020)
252#define CONFIG_MAX_CPUS 2
253#define CONFIG_SYS_FSL_NUM_LAWS 12
Prabhakar Kushwahaad75d442012-04-29 23:57:12 +0000254#define CONFIG_SYS_PPC_E500_DEBUG_TLB 2
Kumar Gala243be8e2011-01-19 03:05:26 -0600255#define CONFIG_TSECV2
Prabhakar Kushwahab03a4662011-02-01 15:55:58 +0000256#define CONFIG_FSL_PCIE_DISABLE_ASPM
Kumar Gala243be8e2011-01-19 03:05:26 -0600257#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabie46fedf2011-08-04 18:03:41 -0500258#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Gala093cffb2011-02-05 13:45:07 -0600259#define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
260#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
York Sun9855b3b2014-05-23 13:15:00 -0700261#define CONFIG_SYS_FSL_ERRATUM_A004508
York Sun954a1a42013-08-20 15:09:43 -0700262#define CONFIG_SYS_FSL_ERRATUM_A005125
ramneek mehresh80ba6a62014-05-13 15:36:07 +0530263#ifndef CONFIG_USB_MAX_CONTROLLER_COUNT
ramneek mehreshf1810d82013-10-18 17:40:17 +0530264#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
ramneek mehresh80ba6a62014-05-13 15:36:07 +0530265#endif
Kumar Gala243be8e2011-01-19 03:05:26 -0600266
267#elif defined(CONFIG_P1021)
268#define CONFIG_MAX_CPUS 2
269#define CONFIG_SYS_FSL_NUM_LAWS 12
Prabhakar Kushwahaad75d442012-04-29 23:57:12 +0000270#define CONFIG_SYS_PPC_E500_DEBUG_TLB 2
Kumar Gala243be8e2011-01-19 03:05:26 -0600271#define CONFIG_TSECV2
Prabhakar Kushwahab03a4662011-02-01 15:55:58 +0000272#define CONFIG_FSL_PCIE_DISABLE_ASPM
Kumar Gala243be8e2011-01-19 03:05:26 -0600273#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabie46fedf2011-08-04 18:03:41 -0500274#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Gala093cffb2011-02-05 13:45:07 -0600275#define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
276#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
Haiying Wanga52d2f82011-02-11 01:25:30 -0600277#define QE_MURAM_SIZE 0x6000UL
278#define MAX_QE_RISC 1
279#define QE_NUM_OF_SNUM 28
York Sun9855b3b2014-05-23 13:15:00 -0700280#define CONFIG_SYS_FSL_ERRATUM_A004508
York Sun954a1a42013-08-20 15:09:43 -0700281#define CONFIG_SYS_FSL_ERRATUM_A005125
ramneek mehreshf1810d82013-10-18 17:40:17 +0530282#define CONFIG_USB_MAX_CONTROLLER_COUNT 1
Kumar Gala243be8e2011-01-19 03:05:26 -0600283
284#elif defined(CONFIG_P1022)
285#define CONFIG_MAX_CPUS 2
286#define CONFIG_SYS_FSL_NUM_LAWS 12
Prabhakar Kushwahaad75d442012-04-29 23:57:12 +0000287#define CONFIG_SYS_PPC_E500_DEBUG_TLB 2
Kumar Gala243be8e2011-01-19 03:05:26 -0600288#define CONFIG_TSECV2
289#define CONFIG_SYS_FSL_SEC_COMPAT 2
Ying Zhang703f5682015-01-30 14:52:11 +0800290#define CONFIG_USB_MAX_CONTROLLER_COUNT 1
Timur Tabie46fedf2011-08-04 18:03:41 -0500291#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Jiang Yutang2d7534a2011-01-30 17:06:20 -0600292#define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
293#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
294#define CONFIG_FSL_SATA_ERRATUM_A001
York Sun9855b3b2014-05-23 13:15:00 -0700295#define CONFIG_SYS_FSL_ERRATUM_A004508
York Sun954a1a42013-08-20 15:09:43 -0700296#define CONFIG_SYS_FSL_ERRATUM_A005125
Kumar Gala243be8e2011-01-19 03:05:26 -0600297
Roy Zang67a719d2011-02-03 22:14:19 -0600298#elif defined(CONFIG_P1023)
299#define CONFIG_MAX_CPUS 2
300#define CONFIG_SYS_FSL_NUM_LAWS 12
301#define CONFIG_SYS_FSL_SEC_COMPAT 4
302#define CONFIG_SYS_NUM_FMAN 1
303#define CONFIG_SYS_NUM_FM1_DTSEC 2
304#define CONFIG_NUM_DDR_CONTROLLERS 1
ramneek mehreshf1810d82013-10-18 17:40:17 +0530305#define CONFIG_USB_MAX_CONTROLLER_COUNT 1
Roy Zang67a719d2011-02-03 22:14:19 -0600306#define CONFIG_SYS_QMAN_NUM_PORTALS 3
307#define CONFIG_SYS_BMAN_NUM_PORTALS 3
Kumar Galac657d892011-02-04 00:43:34 -0600308#define CONFIG_SYS_FM_MURAM_SIZE 0x10000
Kumar Gala8f290842011-05-20 00:39:21 -0500309#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.2"
Timur Tabie46fedf2011-08-04 18:03:41 -0500310#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff600000
York Sun9855b3b2014-05-23 13:15:00 -0700311#define CONFIG_SYS_FSL_ERRATUM_A004508
York Sun954a1a42013-08-20 15:09:43 -0700312#define CONFIG_SYS_FSL_ERRATUM_A005125
Chunhe Lan9c3f77e2013-08-16 15:10:37 +0800313#define CONFIG_SYS_FSL_ERRATUM_I2C_A004447
314#define CONFIG_SYS_FSL_A004447_SVR_REV 0x11
Roy Zang67a719d2011-02-03 22:14:19 -0600315
Kumar Gala093cffb2011-02-05 13:45:07 -0600316/* P1024 is lower end variant of P1020 */
317#elif defined(CONFIG_P1024)
318#define CONFIG_MAX_CPUS 2
319#define CONFIG_SYS_FSL_NUM_LAWS 12
Prabhakar Kushwahaad75d442012-04-29 23:57:12 +0000320#define CONFIG_SYS_PPC_E500_DEBUG_TLB 2
Kumar Gala093cffb2011-02-05 13:45:07 -0600321#define CONFIG_TSECV2
322#define CONFIG_FSL_PCIE_DISABLE_ASPM
323#define CONFIG_SYS_FSL_SEC_COMPAT 2
ramneek mehreshf1810d82013-10-18 17:40:17 +0530324#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
Timur Tabie46fedf2011-08-04 18:03:41 -0500325#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Gala093cffb2011-02-05 13:45:07 -0600326#define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
327#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
York Sun9855b3b2014-05-23 13:15:00 -0700328#define CONFIG_SYS_FSL_ERRATUM_A004508
York Sun954a1a42013-08-20 15:09:43 -0700329#define CONFIG_SYS_FSL_ERRATUM_A005125
Kumar Gala093cffb2011-02-05 13:45:07 -0600330
331/* P1025 is lower end variant of P1021 */
332#elif defined(CONFIG_P1025)
333#define CONFIG_MAX_CPUS 2
334#define CONFIG_SYS_FSL_NUM_LAWS 12
ramneek mehreshf1810d82013-10-18 17:40:17 +0530335#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
Prabhakar Kushwahaad75d442012-04-29 23:57:12 +0000336#define CONFIG_SYS_PPC_E500_DEBUG_TLB 2
Kumar Gala093cffb2011-02-05 13:45:07 -0600337#define CONFIG_TSECV2
338#define CONFIG_FSL_PCIE_DISABLE_ASPM
339#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabie46fedf2011-08-04 18:03:41 -0500340#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Gala093cffb2011-02-05 13:45:07 -0600341#define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
342#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
Haiying Wanga52d2f82011-02-11 01:25:30 -0600343#define QE_MURAM_SIZE 0x6000UL
344#define MAX_QE_RISC 1
345#define QE_NUM_OF_SNUM 28
York Sun9855b3b2014-05-23 13:15:00 -0700346#define CONFIG_SYS_FSL_ERRATUM_A004508
York Sun954a1a42013-08-20 15:09:43 -0700347#define CONFIG_SYS_FSL_ERRATUM_A005125
Kumar Gala093cffb2011-02-05 13:45:07 -0600348
349/* P2010 is single core version of P2020 */
Kumar Gala243be8e2011-01-19 03:05:26 -0600350#elif defined(CONFIG_P2010)
351#define CONFIG_MAX_CPUS 1
352#define CONFIG_SYS_FSL_NUM_LAWS 12
Prabhakar Kushwahaad75d442012-04-29 23:57:12 +0000353#define CONFIG_SYS_PPC_E500_DEBUG_TLB 2
Kumar Gala243be8e2011-01-19 03:05:26 -0600354#define CONFIG_SYS_FSL_SEC_COMPAT 2
ramneek mehreshf1810d82013-10-18 17:40:17 +0530355#define CONFIG_USB_MAX_CONTROLLER_COUNT 1
Timur Tabie46fedf2011-08-04 18:03:41 -0500356#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Gala6e7f0bc02011-01-26 01:43:15 -0600357#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
Kumar Gala5103a032011-01-29 15:36:10 -0600358#define CONFIG_SYS_FSL_ERRATUM_ESDHC_A001
York Sun9855b3b2014-05-23 13:15:00 -0700359#define CONFIG_SYS_FSL_ERRATUM_A004508
York Sun954a1a42013-08-20 15:09:43 -0700360#define CONFIG_SYS_FSL_ERRATUM_A005125
Kumar Gala243be8e2011-01-19 03:05:26 -0600361
362#elif defined(CONFIG_P2020)
363#define CONFIG_MAX_CPUS 2
364#define CONFIG_SYS_FSL_NUM_LAWS 12
Prabhakar Kushwahaad75d442012-04-29 23:57:12 +0000365#define CONFIG_SYS_PPC_E500_DEBUG_TLB 2
Kumar Gala243be8e2011-01-19 03:05:26 -0600366#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabie46fedf2011-08-04 18:03:41 -0500367#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Gala6e7f0bc02011-01-26 01:43:15 -0600368#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
Kumar Gala5103a032011-01-29 15:36:10 -0600369#define CONFIG_SYS_FSL_ERRATUM_ESDHC_A001
Liu Gang7d67ed52012-03-08 00:33:14 +0000370#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 2
371#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
372#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
373#define CONFIG_SYS_FSL_RMU
374#define CONFIG_SYS_FSL_SRIO_MSG_UNIT_NUM 2
York Sun9855b3b2014-05-23 13:15:00 -0700375#define CONFIG_SYS_FSL_ERRATUM_A004508
York Sun954a1a42013-08-20 15:09:43 -0700376#define CONFIG_SYS_FSL_ERRATUM_A005125
ramneek mehreshf1810d82013-10-18 17:40:17 +0530377#define CONFIG_USB_MAX_CONTROLLER_COUNT 1
York Sun9855b3b2014-05-23 13:15:00 -0700378
Scott Wood3e978f52012-08-14 10:14:51 +0000379#elif defined(CONFIG_PPC_P2041) /* also supports P2040 */
York Sund1001e32012-10-08 07:44:15 +0000380#define CONFIG_SYS_FSL_QORIQ_CHASSIS1
York Sund2ab4bb2013-06-25 11:37:39 -0700381#define CONFIG_FSL_CORENET /* Freescale CoreNet platform */
Kumar Gala1f979872011-05-13 01:16:07 -0500382#define CONFIG_MAX_CPUS 4
383#define CONFIG_SYS_FSL_NUM_CC_PLLS 2
384#define CONFIG_SYS_FSL_NUM_LAWS 32
385#define CONFIG_SYS_FSL_SEC_COMPAT 4
386#define CONFIG_SYS_NUM_FMAN 1
387#define CONFIG_SYS_NUM_FM1_DTSEC 5
388#define CONFIG_SYS_NUM_FM1_10GEC 1
389#define CONFIG_NUM_DDR_CONTROLLERS 1
ramneek mehreshf1810d82013-10-18 17:40:17 +0530390#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
Kumar Gala1f979872011-05-13 01:16:07 -0500391#define CONFIG_SYS_FM_MURAM_SIZE 0x28000
392#define CONFIG_SYS_FSL_TBCLK_DIV 32
393#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.2"
Timur Tabie46fedf2011-08-04 18:03:41 -0500394#define CONFIG_SYS_CCSRBAR_DEFAULT 0xfe000000
Kumar Gala1f979872011-05-13 01:16:07 -0500395#define CONFIG_SYS_FSL_USB1_PHY_ENABLE
396#define CONFIG_SYS_FSL_USB2_PHY_ENABLE
Kumar Galab6c37222011-04-13 00:19:10 -0500397#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
Kumar Gala1f979872011-05-13 01:16:07 -0500398#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
York Sun5e23ab02012-05-07 07:26:47 +0000399#define CONFIG_SYS_FSL_ERRATUM_NMG_CPU_A011
Xulei99d7b0a2013-03-11 17:56:34 +0000400#define CONFIG_SYS_FSL_ERRATUM_USB14
Kumar Gala43f082b2011-11-22 06:51:15 -0600401#define CONFIG_SYS_FSL_ERRATUM_CPU_A003999
York Sune22be772013-03-25 07:30:11 +0000402#define CONFIG_SYS_FSL_ERRATUM_DDR_A003
York Sun41085082011-11-20 10:01:35 -0800403#define CONFIG_SYS_FSL_ERRATUM_DDR_A003474
Liu Gang7d67ed52012-03-08 00:33:14 +0000404#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 2
405#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
406#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
Scott Wood33eee332012-08-14 10:14:53 +0000407#define CONFIG_SYS_FSL_ERRATUM_A004510
408#define CONFIG_SYS_FSL_ERRATUM_A004510_SVR_REV 0x10
409#define CONFIG_SYS_FSL_ERRATUM_A004510_SVR_REV2 0x11
410#define CONFIG_SYS_FSL_CORENET_SNOOPVEC_COREONLY 0xf0000000
Liu Gangd59c5572012-09-28 21:26:19 +0000411#define CONFIG_SYS_FSL_ERRATUM_SRIO_A004034
Timur Tabi01180332012-10-25 12:40:00 +0000412#define CONFIG_SYS_FSL_ERRATUM_A004849
Chunhe Lan9c3f77e2013-08-16 15:10:37 +0800413#define CONFIG_SYS_FSL_ERRATUM_I2C_A004447
Suresh Gupta9c641a82014-02-26 14:29:12 +0530414#define CONFIG_SYS_FSL_ERRATUM_A006261
Chunhe Lan9c3f77e2013-08-16 15:10:37 +0800415#define CONFIG_SYS_FSL_A004447_SVR_REV 0x11
Kumar Gala1f979872011-05-13 01:16:07 -0500416
Kumar Gala243be8e2011-01-19 03:05:26 -0600417#elif defined(CONFIG_PPC_P3041)
York Sund1001e32012-10-08 07:44:15 +0000418#define CONFIG_SYS_FSL_QORIQ_CHASSIS1
York Sund2ab4bb2013-06-25 11:37:39 -0700419#define CONFIG_FSL_CORENET /* Freescale CoreNet platform */
Kumar Gala243be8e2011-01-19 03:05:26 -0600420#define CONFIG_MAX_CPUS 4
Kumar Galab5c87532011-02-16 02:03:29 -0600421#define CONFIG_SYS_FSL_NUM_CC_PLLS 2
Kumar Gala243be8e2011-01-19 03:05:26 -0600422#define CONFIG_SYS_FSL_NUM_LAWS 32
423#define CONFIG_SYS_FSL_SEC_COMPAT 4
Kumar Galafbee0f72011-01-25 12:42:32 -0600424#define CONFIG_SYS_NUM_FMAN 1
425#define CONFIG_SYS_NUM_FM1_DTSEC 5
426#define CONFIG_SYS_NUM_FM1_10GEC 1
427#define CONFIG_NUM_DDR_CONTROLLERS 1
York Sun34e026f2014-03-27 17:54:47 -0700428#define CONFIG_SYS_FSL_DDR_VER FSL_DDR_VER_4_5
Kumar Galac657d892011-02-04 00:43:34 -0600429#define CONFIG_SYS_FM_MURAM_SIZE 0x28000
Kumar Gala66412c62011-02-18 05:40:54 -0600430#define CONFIG_SYS_FSL_TBCLK_DIV 32
Kumar Gala8f290842011-05-20 00:39:21 -0500431#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.2"
Timur Tabie46fedf2011-08-04 18:03:41 -0500432#define CONFIG_SYS_CCSRBAR_DEFAULT 0xfe000000
Roy Zang86221f02011-04-13 00:08:51 -0500433#define CONFIG_SYS_FSL_USB1_PHY_ENABLE
434#define CONFIG_SYS_FSL_USB2_PHY_ENABLE
Kumar Galab6c37222011-04-13 00:19:10 -0500435#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
ramneek mehreshf1810d82013-10-18 17:40:17 +0530436#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
Lei Xu30009762011-04-19 15:28:41 +0800437#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
York Sun57125f22012-08-08 18:04:53 +0000438#define CONFIG_SYS_FSL_ERRATUM_NMG_CPU_A011
Xulei99d7b0a2013-03-11 17:56:34 +0000439#define CONFIG_SYS_FSL_ERRATUM_USB14
Kumar Gala43f082b2011-11-22 06:51:15 -0600440#define CONFIG_SYS_FSL_ERRATUM_CPU_A003999
York Sune22be772013-03-25 07:30:11 +0000441#define CONFIG_SYS_FSL_ERRATUM_DDR_A003
York Sun41085082011-11-20 10:01:35 -0800442#define CONFIG_SYS_FSL_ERRATUM_DDR_A003474
Liu Gang7d67ed52012-03-08 00:33:14 +0000443#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 2
444#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
445#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
Scott Wood33eee332012-08-14 10:14:53 +0000446#define CONFIG_SYS_FSL_ERRATUM_A004510
447#define CONFIG_SYS_FSL_ERRATUM_A004510_SVR_REV 0x10
448#define CONFIG_SYS_FSL_ERRATUM_A004510_SVR_REV2 0x11
449#define CONFIG_SYS_FSL_CORENET_SNOOPVEC_COREONLY 0xf0000000
Liu Gangd59c5572012-09-28 21:26:19 +0000450#define CONFIG_SYS_FSL_ERRATUM_SRIO_A004034
Timur Tabi01180332012-10-25 12:40:00 +0000451#define CONFIG_SYS_FSL_ERRATUM_A004849
York Sund217a9a2013-06-25 11:37:49 -0700452#define CONFIG_SYS_FSL_ERRATUM_A005812
Chunhe Lan9c3f77e2013-08-16 15:10:37 +0800453#define CONFIG_SYS_FSL_ERRATUM_I2C_A004447
Suresh Gupta9c641a82014-02-26 14:29:12 +0530454#define CONFIG_SYS_FSL_ERRATUM_A006261
Chunhe Lan9c3f77e2013-08-16 15:10:37 +0800455#define CONFIG_SYS_FSL_A004447_SVR_REV 0x20
Kumar Gala243be8e2011-01-19 03:05:26 -0600456
Scott Wood3e978f52012-08-14 10:14:51 +0000457#elif defined(CONFIG_PPC_P4080) /* also supports P4040 */
York Sund1001e32012-10-08 07:44:15 +0000458#define CONFIG_SYS_FSL_QORIQ_CHASSIS1
York Sund2ab4bb2013-06-25 11:37:39 -0700459#define CONFIG_FSL_CORENET /* Freescale CoreNet platform */
Kumar Gala243be8e2011-01-19 03:05:26 -0600460#define CONFIG_MAX_CPUS 8
Kumar Galab5c87532011-02-16 02:03:29 -0600461#define CONFIG_SYS_FSL_NUM_CC_PLLS 4
Kumar Gala243be8e2011-01-19 03:05:26 -0600462#define CONFIG_SYS_FSL_NUM_LAWS 32
463#define CONFIG_SYS_FSL_SEC_COMPAT 4
464#define CONFIG_SYS_NUM_FMAN 2
465#define CONFIG_SYS_NUM_FM1_DTSEC 4
466#define CONFIG_SYS_NUM_FM2_DTSEC 4
467#define CONFIG_SYS_NUM_FM1_10GEC 1
468#define CONFIG_SYS_NUM_FM2_10GEC 1
469#define CONFIG_NUM_DDR_CONTROLLERS 2
York Sun34e026f2014-03-27 17:54:47 -0700470#define CONFIG_SYS_FSL_DDR_VER FSL_DDR_VER_4_4
ramneek mehreshf1810d82013-10-18 17:40:17 +0530471#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
Kumar Galac657d892011-02-04 00:43:34 -0600472#define CONFIG_SYS_FM_MURAM_SIZE 0x28000
Kumar Gala66412c62011-02-18 05:40:54 -0600473#define CONFIG_SYS_FSL_TBCLK_DIV 16
Kumar Gala8f290842011-05-20 00:39:21 -0500474#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,p4080-pcie"
Timur Tabie46fedf2011-08-04 18:03:41 -0500475#define CONFIG_SYS_CCSRBAR_DEFAULT 0xfe000000
Kumar Gala243be8e2011-01-19 03:05:26 -0600476#define CONFIG_SYS_FSL_ERRATUM_CPC_A002
477#define CONFIG_SYS_FSL_ERRATUM_CPC_A003
York Sunfa8d23c2011-01-10 12:03:01 +0000478#define CONFIG_SYS_FSL_ERRATUM_DDR_A003
Kumar Gala243be8e2011-01-19 03:05:26 -0600479#define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
480#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
481#define CONFIG_SYS_FSL_ERRATUM_ESDHC135
Zang Roy-R619114e0be342012-09-18 09:50:08 +0000482#define CONFIG_SYS_FSL_ERRATUM_ESDHC13
Kumar Gala243be8e2011-01-19 03:05:26 -0600483#define CONFIG_SYS_P4080_ERRATUM_CPU22
York Sun5e23ab02012-05-07 07:26:47 +0000484#define CONFIG_SYS_FSL_ERRATUM_NMG_CPU_A011
Kumar Gala243be8e2011-01-19 03:05:26 -0600485#define CONFIG_SYS_P4080_ERRATUM_SERDES8
Emil Medvedf8af0b2010-08-31 22:57:38 -0500486#define CONFIG_SYS_P4080_ERRATUM_SERDES9
Timur Tabid90fdba2011-04-18 17:16:00 -0500487#define CONFIG_SYS_P4080_ERRATUM_SERDES_A001
Timur Tabida30b9f2011-04-01 13:19:36 -0500488#define CONFIG_SYS_P4080_ERRATUM_SERDES_A005
Kumar Gala43f082b2011-11-22 06:51:15 -0600489#define CONFIG_SYS_FSL_ERRATUM_CPU_A003999
York Sun41085082011-11-20 10:01:35 -0800490#define CONFIG_SYS_FSL_ERRATUM_DDR_A003474
Liu Gang7d67ed52012-03-08 00:33:14 +0000491#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 2
492#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
493#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
494#define CONFIG_SYS_FSL_RMU
495#define CONFIG_SYS_FSL_SRIO_MSG_UNIT_NUM 2
Scott Wood33eee332012-08-14 10:14:53 +0000496#define CONFIG_SYS_FSL_ERRATUM_A004510
497#define CONFIG_SYS_FSL_ERRATUM_A004510_SVR_REV 0x20
498#define CONFIG_SYS_FSL_CORENET_SNOOPVEC_COREONLY 0xff000000
Liu Gangd59c5572012-09-28 21:26:19 +0000499#define CONFIG_SYS_FSL_ERRATUM_SRIO_A004034
Timur Tabi01180332012-10-25 12:40:00 +0000500#define CONFIG_SYS_FSL_ERRATUM_A004849
Timur Tabid607b962012-11-01 08:20:23 +0000501#define CONFIG_SYS_FSL_ERRATUM_A004580
Yuanquan Chenc0a4e6b2012-11-26 23:49:45 +0000502#define CONFIG_SYS_P4080_ERRATUM_PCIE_A003
York Sund217a9a2013-06-25 11:37:49 -0700503#define CONFIG_SYS_FSL_ERRATUM_A005812
Chunhe Lan9c3f77e2013-08-16 15:10:37 +0800504#define CONFIG_SYS_FSL_ERRATUM_I2C_A004447
Nikhil Badola11856912014-02-26 17:43:15 +0530505#define CONFIG_SYS_FSL_ERRATUM_A007075
Chunhe Lan9c3f77e2013-08-16 15:10:37 +0800506#define CONFIG_SYS_FSL_A004447_SVR_REV 0x20
Kumar Gala243be8e2011-01-19 03:05:26 -0600507
Scott Wood3e978f52012-08-14 10:14:51 +0000508#elif defined(CONFIG_PPC_P5020) /* also supports P5010 */
York Sunffd06e02012-10-08 07:44:30 +0000509#define CONFIG_SYS_PPC64 /* 64-bit core */
York Sund1001e32012-10-08 07:44:15 +0000510#define CONFIG_SYS_FSL_QORIQ_CHASSIS1
York Sund2ab4bb2013-06-25 11:37:39 -0700511#define CONFIG_FSL_CORENET /* Freescale CoreNet platform */
Kumar Gala243be8e2011-01-19 03:05:26 -0600512#define CONFIG_MAX_CPUS 2
Kumar Galab5c87532011-02-16 02:03:29 -0600513#define CONFIG_SYS_FSL_NUM_CC_PLLS 2
Kumar Gala243be8e2011-01-19 03:05:26 -0600514#define CONFIG_SYS_FSL_NUM_LAWS 32
515#define CONFIG_SYS_FSL_SEC_COMPAT 4
Kumar Galafbee0f72011-01-25 12:42:32 -0600516#define CONFIG_SYS_NUM_FMAN 1
517#define CONFIG_SYS_NUM_FM1_DTSEC 5
518#define CONFIG_SYS_NUM_FM1_10GEC 1
519#define CONFIG_NUM_DDR_CONTROLLERS 2
York Sun34e026f2014-03-27 17:54:47 -0700520#define CONFIG_SYS_FSL_DDR_VER FSL_DDR_VER_4_4
ramneek mehreshf1810d82013-10-18 17:40:17 +0530521#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
Kumar Galac657d892011-02-04 00:43:34 -0600522#define CONFIG_SYS_FM_MURAM_SIZE 0x28000
Kumar Gala66412c62011-02-18 05:40:54 -0600523#define CONFIG_SYS_FSL_TBCLK_DIV 32
Kumar Gala8f290842011-05-20 00:39:21 -0500524#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.2"
Timur Tabie46fedf2011-08-04 18:03:41 -0500525#define CONFIG_SYS_CCSRBAR_DEFAULT 0xfe000000
Roy Zang86221f02011-04-13 00:08:51 -0500526#define CONFIG_SYS_FSL_USB1_PHY_ENABLE
527#define CONFIG_SYS_FSL_USB2_PHY_ENABLE
Kumar Galab6c37222011-04-13 00:19:10 -0500528#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
Lei Xu30009762011-04-19 15:28:41 +0800529#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
Xulei99d7b0a2013-03-11 17:56:34 +0000530#define CONFIG_SYS_FSL_ERRATUM_USB14
York Sune22be772013-03-25 07:30:11 +0000531#define CONFIG_SYS_FSL_ERRATUM_DDR_A003
York Sun41085082011-11-20 10:01:35 -0800532#define CONFIG_SYS_FSL_ERRATUM_DDR_A003474
Liu Gang7d67ed52012-03-08 00:33:14 +0000533#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 2
534#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
535#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
Scott Wood33eee332012-08-14 10:14:53 +0000536#define CONFIG_SYS_FSL_ERRATUM_A004510
537#define CONFIG_SYS_FSL_ERRATUM_A004510_SVR_REV 0x10
538#define CONFIG_SYS_FSL_CORENET_SNOOPVEC_COREONLY 0xc0000000
Liu Gangd59c5572012-09-28 21:26:19 +0000539#define CONFIG_SYS_FSL_ERRATUM_SRIO_A004034
Chunhe Lan9c3f77e2013-08-16 15:10:37 +0800540#define CONFIG_SYS_FSL_ERRATUM_I2C_A004447
Suresh Gupta9c641a82014-02-26 14:29:12 +0530541#define CONFIG_SYS_FSL_ERRATUM_A006261
Chunhe Lan9c3f77e2013-08-16 15:10:37 +0800542#define CONFIG_SYS_FSL_A004447_SVR_REV 0x20
Kumar Gala243be8e2011-01-19 03:05:26 -0600543
Timur Tabi49054432012-10-05 11:09:19 +0000544#elif defined(CONFIG_PPC_P5040)
Timur Tabi1956e432012-10-23 10:48:09 +0000545#define CONFIG_SYS_PPC64
Timur Tabi49054432012-10-05 11:09:19 +0000546#define CONFIG_SYS_FSL_QORIQ_CHASSIS1
York Sund2ab4bb2013-06-25 11:37:39 -0700547#define CONFIG_FSL_CORENET /* Freescale CoreNet platform */
Timur Tabi49054432012-10-05 11:09:19 +0000548#define CONFIG_MAX_CPUS 4
549#define CONFIG_SYS_FSL_NUM_CC_PLLS 3
550#define CONFIG_SYS_FSL_NUM_LAWS 32
551#define CONFIG_SYS_FSL_SEC_COMPAT 4
552#define CONFIG_SYS_NUM_FMAN 2
553#define CONFIG_SYS_NUM_FM1_DTSEC 5
554#define CONFIG_SYS_NUM_FM1_10GEC 1
555#define CONFIG_SYS_NUM_FM2_DTSEC 5
556#define CONFIG_SYS_NUM_FM2_10GEC 1
557#define CONFIG_NUM_DDR_CONTROLLERS 2
York Sun34e026f2014-03-27 17:54:47 -0700558#define CONFIG_SYS_FSL_DDR_VER FSL_DDR_VER_4_4
ramneek mehreshf1810d82013-10-18 17:40:17 +0530559#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
Timur Tabi49054432012-10-05 11:09:19 +0000560#define CONFIG_SYS_FM_MURAM_SIZE 0x28000
561#define CONFIG_SYS_FSL_TBCLK_DIV 16
562#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.4"
563#define CONFIG_SYS_CCSRBAR_DEFAULT 0xfe000000
564#define CONFIG_SYS_FSL_USB1_PHY_ENABLE
565#define CONFIG_SYS_FSL_USB2_PHY_ENABLE
566#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
567#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
Xulei99d7b0a2013-03-11 17:56:34 +0000568#define CONFIG_SYS_FSL_ERRATUM_USB14
Timur Tabi49054432012-10-05 11:09:19 +0000569#define CONFIG_SYS_FSL_ERRATUM_DDR_A003
570#define CONFIG_SYS_FSL_ERRATUM_DDR_A003474
571#define CONFIG_SYS_FSL_ERRATUM_A004699
Timur Tabi49054432012-10-05 11:09:19 +0000572#define CONFIG_SYS_FSL_ERRATUM_A004510
573#define CONFIG_SYS_FSL_ERRATUM_A004510_SVR_REV 0x10
Suresh Gupta9c641a82014-02-26 14:29:12 +0530574#define CONFIG_SYS_FSL_ERRATUM_A006261
Timur Tabi49054432012-10-05 11:09:19 +0000575#define CONFIG_SYS_FSL_CORENET_SNOOPVEC_COREONLY 0xf0000000
York Sund217a9a2013-06-25 11:37:49 -0700576#define CONFIG_SYS_FSL_ERRATUM_A005812
Timur Tabi49054432012-10-05 11:09:19 +0000577
Prabhakar Kushwaha19a8dbd2012-04-24 20:16:49 +0000578#elif defined(CONFIG_BSC9131)
579#define CONFIG_MAX_CPUS 1
580#define CONFIG_FSL_SDHC_V2_3
581#define CONFIG_SYS_FSL_NUM_LAWS 12
582#define CONFIG_TSECV2
583#define CONFIG_SYS_FSL_SEC_COMPAT 4
584#define CONFIG_NUM_DDR_CONTROLLERS 1
York Sun34e026f2014-03-27 17:54:47 -0700585#define CONFIG_SYS_FSL_DDR_VER FSL_DDR_VER_4_4
ramneek mehreshf1810d82013-10-18 17:40:17 +0530586#define CONFIG_USB_MAX_CONTROLLER_COUNT 1
Priyanka Jain765b0bd2013-04-04 09:31:54 +0530587#define CONFIG_SYS_FSL_DSP_M2_RAM_ADDR 0xb0000000
588#define CONFIG_SYS_FSL_DSP_CCSRBAR_DEFAULT 0xff600000
Mingkai Hu362ee042013-05-16 10:18:13 +0800589#define CONFIG_SYS_FSL_IFC_BANK_COUNT 3
Prabhakar Kushwaha19a8dbd2012-04-24 20:16:49 +0000590#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
591#define CONFIG_NAND_FSL_IFC
Prabhakar Kushwaha19a8dbd2012-04-24 20:16:49 +0000592#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
York Sun954a1a42013-08-20 15:09:43 -0700593#define CONFIG_SYS_FSL_ERRATUM_A005125
Haijun.Zhangf28bea02014-01-10 13:52:19 +0800594#define CONFIG_ESDHC_HC_BLK_ADDR
Prabhakar Kushwaha19a8dbd2012-04-24 20:16:49 +0000595
Prabhakar Kushwaha35fe9482013-01-23 17:59:57 +0000596#elif defined(CONFIG_BSC9132)
597#define CONFIG_MAX_CPUS 2
598#define CONFIG_SYS_PPC_E500_DEBUG_TLB 3
599#define CONFIG_FSL_SDHC_V2_3
600#define CONFIG_SYS_FSL_NUM_LAWS 12
601#define CONFIG_TSECV2
602#define CONFIG_SYS_FSL_SEC_COMPAT 4
603#define CONFIG_NUM_DDR_CONTROLLERS 2
York Sun34e026f2014-03-27 17:54:47 -0700604#define CONFIG_SYS_FSL_DDR_VER FSL_DDR_VER_4_6
ramneek mehreshf1810d82013-10-18 17:40:17 +0530605#define CONFIG_USB_MAX_CONTROLLER_COUNT 1
Priyanka Jain64501c62013-07-02 09:21:04 +0530606#define CONFIG_SYS_FSL_DSP_DDR_ADDR 0x40000000
607#define CONFIG_SYS_FSL_DSP_M2_RAM_ADDR 0xb0000000
608#define CONFIG_SYS_FSL_DSP_M3_RAM_ADDR 0xc0000000
609#define CONFIG_SYS_FSL_DSP_CCSRBAR_DEFAULT 0xff600000
York Sun061ffed2013-04-18 19:31:01 -0700610#define CONFIG_SYS_FSL_IFC_BANK_COUNT 3
Prabhakar Kushwaha35fe9482013-01-23 17:59:57 +0000611#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
612#define CONFIG_NAND_FSL_IFC
Prabhakar Kushwaha35fe9482013-01-23 17:59:57 +0000613#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
614#define CONFIG_SYS_FSL_ESDHC_P1010_BROKEN_SDCLK
615#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.2"
York Sun954a1a42013-08-20 15:09:43 -0700616#define CONFIG_SYS_FSL_ERRATUM_A005125
Chunhe Lanf1a96ec2014-05-07 10:50:20 +0800617#define CONFIG_SYS_FSL_ERRATUM_A005434
Chunhe Lan9c3f77e2013-08-16 15:10:37 +0800618#define CONFIG_SYS_FSL_ERRATUM_I2C_A004447
619#define CONFIG_SYS_FSL_A004447_SVR_REV 0x11
Haijun.Zhangf28bea02014-01-10 13:52:19 +0800620#define CONFIG_ESDHC_HC_BLK_ADDR
Prabhakar Kushwaha35fe9482013-01-23 17:59:57 +0000621
Shengzhou Liu5122dfa2014-04-25 16:31:22 +0800622#elif defined(CONFIG_PPC_T4240) || defined(CONFIG_PPC_T4160) || \
623 defined(CONFIG_PPC_T4080)
York Sun3d2972f2013-03-25 07:40:05 +0000624#define CONFIG_E6500
York Sunffd06e02012-10-08 07:44:30 +0000625#define CONFIG_SYS_PPC64 /* 64-bit core */
York Sun9e758752012-10-08 07:44:19 +0000626#define CONFIG_FSL_CORENET /* Freescale CoreNet platform */
627#define CONFIG_SYS_FSL_QORIQ_CHASSIS2 /* Freescale Chassis generation 2 */
York Sunf6981432013-03-25 07:40:07 +0000628#define CONFIG_SYS_FSL_CORES_PER_CLUSTER 4
York Sun9e758752012-10-08 07:44:19 +0000629#define CONFIG_SYS_FSL_QMAN_V3 /* QMAN version 3 */
York Sun3d2972f2013-03-25 07:40:05 +0000630#ifdef CONFIG_PPC_T4240
York Sun9e758752012-10-08 07:44:19 +0000631#define CONFIG_MAX_CPUS 12
Prabhakar Kushwahace746fe2013-09-03 11:20:15 +0530632#define CONFIG_SYS_FSL_CLUSTER_CLOCKS { 1, 1, 4 }
York Sun9e758752012-10-08 07:44:19 +0000633#define CONFIG_SYS_NUM_FM1_DTSEC 8
634#define CONFIG_SYS_NUM_FM1_10GEC 2
635#define CONFIG_SYS_NUM_FM2_DTSEC 8
636#define CONFIG_SYS_NUM_FM2_10GEC 2
637#define CONFIG_NUM_DDR_CONTROLLERS 3
York Sun3d2972f2013-03-25 07:40:05 +0000638#else
Shengzhou Liu5122dfa2014-04-25 16:31:22 +0800639#define CONFIG_SYS_NUM_FM1_DTSEC 6
York Sun3d2972f2013-03-25 07:40:05 +0000640#define CONFIG_SYS_NUM_FM1_10GEC 1
Shengzhou Liu5122dfa2014-04-25 16:31:22 +0800641#define CONFIG_SYS_NUM_FM2_DTSEC 8
York Sun3d2972f2013-03-25 07:40:05 +0000642#define CONFIG_SYS_NUM_FM2_10GEC 1
643#define CONFIG_NUM_DDR_CONTROLLERS 2
Shengzhou Liu5122dfa2014-04-25 16:31:22 +0800644#if defined(CONFIG_PPC_T4160)
645#define CONFIG_MAX_CPUS 8
646#define CONFIG_SYS_FSL_CLUSTER_CLOCKS { 1, 1 }
647#elif defined(CONFIG_PPC_T4080)
648#define CONFIG_MAX_CPUS 4
649#define CONFIG_SYS_FSL_CLUSTER_CLOCKS { 1 }
650#endif
York Sun3d2972f2013-03-25 07:40:05 +0000651#endif
York Sunb6240842013-03-25 07:33:29 +0000652#define CONFIG_SYS_FSL_NUM_CC_PLLS 5
653#define CONFIG_SYS_FSL_NUM_LAWS 32
Prabhakar Kushwahaa4c955b2013-07-31 16:56:41 +0530654#define CONFIG_SYS_FSL_SRDS_1
655#define CONFIG_SYS_FSL_SRDS_2
York Sunb6240842013-03-25 07:33:29 +0000656#define CONFIG_SYS_FSL_SRDS_3
657#define CONFIG_SYS_FSL_SRDS_4
658#define CONFIG_SYS_FSL_SEC_COMPAT 4
659#define CONFIG_SYS_NUM_FMAN 2
ramneek mehreshf1810d82013-10-18 17:40:17 +0530660#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
Prabhakar Kushwahace746fe2013-09-03 11:20:15 +0530661#define CONFIG_SYS_PME_CLK 0
York Sunb6240842013-03-25 07:33:29 +0000662#define CONFIG_SYS_FSL_DDR_VER FSL_DDR_VER_4_7
Mingkai Hu362ee042013-05-16 10:18:13 +0800663#define CONFIG_SYS_FSL_IFC_BANK_COUNT 8
York Sunb6240842013-03-25 07:33:29 +0000664#define CONFIG_SYS_FMAN_V3
Prabhakar Kushwahace746fe2013-09-03 11:20:15 +0530665#define CONFIG_SYS_FM1_CLK 3
666#define CONFIG_SYS_FM2_CLK 3
York Sunb6240842013-03-25 07:33:29 +0000667#define CONFIG_SYS_FM_MURAM_SIZE 0x60000
668#define CONFIG_SYS_FSL_TBCLK_DIV 16
669#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v3.0"
670#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 2
671#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
672#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
Liu Gang08047932013-06-25 18:12:14 +0800673#define CONFIG_SYS_FSL_SRIO_LIODN
York Sunb6240842013-03-25 07:33:29 +0000674#define CONFIG_SYS_FSL_USB_DUAL_PHY_ENABLE
675#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
676#define CONFIG_SYS_FSL_ERRATUM_A004468
677#define CONFIG_SYS_FSL_ERRATUM_A_004934
678#define CONFIG_SYS_FSL_ERRATUM_A005871
Suresh Gupta9c641a82014-02-26 14:29:12 +0530679#define CONFIG_SYS_FSL_ERRATUM_A006261
York Sun133fbfa2013-09-16 12:49:31 -0700680#define CONFIG_SYS_FSL_ERRATUM_A006379
Shaveta Leekhab6808cd2014-05-28 14:18:55 +0530681#define CONFIG_SYS_FSL_ERRATUM_A007186
Scott Wood82125192013-05-15 17:50:13 -0500682#define CONFIG_SYS_FSL_ERRATUM_A006593
Nikhil Badolaf3dff692014-10-17 09:12:07 +0530683#define CONFIG_SYS_FSL_ERRATUM_A007798
York Sunb6240842013-03-25 07:33:29 +0000684#define CONFIG_SYS_CCSRBAR_DEFAULT 0xfe000000
Shaveta Leekhab6808cd2014-05-28 14:18:55 +0530685#define CONFIG_SYS_FSL_SFP_VER_3_0
York Sunb6240842013-03-25 07:33:29 +0000686#define CONFIG_SYS_FSL_PCI_VER_3_X
687
Poonam Aggrwal8fa01022013-03-25 07:40:20 +0000688#elif defined(CONFIG_PPC_B4860) || defined(CONFIG_PPC_B4420)
689#define CONFIG_E6500
Poonam Aggrwale1dbdd82012-12-23 19:24:16 +0000690#define CONFIG_SYS_PPC64 /* 64-bit core */
691#define CONFIG_FSL_CORENET /* Freescale CoreNet platform */
692#define CONFIG_SYS_FSL_QORIQ_CHASSIS2 /* Freescale Chassis generation 2 */
693#define CONFIG_SYS_FSL_QMAN_V3 /* QMAN version 3 */
Shaveta Leekhab8bf0ad2015-01-19 12:46:54 +0530694#define CONFIG_HETROGENOUS_CLUSTERS /* DSP/SC3900 core clusters */
695#define CONFIG_PPC_CLUSTER_START 0 /*Start index of ppc clusters*/
696#define CONFIG_DSP_CLUSTER_START 1 /*Start index of dsp clusters*/
Poonam Aggrwale1dbdd82012-12-23 19:24:16 +0000697#define CONFIG_SYS_FSL_NUM_LAWS 32
Prabhakar Kushwahaa4c955b2013-07-31 16:56:41 +0530698#define CONFIG_SYS_FSL_SRDS_1
699#define CONFIG_SYS_FSL_SRDS_2
Shaveta Leekhab8bf0ad2015-01-19 12:46:54 +0530700#define CONFIG_SYS_MAPLE
701#define CONFIG_SYS_CPRI
702#define CONFIG_SYS_FSL_NUM_CC_PLLS 5
Poonam Aggrwale1dbdd82012-12-23 19:24:16 +0000703#define CONFIG_SYS_FSL_SEC_COMPAT 4
704#define CONFIG_SYS_NUM_FMAN 1
ramneek mehreshf1810d82013-10-18 17:40:17 +0530705#define CONFIG_USB_MAX_CONTROLLER_COUNT 1
Prabhakar Kushwahace746fe2013-09-03 11:20:15 +0530706#define CONFIG_SYS_FM1_CLK 0
Shaveta Leekhab8bf0ad2015-01-19 12:46:54 +0530707#define CONFIG_SYS_CPRI_CLK 3
708#define CONFIG_SYS_ULB_CLK 4
709#define CONFIG_SYS_ETVPE_CLK 1
Poonam Aggrwale1dbdd82012-12-23 19:24:16 +0000710#define CONFIG_SYS_FSL_DDR_VER FSL_DDR_VER_4_7
Mingkai Hu362ee042013-05-16 10:18:13 +0800711#define CONFIG_SYS_FSL_IFC_BANK_COUNT 4
Poonam Aggrwale1dbdd82012-12-23 19:24:16 +0000712#define CONFIG_SYS_FMAN_V3
713#define CONFIG_SYS_FM_MURAM_SIZE 0x60000
714#define CONFIG_SYS_FSL_TBCLK_DIV 16
715#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.4"
716#define CONFIG_SYS_FSL_USB1_PHY_ENABLE
717#define CONFIG_SYS_FSL_ERRATUM_A_004934
Shengzhou Liu04feb572013-02-27 21:56:54 +0000718#define CONFIG_SYS_FSL_ERRATUM_A005871
York Sun133fbfa2013-09-16 12:49:31 -0700719#define CONFIG_SYS_FSL_ERRATUM_A006379
Shaveta Leekhab6808cd2014-05-28 14:18:55 +0530720#define CONFIG_SYS_FSL_ERRATUM_A007186
Scott Wood82125192013-05-15 17:50:13 -0500721#define CONFIG_SYS_FSL_ERRATUM_A006593
Nikhil Badola11856912014-02-26 17:43:15 +0530722#define CONFIG_SYS_FSL_ERRATUM_A007075
Shaveta Leekha7af9a072014-02-26 16:08:22 +0530723#define CONFIG_SYS_FSL_ERRATUM_A006475
724#define CONFIG_SYS_FSL_ERRATUM_A006384
York Sunc3678b02014-03-28 15:07:27 -0700725#define CONFIG_SYS_FSL_ERRATUM_A007212
Poonam Aggrwale1dbdd82012-12-23 19:24:16 +0000726#define CONFIG_SYS_CCSRBAR_DEFAULT 0xfe000000
Shaveta Leekhab6808cd2014-05-28 14:18:55 +0530727#define CONFIG_SYS_FSL_SFP_VER_3_0
Poonam Aggrwale1dbdd82012-12-23 19:24:16 +0000728
Poonam Aggrwal8fa01022013-03-25 07:40:20 +0000729#ifdef CONFIG_PPC_B4860
York Sunf6981432013-03-25 07:40:07 +0000730#define CONFIG_SYS_FSL_CORES_PER_CLUSTER 4
York Sund2404142012-10-08 07:44:20 +0000731#define CONFIG_MAX_CPUS 4
Shaveta Leekhab8bf0ad2015-01-19 12:46:54 +0530732#define CONFIG_MAX_DSP_CPUS 12
733#define CONFIG_NUM_DSP_CPUS 6
Shaveta Leekha6df82e32014-02-26 16:07:37 +0530734#define CONFIG_SYS_FSL_SRDS_NUM_PLLS 2
Prabhakar Kushwahace746fe2013-09-03 11:20:15 +0530735#define CONFIG_SYS_FSL_CLUSTER_CLOCKS { 1, 4, 4, 4 }
York Sund2404142012-10-08 07:44:20 +0000736#define CONFIG_SYS_NUM_FM1_DTSEC 6
737#define CONFIG_SYS_NUM_FM1_10GEC 2
Poonam Aggrwale394ceb2012-12-23 19:22:33 +0000738#define CONFIG_NUM_DDR_CONTROLLERS 2
ramneek mehreshf1810d82013-10-18 17:40:17 +0530739#define CONFIG_USB_MAX_CONTROLLER_COUNT 1
York Sund2404142012-10-08 07:44:20 +0000740#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 2
741#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
742#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
Liu Gang32f38ee2013-06-25 18:12:13 +0800743#define CONFIG_SYS_FSL_SRIO_LIODN
Poonam Aggrwal8fa01022013-03-25 07:40:20 +0000744#else
745#define CONFIG_MAX_CPUS 2
Shaveta Leekhab8bf0ad2015-01-19 12:46:54 +0530746#define CONFIG_MAX_DSP_CPUS 2
Shaveta Leekha6df82e32014-02-26 16:07:37 +0530747#define CONFIG_SYS_FSL_SRDS_NUM_PLLS 1
Poonam Aggrwal8fa01022013-03-25 07:40:20 +0000748#define CONFIG_SYS_FSL_CORES_PER_CLUSTER 2
Prabhakar Kushwahace746fe2013-09-03 11:20:15 +0530749#define CONFIG_SYS_FSL_CLUSTER_CLOCKS { 1, 4 }
Poonam Aggrwal8fa01022013-03-25 07:40:20 +0000750#define CONFIG_SYS_NUM_FM1_DTSEC 4
751#define CONFIG_SYS_NUM_FM1_10GEC 0
752#define CONFIG_NUM_DDR_CONTROLLERS 1
753#endif
York Sund2404142012-10-08 07:44:20 +0000754
Priyanka Jain2967af62013-10-18 12:30:21 +0530755#elif defined(CONFIG_PPC_T1040) || defined(CONFIG_PPC_T1042) ||\
756defined(CONFIG_PPC_T1020) || defined(CONFIG_PPC_T1022)
York Sun5f208d12013-03-25 07:40:06 +0000757#define CONFIG_E5500
758#define CONFIG_FSL_CORENET /* Freescale CoreNet platform */
759#define CONFIG_SYS_FSL_QORIQ_CHASSIS2 /* Freescale Chassis generation 2 */
York Sunf6981432013-03-25 07:40:07 +0000760#define CONFIG_SYS_FSL_CORES_PER_CLUSTER 1
York Sun5f208d12013-03-25 07:40:06 +0000761#define CONFIG_SYS_FSL_QMAN_V3 /* QMAN version 3 */
York Sun34e026f2014-03-27 17:54:47 -0700762#ifdef CONFIG_SYS_FSL_DDR4
763#define CONFIG_SYS_FSL_DDRC_GEN4
764#endif
Prabhakar Kushwaha1d384ec2013-09-03 11:19:54 +0530765#if defined(CONFIG_PPC_T1040) || defined(CONFIG_PPC_T1042)
York Sun5f208d12013-03-25 07:40:06 +0000766#define CONFIG_MAX_CPUS 4
Prabhakar Kushwaha1d384ec2013-09-03 11:19:54 +0530767#elif defined(CONFIG_PPC_T1020) || defined(CONFIG_PPC_T1022)
768#define CONFIG_MAX_CPUS 2
769#endif
770#define CONFIG_SYS_FSL_NUM_CC_PLLS 2
Prabhakar Kushwahace746fe2013-09-03 11:20:15 +0530771#define CONFIG_SYS_FSL_CLUSTER_CLOCKS { 1, 1, 1, 1 }
772#define CONFIG_SYS_SDHC_CLOCK 0
York Sun5f208d12013-03-25 07:40:06 +0000773#define CONFIG_SYS_FSL_NUM_LAWS 16
Prabhakar Kushwaha1d384ec2013-09-03 11:19:54 +0530774#define CONFIG_SYS_FSL_SRDS_1
775#define CONFIG_SYS_FSL_SEC_COMPAT 5
York Sun5f208d12013-03-25 07:40:06 +0000776#define CONFIG_SYS_NUM_FMAN 1
777#define CONFIG_SYS_NUM_FM1_DTSEC 5
778#define CONFIG_NUM_DDR_CONTROLLERS 1
ramneek mehreshf1810d82013-10-18 17:40:17 +0530779#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
Prabhakar Kushwahace746fe2013-09-03 11:20:15 +0530780#define CONFIG_PME_PLAT_CLK_DIV 2
781#define CONFIG_SYS_PME_CLK CONFIG_PME_PLAT_CLK_DIV
Prabhakar Kushwaha1d384ec2013-09-03 11:19:54 +0530782#define CONFIG_SYS_FSL_DDR_VER FSL_DDR_VER_5_0
783#define CONFIG_SYS_FSL_IFC_BANK_COUNT 8
Prabhakar Kushwaha9f074e62014-10-29 22:33:09 +0530784#define CONFIG_SYS_FSL_ERRATUM_A008044
York Sun5f208d12013-03-25 07:40:06 +0000785#define CONFIG_SYS_FMAN_V3
Prabhakar Kushwahace746fe2013-09-03 11:20:15 +0530786#define CONFIG_FM_PLAT_CLK_DIV 1
787#define CONFIG_SYS_FM1_CLK CONFIG_FM_PLAT_CLK_DIV
Prabhakar Kushwaha1d384ec2013-09-03 11:19:54 +0530788#define CONFIG_SYS_FM_MURAM_SIZE 0x30000
Priyanka Jainb1359912013-12-17 14:25:52 +0530789#define CONFIG_SYS_FSL_SINGLE_SOURCE_CLK
Prabhakar Kushwahae03c76c2013-12-11 12:49:13 +0530790#define CONFIG_SYS_FSL_TBCLK_DIV 16
York Sun5f208d12013-03-25 07:40:06 +0000791#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.4"
Nikhil Badolaa4f7cba2014-01-27 15:21:58 +0530792#define CONFIG_SYS_FSL_USB_DUAL_PHY_ENABLE
York Sun5f208d12013-03-25 07:40:06 +0000793#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
Suresh Gupta9c641a82014-02-26 14:29:12 +0530794#define CONFIG_SYS_FSL_ERRATUM_A006261
York Sun5f208d12013-03-25 07:40:06 +0000795#define CONFIG_SYS_CCSRBAR_DEFAULT 0xfe000000
Haijun.Zhang1336e2d2014-03-18 17:04:23 +0800796#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
797#define ESDHCI_QUIRK_BROKEN_TIMEOUT_VALUE
Zhao Qiang2a44efe2014-03-21 16:21:45 +0800798#define QE_MURAM_SIZE 0x6000UL
799#define MAX_QE_RISC 1
800#define QE_NUM_OF_SNUM 28
York Sun5f208d12013-03-25 07:40:06 +0000801
Shengzhou Liuf6050792014-11-24 17:11:54 +0800802#elif defined(CONFIG_PPC_T1024) || defined(CONFIG_PPC_T1023) ||\
803defined(CONFIG_PPC_T1014) || defined(CONFIG_PPC_T1013)
804#define CONFIG_E5500
805#define CONFIG_FSL_CORENET /* Freescale CoreNet platform */
806#define CONFIG_SYS_FSL_QORIQ_CHASSIS2 /* Freescale Chassis generation 2 */
807#define CONFIG_SYS_FSL_CORES_PER_CLUSTER 1
808#define CONFIG_SYS_FSL_QMAN_V3 /* QMAN version 3 */
809#define CONFIG_SYS_FMAN_V3
810#ifdef CONFIG_SYS_FSL_DDR4
811#define CONFIG_SYS_FSL_DDRC_GEN4
812#endif
813#if defined(CONFIG_PPC_T1024) || defined(CONFIG_PPC_T1023)
814#define CONFIG_MAX_CPUS 2
815#elif defined(CONFIG_PPC_T1014) || defined(CONFIG_PPC_T1013)
816#define CONFIG_MAX_CPUS 1
817#endif
818#define CONFIG_SYS_FSL_NUM_CC_PLL 2
819#define CONFIG_SYS_FSL_CLUSTER_CLOCKS { 1, 1, 1, 1 }
820#define CONFIG_SYS_SDHC_CLOCK 0
821#define CONFIG_SYS_FSL_NUM_LAWS 16
822#define CONFIG_SYS_FSL_SRDS_1
823#define CONFIG_SYS_FSL_SEC_COMPAT 5
824#define CONFIG_SYS_NUM_FMAN 1
825#define CONFIG_SYS_NUM_FM1_DTSEC 4
826#define CONFIG_SYS_NUM_FM1_10GEC 1
Shengzhou Liucc19c252014-11-24 17:11:57 +0800827#define CONFIG_FSL_FM_10GEC_REGULAR_NOTATION
Shengzhou Liuf6050792014-11-24 17:11:54 +0800828#define CONFIG_NUM_DDR_CONTROLLERS 1
829#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
830#define CONFIG_SYS_FSL_DDR_VER FSL_DDR_VER_5_0
831#define CONFIG_SYS_FSL_IFC_BANK_COUNT 8
832#define CONFIG_SYS_FM1_CLK 0
833#define CONFIG_QBMAN_CLK_DIV 1
834#define CONFIG_SYS_FM_MURAM_SIZE 0x30000
835#define CONFIG_SYS_FSL_SINGLE_SOURCE_CLK
836#define CONFIG_SYS_FSL_TBCLK_DIV 16
837#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.4"
838#define CONFIG_SYS_FSL_USB_DUAL_PHY_ENABLE
839#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
840#define CONFIG_SYS_CCSRBAR_DEFAULT 0xfe000000
841#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
842#define ESDHCI_QUIRK_BROKEN_TIMEOUT_VALUE
843#define QE_MURAM_SIZE 0x6000UL
844#define MAX_QE_RISC 1
845#define QE_NUM_OF_SNUM 28
846#define CONFIG_SYS_FSL_SFP_VER_3_0
847
Shengzhou Liu629d6b32013-11-22 17:39:10 +0800848#elif defined(CONFIG_PPC_T2080) || defined(CONFIG_PPC_T2081)
849#define CONFIG_E6500
850#define CONFIG_SYS_PPC64 /* 64-bit core */
851#define CONFIG_FSL_CORENET /* Freescale CoreNet platform */
852#define CONFIG_SYS_FSL_QORIQ_CHASSIS2 /* Freescale Chassis generation 2 */
853#define CONFIG_SYS_FSL_CORES_PER_CLUSTER 4
854#define CONFIG_SYS_FSL_NUM_CC_PLLS 2
855#define CONFIG_SYS_FSL_QMAN_V3
856#define CONFIG_MAX_CPUS 4
857#define CONFIG_SYS_FSL_NUM_LAWS 32
858#define CONFIG_SYS_FSL_SEC_COMPAT 4
859#define CONFIG_SYS_NUM_FMAN 1
860#define CONFIG_SYS_FSL_CLUSTER_CLOCKS { 1, 4, 4, 4 }
861#define CONFIG_SYS_FSL_SRDS_1
862#define CONFIG_SYS_FSL_PCI_VER_3_X
863#if defined(CONFIG_PPC_T2080)
864#define CONFIG_SYS_NUM_FM1_DTSEC 8
865#define CONFIG_SYS_NUM_FM1_10GEC 4
866#define CONFIG_SYS_FSL_SRDS_2
867#define CONFIG_SYS_FSL_SRIO_LIODN
868#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 2
869#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
870#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
871#elif defined(CONFIG_PPC_T2081)
872#define CONFIG_SYS_NUM_FM1_DTSEC 6
873#define CONFIG_SYS_NUM_FM1_10GEC 2
874#endif
Shengzhou Liu2ffa96d2013-12-18 10:27:55 +0800875#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
Shengzhou Liu629d6b32013-11-22 17:39:10 +0800876#define CONFIG_NUM_DDR_CONTROLLERS 1
877#define CONFIG_PME_PLAT_CLK_DIV 1
878#define CONFIG_SYS_PME_CLK CONFIG_PME_PLAT_CLK_DIV
879#define CONFIG_SYS_FM1_CLK 0
880#define CONFIG_SYS_FSL_DDR_VER FSL_DDR_VER_4_7
881#define CONFIG_SYS_FSL_IFC_BANK_COUNT 8
882#define CONFIG_SYS_FMAN_V3
883#define CONFIG_SYS_FM_MURAM_SIZE 0x28000
884#define CONFIG_SYS_FSL_TBCLK_DIV 16
885#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v3.0"
886#define CONFIG_SYS_FSL_USB_DUAL_PHY_ENABLE
887#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
York Sunc3678b02014-03-28 15:07:27 -0700888#define CONFIG_SYS_FSL_ERRATUM_A007212
Shengzhou Liu629d6b32013-11-22 17:39:10 +0800889#define CONFIG_SYS_CCSRBAR_DEFAULT 0xfe000000
890#define CONFIG_SYS_FSL_SFP_VER_3_0
891#define CONFIG_SYS_FSL_ISBC_VER 2
Haijun.Zhang1336e2d2014-03-18 17:04:23 +0800892#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
Shengzhou Liuc665c472014-04-24 11:10:09 +0800893#define CONFIG_SYS_FSL_ERRATUM_A006261
894#define CONFIG_SYS_FSL_ERRATUM_A006593
Shaveta Leekhab6808cd2014-05-28 14:18:55 +0530895#define CONFIG_SYS_FSL_ERRATUM_A007186
Shengzhou Liuc665c472014-04-24 11:10:09 +0800896#define CONFIG_SYS_FSL_ERRATUM_A006379
Haijun.Zhang1336e2d2014-03-18 17:04:23 +0800897#define ESDHCI_QUIRK_BROKEN_TIMEOUT_VALUE
Shaveta Leekhab6808cd2014-05-28 14:18:55 +0530898#define CONFIG_SYS_FSL_SFP_VER_3_0
Haijun.Zhang1336e2d2014-03-18 17:04:23 +0800899
Shengzhou Liu629d6b32013-11-22 17:39:10 +0800900
Mingkai Hu3b75e982013-07-04 17:30:36 +0800901#elif defined(CONFIG_PPC_C29X)
902#define CONFIG_MAX_CPUS 1
903#define CONFIG_FSL_SDHC_V2_3
904#define CONFIG_SYS_FSL_NUM_LAWS 12
905#define CONFIG_SYS_PPC_E500_DEBUG_TLB 3
906#define CONFIG_TSECV2_1
907#define CONFIG_SYS_FSL_SEC_COMPAT 6
908#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
909#define CONFIG_NUM_DDR_CONTROLLERS 1
York Sun34e026f2014-03-27 17:54:47 -0700910#define CONFIG_SYS_FSL_DDR_VER FSL_DDR_VER_4_6
Mingkai Hu3b75e982013-07-04 17:30:36 +0800911#define CONFIG_SYS_FSL_IFC_BANK_COUNT 8
912#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
York Sun954a1a42013-08-20 15:09:43 -0700913#define CONFIG_SYS_FSL_ERRATUM_A005125
Mingkai Hu3b75e982013-07-04 17:30:36 +0800914
Alexander Graffa08d392014-04-11 17:09:45 +0200915#elif defined(CONFIG_QEMU_E500)
916#define CONFIG_MAX_CPUS 1
917#define CONFIG_SYS_CCSRBAR_DEFAULT 0xe0000000
918
Kumar Gala243be8e2011-01-19 03:05:26 -0600919#else
920#error Processor type not defined for this platform
921#endif
922
Timur Tabie46fedf2011-08-04 18:03:41 -0500923#ifndef CONFIG_SYS_CCSRBAR_DEFAULT
924#error "CONFIG_SYS_CCSRBAR_DEFAULT is not defined for this platform."
925#endif
926
York Sunf6981432013-03-25 07:40:07 +0000927#ifdef CONFIG_E6500
928#define CONFIG_SYS_FSL_THREADS_PER_CORE 2
929#else
930#define CONFIG_SYS_FSL_THREADS_PER_CORE 1
931#endif
932
York Sun5614e712013-09-30 09:22:09 -0700933#if !defined(CONFIG_SYS_FSL_DDRC_GEN1) && \
934 !defined(CONFIG_SYS_FSL_DDRC_GEN2) && \
York Sun34e026f2014-03-27 17:54:47 -0700935 !defined(CONFIG_SYS_FSL_DDRC_GEN3) && \
936 !defined(CONFIG_SYS_FSL_DDRC_GEN4)
York Sun5614e712013-09-30 09:22:09 -0700937#define CONFIG_SYS_FSL_DDRC_GEN3
938#endif
939
Kumar Gala243be8e2011-01-19 03:05:26 -0600940#endif /* _ASM_MPC85xx_CONFIG_H_ */