blob: 01b09058cc3fb8765622e17379765f6d71031435 [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
Prabhakar Kushwaha1b4175d2014-01-18 12:28:30 +053028
Kumar Gala243be8e2011-01-19 03:05:26 -060029/* Number of TLB CAM entries we have on FSL Book-E chips */
30#if defined(CONFIG_E500MC)
31#define CONFIG_SYS_NUM_TLBCAMS 64
32#elif defined(CONFIG_E500)
33#define CONFIG_SYS_NUM_TLBCAMS 16
34#endif
35
36#if defined(CONFIG_MPC8536)
37#define CONFIG_MAX_CPUS 1
38#define CONFIG_SYS_FSL_NUM_LAWS 12
Prabhakar Kushwahae4879af2012-08-15 04:12:43 +000039#define CONFIG_SYS_PPC_E500_DEBUG_TLB 1
Kumar Gala243be8e2011-01-19 03:05:26 -060040#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabie46fedf2011-08-04 18:03:41 -050041#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
York Sun9855b3b2014-05-23 13:15:00 -070042#define CONFIG_SYS_FSL_ERRATUM_A004508
York Sun954a1a42013-08-20 15:09:43 -070043#define CONFIG_SYS_FSL_ERRATUM_A005125
Kumar Gala243be8e2011-01-19 03:05:26 -060044
Wolfgang Denkd1a24f02011-02-02 22:36:10 +010045#elif defined(CONFIG_MPC8540)
Kumar Gala243be8e2011-01-19 03:05:26 -060046#define CONFIG_MAX_CPUS 1
47#define CONFIG_SYS_FSL_NUM_LAWS 8
York Sun5614e712013-09-30 09:22:09 -070048#define CONFIG_SYS_FSL_DDRC_GEN1
Timur Tabie46fedf2011-08-04 18:03:41 -050049#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Gala243be8e2011-01-19 03:05:26 -060050
Wolfgang Denkd1a24f02011-02-02 22:36:10 +010051#elif defined(CONFIG_MPC8541)
Kumar Gala243be8e2011-01-19 03:05:26 -060052#define CONFIG_MAX_CPUS 1
53#define CONFIG_SYS_FSL_NUM_LAWS 8
York Sun5614e712013-09-30 09:22:09 -070054#define CONFIG_SYS_FSL_DDRC_GEN1
Kumar Gala243be8e2011-01-19 03:05:26 -060055#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabie46fedf2011-08-04 18:03:41 -050056#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Gala243be8e2011-01-19 03:05:26 -060057
58#elif defined(CONFIG_MPC8544)
59#define CONFIG_MAX_CPUS 1
60#define CONFIG_SYS_FSL_NUM_LAWS 10
York Sun5614e712013-09-30 09:22:09 -070061#define CONFIG_SYS_FSL_DDRC_GEN2
Prabhakar Kushwahae4879af2012-08-15 04:12:43 +000062#define CONFIG_SYS_PPC_E500_DEBUG_TLB 0
Kumar Gala243be8e2011-01-19 03:05:26 -060063#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabie46fedf2011-08-04 18:03:41 -050064#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
York Sun954a1a42013-08-20 15:09:43 -070065#define CONFIG_SYS_FSL_ERRATUM_A005125
Kumar Gala243be8e2011-01-19 03:05:26 -060066
67#elif defined(CONFIG_MPC8548)
68#define CONFIG_MAX_CPUS 1
69#define CONFIG_SYS_FSL_NUM_LAWS 10
York Sun5614e712013-09-30 09:22:09 -070070#define CONFIG_SYS_FSL_DDRC_GEN2
Prabhakar Kushwahae4879af2012-08-15 04:12:43 +000071#define CONFIG_SYS_PPC_E500_DEBUG_TLB 0
Kumar Gala243be8e2011-01-19 03:05:26 -060072#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabie46fedf2011-08-04 18:03:41 -050073#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Gala5ace2992011-09-16 09:54:30 -050074#define CONFIG_SYS_FSL_ERRATUM_NMG_DDR120
Kumar Gala2b3a1cd2011-10-03 08:37:57 -050075#define CONFIG_SYS_FSL_ERRATUM_NMG_LBC103
chenhui zhaoaada81d2011-10-03 08:38:50 -050076#define CONFIG_SYS_FSL_ERRATUM_NMG_ETSEC129
Liu Gang7d67ed52012-03-08 00:33:14 +000077#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 1
78#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
79#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
80#define CONFIG_SYS_FSL_RMU
81#define CONFIG_SYS_FSL_SRIO_MSG_UNIT_NUM 2
York Sun954a1a42013-08-20 15:09:43 -070082#define CONFIG_SYS_FSL_ERRATUM_A005125
Chunhe Lan9c3f77e2013-08-16 15:10:37 +080083#define CONFIG_SYS_FSL_ERRATUM_I2C_A004447
84#define CONFIG_SYS_FSL_A004447_SVR_REV 0x00
Kumar Gala243be8e2011-01-19 03:05:26 -060085
86#elif defined(CONFIG_MPC8555)
87#define CONFIG_MAX_CPUS 1
88#define CONFIG_SYS_FSL_NUM_LAWS 8
York Sun5614e712013-09-30 09:22:09 -070089#define CONFIG_SYS_FSL_DDRC_GEN1
Kumar Gala243be8e2011-01-19 03:05:26 -060090#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabie46fedf2011-08-04 18:03:41 -050091#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Gala243be8e2011-01-19 03:05:26 -060092
93#elif defined(CONFIG_MPC8560)
94#define CONFIG_MAX_CPUS 1
95#define CONFIG_SYS_FSL_NUM_LAWS 8
York Sun5614e712013-09-30 09:22:09 -070096#define CONFIG_SYS_FSL_DDRC_GEN1
Timur Tabie46fedf2011-08-04 18:03:41 -050097#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Gala243be8e2011-01-19 03:05:26 -060098
99#elif defined(CONFIG_MPC8568)
100#define CONFIG_MAX_CPUS 1
101#define CONFIG_SYS_FSL_NUM_LAWS 10
York Sun5614e712013-09-30 09:22:09 -0700102#define CONFIG_SYS_FSL_DDRC_GEN2
Kumar Gala243be8e2011-01-19 03:05:26 -0600103#define CONFIG_SYS_FSL_SEC_COMPAT 2
Kumar Galafdb4dad2011-01-31 23:09:25 -0600104#define QE_MURAM_SIZE 0x10000UL
105#define MAX_QE_RISC 2
106#define QE_NUM_OF_SNUM 28
Timur Tabie46fedf2011-08-04 18:03:41 -0500107#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Liu Gang7d67ed52012-03-08 00:33:14 +0000108#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 1
109#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
110#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
111#define CONFIG_SYS_FSL_RMU
112#define CONFIG_SYS_FSL_SRIO_MSG_UNIT_NUM 2
Kumar Gala243be8e2011-01-19 03:05:26 -0600113
114#elif defined(CONFIG_MPC8569)
115#define CONFIG_MAX_CPUS 1
116#define CONFIG_SYS_FSL_NUM_LAWS 10
117#define CONFIG_SYS_FSL_SEC_COMPAT 2
Kumar Galafdb4dad2011-01-31 23:09:25 -0600118#define QE_MURAM_SIZE 0x20000UL
119#define MAX_QE_RISC 4
120#define QE_NUM_OF_SNUM 46
Timur Tabie46fedf2011-08-04 18:03:41 -0500121#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Liu Gang7d67ed52012-03-08 00:33:14 +0000122#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 1
123#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
124#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
125#define CONFIG_SYS_FSL_RMU
126#define CONFIG_SYS_FSL_SRIO_MSG_UNIT_NUM 2
York Sun9855b3b2014-05-23 13:15:00 -0700127#define CONFIG_SYS_FSL_ERRATUM_A004508
York Sun954a1a42013-08-20 15:09:43 -0700128#define CONFIG_SYS_FSL_ERRATUM_A005125
Kumar Gala243be8e2011-01-19 03:05:26 -0600129
130#elif defined(CONFIG_MPC8572)
131#define CONFIG_MAX_CPUS 2
132#define CONFIG_SYS_FSL_NUM_LAWS 12
Prabhakar Kushwahae4879af2012-08-15 04:12:43 +0000133#define CONFIG_SYS_PPC_E500_DEBUG_TLB 2
Kumar Gala243be8e2011-01-19 03:05:26 -0600134#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabie46fedf2011-08-04 18:03:41 -0500135#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
York Suneb0aff72011-01-25 21:51:27 -0800136#define CONFIG_SYS_FSL_ERRATUM_DDR_115
York Sun91671912011-01-25 22:05:49 -0800137#define CONFIG_SYS_FSL_ERRATUM_DDR111_DDR134
York Sun9855b3b2014-05-23 13:15:00 -0700138#define CONFIG_SYS_FSL_ERRATUM_A004508
York Sun954a1a42013-08-20 15:09:43 -0700139#define CONFIG_SYS_FSL_ERRATUM_A005125
Kumar Gala243be8e2011-01-19 03:05:26 -0600140
141#elif defined(CONFIG_P1010)
142#define CONFIG_MAX_CPUS 1
Priyanka Jain32c8cfb2011-02-09 09:24:10 +0530143#define CONFIG_FSL_SDHC_V2_3
Kumar Gala243be8e2011-01-19 03:05:26 -0600144#define CONFIG_SYS_FSL_NUM_LAWS 12
Prabhakar Kushwahaad75d442012-04-29 23:57:12 +0000145#define CONFIG_SYS_PPC_E500_DEBUG_TLB 3
Kumar Gala243be8e2011-01-19 03:05:26 -0600146#define CONFIG_TSECV2
147#define CONFIG_SYS_FSL_SEC_COMPAT 4
Poonam Aggrwal1fbf3482011-02-06 11:31:44 +0530148#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
149#define CONFIG_NUM_DDR_CONTROLLERS 1
ramneek mehreshf1810d82013-10-18 17:40:17 +0530150#define CONFIG_USB_MAX_CONTROLLER_COUNT 1
Mingkai Hu362ee042013-05-16 10:18:13 +0800151#define CONFIG_SYS_FSL_IFC_BANK_COUNT 4
Poonam Aggrwal1fbf3482011-02-06 11:31:44 +0530152#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Gala8f290842011-05-20 00:39:21 -0500153#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.2"
Ramneek Mehresh1b719e62011-03-23 15:20:43 +0530154#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
Poonam Aggrwal42aee642011-06-30 03:00:28 -0500155#define CONFIG_SYS_FSL_ERRATUM_IFC_A002769
Poonam Aggrwalfb855f42011-06-29 16:32:52 +0530156#define CONFIG_SYS_FSL_ERRATUM_P1010_A003549
Shengzhou Liu424bf942013-08-15 09:31:47 +0800157#define CONFIG_SYS_FSL_ERRATUM_SEC_A003571
Poonam Aggrwalbc6bbd62011-07-07 20:36:47 +0530158#define CONFIG_SYS_FSL_ERRATUM_IFC_A003399
York Sun954a1a42013-08-20 15:09:43 -0700159#define CONFIG_SYS_FSL_ERRATUM_A005125
Chunhe Lan9c3f77e2013-08-16 15:10:37 +0800160#define CONFIG_SYS_FSL_ERRATUM_I2C_A004447
York Sun9855b3b2014-05-23 13:15:00 -0700161#define CONFIG_SYS_FSL_ERRATUM_A004508
Nikhil Badola11856912014-02-26 17:43:15 +0530162#define CONFIG_SYS_FSL_ERRATUM_A007075
Suresh Gupta9c641a82014-02-26 14:29:12 +0530163#define CONFIG_SYS_FSL_ERRATUM_A006261
Chunhe Lan9c3f77e2013-08-16 15:10:37 +0800164#define CONFIG_SYS_FSL_A004447_SVR_REV 0x10
Haijun.Zhangf28bea02014-01-10 13:52:19 +0800165#define CONFIG_ESDHC_HC_BLK_ADDR
Kumar Gala243be8e2011-01-19 03:05:26 -0600166
Kumar Gala093cffb2011-02-05 13:45:07 -0600167/* P1011 is single core version of P1020 */
Kumar Gala243be8e2011-01-19 03:05:26 -0600168#elif defined(CONFIG_P1011)
169#define CONFIG_MAX_CPUS 1
170#define CONFIG_SYS_FSL_NUM_LAWS 12
Prabhakar Kushwahaad75d442012-04-29 23:57:12 +0000171#define CONFIG_SYS_PPC_E500_DEBUG_TLB 2
Kumar Gala243be8e2011-01-19 03:05:26 -0600172#define CONFIG_TSECV2
Prabhakar Kushwahab03a4662011-02-01 15:55:58 +0000173#define CONFIG_FSL_PCIE_DISABLE_ASPM
Kumar Gala243be8e2011-01-19 03:05:26 -0600174#define CONFIG_SYS_FSL_SEC_COMPAT 2
ramneek mehreshf1810d82013-10-18 17:40:17 +0530175#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
Timur Tabie46fedf2011-08-04 18:03:41 -0500176#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Gala093cffb2011-02-05 13:45:07 -0600177#define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
178#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
York Sun9855b3b2014-05-23 13:15:00 -0700179#define CONFIG_SYS_FSL_ERRATUM_A004508
York Sun954a1a42013-08-20 15:09:43 -0700180#define CONFIG_SYS_FSL_ERRATUM_A005125
Kumar Gala243be8e2011-01-19 03:05:26 -0600181
Kumar Gala093cffb2011-02-05 13:45:07 -0600182/* P1012 is single core version of P1021 */
Kumar Gala243be8e2011-01-19 03:05:26 -0600183#elif defined(CONFIG_P1012)
184#define CONFIG_MAX_CPUS 1
185#define CONFIG_SYS_FSL_NUM_LAWS 12
ramneek mehreshf1810d82013-10-18 17:40:17 +0530186#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
Prabhakar Kushwahaad75d442012-04-29 23:57:12 +0000187#define CONFIG_SYS_PPC_E500_DEBUG_TLB 2
Kumar Gala243be8e2011-01-19 03:05:26 -0600188#define CONFIG_TSECV2
Prabhakar Kushwahab03a4662011-02-01 15:55:58 +0000189#define CONFIG_FSL_PCIE_DISABLE_ASPM
Kumar Gala243be8e2011-01-19 03:05:26 -0600190#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabie46fedf2011-08-04 18:03:41 -0500191#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Gala093cffb2011-02-05 13:45:07 -0600192#define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
193#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
Haiying Wanga52d2f82011-02-11 01:25:30 -0600194#define QE_MURAM_SIZE 0x6000UL
195#define MAX_QE_RISC 1
196#define QE_NUM_OF_SNUM 28
York Sun9855b3b2014-05-23 13:15:00 -0700197#define CONFIG_SYS_FSL_ERRATUM_A004508
York Sun954a1a42013-08-20 15:09:43 -0700198#define CONFIG_SYS_FSL_ERRATUM_A005125
Kumar Gala243be8e2011-01-19 03:05:26 -0600199
Kumar Gala093cffb2011-02-05 13:45:07 -0600200/* P1013 is single core version of P1022 */
Kumar Gala243be8e2011-01-19 03:05:26 -0600201#elif defined(CONFIG_P1013)
202#define CONFIG_MAX_CPUS 1
203#define CONFIG_SYS_FSL_NUM_LAWS 12
ramneek mehreshf1810d82013-10-18 17:40:17 +0530204#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
Prabhakar Kushwahaad75d442012-04-29 23:57:12 +0000205#define CONFIG_SYS_PPC_E500_DEBUG_TLB 2
Kumar Gala243be8e2011-01-19 03:05:26 -0600206#define CONFIG_TSECV2
207#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabie46fedf2011-08-04 18:03:41 -0500208#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Jiang Yutang2d7534a2011-01-30 17:06:20 -0600209#define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
210#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
211#define CONFIG_FSL_SATA_ERRATUM_A001
York Sun9855b3b2014-05-23 13:15:00 -0700212#define CONFIG_SYS_FSL_ERRATUM_A004508
York Sun954a1a42013-08-20 15:09:43 -0700213#define CONFIG_SYS_FSL_ERRATUM_A005125
Kumar Gala243be8e2011-01-19 03:05:26 -0600214
215#elif defined(CONFIG_P1014)
216#define CONFIG_MAX_CPUS 1
Priyanka Jain32c8cfb2011-02-09 09:24:10 +0530217#define CONFIG_FSL_SDHC_V2_3
Kumar Gala243be8e2011-01-19 03:05:26 -0600218#define CONFIG_SYS_FSL_NUM_LAWS 12
Prabhakar Kushwahaad75d442012-04-29 23:57:12 +0000219#define CONFIG_SYS_PPC_E500_DEBUG_TLB 3
Kumar Gala243be8e2011-01-19 03:05:26 -0600220#define CONFIG_TSECV2
221#define CONFIG_SYS_FSL_SEC_COMPAT 4
Poonam Aggrwal1fbf3482011-02-06 11:31:44 +0530222#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
223#define CONFIG_NUM_DDR_CONTROLLERS 1
ramneek mehreshf1810d82013-10-18 17:40:17 +0530224#define CONFIG_USB_MAX_CONTROLLER_COUNT 1
Poonam Aggrwal1fbf3482011-02-06 11:31:44 +0530225#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Ramneek Mehresh1b719e62011-03-23 15:20:43 +0530226#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
Poonam Aggrwal42aee642011-06-30 03:00:28 -0500227#define CONFIG_SYS_FSL_ERRATUM_IFC_A002769
Poonam Aggrwalfb855f42011-06-29 16:32:52 +0530228#define CONFIG_SYS_FSL_ERRATUM_P1010_A003549
Poonam Aggrwalbc6bbd62011-07-07 20:36:47 +0530229#define CONFIG_SYS_FSL_ERRATUM_IFC_A003399
York Sun9855b3b2014-05-23 13:15:00 -0700230#define CONFIG_SYS_FSL_ERRATUM_A004508
Kumar Gala243be8e2011-01-19 03:05:26 -0600231
Kumar Gala093cffb2011-02-05 13:45:07 -0600232/* P1017 is single core version of P1023 */
Roy Zang67a719d2011-02-03 22:14:19 -0600233#elif defined(CONFIG_P1017)
234#define CONFIG_MAX_CPUS 1
235#define CONFIG_SYS_FSL_NUM_LAWS 12
236#define CONFIG_SYS_FSL_SEC_COMPAT 4
237#define CONFIG_SYS_NUM_FMAN 1
238#define CONFIG_SYS_NUM_FM1_DTSEC 2
239#define CONFIG_NUM_DDR_CONTROLLERS 1
ramneek mehreshf1810d82013-10-18 17:40:17 +0530240#define CONFIG_USB_MAX_CONTROLLER_COUNT 1
Roy Zang67a719d2011-02-03 22:14:19 -0600241#define CONFIG_SYS_QMAN_NUM_PORTALS 3
242#define CONFIG_SYS_BMAN_NUM_PORTALS 3
Kumar Galac657d892011-02-04 00:43:34 -0600243#define CONFIG_SYS_FM_MURAM_SIZE 0x10000
Kumar Gala8f290842011-05-20 00:39:21 -0500244#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.2"
Timur Tabie46fedf2011-08-04 18:03:41 -0500245#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff600000
York Sun9855b3b2014-05-23 13:15:00 -0700246#define CONFIG_SYS_FSL_ERRATUM_A004508
York Sun954a1a42013-08-20 15:09:43 -0700247#define CONFIG_SYS_FSL_ERRATUM_A005125
Roy Zang67a719d2011-02-03 22:14:19 -0600248
Kumar Gala243be8e2011-01-19 03:05:26 -0600249#elif defined(CONFIG_P1020)
250#define CONFIG_MAX_CPUS 2
251#define CONFIG_SYS_FSL_NUM_LAWS 12
Prabhakar Kushwahaad75d442012-04-29 23:57:12 +0000252#define CONFIG_SYS_PPC_E500_DEBUG_TLB 2
Kumar Gala243be8e2011-01-19 03:05:26 -0600253#define CONFIG_TSECV2
Prabhakar Kushwahab03a4662011-02-01 15:55:58 +0000254#define CONFIG_FSL_PCIE_DISABLE_ASPM
Kumar Gala243be8e2011-01-19 03:05:26 -0600255#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabie46fedf2011-08-04 18:03:41 -0500256#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Gala093cffb2011-02-05 13:45:07 -0600257#define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
258#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
York Sun9855b3b2014-05-23 13:15:00 -0700259#define CONFIG_SYS_FSL_ERRATUM_A004508
York Sun954a1a42013-08-20 15:09:43 -0700260#define CONFIG_SYS_FSL_ERRATUM_A005125
ramneek mehresh80ba6a62014-05-13 15:36:07 +0530261#ifndef CONFIG_USB_MAX_CONTROLLER_COUNT
ramneek mehreshf1810d82013-10-18 17:40:17 +0530262#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
ramneek mehresh80ba6a62014-05-13 15:36:07 +0530263#endif
Kumar Gala243be8e2011-01-19 03:05:26 -0600264
265#elif defined(CONFIG_P1021)
266#define CONFIG_MAX_CPUS 2
267#define CONFIG_SYS_FSL_NUM_LAWS 12
Prabhakar Kushwahaad75d442012-04-29 23:57:12 +0000268#define CONFIG_SYS_PPC_E500_DEBUG_TLB 2
Kumar Gala243be8e2011-01-19 03:05:26 -0600269#define CONFIG_TSECV2
Prabhakar Kushwahab03a4662011-02-01 15:55:58 +0000270#define CONFIG_FSL_PCIE_DISABLE_ASPM
Kumar Gala243be8e2011-01-19 03:05:26 -0600271#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabie46fedf2011-08-04 18:03:41 -0500272#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Gala093cffb2011-02-05 13:45:07 -0600273#define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
274#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
Haiying Wanga52d2f82011-02-11 01:25:30 -0600275#define QE_MURAM_SIZE 0x6000UL
276#define MAX_QE_RISC 1
277#define QE_NUM_OF_SNUM 28
York Sun9855b3b2014-05-23 13:15:00 -0700278#define CONFIG_SYS_FSL_ERRATUM_A004508
York Sun954a1a42013-08-20 15:09:43 -0700279#define CONFIG_SYS_FSL_ERRATUM_A005125
ramneek mehreshf1810d82013-10-18 17:40:17 +0530280#define CONFIG_USB_MAX_CONTROLLER_COUNT 1
Kumar Gala243be8e2011-01-19 03:05:26 -0600281
282#elif defined(CONFIG_P1022)
283#define CONFIG_MAX_CPUS 2
284#define CONFIG_SYS_FSL_NUM_LAWS 12
Prabhakar Kushwahaad75d442012-04-29 23:57:12 +0000285#define CONFIG_SYS_PPC_E500_DEBUG_TLB 2
Kumar Gala243be8e2011-01-19 03:05:26 -0600286#define CONFIG_TSECV2
287#define CONFIG_SYS_FSL_SEC_COMPAT 2
ramneek mehreshf1810d82013-10-18 17:40:17 +0530288#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
Timur Tabie46fedf2011-08-04 18:03:41 -0500289#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Jiang Yutang2d7534a2011-01-30 17:06:20 -0600290#define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
291#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
292#define CONFIG_FSL_SATA_ERRATUM_A001
York Sun9855b3b2014-05-23 13:15:00 -0700293#define CONFIG_SYS_FSL_ERRATUM_A004508
York Sun954a1a42013-08-20 15:09:43 -0700294#define CONFIG_SYS_FSL_ERRATUM_A005125
Kumar Gala243be8e2011-01-19 03:05:26 -0600295
Roy Zang67a719d2011-02-03 22:14:19 -0600296#elif defined(CONFIG_P1023)
297#define CONFIG_MAX_CPUS 2
298#define CONFIG_SYS_FSL_NUM_LAWS 12
299#define CONFIG_SYS_FSL_SEC_COMPAT 4
300#define CONFIG_SYS_NUM_FMAN 1
301#define CONFIG_SYS_NUM_FM1_DTSEC 2
302#define CONFIG_NUM_DDR_CONTROLLERS 1
ramneek mehreshf1810d82013-10-18 17:40:17 +0530303#define CONFIG_USB_MAX_CONTROLLER_COUNT 1
Roy Zang67a719d2011-02-03 22:14:19 -0600304#define CONFIG_SYS_QMAN_NUM_PORTALS 3
305#define CONFIG_SYS_BMAN_NUM_PORTALS 3
Kumar Galac657d892011-02-04 00:43:34 -0600306#define CONFIG_SYS_FM_MURAM_SIZE 0x10000
Kumar Gala8f290842011-05-20 00:39:21 -0500307#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.2"
Timur Tabie46fedf2011-08-04 18:03:41 -0500308#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff600000
York Sun9855b3b2014-05-23 13:15:00 -0700309#define CONFIG_SYS_FSL_ERRATUM_A004508
York Sun954a1a42013-08-20 15:09:43 -0700310#define CONFIG_SYS_FSL_ERRATUM_A005125
Chunhe Lan9c3f77e2013-08-16 15:10:37 +0800311#define CONFIG_SYS_FSL_ERRATUM_I2C_A004447
312#define CONFIG_SYS_FSL_A004447_SVR_REV 0x11
Roy Zang67a719d2011-02-03 22:14:19 -0600313
Kumar Gala093cffb2011-02-05 13:45:07 -0600314/* P1024 is lower end variant of P1020 */
315#elif defined(CONFIG_P1024)
316#define CONFIG_MAX_CPUS 2
317#define CONFIG_SYS_FSL_NUM_LAWS 12
Prabhakar Kushwahaad75d442012-04-29 23:57:12 +0000318#define CONFIG_SYS_PPC_E500_DEBUG_TLB 2
Kumar Gala093cffb2011-02-05 13:45:07 -0600319#define CONFIG_TSECV2
320#define CONFIG_FSL_PCIE_DISABLE_ASPM
321#define CONFIG_SYS_FSL_SEC_COMPAT 2
ramneek mehreshf1810d82013-10-18 17:40:17 +0530322#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
Timur Tabie46fedf2011-08-04 18:03:41 -0500323#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Gala093cffb2011-02-05 13:45:07 -0600324#define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
325#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
York Sun9855b3b2014-05-23 13:15:00 -0700326#define CONFIG_SYS_FSL_ERRATUM_A004508
York Sun954a1a42013-08-20 15:09:43 -0700327#define CONFIG_SYS_FSL_ERRATUM_A005125
Kumar Gala093cffb2011-02-05 13:45:07 -0600328
329/* P1025 is lower end variant of P1021 */
330#elif defined(CONFIG_P1025)
331#define CONFIG_MAX_CPUS 2
332#define CONFIG_SYS_FSL_NUM_LAWS 12
ramneek mehreshf1810d82013-10-18 17:40:17 +0530333#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
Prabhakar Kushwahaad75d442012-04-29 23:57:12 +0000334#define CONFIG_SYS_PPC_E500_DEBUG_TLB 2
Kumar Gala093cffb2011-02-05 13:45:07 -0600335#define CONFIG_TSECV2
336#define CONFIG_FSL_PCIE_DISABLE_ASPM
337#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabie46fedf2011-08-04 18:03:41 -0500338#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Gala093cffb2011-02-05 13:45:07 -0600339#define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
340#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
Haiying Wanga52d2f82011-02-11 01:25:30 -0600341#define QE_MURAM_SIZE 0x6000UL
342#define MAX_QE_RISC 1
343#define QE_NUM_OF_SNUM 28
York Sun9855b3b2014-05-23 13:15:00 -0700344#define CONFIG_SYS_FSL_ERRATUM_A004508
York Sun954a1a42013-08-20 15:09:43 -0700345#define CONFIG_SYS_FSL_ERRATUM_A005125
Kumar Gala093cffb2011-02-05 13:45:07 -0600346
347/* P2010 is single core version of P2020 */
Kumar Gala243be8e2011-01-19 03:05:26 -0600348#elif defined(CONFIG_P2010)
349#define CONFIG_MAX_CPUS 1
350#define CONFIG_SYS_FSL_NUM_LAWS 12
Prabhakar Kushwahaad75d442012-04-29 23:57:12 +0000351#define CONFIG_SYS_PPC_E500_DEBUG_TLB 2
Kumar Gala243be8e2011-01-19 03:05:26 -0600352#define CONFIG_SYS_FSL_SEC_COMPAT 2
ramneek mehreshf1810d82013-10-18 17:40:17 +0530353#define CONFIG_USB_MAX_CONTROLLER_COUNT 1
Timur Tabie46fedf2011-08-04 18:03:41 -0500354#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Gala6e7f0bc02011-01-26 01:43:15 -0600355#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
Kumar Gala5103a032011-01-29 15:36:10 -0600356#define CONFIG_SYS_FSL_ERRATUM_ESDHC_A001
York Sun9855b3b2014-05-23 13:15:00 -0700357#define CONFIG_SYS_FSL_ERRATUM_A004508
York Sun954a1a42013-08-20 15:09:43 -0700358#define CONFIG_SYS_FSL_ERRATUM_A005125
Kumar Gala243be8e2011-01-19 03:05:26 -0600359
360#elif defined(CONFIG_P2020)
361#define CONFIG_MAX_CPUS 2
362#define CONFIG_SYS_FSL_NUM_LAWS 12
Prabhakar Kushwahaad75d442012-04-29 23:57:12 +0000363#define CONFIG_SYS_PPC_E500_DEBUG_TLB 2
Kumar Gala243be8e2011-01-19 03:05:26 -0600364#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabie46fedf2011-08-04 18:03:41 -0500365#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Gala6e7f0bc02011-01-26 01:43:15 -0600366#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
Kumar Gala5103a032011-01-29 15:36:10 -0600367#define CONFIG_SYS_FSL_ERRATUM_ESDHC_A001
Liu Gang7d67ed52012-03-08 00:33:14 +0000368#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 2
369#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
370#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
371#define CONFIG_SYS_FSL_RMU
372#define CONFIG_SYS_FSL_SRIO_MSG_UNIT_NUM 2
York Sun9855b3b2014-05-23 13:15:00 -0700373#define CONFIG_SYS_FSL_ERRATUM_A004508
York Sun954a1a42013-08-20 15:09:43 -0700374#define CONFIG_SYS_FSL_ERRATUM_A005125
ramneek mehreshf1810d82013-10-18 17:40:17 +0530375#define CONFIG_USB_MAX_CONTROLLER_COUNT 1
York Sun9855b3b2014-05-23 13:15:00 -0700376
Scott Wood3e978f52012-08-14 10:14:51 +0000377#elif defined(CONFIG_PPC_P2041) /* also supports P2040 */
York Sund1001e32012-10-08 07:44:15 +0000378#define CONFIG_SYS_FSL_QORIQ_CHASSIS1
York Sund2ab4bb2013-06-25 11:37:39 -0700379#define CONFIG_FSL_CORENET /* Freescale CoreNet platform */
Kumar Gala1f979872011-05-13 01:16:07 -0500380#define CONFIG_MAX_CPUS 4
381#define CONFIG_SYS_FSL_NUM_CC_PLLS 2
382#define CONFIG_SYS_FSL_NUM_LAWS 32
383#define CONFIG_SYS_FSL_SEC_COMPAT 4
384#define CONFIG_SYS_NUM_FMAN 1
385#define CONFIG_SYS_NUM_FM1_DTSEC 5
386#define CONFIG_SYS_NUM_FM1_10GEC 1
387#define CONFIG_NUM_DDR_CONTROLLERS 1
ramneek mehreshf1810d82013-10-18 17:40:17 +0530388#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
Kumar Gala1f979872011-05-13 01:16:07 -0500389#define CONFIG_SYS_FM_MURAM_SIZE 0x28000
390#define CONFIG_SYS_FSL_TBCLK_DIV 32
391#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.2"
Timur Tabie46fedf2011-08-04 18:03:41 -0500392#define CONFIG_SYS_CCSRBAR_DEFAULT 0xfe000000
Kumar Gala1f979872011-05-13 01:16:07 -0500393#define CONFIG_SYS_FSL_USB1_PHY_ENABLE
394#define CONFIG_SYS_FSL_USB2_PHY_ENABLE
Kumar Galab6c37222011-04-13 00:19:10 -0500395#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
Kumar Gala1f979872011-05-13 01:16:07 -0500396#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
York Sun5e23ab02012-05-07 07:26:47 +0000397#define CONFIG_SYS_FSL_ERRATUM_NMG_CPU_A011
Xulei99d7b0a2013-03-11 17:56:34 +0000398#define CONFIG_SYS_FSL_ERRATUM_USB14
Kumar Gala43f082b2011-11-22 06:51:15 -0600399#define CONFIG_SYS_FSL_ERRATUM_CPU_A003999
York Sune22be772013-03-25 07:30:11 +0000400#define CONFIG_SYS_FSL_ERRATUM_DDR_A003
York Sun41085082011-11-20 10:01:35 -0800401#define CONFIG_SYS_FSL_ERRATUM_DDR_A003474
Liu Gang7d67ed52012-03-08 00:33:14 +0000402#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 2
403#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
404#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
Scott Wood33eee332012-08-14 10:14:53 +0000405#define CONFIG_SYS_FSL_ERRATUM_A004510
406#define CONFIG_SYS_FSL_ERRATUM_A004510_SVR_REV 0x10
407#define CONFIG_SYS_FSL_ERRATUM_A004510_SVR_REV2 0x11
408#define CONFIG_SYS_FSL_CORENET_SNOOPVEC_COREONLY 0xf0000000
Liu Gangd59c5572012-09-28 21:26:19 +0000409#define CONFIG_SYS_FSL_ERRATUM_SRIO_A004034
Timur Tabi01180332012-10-25 12:40:00 +0000410#define CONFIG_SYS_FSL_ERRATUM_A004849
Chunhe Lan9c3f77e2013-08-16 15:10:37 +0800411#define CONFIG_SYS_FSL_ERRATUM_I2C_A004447
Suresh Gupta9c641a82014-02-26 14:29:12 +0530412#define CONFIG_SYS_FSL_ERRATUM_A006261
Chunhe Lan9c3f77e2013-08-16 15:10:37 +0800413#define CONFIG_SYS_FSL_A004447_SVR_REV 0x11
Kumar Gala1f979872011-05-13 01:16:07 -0500414
Kumar Gala243be8e2011-01-19 03:05:26 -0600415#elif defined(CONFIG_PPC_P3041)
York Sund1001e32012-10-08 07:44:15 +0000416#define CONFIG_SYS_FSL_QORIQ_CHASSIS1
York Sund2ab4bb2013-06-25 11:37:39 -0700417#define CONFIG_FSL_CORENET /* Freescale CoreNet platform */
Kumar Gala243be8e2011-01-19 03:05:26 -0600418#define CONFIG_MAX_CPUS 4
Kumar Galab5c87532011-02-16 02:03:29 -0600419#define CONFIG_SYS_FSL_NUM_CC_PLLS 2
Kumar Gala243be8e2011-01-19 03:05:26 -0600420#define CONFIG_SYS_FSL_NUM_LAWS 32
421#define CONFIG_SYS_FSL_SEC_COMPAT 4
Kumar Galafbee0f72011-01-25 12:42:32 -0600422#define CONFIG_SYS_NUM_FMAN 1
423#define CONFIG_SYS_NUM_FM1_DTSEC 5
424#define CONFIG_SYS_NUM_FM1_10GEC 1
425#define CONFIG_NUM_DDR_CONTROLLERS 1
York Sun34e026f2014-03-27 17:54:47 -0700426#define CONFIG_SYS_FSL_DDR_VER FSL_DDR_VER_4_5
Kumar Galac657d892011-02-04 00:43:34 -0600427#define CONFIG_SYS_FM_MURAM_SIZE 0x28000
Kumar Gala66412c62011-02-18 05:40:54 -0600428#define CONFIG_SYS_FSL_TBCLK_DIV 32
Kumar Gala8f290842011-05-20 00:39:21 -0500429#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.2"
Timur Tabie46fedf2011-08-04 18:03:41 -0500430#define CONFIG_SYS_CCSRBAR_DEFAULT 0xfe000000
Roy Zang86221f02011-04-13 00:08:51 -0500431#define CONFIG_SYS_FSL_USB1_PHY_ENABLE
432#define CONFIG_SYS_FSL_USB2_PHY_ENABLE
Kumar Galab6c37222011-04-13 00:19:10 -0500433#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
ramneek mehreshf1810d82013-10-18 17:40:17 +0530434#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
Lei Xu30009762011-04-19 15:28:41 +0800435#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
York Sun57125f22012-08-08 18:04:53 +0000436#define CONFIG_SYS_FSL_ERRATUM_NMG_CPU_A011
Xulei99d7b0a2013-03-11 17:56:34 +0000437#define CONFIG_SYS_FSL_ERRATUM_USB14
Kumar Gala43f082b2011-11-22 06:51:15 -0600438#define CONFIG_SYS_FSL_ERRATUM_CPU_A003999
York Sune22be772013-03-25 07:30:11 +0000439#define CONFIG_SYS_FSL_ERRATUM_DDR_A003
York Sun41085082011-11-20 10:01:35 -0800440#define CONFIG_SYS_FSL_ERRATUM_DDR_A003474
Liu Gang7d67ed52012-03-08 00:33:14 +0000441#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 2
442#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
443#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
Scott Wood33eee332012-08-14 10:14:53 +0000444#define CONFIG_SYS_FSL_ERRATUM_A004510
445#define CONFIG_SYS_FSL_ERRATUM_A004510_SVR_REV 0x10
446#define CONFIG_SYS_FSL_ERRATUM_A004510_SVR_REV2 0x11
447#define CONFIG_SYS_FSL_CORENET_SNOOPVEC_COREONLY 0xf0000000
Liu Gangd59c5572012-09-28 21:26:19 +0000448#define CONFIG_SYS_FSL_ERRATUM_SRIO_A004034
Timur Tabi01180332012-10-25 12:40:00 +0000449#define CONFIG_SYS_FSL_ERRATUM_A004849
York Sund217a9a2013-06-25 11:37:49 -0700450#define CONFIG_SYS_FSL_ERRATUM_A005812
Chunhe Lan9c3f77e2013-08-16 15:10:37 +0800451#define CONFIG_SYS_FSL_ERRATUM_I2C_A004447
Suresh Gupta9c641a82014-02-26 14:29:12 +0530452#define CONFIG_SYS_FSL_ERRATUM_A006261
Chunhe Lan9c3f77e2013-08-16 15:10:37 +0800453#define CONFIG_SYS_FSL_A004447_SVR_REV 0x20
Kumar Gala243be8e2011-01-19 03:05:26 -0600454
Scott Wood3e978f52012-08-14 10:14:51 +0000455#elif defined(CONFIG_PPC_P4080) /* also supports P4040 */
York Sund1001e32012-10-08 07:44:15 +0000456#define CONFIG_SYS_FSL_QORIQ_CHASSIS1
York Sund2ab4bb2013-06-25 11:37:39 -0700457#define CONFIG_FSL_CORENET /* Freescale CoreNet platform */
Kumar Gala243be8e2011-01-19 03:05:26 -0600458#define CONFIG_MAX_CPUS 8
Kumar Galab5c87532011-02-16 02:03:29 -0600459#define CONFIG_SYS_FSL_NUM_CC_PLLS 4
Kumar Gala243be8e2011-01-19 03:05:26 -0600460#define CONFIG_SYS_FSL_NUM_LAWS 32
461#define CONFIG_SYS_FSL_SEC_COMPAT 4
462#define CONFIG_SYS_NUM_FMAN 2
463#define CONFIG_SYS_NUM_FM1_DTSEC 4
464#define CONFIG_SYS_NUM_FM2_DTSEC 4
465#define CONFIG_SYS_NUM_FM1_10GEC 1
466#define CONFIG_SYS_NUM_FM2_10GEC 1
467#define CONFIG_NUM_DDR_CONTROLLERS 2
York Sun34e026f2014-03-27 17:54:47 -0700468#define CONFIG_SYS_FSL_DDR_VER FSL_DDR_VER_4_4
ramneek mehreshf1810d82013-10-18 17:40:17 +0530469#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
Kumar Galac657d892011-02-04 00:43:34 -0600470#define CONFIG_SYS_FM_MURAM_SIZE 0x28000
Kumar Gala66412c62011-02-18 05:40:54 -0600471#define CONFIG_SYS_FSL_TBCLK_DIV 16
Kumar Gala8f290842011-05-20 00:39:21 -0500472#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,p4080-pcie"
Timur Tabie46fedf2011-08-04 18:03:41 -0500473#define CONFIG_SYS_CCSRBAR_DEFAULT 0xfe000000
Kumar Gala243be8e2011-01-19 03:05:26 -0600474#define CONFIG_SYS_FSL_ERRATUM_CPC_A002
475#define CONFIG_SYS_FSL_ERRATUM_CPC_A003
York Sunfa8d23c2011-01-10 12:03:01 +0000476#define CONFIG_SYS_FSL_ERRATUM_DDR_A003
Kumar Gala243be8e2011-01-19 03:05:26 -0600477#define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
478#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
479#define CONFIG_SYS_FSL_ERRATUM_ESDHC135
Zang Roy-R619114e0be342012-09-18 09:50:08 +0000480#define CONFIG_SYS_FSL_ERRATUM_ESDHC13
Kumar Gala243be8e2011-01-19 03:05:26 -0600481#define CONFIG_SYS_P4080_ERRATUM_CPU22
York Sun5e23ab02012-05-07 07:26:47 +0000482#define CONFIG_SYS_FSL_ERRATUM_NMG_CPU_A011
Kumar Gala243be8e2011-01-19 03:05:26 -0600483#define CONFIG_SYS_P4080_ERRATUM_SERDES8
Emil Medvedf8af0b2010-08-31 22:57:38 -0500484#define CONFIG_SYS_P4080_ERRATUM_SERDES9
Timur Tabid90fdba2011-04-18 17:16:00 -0500485#define CONFIG_SYS_P4080_ERRATUM_SERDES_A001
Timur Tabida30b9f2011-04-01 13:19:36 -0500486#define CONFIG_SYS_P4080_ERRATUM_SERDES_A005
Kumar Gala43f082b2011-11-22 06:51:15 -0600487#define CONFIG_SYS_FSL_ERRATUM_CPU_A003999
York Sun41085082011-11-20 10:01:35 -0800488#define CONFIG_SYS_FSL_ERRATUM_DDR_A003474
Liu Gang7d67ed52012-03-08 00:33:14 +0000489#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 2
490#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
491#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
492#define CONFIG_SYS_FSL_RMU
493#define CONFIG_SYS_FSL_SRIO_MSG_UNIT_NUM 2
Scott Wood33eee332012-08-14 10:14:53 +0000494#define CONFIG_SYS_FSL_ERRATUM_A004510
495#define CONFIG_SYS_FSL_ERRATUM_A004510_SVR_REV 0x20
496#define CONFIG_SYS_FSL_CORENET_SNOOPVEC_COREONLY 0xff000000
Liu Gangd59c5572012-09-28 21:26:19 +0000497#define CONFIG_SYS_FSL_ERRATUM_SRIO_A004034
Timur Tabi01180332012-10-25 12:40:00 +0000498#define CONFIG_SYS_FSL_ERRATUM_A004849
Timur Tabid607b962012-11-01 08:20:23 +0000499#define CONFIG_SYS_FSL_ERRATUM_A004580
Yuanquan Chenc0a4e6b2012-11-26 23:49:45 +0000500#define CONFIG_SYS_P4080_ERRATUM_PCIE_A003
York Sund217a9a2013-06-25 11:37:49 -0700501#define CONFIG_SYS_FSL_ERRATUM_A005812
Chunhe Lan9c3f77e2013-08-16 15:10:37 +0800502#define CONFIG_SYS_FSL_ERRATUM_I2C_A004447
Nikhil Badola11856912014-02-26 17:43:15 +0530503#define CONFIG_SYS_FSL_ERRATUM_A007075
Chunhe Lan9c3f77e2013-08-16 15:10:37 +0800504#define CONFIG_SYS_FSL_A004447_SVR_REV 0x20
Kumar Gala243be8e2011-01-19 03:05:26 -0600505
Scott Wood3e978f52012-08-14 10:14:51 +0000506#elif defined(CONFIG_PPC_P5020) /* also supports P5010 */
York Sunffd06e02012-10-08 07:44:30 +0000507#define CONFIG_SYS_PPC64 /* 64-bit core */
York Sund1001e32012-10-08 07:44:15 +0000508#define CONFIG_SYS_FSL_QORIQ_CHASSIS1
York Sund2ab4bb2013-06-25 11:37:39 -0700509#define CONFIG_FSL_CORENET /* Freescale CoreNet platform */
Kumar Gala243be8e2011-01-19 03:05:26 -0600510#define CONFIG_MAX_CPUS 2
Kumar Galab5c87532011-02-16 02:03:29 -0600511#define CONFIG_SYS_FSL_NUM_CC_PLLS 2
Kumar Gala243be8e2011-01-19 03:05:26 -0600512#define CONFIG_SYS_FSL_NUM_LAWS 32
513#define CONFIG_SYS_FSL_SEC_COMPAT 4
Kumar Galafbee0f72011-01-25 12:42:32 -0600514#define CONFIG_SYS_NUM_FMAN 1
515#define CONFIG_SYS_NUM_FM1_DTSEC 5
516#define CONFIG_SYS_NUM_FM1_10GEC 1
517#define CONFIG_NUM_DDR_CONTROLLERS 2
York Sun34e026f2014-03-27 17:54:47 -0700518#define CONFIG_SYS_FSL_DDR_VER FSL_DDR_VER_4_4
ramneek mehreshf1810d82013-10-18 17:40:17 +0530519#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
Kumar Galac657d892011-02-04 00:43:34 -0600520#define CONFIG_SYS_FM_MURAM_SIZE 0x28000
Kumar Gala66412c62011-02-18 05:40:54 -0600521#define CONFIG_SYS_FSL_TBCLK_DIV 32
Kumar Gala8f290842011-05-20 00:39:21 -0500522#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.2"
Timur Tabie46fedf2011-08-04 18:03:41 -0500523#define CONFIG_SYS_CCSRBAR_DEFAULT 0xfe000000
Roy Zang86221f02011-04-13 00:08:51 -0500524#define CONFIG_SYS_FSL_USB1_PHY_ENABLE
525#define CONFIG_SYS_FSL_USB2_PHY_ENABLE
Kumar Galab6c37222011-04-13 00:19:10 -0500526#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
Lei Xu30009762011-04-19 15:28:41 +0800527#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
Xulei99d7b0a2013-03-11 17:56:34 +0000528#define CONFIG_SYS_FSL_ERRATUM_USB14
York Sune22be772013-03-25 07:30:11 +0000529#define CONFIG_SYS_FSL_ERRATUM_DDR_A003
York Sun41085082011-11-20 10:01:35 -0800530#define CONFIG_SYS_FSL_ERRATUM_DDR_A003474
Liu Gang7d67ed52012-03-08 00:33:14 +0000531#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 2
532#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
533#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
Scott Wood33eee332012-08-14 10:14:53 +0000534#define CONFIG_SYS_FSL_ERRATUM_A004510
535#define CONFIG_SYS_FSL_ERRATUM_A004510_SVR_REV 0x10
536#define CONFIG_SYS_FSL_CORENET_SNOOPVEC_COREONLY 0xc0000000
Liu Gangd59c5572012-09-28 21:26:19 +0000537#define CONFIG_SYS_FSL_ERRATUM_SRIO_A004034
Chunhe Lan9c3f77e2013-08-16 15:10:37 +0800538#define CONFIG_SYS_FSL_ERRATUM_I2C_A004447
Suresh Gupta9c641a82014-02-26 14:29:12 +0530539#define CONFIG_SYS_FSL_ERRATUM_A006261
Chunhe Lan9c3f77e2013-08-16 15:10:37 +0800540#define CONFIG_SYS_FSL_A004447_SVR_REV 0x20
Kumar Gala243be8e2011-01-19 03:05:26 -0600541
Timur Tabi49054432012-10-05 11:09:19 +0000542#elif defined(CONFIG_PPC_P5040)
Timur Tabi1956e432012-10-23 10:48:09 +0000543#define CONFIG_SYS_PPC64
Timur Tabi49054432012-10-05 11:09:19 +0000544#define CONFIG_SYS_FSL_QORIQ_CHASSIS1
York Sund2ab4bb2013-06-25 11:37:39 -0700545#define CONFIG_FSL_CORENET /* Freescale CoreNet platform */
Timur Tabi49054432012-10-05 11:09:19 +0000546#define CONFIG_MAX_CPUS 4
547#define CONFIG_SYS_FSL_NUM_CC_PLLS 3
548#define CONFIG_SYS_FSL_NUM_LAWS 32
549#define CONFIG_SYS_FSL_SEC_COMPAT 4
550#define CONFIG_SYS_NUM_FMAN 2
551#define CONFIG_SYS_NUM_FM1_DTSEC 5
552#define CONFIG_SYS_NUM_FM1_10GEC 1
553#define CONFIG_SYS_NUM_FM2_DTSEC 5
554#define CONFIG_SYS_NUM_FM2_10GEC 1
555#define CONFIG_NUM_DDR_CONTROLLERS 2
York Sun34e026f2014-03-27 17:54:47 -0700556#define CONFIG_SYS_FSL_DDR_VER FSL_DDR_VER_4_4
ramneek mehreshf1810d82013-10-18 17:40:17 +0530557#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
Timur Tabi49054432012-10-05 11:09:19 +0000558#define CONFIG_SYS_FM_MURAM_SIZE 0x28000
559#define CONFIG_SYS_FSL_TBCLK_DIV 16
560#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.4"
561#define CONFIG_SYS_CCSRBAR_DEFAULT 0xfe000000
562#define CONFIG_SYS_FSL_USB1_PHY_ENABLE
563#define CONFIG_SYS_FSL_USB2_PHY_ENABLE
564#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
565#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
Xulei99d7b0a2013-03-11 17:56:34 +0000566#define CONFIG_SYS_FSL_ERRATUM_USB14
Timur Tabi49054432012-10-05 11:09:19 +0000567#define CONFIG_SYS_FSL_ERRATUM_DDR_A003
568#define CONFIG_SYS_FSL_ERRATUM_DDR_A003474
569#define CONFIG_SYS_FSL_ERRATUM_A004699
Timur Tabi49054432012-10-05 11:09:19 +0000570#define CONFIG_SYS_FSL_ERRATUM_A004510
571#define CONFIG_SYS_FSL_ERRATUM_A004510_SVR_REV 0x10
Suresh Gupta9c641a82014-02-26 14:29:12 +0530572#define CONFIG_SYS_FSL_ERRATUM_A006261
Timur Tabi49054432012-10-05 11:09:19 +0000573#define CONFIG_SYS_FSL_CORENET_SNOOPVEC_COREONLY 0xf0000000
York Sund217a9a2013-06-25 11:37:49 -0700574#define CONFIG_SYS_FSL_ERRATUM_A005812
Timur Tabi49054432012-10-05 11:09:19 +0000575
Prabhakar Kushwaha19a8dbd2012-04-24 20:16:49 +0000576#elif defined(CONFIG_BSC9131)
577#define CONFIG_MAX_CPUS 1
578#define CONFIG_FSL_SDHC_V2_3
579#define CONFIG_SYS_FSL_NUM_LAWS 12
580#define CONFIG_TSECV2
581#define CONFIG_SYS_FSL_SEC_COMPAT 4
582#define CONFIG_NUM_DDR_CONTROLLERS 1
York Sun34e026f2014-03-27 17:54:47 -0700583#define CONFIG_SYS_FSL_DDR_VER FSL_DDR_VER_4_4
ramneek mehreshf1810d82013-10-18 17:40:17 +0530584#define CONFIG_USB_MAX_CONTROLLER_COUNT 1
Priyanka Jain765b0bd2013-04-04 09:31:54 +0530585#define CONFIG_SYS_FSL_DSP_M2_RAM_ADDR 0xb0000000
586#define CONFIG_SYS_FSL_DSP_CCSRBAR_DEFAULT 0xff600000
Mingkai Hu362ee042013-05-16 10:18:13 +0800587#define CONFIG_SYS_FSL_IFC_BANK_COUNT 3
Prabhakar Kushwaha19a8dbd2012-04-24 20:16:49 +0000588#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
589#define CONFIG_NAND_FSL_IFC
Prabhakar Kushwaha19a8dbd2012-04-24 20:16:49 +0000590#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
York Sun954a1a42013-08-20 15:09:43 -0700591#define CONFIG_SYS_FSL_ERRATUM_A005125
Haijun.Zhangf28bea02014-01-10 13:52:19 +0800592#define CONFIG_ESDHC_HC_BLK_ADDR
Prabhakar Kushwaha19a8dbd2012-04-24 20:16:49 +0000593
Prabhakar Kushwaha35fe9482013-01-23 17:59:57 +0000594#elif defined(CONFIG_BSC9132)
595#define CONFIG_MAX_CPUS 2
596#define CONFIG_SYS_PPC_E500_DEBUG_TLB 3
597#define CONFIG_FSL_SDHC_V2_3
598#define CONFIG_SYS_FSL_NUM_LAWS 12
599#define CONFIG_TSECV2
600#define CONFIG_SYS_FSL_SEC_COMPAT 4
601#define CONFIG_NUM_DDR_CONTROLLERS 2
York Sun34e026f2014-03-27 17:54:47 -0700602#define CONFIG_SYS_FSL_DDR_VER FSL_DDR_VER_4_6
ramneek mehreshf1810d82013-10-18 17:40:17 +0530603#define CONFIG_USB_MAX_CONTROLLER_COUNT 1
Priyanka Jain64501c62013-07-02 09:21:04 +0530604#define CONFIG_SYS_FSL_DSP_DDR_ADDR 0x40000000
605#define CONFIG_SYS_FSL_DSP_M2_RAM_ADDR 0xb0000000
606#define CONFIG_SYS_FSL_DSP_M3_RAM_ADDR 0xc0000000
607#define CONFIG_SYS_FSL_DSP_CCSRBAR_DEFAULT 0xff600000
York Sun061ffed2013-04-18 19:31:01 -0700608#define CONFIG_SYS_FSL_IFC_BANK_COUNT 3
Prabhakar Kushwaha35fe9482013-01-23 17:59:57 +0000609#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
610#define CONFIG_NAND_FSL_IFC
Prabhakar Kushwaha35fe9482013-01-23 17:59:57 +0000611#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
612#define CONFIG_SYS_FSL_ESDHC_P1010_BROKEN_SDCLK
613#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.2"
York Sun954a1a42013-08-20 15:09:43 -0700614#define CONFIG_SYS_FSL_ERRATUM_A005125
Chunhe Lanf1a96ec2014-05-07 10:50:20 +0800615#define CONFIG_SYS_FSL_ERRATUM_A005434
Chunhe Lan9c3f77e2013-08-16 15:10:37 +0800616#define CONFIG_SYS_FSL_ERRATUM_I2C_A004447
617#define CONFIG_SYS_FSL_A004447_SVR_REV 0x11
Haijun.Zhangf28bea02014-01-10 13:52:19 +0800618#define CONFIG_ESDHC_HC_BLK_ADDR
Prabhakar Kushwaha35fe9482013-01-23 17:59:57 +0000619
Shengzhou Liu5122dfa2014-04-25 16:31:22 +0800620#elif defined(CONFIG_PPC_T4240) || defined(CONFIG_PPC_T4160) || \
621 defined(CONFIG_PPC_T4080)
York Sun3d2972f2013-03-25 07:40:05 +0000622#define CONFIG_E6500
York Sunffd06e02012-10-08 07:44:30 +0000623#define CONFIG_SYS_PPC64 /* 64-bit core */
York Sun9e758752012-10-08 07:44:19 +0000624#define CONFIG_FSL_CORENET /* Freescale CoreNet platform */
625#define CONFIG_SYS_FSL_QORIQ_CHASSIS2 /* Freescale Chassis generation 2 */
York Sunf6981432013-03-25 07:40:07 +0000626#define CONFIG_SYS_FSL_CORES_PER_CLUSTER 4
York Sun9e758752012-10-08 07:44:19 +0000627#define CONFIG_SYS_FSL_QMAN_V3 /* QMAN version 3 */
York Sun3d2972f2013-03-25 07:40:05 +0000628#ifdef CONFIG_PPC_T4240
York Sun9e758752012-10-08 07:44:19 +0000629#define CONFIG_MAX_CPUS 12
Prabhakar Kushwahace746fe2013-09-03 11:20:15 +0530630#define CONFIG_SYS_FSL_CLUSTER_CLOCKS { 1, 1, 4 }
York Sun9e758752012-10-08 07:44:19 +0000631#define CONFIG_SYS_NUM_FM1_DTSEC 8
632#define CONFIG_SYS_NUM_FM1_10GEC 2
633#define CONFIG_SYS_NUM_FM2_DTSEC 8
634#define CONFIG_SYS_NUM_FM2_10GEC 2
635#define CONFIG_NUM_DDR_CONTROLLERS 3
York Sun3d2972f2013-03-25 07:40:05 +0000636#else
Shengzhou Liu5122dfa2014-04-25 16:31:22 +0800637#define CONFIG_SYS_NUM_FM1_DTSEC 6
York Sun3d2972f2013-03-25 07:40:05 +0000638#define CONFIG_SYS_NUM_FM1_10GEC 1
Shengzhou Liu5122dfa2014-04-25 16:31:22 +0800639#define CONFIG_SYS_NUM_FM2_DTSEC 8
York Sun3d2972f2013-03-25 07:40:05 +0000640#define CONFIG_SYS_NUM_FM2_10GEC 1
641#define CONFIG_NUM_DDR_CONTROLLERS 2
Shengzhou Liu5122dfa2014-04-25 16:31:22 +0800642#if defined(CONFIG_PPC_T4160)
643#define CONFIG_MAX_CPUS 8
644#define CONFIG_SYS_FSL_CLUSTER_CLOCKS { 1, 1 }
645#elif defined(CONFIG_PPC_T4080)
646#define CONFIG_MAX_CPUS 4
647#define CONFIG_SYS_FSL_CLUSTER_CLOCKS { 1 }
648#endif
York Sun3d2972f2013-03-25 07:40:05 +0000649#endif
York Sunb6240842013-03-25 07:33:29 +0000650#define CONFIG_SYS_FSL_NUM_CC_PLLS 5
651#define CONFIG_SYS_FSL_NUM_LAWS 32
Prabhakar Kushwahaa4c955b2013-07-31 16:56:41 +0530652#define CONFIG_SYS_FSL_SRDS_1
653#define CONFIG_SYS_FSL_SRDS_2
York Sunb6240842013-03-25 07:33:29 +0000654#define CONFIG_SYS_FSL_SRDS_3
655#define CONFIG_SYS_FSL_SRDS_4
656#define CONFIG_SYS_FSL_SEC_COMPAT 4
657#define CONFIG_SYS_NUM_FMAN 2
ramneek mehreshf1810d82013-10-18 17:40:17 +0530658#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
Prabhakar Kushwahace746fe2013-09-03 11:20:15 +0530659#define CONFIG_SYS_PME_CLK 0
York Sunb6240842013-03-25 07:33:29 +0000660#define CONFIG_SYS_FSL_DDR_VER FSL_DDR_VER_4_7
Mingkai Hu362ee042013-05-16 10:18:13 +0800661#define CONFIG_SYS_FSL_IFC_BANK_COUNT 8
York Sunb6240842013-03-25 07:33:29 +0000662#define CONFIG_SYS_FMAN_V3
Prabhakar Kushwahace746fe2013-09-03 11:20:15 +0530663#define CONFIG_SYS_FM1_CLK 3
664#define CONFIG_SYS_FM2_CLK 3
York Sunb6240842013-03-25 07:33:29 +0000665#define CONFIG_SYS_FM_MURAM_SIZE 0x60000
666#define CONFIG_SYS_FSL_TBCLK_DIV 16
667#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v3.0"
668#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 2
669#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
670#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
Liu Gang08047932013-06-25 18:12:14 +0800671#define CONFIG_SYS_FSL_SRIO_LIODN
York Sunb6240842013-03-25 07:33:29 +0000672#define CONFIG_SYS_FSL_USB_DUAL_PHY_ENABLE
673#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
674#define CONFIG_SYS_FSL_ERRATUM_A004468
675#define CONFIG_SYS_FSL_ERRATUM_A_004934
676#define CONFIG_SYS_FSL_ERRATUM_A005871
Suresh Gupta9c641a82014-02-26 14:29:12 +0530677#define CONFIG_SYS_FSL_ERRATUM_A006261
York Sun133fbfa2013-09-16 12:49:31 -0700678#define CONFIG_SYS_FSL_ERRATUM_A006379
Shaveta Leekhab6808cd2014-05-28 14:18:55 +0530679#define CONFIG_SYS_FSL_ERRATUM_A007186
Scott Wood82125192013-05-15 17:50:13 -0500680#define CONFIG_SYS_FSL_ERRATUM_A006593
Nikhil Badolaf3dff692014-10-17 09:12:07 +0530681#define CONFIG_SYS_FSL_ERRATUM_A007798
York Sunb6240842013-03-25 07:33:29 +0000682#define CONFIG_SYS_CCSRBAR_DEFAULT 0xfe000000
Shaveta Leekhab6808cd2014-05-28 14:18:55 +0530683#define CONFIG_SYS_FSL_SFP_VER_3_0
York Sunb6240842013-03-25 07:33:29 +0000684#define CONFIG_SYS_FSL_PCI_VER_3_X
685
Poonam Aggrwal8fa01022013-03-25 07:40:20 +0000686#elif defined(CONFIG_PPC_B4860) || defined(CONFIG_PPC_B4420)
687#define CONFIG_E6500
Poonam Aggrwale1dbdd82012-12-23 19:24:16 +0000688#define CONFIG_SYS_PPC64 /* 64-bit core */
689#define CONFIG_FSL_CORENET /* Freescale CoreNet platform */
690#define CONFIG_SYS_FSL_QORIQ_CHASSIS2 /* Freescale Chassis generation 2 */
691#define CONFIG_SYS_FSL_QMAN_V3 /* QMAN version 3 */
Poonam Aggrwale1dbdd82012-12-23 19:24:16 +0000692#define CONFIG_SYS_FSL_NUM_LAWS 32
Prabhakar Kushwahaa4c955b2013-07-31 16:56:41 +0530693#define CONFIG_SYS_FSL_SRDS_1
694#define CONFIG_SYS_FSL_SRDS_2
Poonam Aggrwale1dbdd82012-12-23 19:24:16 +0000695#define CONFIG_SYS_FSL_SEC_COMPAT 4
696#define CONFIG_SYS_NUM_FMAN 1
ramneek mehreshf1810d82013-10-18 17:40:17 +0530697#define CONFIG_USB_MAX_CONTROLLER_COUNT 1
Prabhakar Kushwahace746fe2013-09-03 11:20:15 +0530698#define CONFIG_SYS_FM1_CLK 0
Poonam Aggrwale1dbdd82012-12-23 19:24:16 +0000699#define CONFIG_SYS_FSL_DDR_VER FSL_DDR_VER_4_7
Mingkai Hu362ee042013-05-16 10:18:13 +0800700#define CONFIG_SYS_FSL_IFC_BANK_COUNT 4
Poonam Aggrwale1dbdd82012-12-23 19:24:16 +0000701#define CONFIG_SYS_FMAN_V3
702#define CONFIG_SYS_FM_MURAM_SIZE 0x60000
703#define CONFIG_SYS_FSL_TBCLK_DIV 16
704#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.4"
705#define CONFIG_SYS_FSL_USB1_PHY_ENABLE
706#define CONFIG_SYS_FSL_ERRATUM_A_004934
Shengzhou Liu04feb572013-02-27 21:56:54 +0000707#define CONFIG_SYS_FSL_ERRATUM_A005871
York Sun133fbfa2013-09-16 12:49:31 -0700708#define CONFIG_SYS_FSL_ERRATUM_A006379
Shaveta Leekhab6808cd2014-05-28 14:18:55 +0530709#define CONFIG_SYS_FSL_ERRATUM_A007186
Scott Wood82125192013-05-15 17:50:13 -0500710#define CONFIG_SYS_FSL_ERRATUM_A006593
Nikhil Badola11856912014-02-26 17:43:15 +0530711#define CONFIG_SYS_FSL_ERRATUM_A007075
Shaveta Leekha7af9a072014-02-26 16:08:22 +0530712#define CONFIG_SYS_FSL_ERRATUM_A006475
713#define CONFIG_SYS_FSL_ERRATUM_A006384
York Sunc3678b02014-03-28 15:07:27 -0700714#define CONFIG_SYS_FSL_ERRATUM_A007212
Poonam Aggrwale1dbdd82012-12-23 19:24:16 +0000715#define CONFIG_SYS_CCSRBAR_DEFAULT 0xfe000000
Shaveta Leekhab6808cd2014-05-28 14:18:55 +0530716#define CONFIG_SYS_FSL_SFP_VER_3_0
Poonam Aggrwale1dbdd82012-12-23 19:24:16 +0000717
Poonam Aggrwal8fa01022013-03-25 07:40:20 +0000718#ifdef CONFIG_PPC_B4860
York Sunf6981432013-03-25 07:40:07 +0000719#define CONFIG_SYS_FSL_CORES_PER_CLUSTER 4
York Sund2404142012-10-08 07:44:20 +0000720#define CONFIG_MAX_CPUS 4
Shaveta Leekha6df82e32014-02-26 16:07:37 +0530721#define CONFIG_SYS_FSL_SRDS_NUM_PLLS 2
York Sund2404142012-10-08 07:44:20 +0000722#define CONFIG_SYS_FSL_NUM_CC_PLLS 4
Prabhakar Kushwahace746fe2013-09-03 11:20:15 +0530723#define CONFIG_SYS_FSL_CLUSTER_CLOCKS { 1, 4, 4, 4 }
York Sund2404142012-10-08 07:44:20 +0000724#define CONFIG_SYS_NUM_FM1_DTSEC 6
725#define CONFIG_SYS_NUM_FM1_10GEC 2
Poonam Aggrwale394ceb2012-12-23 19:22:33 +0000726#define CONFIG_NUM_DDR_CONTROLLERS 2
ramneek mehreshf1810d82013-10-18 17:40:17 +0530727#define CONFIG_USB_MAX_CONTROLLER_COUNT 1
York Sund2404142012-10-08 07:44:20 +0000728#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 2
729#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
730#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
Liu Gang32f38ee2013-06-25 18:12:13 +0800731#define CONFIG_SYS_FSL_SRIO_LIODN
Poonam Aggrwal8fa01022013-03-25 07:40:20 +0000732#else
733#define CONFIG_MAX_CPUS 2
Shaveta Leekha6df82e32014-02-26 16:07:37 +0530734#define CONFIG_SYS_FSL_SRDS_NUM_PLLS 1
Poonam Aggrwal8fa01022013-03-25 07:40:20 +0000735#define CONFIG_SYS_FSL_CORES_PER_CLUSTER 2
736#define CONFIG_SYS_FSL_NUM_CC_PLLS 4
Prabhakar Kushwahace746fe2013-09-03 11:20:15 +0530737#define CONFIG_SYS_FSL_CLUSTER_CLOCKS { 1, 4 }
Poonam Aggrwal8fa01022013-03-25 07:40:20 +0000738#define CONFIG_SYS_NUM_FM1_DTSEC 4
739#define CONFIG_SYS_NUM_FM1_10GEC 0
740#define CONFIG_NUM_DDR_CONTROLLERS 1
741#endif
York Sund2404142012-10-08 07:44:20 +0000742
Priyanka Jain2967af62013-10-18 12:30:21 +0530743#elif defined(CONFIG_PPC_T1040) || defined(CONFIG_PPC_T1042) ||\
744defined(CONFIG_PPC_T1020) || defined(CONFIG_PPC_T1022)
York Sun5f208d12013-03-25 07:40:06 +0000745#define CONFIG_E5500
746#define CONFIG_FSL_CORENET /* Freescale CoreNet platform */
747#define CONFIG_SYS_FSL_QORIQ_CHASSIS2 /* Freescale Chassis generation 2 */
York Sunf6981432013-03-25 07:40:07 +0000748#define CONFIG_SYS_FSL_CORES_PER_CLUSTER 1
York Sun5f208d12013-03-25 07:40:06 +0000749#define CONFIG_SYS_FSL_QMAN_V3 /* QMAN version 3 */
York Sun34e026f2014-03-27 17:54:47 -0700750#ifdef CONFIG_SYS_FSL_DDR4
751#define CONFIG_SYS_FSL_DDRC_GEN4
752#endif
Prabhakar Kushwaha1d384ec2013-09-03 11:19:54 +0530753#if defined(CONFIG_PPC_T1040) || defined(CONFIG_PPC_T1042)
York Sun5f208d12013-03-25 07:40:06 +0000754#define CONFIG_MAX_CPUS 4
Prabhakar Kushwaha1d384ec2013-09-03 11:19:54 +0530755#elif defined(CONFIG_PPC_T1020) || defined(CONFIG_PPC_T1022)
756#define CONFIG_MAX_CPUS 2
757#endif
758#define CONFIG_SYS_FSL_NUM_CC_PLLS 2
Prabhakar Kushwahace746fe2013-09-03 11:20:15 +0530759#define CONFIG_SYS_FSL_CLUSTER_CLOCKS { 1, 1, 1, 1 }
760#define CONFIG_SYS_SDHC_CLOCK 0
York Sun5f208d12013-03-25 07:40:06 +0000761#define CONFIG_SYS_FSL_NUM_LAWS 16
Prabhakar Kushwaha1d384ec2013-09-03 11:19:54 +0530762#define CONFIG_SYS_FSL_SRDS_1
763#define CONFIG_SYS_FSL_SEC_COMPAT 5
York Sun5f208d12013-03-25 07:40:06 +0000764#define CONFIG_SYS_NUM_FMAN 1
765#define CONFIG_SYS_NUM_FM1_DTSEC 5
766#define CONFIG_NUM_DDR_CONTROLLERS 1
ramneek mehreshf1810d82013-10-18 17:40:17 +0530767#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
Prabhakar Kushwahace746fe2013-09-03 11:20:15 +0530768#define CONFIG_PME_PLAT_CLK_DIV 2
769#define CONFIG_SYS_PME_CLK CONFIG_PME_PLAT_CLK_DIV
Prabhakar Kushwaha1d384ec2013-09-03 11:19:54 +0530770#define CONFIG_SYS_FSL_DDR_VER FSL_DDR_VER_5_0
771#define CONFIG_SYS_FSL_IFC_BANK_COUNT 8
Prabhakar Kushwaha9f074e62014-10-29 22:33:09 +0530772#define CONFIG_SYS_FSL_ERRATUM_A008044
York Sun5f208d12013-03-25 07:40:06 +0000773#define CONFIG_SYS_FMAN_V3
Prabhakar Kushwahace746fe2013-09-03 11:20:15 +0530774#define CONFIG_FM_PLAT_CLK_DIV 1
775#define CONFIG_SYS_FM1_CLK CONFIG_FM_PLAT_CLK_DIV
Prabhakar Kushwaha1d384ec2013-09-03 11:19:54 +0530776#define CONFIG_SYS_FM_MURAM_SIZE 0x30000
Priyanka Jainb1359912013-12-17 14:25:52 +0530777#define CONFIG_SYS_FSL_SINGLE_SOURCE_CLK
Prabhakar Kushwahae03c76c2013-12-11 12:49:13 +0530778#define CONFIG_SYS_FSL_TBCLK_DIV 16
York Sun5f208d12013-03-25 07:40:06 +0000779#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.4"
Nikhil Badolaa4f7cba2014-01-27 15:21:58 +0530780#define CONFIG_SYS_FSL_USB_DUAL_PHY_ENABLE
York Sun5f208d12013-03-25 07:40:06 +0000781#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
Suresh Gupta9c641a82014-02-26 14:29:12 +0530782#define CONFIG_SYS_FSL_ERRATUM_A006261
York Sun5f208d12013-03-25 07:40:06 +0000783#define CONFIG_SYS_CCSRBAR_DEFAULT 0xfe000000
Haijun.Zhang1336e2d2014-03-18 17:04:23 +0800784#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
785#define ESDHCI_QUIRK_BROKEN_TIMEOUT_VALUE
Zhao Qiang2a44efe2014-03-21 16:21:45 +0800786#define QE_MURAM_SIZE 0x6000UL
787#define MAX_QE_RISC 1
788#define QE_NUM_OF_SNUM 28
York Sun5f208d12013-03-25 07:40:06 +0000789
Shengzhou Liuf6050792014-11-24 17:11:54 +0800790#elif defined(CONFIG_PPC_T1024) || defined(CONFIG_PPC_T1023) ||\
791defined(CONFIG_PPC_T1014) || defined(CONFIG_PPC_T1013)
792#define CONFIG_E5500
793#define CONFIG_FSL_CORENET /* Freescale CoreNet platform */
794#define CONFIG_SYS_FSL_QORIQ_CHASSIS2 /* Freescale Chassis generation 2 */
795#define CONFIG_SYS_FSL_CORES_PER_CLUSTER 1
796#define CONFIG_SYS_FSL_QMAN_V3 /* QMAN version 3 */
797#define CONFIG_SYS_FMAN_V3
798#ifdef CONFIG_SYS_FSL_DDR4
799#define CONFIG_SYS_FSL_DDRC_GEN4
800#endif
801#if defined(CONFIG_PPC_T1024) || defined(CONFIG_PPC_T1023)
802#define CONFIG_MAX_CPUS 2
803#elif defined(CONFIG_PPC_T1014) || defined(CONFIG_PPC_T1013)
804#define CONFIG_MAX_CPUS 1
805#endif
806#define CONFIG_SYS_FSL_NUM_CC_PLL 2
807#define CONFIG_SYS_FSL_CLUSTER_CLOCKS { 1, 1, 1, 1 }
808#define CONFIG_SYS_SDHC_CLOCK 0
809#define CONFIG_SYS_FSL_NUM_LAWS 16
810#define CONFIG_SYS_FSL_SRDS_1
811#define CONFIG_SYS_FSL_SEC_COMPAT 5
812#define CONFIG_SYS_NUM_FMAN 1
813#define CONFIG_SYS_NUM_FM1_DTSEC 4
814#define CONFIG_SYS_NUM_FM1_10GEC 1
Shengzhou Liucc19c252014-11-24 17:11:57 +0800815#define CONFIG_FSL_FM_10GEC_REGULAR_NOTATION
Shengzhou Liuf6050792014-11-24 17:11:54 +0800816#define CONFIG_NUM_DDR_CONTROLLERS 1
817#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
818#define CONFIG_SYS_FSL_DDR_VER FSL_DDR_VER_5_0
819#define CONFIG_SYS_FSL_IFC_BANK_COUNT 8
820#define CONFIG_SYS_FM1_CLK 0
821#define CONFIG_QBMAN_CLK_DIV 1
822#define CONFIG_SYS_FM_MURAM_SIZE 0x30000
823#define CONFIG_SYS_FSL_SINGLE_SOURCE_CLK
824#define CONFIG_SYS_FSL_TBCLK_DIV 16
825#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.4"
826#define CONFIG_SYS_FSL_USB_DUAL_PHY_ENABLE
827#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
828#define CONFIG_SYS_CCSRBAR_DEFAULT 0xfe000000
829#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
830#define ESDHCI_QUIRK_BROKEN_TIMEOUT_VALUE
831#define QE_MURAM_SIZE 0x6000UL
832#define MAX_QE_RISC 1
833#define QE_NUM_OF_SNUM 28
834#define CONFIG_SYS_FSL_SFP_VER_3_0
835
Shengzhou Liu629d6b32013-11-22 17:39:10 +0800836#elif defined(CONFIG_PPC_T2080) || defined(CONFIG_PPC_T2081)
837#define CONFIG_E6500
838#define CONFIG_SYS_PPC64 /* 64-bit core */
839#define CONFIG_FSL_CORENET /* Freescale CoreNet platform */
840#define CONFIG_SYS_FSL_QORIQ_CHASSIS2 /* Freescale Chassis generation 2 */
841#define CONFIG_SYS_FSL_CORES_PER_CLUSTER 4
842#define CONFIG_SYS_FSL_NUM_CC_PLLS 2
843#define CONFIG_SYS_FSL_QMAN_V3
844#define CONFIG_MAX_CPUS 4
845#define CONFIG_SYS_FSL_NUM_LAWS 32
846#define CONFIG_SYS_FSL_SEC_COMPAT 4
847#define CONFIG_SYS_NUM_FMAN 1
848#define CONFIG_SYS_FSL_CLUSTER_CLOCKS { 1, 4, 4, 4 }
849#define CONFIG_SYS_FSL_SRDS_1
850#define CONFIG_SYS_FSL_PCI_VER_3_X
851#if defined(CONFIG_PPC_T2080)
852#define CONFIG_SYS_NUM_FM1_DTSEC 8
853#define CONFIG_SYS_NUM_FM1_10GEC 4
854#define CONFIG_SYS_FSL_SRDS_2
855#define CONFIG_SYS_FSL_SRIO_LIODN
856#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 2
857#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
858#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
859#elif defined(CONFIG_PPC_T2081)
860#define CONFIG_SYS_NUM_FM1_DTSEC 6
861#define CONFIG_SYS_NUM_FM1_10GEC 2
862#endif
Shengzhou Liu2ffa96d2013-12-18 10:27:55 +0800863#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
Shengzhou Liu629d6b32013-11-22 17:39:10 +0800864#define CONFIG_NUM_DDR_CONTROLLERS 1
865#define CONFIG_PME_PLAT_CLK_DIV 1
866#define CONFIG_SYS_PME_CLK CONFIG_PME_PLAT_CLK_DIV
867#define CONFIG_SYS_FM1_CLK 0
868#define CONFIG_SYS_FSL_DDR_VER FSL_DDR_VER_4_7
869#define CONFIG_SYS_FSL_IFC_BANK_COUNT 8
870#define CONFIG_SYS_FMAN_V3
871#define CONFIG_SYS_FM_MURAM_SIZE 0x28000
872#define CONFIG_SYS_FSL_TBCLK_DIV 16
873#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v3.0"
874#define CONFIG_SYS_FSL_USB_DUAL_PHY_ENABLE
875#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
York Sunc3678b02014-03-28 15:07:27 -0700876#define CONFIG_SYS_FSL_ERRATUM_A007212
Shengzhou Liu629d6b32013-11-22 17:39:10 +0800877#define CONFIG_SYS_CCSRBAR_DEFAULT 0xfe000000
878#define CONFIG_SYS_FSL_SFP_VER_3_0
879#define CONFIG_SYS_FSL_ISBC_VER 2
Haijun.Zhang1336e2d2014-03-18 17:04:23 +0800880#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
Shengzhou Liuc665c472014-04-24 11:10:09 +0800881#define CONFIG_SYS_FSL_ERRATUM_A006261
882#define CONFIG_SYS_FSL_ERRATUM_A006593
Shaveta Leekhab6808cd2014-05-28 14:18:55 +0530883#define CONFIG_SYS_FSL_ERRATUM_A007186
Shengzhou Liuc665c472014-04-24 11:10:09 +0800884#define CONFIG_SYS_FSL_ERRATUM_A006379
Haijun.Zhang1336e2d2014-03-18 17:04:23 +0800885#define ESDHCI_QUIRK_BROKEN_TIMEOUT_VALUE
Shaveta Leekhab6808cd2014-05-28 14:18:55 +0530886#define CONFIG_SYS_FSL_SFP_VER_3_0
Haijun.Zhang1336e2d2014-03-18 17:04:23 +0800887
Shengzhou Liu629d6b32013-11-22 17:39:10 +0800888
Mingkai Hu3b75e982013-07-04 17:30:36 +0800889#elif defined(CONFIG_PPC_C29X)
890#define CONFIG_MAX_CPUS 1
891#define CONFIG_FSL_SDHC_V2_3
892#define CONFIG_SYS_FSL_NUM_LAWS 12
893#define CONFIG_SYS_PPC_E500_DEBUG_TLB 3
894#define CONFIG_TSECV2_1
895#define CONFIG_SYS_FSL_SEC_COMPAT 6
896#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
897#define CONFIG_NUM_DDR_CONTROLLERS 1
York Sun34e026f2014-03-27 17:54:47 -0700898#define CONFIG_SYS_FSL_DDR_VER FSL_DDR_VER_4_6
Mingkai Hu3b75e982013-07-04 17:30:36 +0800899#define CONFIG_SYS_FSL_IFC_BANK_COUNT 8
900#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
York Sun954a1a42013-08-20 15:09:43 -0700901#define CONFIG_SYS_FSL_ERRATUM_A005125
Mingkai Hu3b75e982013-07-04 17:30:36 +0800902
Alexander Graffa08d392014-04-11 17:09:45 +0200903#elif defined(CONFIG_QEMU_E500)
904#define CONFIG_MAX_CPUS 1
905#define CONFIG_SYS_CCSRBAR_DEFAULT 0xe0000000
906
Kumar Gala243be8e2011-01-19 03:05:26 -0600907#else
908#error Processor type not defined for this platform
909#endif
910
Timur Tabie46fedf2011-08-04 18:03:41 -0500911#ifndef CONFIG_SYS_CCSRBAR_DEFAULT
912#error "CONFIG_SYS_CCSRBAR_DEFAULT is not defined for this platform."
913#endif
914
York Sunf6981432013-03-25 07:40:07 +0000915#ifdef CONFIG_E6500
916#define CONFIG_SYS_FSL_THREADS_PER_CORE 2
917#else
918#define CONFIG_SYS_FSL_THREADS_PER_CORE 1
919#endif
920
York Sun5614e712013-09-30 09:22:09 -0700921#if !defined(CONFIG_SYS_FSL_DDRC_GEN1) && \
922 !defined(CONFIG_SYS_FSL_DDRC_GEN2) && \
York Sun34e026f2014-03-27 17:54:47 -0700923 !defined(CONFIG_SYS_FSL_DDRC_GEN3) && \
924 !defined(CONFIG_SYS_FSL_DDRC_GEN4)
York Sun5614e712013-09-30 09:22:09 -0700925#define CONFIG_SYS_FSL_DDRC_GEN3
926#endif
927
Kumar Gala243be8e2011-01-19 03:05:26 -0600928#endif /* _ASM_MPC85xx_CONFIG_H_ */