blob: 9b7fedaef46634ee405e1c7e6913b87cfbaf1924 [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
Sriram Dash15a6d492016-08-17 11:47:53 +0530165#define CONFIG_SYS_FSL_USB1_PHY_ENABLE
Suresh Gupta9c641a82014-02-26 14:29:12 +0530166#define CONFIG_SYS_FSL_ERRATUM_A006261
Nikhil Badola0dc78ff2014-11-21 17:25:21 +0530167#define CONFIG_SYS_FSL_ERRATUM_A004477
Chunhe Lan9c3f77e2013-08-16 15:10:37 +0800168#define CONFIG_SYS_FSL_A004447_SVR_REV 0x10
Haijun.Zhangf28bea02014-01-10 13:52:19 +0800169#define CONFIG_ESDHC_HC_BLK_ADDR
Kumar Gala243be8e2011-01-19 03:05:26 -0600170
Kumar Gala093cffb2011-02-05 13:45:07 -0600171/* P1011 is single core version of P1020 */
Kumar Gala243be8e2011-01-19 03:05:26 -0600172#elif defined(CONFIG_P1011)
173#define CONFIG_MAX_CPUS 1
174#define CONFIG_SYS_FSL_NUM_LAWS 12
Prabhakar Kushwahaad75d442012-04-29 23:57:12 +0000175#define CONFIG_SYS_PPC_E500_DEBUG_TLB 2
Kumar Gala243be8e2011-01-19 03:05:26 -0600176#define CONFIG_TSECV2
Prabhakar Kushwahab03a4662011-02-01 15:55:58 +0000177#define CONFIG_FSL_PCIE_DISABLE_ASPM
Kumar Gala243be8e2011-01-19 03:05:26 -0600178#define CONFIG_SYS_FSL_SEC_COMPAT 2
ramneek mehreshf1810d82013-10-18 17:40:17 +0530179#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
Timur Tabie46fedf2011-08-04 18:03:41 -0500180#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Gala093cffb2011-02-05 13:45:07 -0600181#define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
182#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
York Sun9855b3b2014-05-23 13:15:00 -0700183#define CONFIG_SYS_FSL_ERRATUM_A004508
York Sun954a1a42013-08-20 15:09:43 -0700184#define CONFIG_SYS_FSL_ERRATUM_A005125
Kumar Gala243be8e2011-01-19 03:05:26 -0600185
Kumar Gala093cffb2011-02-05 13:45:07 -0600186/* P1012 is single core version of P1021 */
Kumar Gala243be8e2011-01-19 03:05:26 -0600187#elif defined(CONFIG_P1012)
188#define CONFIG_MAX_CPUS 1
189#define CONFIG_SYS_FSL_NUM_LAWS 12
ramneek mehreshf1810d82013-10-18 17:40:17 +0530190#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
Prabhakar Kushwahaad75d442012-04-29 23:57:12 +0000191#define CONFIG_SYS_PPC_E500_DEBUG_TLB 2
Kumar Gala243be8e2011-01-19 03:05:26 -0600192#define CONFIG_TSECV2
Prabhakar Kushwahab03a4662011-02-01 15:55:58 +0000193#define CONFIG_FSL_PCIE_DISABLE_ASPM
Kumar Gala243be8e2011-01-19 03:05:26 -0600194#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabie46fedf2011-08-04 18:03:41 -0500195#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Gala093cffb2011-02-05 13:45:07 -0600196#define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
197#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
Haiying Wanga52d2f82011-02-11 01:25:30 -0600198#define QE_MURAM_SIZE 0x6000UL
199#define MAX_QE_RISC 1
200#define QE_NUM_OF_SNUM 28
York Sun9855b3b2014-05-23 13:15:00 -0700201#define CONFIG_SYS_FSL_ERRATUM_A004508
York Sun954a1a42013-08-20 15:09:43 -0700202#define CONFIG_SYS_FSL_ERRATUM_A005125
Kumar Gala243be8e2011-01-19 03:05:26 -0600203
Kumar Gala093cffb2011-02-05 13:45:07 -0600204/* P1013 is single core version of P1022 */
Kumar Gala243be8e2011-01-19 03:05:26 -0600205#elif defined(CONFIG_P1013)
206#define CONFIG_MAX_CPUS 1
207#define CONFIG_SYS_FSL_NUM_LAWS 12
Ying Zhang703f5682015-01-30 14:52:11 +0800208#define CONFIG_USB_MAX_CONTROLLER_COUNT 1
Prabhakar Kushwahaad75d442012-04-29 23:57:12 +0000209#define CONFIG_SYS_PPC_E500_DEBUG_TLB 2
Kumar Gala243be8e2011-01-19 03:05:26 -0600210#define CONFIG_TSECV2
211#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabie46fedf2011-08-04 18:03:41 -0500212#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Jiang Yutang2d7534a2011-01-30 17:06:20 -0600213#define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
214#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
215#define CONFIG_FSL_SATA_ERRATUM_A001
York Sun9855b3b2014-05-23 13:15:00 -0700216#define CONFIG_SYS_FSL_ERRATUM_A004508
York Sun954a1a42013-08-20 15:09:43 -0700217#define CONFIG_SYS_FSL_ERRATUM_A005125
Kumar Gala243be8e2011-01-19 03:05:26 -0600218
219#elif defined(CONFIG_P1014)
220#define CONFIG_MAX_CPUS 1
Priyanka Jain32c8cfb2011-02-09 09:24:10 +0530221#define CONFIG_FSL_SDHC_V2_3
Kumar Gala243be8e2011-01-19 03:05:26 -0600222#define CONFIG_SYS_FSL_NUM_LAWS 12
Prabhakar Kushwahaad75d442012-04-29 23:57:12 +0000223#define CONFIG_SYS_PPC_E500_DEBUG_TLB 3
Kumar Gala243be8e2011-01-19 03:05:26 -0600224#define CONFIG_TSECV2
225#define CONFIG_SYS_FSL_SEC_COMPAT 4
Poonam Aggrwal1fbf3482011-02-06 11:31:44 +0530226#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
227#define CONFIG_NUM_DDR_CONTROLLERS 1
ramneek mehreshf1810d82013-10-18 17:40:17 +0530228#define CONFIG_USB_MAX_CONTROLLER_COUNT 1
Poonam Aggrwal1fbf3482011-02-06 11:31:44 +0530229#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Ramneek Mehresh1b719e62011-03-23 15:20:43 +0530230#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
Poonam Aggrwal42aee642011-06-30 03:00:28 -0500231#define CONFIG_SYS_FSL_ERRATUM_IFC_A002769
Poonam Aggrwalfb855f42011-06-29 16:32:52 +0530232#define CONFIG_SYS_FSL_ERRATUM_P1010_A003549
Poonam Aggrwalbc6bbd62011-07-07 20:36:47 +0530233#define CONFIG_SYS_FSL_ERRATUM_IFC_A003399
York Sun9855b3b2014-05-23 13:15:00 -0700234#define CONFIG_SYS_FSL_ERRATUM_A004508
Kumar Gala243be8e2011-01-19 03:05:26 -0600235
Kumar Gala093cffb2011-02-05 13:45:07 -0600236/* P1017 is single core version of P1023 */
Roy Zang67a719d2011-02-03 22:14:19 -0600237#elif defined(CONFIG_P1017)
238#define CONFIG_MAX_CPUS 1
239#define CONFIG_SYS_FSL_NUM_LAWS 12
240#define CONFIG_SYS_FSL_SEC_COMPAT 4
241#define CONFIG_SYS_NUM_FMAN 1
242#define CONFIG_SYS_NUM_FM1_DTSEC 2
243#define CONFIG_NUM_DDR_CONTROLLERS 1
ramneek mehreshf1810d82013-10-18 17:40:17 +0530244#define CONFIG_USB_MAX_CONTROLLER_COUNT 1
Roy Zang67a719d2011-02-03 22:14:19 -0600245#define CONFIG_SYS_QMAN_NUM_PORTALS 3
246#define CONFIG_SYS_BMAN_NUM_PORTALS 3
Kumar Galac657d892011-02-04 00:43:34 -0600247#define CONFIG_SYS_FM_MURAM_SIZE 0x10000
Kumar Gala8f290842011-05-20 00:39:21 -0500248#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.2"
Timur Tabie46fedf2011-08-04 18:03:41 -0500249#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff600000
York Sun9855b3b2014-05-23 13:15:00 -0700250#define CONFIG_SYS_FSL_ERRATUM_A004508
York Sun954a1a42013-08-20 15:09:43 -0700251#define CONFIG_SYS_FSL_ERRATUM_A005125
Roy Zang67a719d2011-02-03 22:14:19 -0600252
Kumar Gala243be8e2011-01-19 03:05:26 -0600253#elif defined(CONFIG_P1020)
254#define CONFIG_MAX_CPUS 2
255#define CONFIG_SYS_FSL_NUM_LAWS 12
Prabhakar Kushwahaad75d442012-04-29 23:57:12 +0000256#define CONFIG_SYS_PPC_E500_DEBUG_TLB 2
Kumar Gala243be8e2011-01-19 03:05:26 -0600257#define CONFIG_TSECV2
Prabhakar Kushwahab03a4662011-02-01 15:55:58 +0000258#define CONFIG_FSL_PCIE_DISABLE_ASPM
Kumar Gala243be8e2011-01-19 03:05:26 -0600259#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabie46fedf2011-08-04 18:03:41 -0500260#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Gala093cffb2011-02-05 13:45:07 -0600261#define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
262#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
York Sun9855b3b2014-05-23 13:15:00 -0700263#define CONFIG_SYS_FSL_ERRATUM_A004508
York Sun954a1a42013-08-20 15:09:43 -0700264#define CONFIG_SYS_FSL_ERRATUM_A005125
ramneek mehresh80ba6a62014-05-13 15:36:07 +0530265#ifndef CONFIG_USB_MAX_CONTROLLER_COUNT
ramneek mehreshf1810d82013-10-18 17:40:17 +0530266#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
ramneek mehresh80ba6a62014-05-13 15:36:07 +0530267#endif
Kumar Gala243be8e2011-01-19 03:05:26 -0600268
269#elif defined(CONFIG_P1021)
270#define CONFIG_MAX_CPUS 2
271#define CONFIG_SYS_FSL_NUM_LAWS 12
Prabhakar Kushwahaad75d442012-04-29 23:57:12 +0000272#define CONFIG_SYS_PPC_E500_DEBUG_TLB 2
Kumar Gala243be8e2011-01-19 03:05:26 -0600273#define CONFIG_TSECV2
Prabhakar Kushwahab03a4662011-02-01 15:55:58 +0000274#define CONFIG_FSL_PCIE_DISABLE_ASPM
Kumar Gala243be8e2011-01-19 03:05:26 -0600275#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabie46fedf2011-08-04 18:03:41 -0500276#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Gala093cffb2011-02-05 13:45:07 -0600277#define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
278#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
Haiying Wanga52d2f82011-02-11 01:25:30 -0600279#define QE_MURAM_SIZE 0x6000UL
280#define MAX_QE_RISC 1
281#define QE_NUM_OF_SNUM 28
York Sun9855b3b2014-05-23 13:15:00 -0700282#define CONFIG_SYS_FSL_ERRATUM_A004508
York Sun954a1a42013-08-20 15:09:43 -0700283#define CONFIG_SYS_FSL_ERRATUM_A005125
ramneek mehreshf1810d82013-10-18 17:40:17 +0530284#define CONFIG_USB_MAX_CONTROLLER_COUNT 1
Kumar Gala243be8e2011-01-19 03:05:26 -0600285
286#elif defined(CONFIG_P1022)
287#define CONFIG_MAX_CPUS 2
288#define CONFIG_SYS_FSL_NUM_LAWS 12
Prabhakar Kushwahaad75d442012-04-29 23:57:12 +0000289#define CONFIG_SYS_PPC_E500_DEBUG_TLB 2
Kumar Gala243be8e2011-01-19 03:05:26 -0600290#define CONFIG_TSECV2
291#define CONFIG_SYS_FSL_SEC_COMPAT 2
Ying Zhang703f5682015-01-30 14:52:11 +0800292#define CONFIG_USB_MAX_CONTROLLER_COUNT 1
Timur Tabie46fedf2011-08-04 18:03:41 -0500293#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Jiang Yutang2d7534a2011-01-30 17:06:20 -0600294#define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
295#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
296#define CONFIG_FSL_SATA_ERRATUM_A001
York Sun9855b3b2014-05-23 13:15:00 -0700297#define CONFIG_SYS_FSL_ERRATUM_A004508
York Sun954a1a42013-08-20 15:09:43 -0700298#define CONFIG_SYS_FSL_ERRATUM_A005125
Nikhil Badola0dc78ff2014-11-21 17:25:21 +0530299#define CONFIG_SYS_FSL_ERRATUM_A004477
Kumar Gala243be8e2011-01-19 03:05:26 -0600300
Roy Zang67a719d2011-02-03 22:14:19 -0600301#elif defined(CONFIG_P1023)
302#define CONFIG_MAX_CPUS 2
303#define CONFIG_SYS_FSL_NUM_LAWS 12
304#define CONFIG_SYS_FSL_SEC_COMPAT 4
305#define CONFIG_SYS_NUM_FMAN 1
306#define CONFIG_SYS_NUM_FM1_DTSEC 2
307#define CONFIG_NUM_DDR_CONTROLLERS 1
ramneek mehreshf1810d82013-10-18 17:40:17 +0530308#define CONFIG_USB_MAX_CONTROLLER_COUNT 1
Roy Zang67a719d2011-02-03 22:14:19 -0600309#define CONFIG_SYS_QMAN_NUM_PORTALS 3
310#define CONFIG_SYS_BMAN_NUM_PORTALS 3
Kumar Galac657d892011-02-04 00:43:34 -0600311#define CONFIG_SYS_FM_MURAM_SIZE 0x10000
Kumar Gala8f290842011-05-20 00:39:21 -0500312#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.2"
Timur Tabie46fedf2011-08-04 18:03:41 -0500313#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff600000
York Sun9855b3b2014-05-23 13:15:00 -0700314#define CONFIG_SYS_FSL_ERRATUM_A004508
York Sun954a1a42013-08-20 15:09:43 -0700315#define CONFIG_SYS_FSL_ERRATUM_A005125
Chunhe Lan9c3f77e2013-08-16 15:10:37 +0800316#define CONFIG_SYS_FSL_ERRATUM_I2C_A004447
317#define CONFIG_SYS_FSL_A004447_SVR_REV 0x11
Roy Zang67a719d2011-02-03 22:14:19 -0600318
Kumar Gala093cffb2011-02-05 13:45:07 -0600319/* P1024 is lower end variant of P1020 */
320#elif defined(CONFIG_P1024)
321#define CONFIG_MAX_CPUS 2
322#define CONFIG_SYS_FSL_NUM_LAWS 12
Prabhakar Kushwahaad75d442012-04-29 23:57:12 +0000323#define CONFIG_SYS_PPC_E500_DEBUG_TLB 2
Kumar Gala093cffb2011-02-05 13:45:07 -0600324#define CONFIG_TSECV2
325#define CONFIG_FSL_PCIE_DISABLE_ASPM
326#define CONFIG_SYS_FSL_SEC_COMPAT 2
ramneek mehreshf1810d82013-10-18 17:40:17 +0530327#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
Timur Tabie46fedf2011-08-04 18:03:41 -0500328#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Gala093cffb2011-02-05 13:45:07 -0600329#define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
330#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
York Sun9855b3b2014-05-23 13:15:00 -0700331#define CONFIG_SYS_FSL_ERRATUM_A004508
York Sun954a1a42013-08-20 15:09:43 -0700332#define CONFIG_SYS_FSL_ERRATUM_A005125
Kumar Gala093cffb2011-02-05 13:45:07 -0600333
334/* P1025 is lower end variant of P1021 */
335#elif defined(CONFIG_P1025)
336#define CONFIG_MAX_CPUS 2
337#define CONFIG_SYS_FSL_NUM_LAWS 12
Nikhil Badola1ff10a82015-05-21 09:07:53 +0530338#define CONFIG_USB_MAX_CONTROLLER_COUNT 1
Prabhakar Kushwahaad75d442012-04-29 23:57:12 +0000339#define CONFIG_SYS_PPC_E500_DEBUG_TLB 2
Kumar Gala093cffb2011-02-05 13:45:07 -0600340#define CONFIG_TSECV2
341#define CONFIG_FSL_PCIE_DISABLE_ASPM
342#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabie46fedf2011-08-04 18:03:41 -0500343#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Gala093cffb2011-02-05 13:45:07 -0600344#define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
345#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
Haiying Wanga52d2f82011-02-11 01:25:30 -0600346#define QE_MURAM_SIZE 0x6000UL
347#define MAX_QE_RISC 1
348#define QE_NUM_OF_SNUM 28
York Sun9855b3b2014-05-23 13:15:00 -0700349#define CONFIG_SYS_FSL_ERRATUM_A004508
York Sun954a1a42013-08-20 15:09:43 -0700350#define CONFIG_SYS_FSL_ERRATUM_A005125
Kumar Gala093cffb2011-02-05 13:45:07 -0600351
352/* P2010 is single core version of P2020 */
Kumar Gala243be8e2011-01-19 03:05:26 -0600353#elif defined(CONFIG_P2010)
354#define CONFIG_MAX_CPUS 1
355#define CONFIG_SYS_FSL_NUM_LAWS 12
Prabhakar Kushwahaad75d442012-04-29 23:57:12 +0000356#define CONFIG_SYS_PPC_E500_DEBUG_TLB 2
Kumar Gala243be8e2011-01-19 03:05:26 -0600357#define CONFIG_SYS_FSL_SEC_COMPAT 2
ramneek mehreshf1810d82013-10-18 17:40:17 +0530358#define CONFIG_USB_MAX_CONTROLLER_COUNT 1
Timur Tabie46fedf2011-08-04 18:03:41 -0500359#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Gala6e7f0bc02011-01-26 01:43:15 -0600360#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
Kumar Gala5103a032011-01-29 15:36:10 -0600361#define CONFIG_SYS_FSL_ERRATUM_ESDHC_A001
York Sun9855b3b2014-05-23 13:15:00 -0700362#define CONFIG_SYS_FSL_ERRATUM_A004508
York Sun954a1a42013-08-20 15:09:43 -0700363#define CONFIG_SYS_FSL_ERRATUM_A005125
Kumar Gala243be8e2011-01-19 03:05:26 -0600364
365#elif defined(CONFIG_P2020)
366#define CONFIG_MAX_CPUS 2
367#define CONFIG_SYS_FSL_NUM_LAWS 12
Prabhakar Kushwahaad75d442012-04-29 23:57:12 +0000368#define CONFIG_SYS_PPC_E500_DEBUG_TLB 2
Kumar Gala243be8e2011-01-19 03:05:26 -0600369#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabie46fedf2011-08-04 18:03:41 -0500370#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Gala6e7f0bc02011-01-26 01:43:15 -0600371#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
Kumar Gala5103a032011-01-29 15:36:10 -0600372#define CONFIG_SYS_FSL_ERRATUM_ESDHC_A001
Liu Gang7d67ed52012-03-08 00:33:14 +0000373#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 2
374#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
375#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
376#define CONFIG_SYS_FSL_RMU
377#define CONFIG_SYS_FSL_SRIO_MSG_UNIT_NUM 2
York Sun9855b3b2014-05-23 13:15:00 -0700378#define CONFIG_SYS_FSL_ERRATUM_A004508
York Sun954a1a42013-08-20 15:09:43 -0700379#define CONFIG_SYS_FSL_ERRATUM_A005125
Nikhil Badola0dc78ff2014-11-21 17:25:21 +0530380#define CONFIG_SYS_FSL_ERRATUM_A004477
ramneek mehreshf1810d82013-10-18 17:40:17 +0530381#define CONFIG_USB_MAX_CONTROLLER_COUNT 1
York Sun9855b3b2014-05-23 13:15:00 -0700382
Scott Wood3e978f52012-08-14 10:14:51 +0000383#elif defined(CONFIG_PPC_P2041) /* also supports P2040 */
York Sund1001e32012-10-08 07:44:15 +0000384#define CONFIG_SYS_FSL_QORIQ_CHASSIS1
York Sund2ab4bb2013-06-25 11:37:39 -0700385#define CONFIG_FSL_CORENET /* Freescale CoreNet platform */
Kumar Gala1f979872011-05-13 01:16:07 -0500386#define CONFIG_MAX_CPUS 4
387#define CONFIG_SYS_FSL_NUM_CC_PLLS 2
388#define CONFIG_SYS_FSL_NUM_LAWS 32
389#define CONFIG_SYS_FSL_SEC_COMPAT 4
390#define CONFIG_SYS_NUM_FMAN 1
391#define CONFIG_SYS_NUM_FM1_DTSEC 5
392#define CONFIG_SYS_NUM_FM1_10GEC 1
393#define CONFIG_NUM_DDR_CONTROLLERS 1
ramneek mehreshf1810d82013-10-18 17:40:17 +0530394#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
Kumar Gala1f979872011-05-13 01:16:07 -0500395#define CONFIG_SYS_FM_MURAM_SIZE 0x28000
396#define CONFIG_SYS_FSL_TBCLK_DIV 32
397#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.2"
Timur Tabie46fedf2011-08-04 18:03:41 -0500398#define CONFIG_SYS_CCSRBAR_DEFAULT 0xfe000000
Kumar Gala1f979872011-05-13 01:16:07 -0500399#define CONFIG_SYS_FSL_USB1_PHY_ENABLE
400#define CONFIG_SYS_FSL_USB2_PHY_ENABLE
Kumar Galab6c37222011-04-13 00:19:10 -0500401#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
Kumar Gala1f979872011-05-13 01:16:07 -0500402#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
York Sun5e23ab02012-05-07 07:26:47 +0000403#define CONFIG_SYS_FSL_ERRATUM_NMG_CPU_A011
Xulei99d7b0a2013-03-11 17:56:34 +0000404#define CONFIG_SYS_FSL_ERRATUM_USB14
Kumar Gala43f082b2011-11-22 06:51:15 -0600405#define CONFIG_SYS_FSL_ERRATUM_CPU_A003999
York Sune22be772013-03-25 07:30:11 +0000406#define CONFIG_SYS_FSL_ERRATUM_DDR_A003
York Sun41085082011-11-20 10:01:35 -0800407#define CONFIG_SYS_FSL_ERRATUM_DDR_A003474
Liu Gang7d67ed52012-03-08 00:33:14 +0000408#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 2
409#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
410#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
Scott Wood33eee332012-08-14 10:14:53 +0000411#define CONFIG_SYS_FSL_ERRATUM_A004510
412#define CONFIG_SYS_FSL_ERRATUM_A004510_SVR_REV 0x10
413#define CONFIG_SYS_FSL_ERRATUM_A004510_SVR_REV2 0x11
414#define CONFIG_SYS_FSL_CORENET_SNOOPVEC_COREONLY 0xf0000000
Liu Gangd59c5572012-09-28 21:26:19 +0000415#define CONFIG_SYS_FSL_ERRATUM_SRIO_A004034
Timur Tabi01180332012-10-25 12:40:00 +0000416#define CONFIG_SYS_FSL_ERRATUM_A004849
Chunhe Lan9c3f77e2013-08-16 15:10:37 +0800417#define CONFIG_SYS_FSL_ERRATUM_I2C_A004447
Suresh Gupta9c641a82014-02-26 14:29:12 +0530418#define CONFIG_SYS_FSL_ERRATUM_A006261
Chunhe Lan9c3f77e2013-08-16 15:10:37 +0800419#define CONFIG_SYS_FSL_A004447_SVR_REV 0x11
Kumar Gala1f979872011-05-13 01:16:07 -0500420
Kumar Gala243be8e2011-01-19 03:05:26 -0600421#elif defined(CONFIG_PPC_P3041)
York Sund1001e32012-10-08 07:44:15 +0000422#define CONFIG_SYS_FSL_QORIQ_CHASSIS1
York Sund2ab4bb2013-06-25 11:37:39 -0700423#define CONFIG_FSL_CORENET /* Freescale CoreNet platform */
Kumar Gala243be8e2011-01-19 03:05:26 -0600424#define CONFIG_MAX_CPUS 4
Kumar Galab5c87532011-02-16 02:03:29 -0600425#define CONFIG_SYS_FSL_NUM_CC_PLLS 2
Kumar Gala243be8e2011-01-19 03:05:26 -0600426#define CONFIG_SYS_FSL_NUM_LAWS 32
427#define CONFIG_SYS_FSL_SEC_COMPAT 4
Kumar Galafbee0f72011-01-25 12:42:32 -0600428#define CONFIG_SYS_NUM_FMAN 1
429#define CONFIG_SYS_NUM_FM1_DTSEC 5
430#define CONFIG_SYS_NUM_FM1_10GEC 1
431#define CONFIG_NUM_DDR_CONTROLLERS 1
York Sun34e026f2014-03-27 17:54:47 -0700432#define CONFIG_SYS_FSL_DDR_VER FSL_DDR_VER_4_5
Kumar Galac657d892011-02-04 00:43:34 -0600433#define CONFIG_SYS_FM_MURAM_SIZE 0x28000
Kumar Gala66412c62011-02-18 05:40:54 -0600434#define CONFIG_SYS_FSL_TBCLK_DIV 32
Kumar Gala8f290842011-05-20 00:39:21 -0500435#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.2"
Timur Tabie46fedf2011-08-04 18:03:41 -0500436#define CONFIG_SYS_CCSRBAR_DEFAULT 0xfe000000
Roy Zang86221f02011-04-13 00:08:51 -0500437#define CONFIG_SYS_FSL_USB1_PHY_ENABLE
438#define CONFIG_SYS_FSL_USB2_PHY_ENABLE
Kumar Galab6c37222011-04-13 00:19:10 -0500439#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
ramneek mehreshf1810d82013-10-18 17:40:17 +0530440#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
Lei Xu30009762011-04-19 15:28:41 +0800441#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
York Sun57125f22012-08-08 18:04:53 +0000442#define CONFIG_SYS_FSL_ERRATUM_NMG_CPU_A011
Xulei99d7b0a2013-03-11 17:56:34 +0000443#define CONFIG_SYS_FSL_ERRATUM_USB14
Kumar Gala43f082b2011-11-22 06:51:15 -0600444#define CONFIG_SYS_FSL_ERRATUM_CPU_A003999
York Sune22be772013-03-25 07:30:11 +0000445#define CONFIG_SYS_FSL_ERRATUM_DDR_A003
York Sun41085082011-11-20 10:01:35 -0800446#define CONFIG_SYS_FSL_ERRATUM_DDR_A003474
Liu Gang7d67ed52012-03-08 00:33:14 +0000447#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 2
448#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
449#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
Scott Wood33eee332012-08-14 10:14:53 +0000450#define CONFIG_SYS_FSL_ERRATUM_A004510
451#define CONFIG_SYS_FSL_ERRATUM_A004510_SVR_REV 0x10
452#define CONFIG_SYS_FSL_ERRATUM_A004510_SVR_REV2 0x11
453#define CONFIG_SYS_FSL_CORENET_SNOOPVEC_COREONLY 0xf0000000
Liu Gangd59c5572012-09-28 21:26:19 +0000454#define CONFIG_SYS_FSL_ERRATUM_SRIO_A004034
Timur Tabi01180332012-10-25 12:40:00 +0000455#define CONFIG_SYS_FSL_ERRATUM_A004849
York Sund217a9a2013-06-25 11:37:49 -0700456#define CONFIG_SYS_FSL_ERRATUM_A005812
Chunhe Lan9c3f77e2013-08-16 15:10:37 +0800457#define CONFIG_SYS_FSL_ERRATUM_I2C_A004447
Suresh Gupta9c641a82014-02-26 14:29:12 +0530458#define CONFIG_SYS_FSL_ERRATUM_A006261
Chunhe Lan9c3f77e2013-08-16 15:10:37 +0800459#define CONFIG_SYS_FSL_A004447_SVR_REV 0x20
Kumar Gala243be8e2011-01-19 03:05:26 -0600460
Scott Wood3e978f52012-08-14 10:14:51 +0000461#elif defined(CONFIG_PPC_P4080) /* also supports P4040 */
York Sund1001e32012-10-08 07:44:15 +0000462#define CONFIG_SYS_FSL_QORIQ_CHASSIS1
York Sund2ab4bb2013-06-25 11:37:39 -0700463#define CONFIG_FSL_CORENET /* Freescale CoreNet platform */
Kumar Gala243be8e2011-01-19 03:05:26 -0600464#define CONFIG_MAX_CPUS 8
Kumar Galab5c87532011-02-16 02:03:29 -0600465#define CONFIG_SYS_FSL_NUM_CC_PLLS 4
Kumar Gala243be8e2011-01-19 03:05:26 -0600466#define CONFIG_SYS_FSL_NUM_LAWS 32
467#define CONFIG_SYS_FSL_SEC_COMPAT 4
468#define CONFIG_SYS_NUM_FMAN 2
469#define CONFIG_SYS_NUM_FM1_DTSEC 4
470#define CONFIG_SYS_NUM_FM2_DTSEC 4
471#define CONFIG_SYS_NUM_FM1_10GEC 1
472#define CONFIG_SYS_NUM_FM2_10GEC 1
473#define CONFIG_NUM_DDR_CONTROLLERS 2
York Sun34e026f2014-03-27 17:54:47 -0700474#define CONFIG_SYS_FSL_DDR_VER FSL_DDR_VER_4_4
ramneek mehreshf1810d82013-10-18 17:40:17 +0530475#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
Kumar Galac657d892011-02-04 00:43:34 -0600476#define CONFIG_SYS_FM_MURAM_SIZE 0x28000
Kumar Gala66412c62011-02-18 05:40:54 -0600477#define CONFIG_SYS_FSL_TBCLK_DIV 16
Kumar Gala8f290842011-05-20 00:39:21 -0500478#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,p4080-pcie"
Timur Tabie46fedf2011-08-04 18:03:41 -0500479#define CONFIG_SYS_CCSRBAR_DEFAULT 0xfe000000
Kumar Gala243be8e2011-01-19 03:05:26 -0600480#define CONFIG_SYS_FSL_ERRATUM_CPC_A002
481#define CONFIG_SYS_FSL_ERRATUM_CPC_A003
York Sunfa8d23c2011-01-10 12:03:01 +0000482#define CONFIG_SYS_FSL_ERRATUM_DDR_A003
Kumar Gala243be8e2011-01-19 03:05:26 -0600483#define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
484#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
485#define CONFIG_SYS_FSL_ERRATUM_ESDHC135
Zang Roy-R619114e0be342012-09-18 09:50:08 +0000486#define CONFIG_SYS_FSL_ERRATUM_ESDHC13
Kumar Gala243be8e2011-01-19 03:05:26 -0600487#define CONFIG_SYS_P4080_ERRATUM_CPU22
York Sun5e23ab02012-05-07 07:26:47 +0000488#define CONFIG_SYS_FSL_ERRATUM_NMG_CPU_A011
Kumar Gala243be8e2011-01-19 03:05:26 -0600489#define CONFIG_SYS_P4080_ERRATUM_SERDES8
Emil Medvedf8af0b2010-08-31 22:57:38 -0500490#define CONFIG_SYS_P4080_ERRATUM_SERDES9
Timur Tabid90fdba2011-04-18 17:16:00 -0500491#define CONFIG_SYS_P4080_ERRATUM_SERDES_A001
Timur Tabida30b9f2011-04-01 13:19:36 -0500492#define CONFIG_SYS_P4080_ERRATUM_SERDES_A005
Kumar Gala43f082b2011-11-22 06:51:15 -0600493#define CONFIG_SYS_FSL_ERRATUM_CPU_A003999
York Sun41085082011-11-20 10:01:35 -0800494#define CONFIG_SYS_FSL_ERRATUM_DDR_A003474
Liu Gang7d67ed52012-03-08 00:33:14 +0000495#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 2
496#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
497#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
498#define CONFIG_SYS_FSL_RMU
499#define CONFIG_SYS_FSL_SRIO_MSG_UNIT_NUM 2
Scott Wood33eee332012-08-14 10:14:53 +0000500#define CONFIG_SYS_FSL_ERRATUM_A004510
501#define CONFIG_SYS_FSL_ERRATUM_A004510_SVR_REV 0x20
502#define CONFIG_SYS_FSL_CORENET_SNOOPVEC_COREONLY 0xff000000
Liu Gangd59c5572012-09-28 21:26:19 +0000503#define CONFIG_SYS_FSL_ERRATUM_SRIO_A004034
Timur Tabi01180332012-10-25 12:40:00 +0000504#define CONFIG_SYS_FSL_ERRATUM_A004849
Timur Tabid607b962012-11-01 08:20:23 +0000505#define CONFIG_SYS_FSL_ERRATUM_A004580
Yuanquan Chenc0a4e6b2012-11-26 23:49:45 +0000506#define CONFIG_SYS_P4080_ERRATUM_PCIE_A003
York Sund217a9a2013-06-25 11:37:49 -0700507#define CONFIG_SYS_FSL_ERRATUM_A005812
Chunhe Lan9c3f77e2013-08-16 15:10:37 +0800508#define CONFIG_SYS_FSL_ERRATUM_I2C_A004447
Nikhil Badola11856912014-02-26 17:43:15 +0530509#define CONFIG_SYS_FSL_ERRATUM_A007075
Chunhe Lan9c3f77e2013-08-16 15:10:37 +0800510#define CONFIG_SYS_FSL_A004447_SVR_REV 0x20
Kumar Gala243be8e2011-01-19 03:05:26 -0600511
Scott Wood3e978f52012-08-14 10:14:51 +0000512#elif defined(CONFIG_PPC_P5020) /* also supports P5010 */
York Sunffd06e02012-10-08 07:44:30 +0000513#define CONFIG_SYS_PPC64 /* 64-bit core */
York Sund1001e32012-10-08 07:44:15 +0000514#define CONFIG_SYS_FSL_QORIQ_CHASSIS1
York Sund2ab4bb2013-06-25 11:37:39 -0700515#define CONFIG_FSL_CORENET /* Freescale CoreNet platform */
Kumar Gala243be8e2011-01-19 03:05:26 -0600516#define CONFIG_MAX_CPUS 2
Kumar Galab5c87532011-02-16 02:03:29 -0600517#define CONFIG_SYS_FSL_NUM_CC_PLLS 2
Kumar Gala243be8e2011-01-19 03:05:26 -0600518#define CONFIG_SYS_FSL_NUM_LAWS 32
519#define CONFIG_SYS_FSL_SEC_COMPAT 4
Kumar Galafbee0f72011-01-25 12:42:32 -0600520#define CONFIG_SYS_NUM_FMAN 1
521#define CONFIG_SYS_NUM_FM1_DTSEC 5
522#define CONFIG_SYS_NUM_FM1_10GEC 1
523#define CONFIG_NUM_DDR_CONTROLLERS 2
York Sun34e026f2014-03-27 17:54:47 -0700524#define CONFIG_SYS_FSL_DDR_VER FSL_DDR_VER_4_4
ramneek mehreshf1810d82013-10-18 17:40:17 +0530525#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
Kumar Galac657d892011-02-04 00:43:34 -0600526#define CONFIG_SYS_FM_MURAM_SIZE 0x28000
Kumar Gala66412c62011-02-18 05:40:54 -0600527#define CONFIG_SYS_FSL_TBCLK_DIV 32
Kumar Gala8f290842011-05-20 00:39:21 -0500528#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.2"
Timur Tabie46fedf2011-08-04 18:03:41 -0500529#define CONFIG_SYS_CCSRBAR_DEFAULT 0xfe000000
Roy Zang86221f02011-04-13 00:08:51 -0500530#define CONFIG_SYS_FSL_USB1_PHY_ENABLE
531#define CONFIG_SYS_FSL_USB2_PHY_ENABLE
Kumar Galab6c37222011-04-13 00:19:10 -0500532#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
Lei Xu30009762011-04-19 15:28:41 +0800533#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
Xulei99d7b0a2013-03-11 17:56:34 +0000534#define CONFIG_SYS_FSL_ERRATUM_USB14
York Sune22be772013-03-25 07:30:11 +0000535#define CONFIG_SYS_FSL_ERRATUM_DDR_A003
York Sun41085082011-11-20 10:01:35 -0800536#define CONFIG_SYS_FSL_ERRATUM_DDR_A003474
Liu Gang7d67ed52012-03-08 00:33:14 +0000537#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 2
538#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
539#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
Scott Wood33eee332012-08-14 10:14:53 +0000540#define CONFIG_SYS_FSL_ERRATUM_A004510
541#define CONFIG_SYS_FSL_ERRATUM_A004510_SVR_REV 0x10
542#define CONFIG_SYS_FSL_CORENET_SNOOPVEC_COREONLY 0xc0000000
Liu Gangd59c5572012-09-28 21:26:19 +0000543#define CONFIG_SYS_FSL_ERRATUM_SRIO_A004034
Chunhe Lan9c3f77e2013-08-16 15:10:37 +0800544#define CONFIG_SYS_FSL_ERRATUM_I2C_A004447
Suresh Gupta9c641a82014-02-26 14:29:12 +0530545#define CONFIG_SYS_FSL_ERRATUM_A006261
Chunhe Lan9c3f77e2013-08-16 15:10:37 +0800546#define CONFIG_SYS_FSL_A004447_SVR_REV 0x20
Kumar Gala243be8e2011-01-19 03:05:26 -0600547
Timur Tabi49054432012-10-05 11:09:19 +0000548#elif defined(CONFIG_PPC_P5040)
Timur Tabi1956e432012-10-23 10:48:09 +0000549#define CONFIG_SYS_PPC64
Timur Tabi49054432012-10-05 11:09:19 +0000550#define CONFIG_SYS_FSL_QORIQ_CHASSIS1
York Sund2ab4bb2013-06-25 11:37:39 -0700551#define CONFIG_FSL_CORENET /* Freescale CoreNet platform */
Timur Tabi49054432012-10-05 11:09:19 +0000552#define CONFIG_MAX_CPUS 4
553#define CONFIG_SYS_FSL_NUM_CC_PLLS 3
554#define CONFIG_SYS_FSL_NUM_LAWS 32
555#define CONFIG_SYS_FSL_SEC_COMPAT 4
556#define CONFIG_SYS_NUM_FMAN 2
557#define CONFIG_SYS_NUM_FM1_DTSEC 5
558#define CONFIG_SYS_NUM_FM1_10GEC 1
559#define CONFIG_SYS_NUM_FM2_DTSEC 5
560#define CONFIG_SYS_NUM_FM2_10GEC 1
561#define CONFIG_NUM_DDR_CONTROLLERS 2
York Sun34e026f2014-03-27 17:54:47 -0700562#define CONFIG_SYS_FSL_DDR_VER FSL_DDR_VER_4_4
ramneek mehreshf1810d82013-10-18 17:40:17 +0530563#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
Timur Tabi49054432012-10-05 11:09:19 +0000564#define CONFIG_SYS_FM_MURAM_SIZE 0x28000
565#define CONFIG_SYS_FSL_TBCLK_DIV 16
566#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.4"
567#define CONFIG_SYS_CCSRBAR_DEFAULT 0xfe000000
568#define CONFIG_SYS_FSL_USB1_PHY_ENABLE
569#define CONFIG_SYS_FSL_USB2_PHY_ENABLE
570#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
571#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
Xulei99d7b0a2013-03-11 17:56:34 +0000572#define CONFIG_SYS_FSL_ERRATUM_USB14
Timur Tabi49054432012-10-05 11:09:19 +0000573#define CONFIG_SYS_FSL_ERRATUM_DDR_A003
574#define CONFIG_SYS_FSL_ERRATUM_DDR_A003474
575#define CONFIG_SYS_FSL_ERRATUM_A004699
Timur Tabi49054432012-10-05 11:09:19 +0000576#define CONFIG_SYS_FSL_ERRATUM_A004510
577#define CONFIG_SYS_FSL_ERRATUM_A004510_SVR_REV 0x10
Suresh Gupta9c641a82014-02-26 14:29:12 +0530578#define CONFIG_SYS_FSL_ERRATUM_A006261
Timur Tabi49054432012-10-05 11:09:19 +0000579#define CONFIG_SYS_FSL_CORENET_SNOOPVEC_COREONLY 0xf0000000
York Sund217a9a2013-06-25 11:37:49 -0700580#define CONFIG_SYS_FSL_ERRATUM_A005812
Timur Tabi49054432012-10-05 11:09:19 +0000581
Prabhakar Kushwaha19a8dbd2012-04-24 20:16:49 +0000582#elif defined(CONFIG_BSC9131)
583#define CONFIG_MAX_CPUS 1
584#define CONFIG_FSL_SDHC_V2_3
585#define CONFIG_SYS_FSL_NUM_LAWS 12
586#define CONFIG_TSECV2
587#define CONFIG_SYS_FSL_SEC_COMPAT 4
588#define CONFIG_NUM_DDR_CONTROLLERS 1
York Sun34e026f2014-03-27 17:54:47 -0700589#define CONFIG_SYS_FSL_DDR_VER FSL_DDR_VER_4_4
ramneek mehreshf1810d82013-10-18 17:40:17 +0530590#define CONFIG_USB_MAX_CONTROLLER_COUNT 1
Priyanka Jain765b0bd2013-04-04 09:31:54 +0530591#define CONFIG_SYS_FSL_DSP_M2_RAM_ADDR 0xb0000000
592#define CONFIG_SYS_FSL_DSP_CCSRBAR_DEFAULT 0xff600000
Mingkai Hu362ee042013-05-16 10:18:13 +0800593#define CONFIG_SYS_FSL_IFC_BANK_COUNT 3
Prabhakar Kushwaha19a8dbd2012-04-24 20:16:49 +0000594#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
595#define CONFIG_NAND_FSL_IFC
Prabhakar Kushwaha19a8dbd2012-04-24 20:16:49 +0000596#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
York Sun954a1a42013-08-20 15:09:43 -0700597#define CONFIG_SYS_FSL_ERRATUM_A005125
Nikhil Badola0dc78ff2014-11-21 17:25:21 +0530598#define CONFIG_SYS_FSL_ERRATUM_A004477
Haijun.Zhangf28bea02014-01-10 13:52:19 +0800599#define CONFIG_ESDHC_HC_BLK_ADDR
Prabhakar Kushwaha19a8dbd2012-04-24 20:16:49 +0000600
Prabhakar Kushwaha35fe9482013-01-23 17:59:57 +0000601#elif defined(CONFIG_BSC9132)
602#define CONFIG_MAX_CPUS 2
603#define CONFIG_SYS_PPC_E500_DEBUG_TLB 3
604#define CONFIG_FSL_SDHC_V2_3
605#define CONFIG_SYS_FSL_NUM_LAWS 12
606#define CONFIG_TSECV2
607#define CONFIG_SYS_FSL_SEC_COMPAT 4
608#define CONFIG_NUM_DDR_CONTROLLERS 2
York Sun34e026f2014-03-27 17:54:47 -0700609#define CONFIG_SYS_FSL_DDR_VER FSL_DDR_VER_4_6
ramneek mehreshf1810d82013-10-18 17:40:17 +0530610#define CONFIG_USB_MAX_CONTROLLER_COUNT 1
Priyanka Jain64501c62013-07-02 09:21:04 +0530611#define CONFIG_SYS_FSL_DSP_DDR_ADDR 0x40000000
612#define CONFIG_SYS_FSL_DSP_M2_RAM_ADDR 0xb0000000
613#define CONFIG_SYS_FSL_DSP_M3_RAM_ADDR 0xc0000000
614#define CONFIG_SYS_FSL_DSP_CCSRBAR_DEFAULT 0xff600000
York Sun061ffed2013-04-18 19:31:01 -0700615#define CONFIG_SYS_FSL_IFC_BANK_COUNT 3
Prabhakar Kushwaha35fe9482013-01-23 17:59:57 +0000616#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
617#define CONFIG_NAND_FSL_IFC
Prabhakar Kushwaha35fe9482013-01-23 17:59:57 +0000618#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
619#define CONFIG_SYS_FSL_ESDHC_P1010_BROKEN_SDCLK
620#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.2"
York Sun954a1a42013-08-20 15:09:43 -0700621#define CONFIG_SYS_FSL_ERRATUM_A005125
Chunhe Lanf1a96ec2014-05-07 10:50:20 +0800622#define CONFIG_SYS_FSL_ERRATUM_A005434
Nikhil Badola0dc78ff2014-11-21 17:25:21 +0530623#define CONFIG_SYS_FSL_ERRATUM_A004477
Chunhe Lan9c3f77e2013-08-16 15:10:37 +0800624#define CONFIG_SYS_FSL_ERRATUM_I2C_A004447
625#define CONFIG_SYS_FSL_A004447_SVR_REV 0x11
Haijun.Zhangf28bea02014-01-10 13:52:19 +0800626#define CONFIG_ESDHC_HC_BLK_ADDR
Prabhakar Kushwaha35fe9482013-01-23 17:59:57 +0000627
Shengzhou Liu5122dfa2014-04-25 16:31:22 +0800628#elif defined(CONFIG_PPC_T4240) || defined(CONFIG_PPC_T4160) || \
629 defined(CONFIG_PPC_T4080)
York Sun3d2972f2013-03-25 07:40:05 +0000630#define CONFIG_E6500
York Sunffd06e02012-10-08 07:44:30 +0000631#define CONFIG_SYS_PPC64 /* 64-bit core */
York Sun9e758752012-10-08 07:44:19 +0000632#define CONFIG_FSL_CORENET /* Freescale CoreNet platform */
633#define CONFIG_SYS_FSL_QORIQ_CHASSIS2 /* Freescale Chassis generation 2 */
York Sunf6981432013-03-25 07:40:07 +0000634#define CONFIG_SYS_FSL_CORES_PER_CLUSTER 4
York Sun9e758752012-10-08 07:44:19 +0000635#define CONFIG_SYS_FSL_QMAN_V3 /* QMAN version 3 */
York Sun3d2972f2013-03-25 07:40:05 +0000636#ifdef CONFIG_PPC_T4240
York Sun9e758752012-10-08 07:44:19 +0000637#define CONFIG_MAX_CPUS 12
Prabhakar Kushwahace746fe2013-09-03 11:20:15 +0530638#define CONFIG_SYS_FSL_CLUSTER_CLOCKS { 1, 1, 4 }
York Sun9e758752012-10-08 07:44:19 +0000639#define CONFIG_SYS_NUM_FM1_DTSEC 8
640#define CONFIG_SYS_NUM_FM1_10GEC 2
641#define CONFIG_SYS_NUM_FM2_DTSEC 8
642#define CONFIG_SYS_NUM_FM2_10GEC 2
643#define CONFIG_NUM_DDR_CONTROLLERS 3
York Sun3d2972f2013-03-25 07:40:05 +0000644#else
Shengzhou Liu5122dfa2014-04-25 16:31:22 +0800645#define CONFIG_SYS_NUM_FM1_DTSEC 6
York Sun3d2972f2013-03-25 07:40:05 +0000646#define CONFIG_SYS_NUM_FM1_10GEC 1
Shengzhou Liu5122dfa2014-04-25 16:31:22 +0800647#define CONFIG_SYS_NUM_FM2_DTSEC 8
York Sun3d2972f2013-03-25 07:40:05 +0000648#define CONFIG_SYS_NUM_FM2_10GEC 1
649#define CONFIG_NUM_DDR_CONTROLLERS 2
Shengzhou Liu5122dfa2014-04-25 16:31:22 +0800650#if defined(CONFIG_PPC_T4160)
651#define CONFIG_MAX_CPUS 8
652#define CONFIG_SYS_FSL_CLUSTER_CLOCKS { 1, 1 }
653#elif defined(CONFIG_PPC_T4080)
654#define CONFIG_MAX_CPUS 4
655#define CONFIG_SYS_FSL_CLUSTER_CLOCKS { 1 }
656#endif
York Sun3d2972f2013-03-25 07:40:05 +0000657#endif
York Sunb6240842013-03-25 07:33:29 +0000658#define CONFIG_SYS_FSL_NUM_CC_PLLS 5
659#define CONFIG_SYS_FSL_NUM_LAWS 32
Prabhakar Kushwahaa4c955b2013-07-31 16:56:41 +0530660#define CONFIG_SYS_FSL_SRDS_1
661#define CONFIG_SYS_FSL_SRDS_2
York Sunb6240842013-03-25 07:33:29 +0000662#define CONFIG_SYS_FSL_SRDS_3
663#define CONFIG_SYS_FSL_SRDS_4
664#define CONFIG_SYS_FSL_SEC_COMPAT 4
665#define CONFIG_SYS_NUM_FMAN 2
ramneek mehreshf1810d82013-10-18 17:40:17 +0530666#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
Prabhakar Kushwahace746fe2013-09-03 11:20:15 +0530667#define CONFIG_SYS_PME_CLK 0
York Sunb6240842013-03-25 07:33:29 +0000668#define CONFIG_SYS_FSL_DDR_VER FSL_DDR_VER_4_7
Mingkai Hu362ee042013-05-16 10:18:13 +0800669#define CONFIG_SYS_FSL_IFC_BANK_COUNT 8
York Sunb6240842013-03-25 07:33:29 +0000670#define CONFIG_SYS_FMAN_V3
Prabhakar Kushwahace746fe2013-09-03 11:20:15 +0530671#define CONFIG_SYS_FM1_CLK 3
672#define CONFIG_SYS_FM2_CLK 3
York Sunb6240842013-03-25 07:33:29 +0000673#define CONFIG_SYS_FM_MURAM_SIZE 0x60000
674#define CONFIG_SYS_FSL_TBCLK_DIV 16
675#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v3.0"
676#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 2
677#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
678#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
Liu Gang08047932013-06-25 18:12:14 +0800679#define CONFIG_SYS_FSL_SRIO_LIODN
York Sunb6240842013-03-25 07:33:29 +0000680#define CONFIG_SYS_FSL_USB_DUAL_PHY_ENABLE
681#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
682#define CONFIG_SYS_FSL_ERRATUM_A004468
683#define CONFIG_SYS_FSL_ERRATUM_A_004934
684#define CONFIG_SYS_FSL_ERRATUM_A005871
Suresh Gupta9c641a82014-02-26 14:29:12 +0530685#define CONFIG_SYS_FSL_ERRATUM_A006261
York Sun133fbfa2013-09-16 12:49:31 -0700686#define CONFIG_SYS_FSL_ERRATUM_A006379
Shaveta Leekhab6808cd2014-05-28 14:18:55 +0530687#define CONFIG_SYS_FSL_ERRATUM_A007186
Scott Wood82125192013-05-15 17:50:13 -0500688#define CONFIG_SYS_FSL_ERRATUM_A006593
Nikhil Badolaf3dff692014-10-17 09:12:07 +0530689#define CONFIG_SYS_FSL_ERRATUM_A007798
York Sunb6240842013-03-25 07:33:29 +0000690#define CONFIG_SYS_CCSRBAR_DEFAULT 0xfe000000
Shaveta Leekhab6808cd2014-05-28 14:18:55 +0530691#define CONFIG_SYS_FSL_SFP_VER_3_0
York Sunb6240842013-03-25 07:33:29 +0000692#define CONFIG_SYS_FSL_PCI_VER_3_X
693
Poonam Aggrwal8fa01022013-03-25 07:40:20 +0000694#elif defined(CONFIG_PPC_B4860) || defined(CONFIG_PPC_B4420)
695#define CONFIG_E6500
Poonam Aggrwale1dbdd82012-12-23 19:24:16 +0000696#define CONFIG_SYS_PPC64 /* 64-bit core */
697#define CONFIG_FSL_CORENET /* Freescale CoreNet platform */
698#define CONFIG_SYS_FSL_QORIQ_CHASSIS2 /* Freescale Chassis generation 2 */
699#define CONFIG_SYS_FSL_QMAN_V3 /* QMAN version 3 */
Shaveta Leekhab8bf0ad2015-01-19 12:46:54 +0530700#define CONFIG_HETROGENOUS_CLUSTERS /* DSP/SC3900 core clusters */
701#define CONFIG_PPC_CLUSTER_START 0 /*Start index of ppc clusters*/
702#define CONFIG_DSP_CLUSTER_START 1 /*Start index of dsp clusters*/
Poonam Aggrwale1dbdd82012-12-23 19:24:16 +0000703#define CONFIG_SYS_FSL_NUM_LAWS 32
Prabhakar Kushwahaa4c955b2013-07-31 16:56:41 +0530704#define CONFIG_SYS_FSL_SRDS_1
705#define CONFIG_SYS_FSL_SRDS_2
Shaveta Leekhab8bf0ad2015-01-19 12:46:54 +0530706#define CONFIG_SYS_MAPLE
707#define CONFIG_SYS_CPRI
708#define CONFIG_SYS_FSL_NUM_CC_PLLS 5
Poonam Aggrwale1dbdd82012-12-23 19:24:16 +0000709#define CONFIG_SYS_FSL_SEC_COMPAT 4
710#define CONFIG_SYS_NUM_FMAN 1
ramneek mehreshf1810d82013-10-18 17:40:17 +0530711#define CONFIG_USB_MAX_CONTROLLER_COUNT 1
Prabhakar Kushwahace746fe2013-09-03 11:20:15 +0530712#define CONFIG_SYS_FM1_CLK 0
Shaveta Leekhab8bf0ad2015-01-19 12:46:54 +0530713#define CONFIG_SYS_CPRI_CLK 3
714#define CONFIG_SYS_ULB_CLK 4
715#define CONFIG_SYS_ETVPE_CLK 1
Poonam Aggrwale1dbdd82012-12-23 19:24:16 +0000716#define CONFIG_SYS_FSL_DDR_VER FSL_DDR_VER_4_7
Mingkai Hu362ee042013-05-16 10:18:13 +0800717#define CONFIG_SYS_FSL_IFC_BANK_COUNT 4
Poonam Aggrwale1dbdd82012-12-23 19:24:16 +0000718#define CONFIG_SYS_FMAN_V3
719#define CONFIG_SYS_FM_MURAM_SIZE 0x60000
720#define CONFIG_SYS_FSL_TBCLK_DIV 16
721#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.4"
722#define CONFIG_SYS_FSL_USB1_PHY_ENABLE
723#define CONFIG_SYS_FSL_ERRATUM_A_004934
Shengzhou Liu04feb572013-02-27 21:56:54 +0000724#define CONFIG_SYS_FSL_ERRATUM_A005871
York Sun133fbfa2013-09-16 12:49:31 -0700725#define CONFIG_SYS_FSL_ERRATUM_A006379
Shaveta Leekhab6808cd2014-05-28 14:18:55 +0530726#define CONFIG_SYS_FSL_ERRATUM_A007186
Scott Wood82125192013-05-15 17:50:13 -0500727#define CONFIG_SYS_FSL_ERRATUM_A006593
Nikhil Badola11856912014-02-26 17:43:15 +0530728#define CONFIG_SYS_FSL_ERRATUM_A007075
Shaveta Leekha7af9a072014-02-26 16:08:22 +0530729#define CONFIG_SYS_FSL_ERRATUM_A006475
730#define CONFIG_SYS_FSL_ERRATUM_A006384
York Sunc3678b02014-03-28 15:07:27 -0700731#define CONFIG_SYS_FSL_ERRATUM_A007212
Nikhil Badola0dc78ff2014-11-21 17:25:21 +0530732#define CONFIG_SYS_FSL_ERRATUM_A004477
Poonam Aggrwale1dbdd82012-12-23 19:24:16 +0000733#define CONFIG_SYS_CCSRBAR_DEFAULT 0xfe000000
Shaveta Leekhab6808cd2014-05-28 14:18:55 +0530734#define CONFIG_SYS_FSL_SFP_VER_3_0
Poonam Aggrwale1dbdd82012-12-23 19:24:16 +0000735
Poonam Aggrwal8fa01022013-03-25 07:40:20 +0000736#ifdef CONFIG_PPC_B4860
York Sunf6981432013-03-25 07:40:07 +0000737#define CONFIG_SYS_FSL_CORES_PER_CLUSTER 4
York Sund2404142012-10-08 07:44:20 +0000738#define CONFIG_MAX_CPUS 4
Shaveta Leekhab8bf0ad2015-01-19 12:46:54 +0530739#define CONFIG_MAX_DSP_CPUS 12
740#define CONFIG_NUM_DSP_CPUS 6
Shaveta Leekha6df82e32014-02-26 16:07:37 +0530741#define CONFIG_SYS_FSL_SRDS_NUM_PLLS 2
Prabhakar Kushwahace746fe2013-09-03 11:20:15 +0530742#define CONFIG_SYS_FSL_CLUSTER_CLOCKS { 1, 4, 4, 4 }
York Sund2404142012-10-08 07:44:20 +0000743#define CONFIG_SYS_NUM_FM1_DTSEC 6
744#define CONFIG_SYS_NUM_FM1_10GEC 2
Poonam Aggrwale394ceb2012-12-23 19:22:33 +0000745#define CONFIG_NUM_DDR_CONTROLLERS 2
ramneek mehreshf1810d82013-10-18 17:40:17 +0530746#define CONFIG_USB_MAX_CONTROLLER_COUNT 1
York Sund2404142012-10-08 07:44:20 +0000747#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 2
748#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
749#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
Liu Gang32f38ee2013-06-25 18:12:13 +0800750#define CONFIG_SYS_FSL_SRIO_LIODN
Poonam Aggrwal8fa01022013-03-25 07:40:20 +0000751#else
752#define CONFIG_MAX_CPUS 2
Shaveta Leekhab8bf0ad2015-01-19 12:46:54 +0530753#define CONFIG_MAX_DSP_CPUS 2
Shaveta Leekha6df82e32014-02-26 16:07:37 +0530754#define CONFIG_SYS_FSL_SRDS_NUM_PLLS 1
Poonam Aggrwal8fa01022013-03-25 07:40:20 +0000755#define CONFIG_SYS_FSL_CORES_PER_CLUSTER 2
Prabhakar Kushwahace746fe2013-09-03 11:20:15 +0530756#define CONFIG_SYS_FSL_CLUSTER_CLOCKS { 1, 4 }
Poonam Aggrwal8fa01022013-03-25 07:40:20 +0000757#define CONFIG_SYS_NUM_FM1_DTSEC 4
758#define CONFIG_SYS_NUM_FM1_10GEC 0
759#define CONFIG_NUM_DDR_CONTROLLERS 1
760#endif
York Sund2404142012-10-08 07:44:20 +0000761
Priyanka Jain2967af62013-10-18 12:30:21 +0530762#elif defined(CONFIG_PPC_T1040) || defined(CONFIG_PPC_T1042) ||\
763defined(CONFIG_PPC_T1020) || defined(CONFIG_PPC_T1022)
York Sun5f208d12013-03-25 07:40:06 +0000764#define CONFIG_E5500
765#define CONFIG_FSL_CORENET /* Freescale CoreNet platform */
766#define CONFIG_SYS_FSL_QORIQ_CHASSIS2 /* Freescale Chassis generation 2 */
York Sunf6981432013-03-25 07:40:07 +0000767#define CONFIG_SYS_FSL_CORES_PER_CLUSTER 1
York Sun5f208d12013-03-25 07:40:06 +0000768#define CONFIG_SYS_FSL_QMAN_V3 /* QMAN version 3 */
York Sun34e026f2014-03-27 17:54:47 -0700769#ifdef CONFIG_SYS_FSL_DDR4
770#define CONFIG_SYS_FSL_DDRC_GEN4
771#endif
Prabhakar Kushwaha1d384ec2013-09-03 11:19:54 +0530772#if defined(CONFIG_PPC_T1040) || defined(CONFIG_PPC_T1042)
York Sun5f208d12013-03-25 07:40:06 +0000773#define CONFIG_MAX_CPUS 4
Prabhakar Kushwaha1d384ec2013-09-03 11:19:54 +0530774#elif defined(CONFIG_PPC_T1020) || defined(CONFIG_PPC_T1022)
775#define CONFIG_MAX_CPUS 2
776#endif
777#define CONFIG_SYS_FSL_NUM_CC_PLLS 2
Prabhakar Kushwahace746fe2013-09-03 11:20:15 +0530778#define CONFIG_SYS_FSL_CLUSTER_CLOCKS { 1, 1, 1, 1 }
York Sun5f208d12013-03-25 07:40:06 +0000779#define CONFIG_SYS_FSL_NUM_LAWS 16
Prabhakar Kushwaha1d384ec2013-09-03 11:19:54 +0530780#define CONFIG_SYS_FSL_SRDS_1
781#define CONFIG_SYS_FSL_SEC_COMPAT 5
York Sun5f208d12013-03-25 07:40:06 +0000782#define CONFIG_SYS_NUM_FMAN 1
783#define CONFIG_SYS_NUM_FM1_DTSEC 5
784#define CONFIG_NUM_DDR_CONTROLLERS 1
ramneek mehreshf1810d82013-10-18 17:40:17 +0530785#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
Prabhakar Kushwahace746fe2013-09-03 11:20:15 +0530786#define CONFIG_PME_PLAT_CLK_DIV 2
787#define CONFIG_SYS_PME_CLK CONFIG_PME_PLAT_CLK_DIV
Prabhakar Kushwaha1d384ec2013-09-03 11:19:54 +0530788#define CONFIG_SYS_FSL_DDR_VER FSL_DDR_VER_5_0
789#define CONFIG_SYS_FSL_IFC_BANK_COUNT 8
Prabhakar Kushwaha9f074e62014-10-29 22:33:09 +0530790#define CONFIG_SYS_FSL_ERRATUM_A008044
York Sun5f208d12013-03-25 07:40:06 +0000791#define CONFIG_SYS_FMAN_V3
Prabhakar Kushwahace746fe2013-09-03 11:20:15 +0530792#define CONFIG_FM_PLAT_CLK_DIV 1
793#define CONFIG_SYS_FM1_CLK CONFIG_FM_PLAT_CLK_DIV
Yangbo Lu2d9ca2c2015-04-22 13:57:40 +0800794#define CONFIG_SYS_SDHC_CLK 0/* Select SDHC CLK begining from PLL1
795 per rcw field value */
796#define CONFIG_SYS_SDHC_CLK_2_PLL /* Select SDHC CLK from 2 PLLs */
Prabhakar Kushwaha1d384ec2013-09-03 11:19:54 +0530797#define CONFIG_SYS_FM_MURAM_SIZE 0x30000
Priyanka Jainb1359912013-12-17 14:25:52 +0530798#define CONFIG_SYS_FSL_SINGLE_SOURCE_CLK
Prabhakar Kushwahae03c76c2013-12-11 12:49:13 +0530799#define CONFIG_SYS_FSL_TBCLK_DIV 16
York Sun5f208d12013-03-25 07:40:06 +0000800#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.4"
Nikhil Badolaa4f7cba2014-01-27 15:21:58 +0530801#define CONFIG_SYS_FSL_USB_DUAL_PHY_ENABLE
York Sun5f208d12013-03-25 07:40:06 +0000802#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
Suresh Gupta9c641a82014-02-26 14:29:12 +0530803#define CONFIG_SYS_FSL_ERRATUM_A006261
York Sun5f208d12013-03-25 07:40:06 +0000804#define CONFIG_SYS_CCSRBAR_DEFAULT 0xfe000000
Haijun.Zhang1336e2d2014-03-18 17:04:23 +0800805#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
806#define ESDHCI_QUIRK_BROKEN_TIMEOUT_VALUE
Zhao Qiang2a44efe2014-03-21 16:21:45 +0800807#define QE_MURAM_SIZE 0x6000UL
808#define MAX_QE_RISC 1
809#define QE_NUM_OF_SNUM 28
gaurav ranae622d9e2015-03-26 15:52:47 +0530810#define CONFIG_SYS_FSL_SFP_VER_3_0
Shengzhou Liua46b1852015-11-20 15:52:04 +0800811#define CONFIG_SYS_FSL_ERRATUM_A008378
Shengzhou Liua994b3d2015-12-16 16:45:41 +0800812#define CONFIG_SYS_FSL_ERRATUM_A009663
York Sun5f208d12013-03-25 07:40:06 +0000813
Shengzhou Liuf6050792014-11-24 17:11:54 +0800814#elif defined(CONFIG_PPC_T1024) || defined(CONFIG_PPC_T1023) ||\
815defined(CONFIG_PPC_T1014) || defined(CONFIG_PPC_T1013)
816#define CONFIG_E5500
817#define CONFIG_FSL_CORENET /* Freescale CoreNet platform */
818#define CONFIG_SYS_FSL_QORIQ_CHASSIS2 /* Freescale Chassis generation 2 */
819#define CONFIG_SYS_FSL_CORES_PER_CLUSTER 1
820#define CONFIG_SYS_FSL_QMAN_V3 /* QMAN version 3 */
821#define CONFIG_SYS_FMAN_V3
822#ifdef CONFIG_SYS_FSL_DDR4
823#define CONFIG_SYS_FSL_DDRC_GEN4
824#endif
825#if defined(CONFIG_PPC_T1024) || defined(CONFIG_PPC_T1023)
826#define CONFIG_MAX_CPUS 2
827#elif defined(CONFIG_PPC_T1014) || defined(CONFIG_PPC_T1013)
828#define CONFIG_MAX_CPUS 1
829#endif
830#define CONFIG_SYS_FSL_NUM_CC_PLL 2
831#define CONFIG_SYS_FSL_CLUSTER_CLOCKS { 1, 1, 1, 1 }
Shengzhou Liuf6050792014-11-24 17:11:54 +0800832#define CONFIG_SYS_FSL_NUM_LAWS 16
833#define CONFIG_SYS_FSL_SRDS_1
834#define CONFIG_SYS_FSL_SEC_COMPAT 5
835#define CONFIG_SYS_NUM_FMAN 1
836#define CONFIG_SYS_NUM_FM1_DTSEC 4
837#define CONFIG_SYS_NUM_FM1_10GEC 1
Shengzhou Liucc19c252014-11-24 17:11:57 +0800838#define CONFIG_FSL_FM_10GEC_REGULAR_NOTATION
Shengzhou Liuf6050792014-11-24 17:11:54 +0800839#define CONFIG_NUM_DDR_CONTROLLERS 1
840#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
841#define CONFIG_SYS_FSL_DDR_VER FSL_DDR_VER_5_0
842#define CONFIG_SYS_FSL_IFC_BANK_COUNT 8
843#define CONFIG_SYS_FM1_CLK 0
Yangbo Lu2d9ca2c2015-04-22 13:57:40 +0800844#define CONFIG_SYS_SDHC_CLK 0/* Select SDHC CLK begining from PLL1
845 per rcw field value */
Shengzhou Liuf6050792014-11-24 17:11:54 +0800846#define CONFIG_QBMAN_CLK_DIV 1
847#define CONFIG_SYS_FM_MURAM_SIZE 0x30000
848#define CONFIG_SYS_FSL_SINGLE_SOURCE_CLK
849#define CONFIG_SYS_FSL_TBCLK_DIV 16
850#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.4"
851#define CONFIG_SYS_FSL_USB_DUAL_PHY_ENABLE
852#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
853#define CONFIG_SYS_CCSRBAR_DEFAULT 0xfe000000
854#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
855#define ESDHCI_QUIRK_BROKEN_TIMEOUT_VALUE
856#define QE_MURAM_SIZE 0x6000UL
857#define MAX_QE_RISC 1
858#define QE_NUM_OF_SNUM 28
859#define CONFIG_SYS_FSL_SFP_VER_3_0
Shengzhou Liua46b1852015-11-20 15:52:04 +0800860#define CONFIG_SYS_FSL_ERRATUM_A008378
Shengzhou Liua994b3d2015-12-16 16:45:41 +0800861#define CONFIG_SYS_FSL_ERRATUM_A009663
Shengzhou Liuf6050792014-11-24 17:11:54 +0800862
Shengzhou Liu629d6b32013-11-22 17:39:10 +0800863#elif defined(CONFIG_PPC_T2080) || defined(CONFIG_PPC_T2081)
864#define CONFIG_E6500
865#define CONFIG_SYS_PPC64 /* 64-bit core */
866#define CONFIG_FSL_CORENET /* Freescale CoreNet platform */
867#define CONFIG_SYS_FSL_QORIQ_CHASSIS2 /* Freescale Chassis generation 2 */
868#define CONFIG_SYS_FSL_CORES_PER_CLUSTER 4
869#define CONFIG_SYS_FSL_NUM_CC_PLLS 2
870#define CONFIG_SYS_FSL_QMAN_V3
871#define CONFIG_MAX_CPUS 4
872#define CONFIG_SYS_FSL_NUM_LAWS 32
873#define CONFIG_SYS_FSL_SEC_COMPAT 4
874#define CONFIG_SYS_NUM_FMAN 1
875#define CONFIG_SYS_FSL_CLUSTER_CLOCKS { 1, 4, 4, 4 }
876#define CONFIG_SYS_FSL_SRDS_1
877#define CONFIG_SYS_FSL_PCI_VER_3_X
878#if defined(CONFIG_PPC_T2080)
879#define CONFIG_SYS_NUM_FM1_DTSEC 8
880#define CONFIG_SYS_NUM_FM1_10GEC 4
881#define CONFIG_SYS_FSL_SRDS_2
882#define CONFIG_SYS_FSL_SRIO_LIODN
883#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 2
884#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
885#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
886#elif defined(CONFIG_PPC_T2081)
887#define CONFIG_SYS_NUM_FM1_DTSEC 6
888#define CONFIG_SYS_NUM_FM1_10GEC 2
889#endif
Shengzhou Liu2ffa96d2013-12-18 10:27:55 +0800890#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
Shengzhou Liu629d6b32013-11-22 17:39:10 +0800891#define CONFIG_NUM_DDR_CONTROLLERS 1
892#define CONFIG_PME_PLAT_CLK_DIV 1
893#define CONFIG_SYS_PME_CLK CONFIG_PME_PLAT_CLK_DIV
894#define CONFIG_SYS_FM1_CLK 0
Yangbo Lu2d9ca2c2015-04-22 13:57:40 +0800895#define CONFIG_SYS_SDHC_CLK 1/* Select SDHC CLK begining from PLL2
896 per rcw field value */
897#define CONFIG_SYS_SDHC_CLK_2_PLL /* Select SDHC CLK from 2 PLLs */
Shengzhou Liu629d6b32013-11-22 17:39:10 +0800898#define CONFIG_SYS_FSL_DDR_VER FSL_DDR_VER_4_7
899#define CONFIG_SYS_FSL_IFC_BANK_COUNT 8
900#define CONFIG_SYS_FMAN_V3
901#define CONFIG_SYS_FM_MURAM_SIZE 0x28000
902#define CONFIG_SYS_FSL_TBCLK_DIV 16
903#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v3.0"
904#define CONFIG_SYS_FSL_USB_DUAL_PHY_ENABLE
905#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
York Sunc3678b02014-03-28 15:07:27 -0700906#define CONFIG_SYS_FSL_ERRATUM_A007212
Shengzhou Liu629d6b32013-11-22 17:39:10 +0800907#define CONFIG_SYS_CCSRBAR_DEFAULT 0xfe000000
908#define CONFIG_SYS_FSL_SFP_VER_3_0
909#define CONFIG_SYS_FSL_ISBC_VER 2
Haijun.Zhang1336e2d2014-03-18 17:04:23 +0800910#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
Shengzhou Liuc665c472014-04-24 11:10:09 +0800911#define CONFIG_SYS_FSL_ERRATUM_A006261
912#define CONFIG_SYS_FSL_ERRATUM_A006593
Shaveta Leekhab6808cd2014-05-28 14:18:55 +0530913#define CONFIG_SYS_FSL_ERRATUM_A007186
Shengzhou Liuc665c472014-04-24 11:10:09 +0800914#define CONFIG_SYS_FSL_ERRATUM_A006379
Haijun.Zhang1336e2d2014-03-18 17:04:23 +0800915#define ESDHCI_QUIRK_BROKEN_TIMEOUT_VALUE
Shaveta Leekhab6808cd2014-05-28 14:18:55 +0530916#define CONFIG_SYS_FSL_SFP_VER_3_0
Haijun.Zhang1336e2d2014-03-18 17:04:23 +0800917
Shengzhou Liu629d6b32013-11-22 17:39:10 +0800918
Mingkai Hu3b75e982013-07-04 17:30:36 +0800919#elif defined(CONFIG_PPC_C29X)
920#define CONFIG_MAX_CPUS 1
921#define CONFIG_FSL_SDHC_V2_3
922#define CONFIG_SYS_FSL_NUM_LAWS 12
923#define CONFIG_SYS_PPC_E500_DEBUG_TLB 3
924#define CONFIG_TSECV2_1
925#define CONFIG_SYS_FSL_SEC_COMPAT 6
926#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
927#define CONFIG_NUM_DDR_CONTROLLERS 1
York Sun34e026f2014-03-27 17:54:47 -0700928#define CONFIG_SYS_FSL_DDR_VER FSL_DDR_VER_4_6
Mingkai Hu3b75e982013-07-04 17:30:36 +0800929#define CONFIG_SYS_FSL_IFC_BANK_COUNT 8
930#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
York Sun954a1a42013-08-20 15:09:43 -0700931#define CONFIG_SYS_FSL_ERRATUM_A005125
Alex Porosanu404bf452016-04-29 15:17:59 +0300932#define CONFIG_SYS_FSL_MAX_NUM_OF_SEC 3
933#define CONFIG_SYS_FSL_SEC_IDX_OFFSET 0x20000
Mingkai Hu3b75e982013-07-04 17:30:36 +0800934
Alexander Graffa08d392014-04-11 17:09:45 +0200935#elif defined(CONFIG_QEMU_E500)
936#define CONFIG_MAX_CPUS 1
937#define CONFIG_SYS_CCSRBAR_DEFAULT 0xe0000000
938
Kumar Gala243be8e2011-01-19 03:05:26 -0600939#else
940#error Processor type not defined for this platform
941#endif
942
Timur Tabie46fedf2011-08-04 18:03:41 -0500943#ifndef CONFIG_SYS_CCSRBAR_DEFAULT
944#error "CONFIG_SYS_CCSRBAR_DEFAULT is not defined for this platform."
945#endif
946
York Sunf6981432013-03-25 07:40:07 +0000947#ifdef CONFIG_E6500
948#define CONFIG_SYS_FSL_THREADS_PER_CORE 2
949#else
950#define CONFIG_SYS_FSL_THREADS_PER_CORE 1
951#endif
952
York Sun5614e712013-09-30 09:22:09 -0700953#if !defined(CONFIG_SYS_FSL_DDRC_GEN1) && \
954 !defined(CONFIG_SYS_FSL_DDRC_GEN2) && \
York Sun34e026f2014-03-27 17:54:47 -0700955 !defined(CONFIG_SYS_FSL_DDRC_GEN3) && \
956 !defined(CONFIG_SYS_FSL_DDRC_GEN4)
York Sun5614e712013-09-30 09:22:09 -0700957#define CONFIG_SYS_FSL_DDRC_GEN3
958#endif
959
Alex Porosanu404bf452016-04-29 15:17:59 +0300960#if !defined(CONFIG_PPC_C29X)
961#define CONFIG_SYS_FSL_MAX_NUM_OF_SEC 1
962#endif
963
Kumar Gala243be8e2011-01-19 03:05:26 -0600964#endif /* _ASM_MPC85xx_CONFIG_H_ */