blob: 712f2ef4b3020aab86eefd459b0d9e324e068924 [file] [log] [blame]
Kumar Galafe137112011-01-19 03:05:26 -06001/*
Prabhakar Kushwahabeebb882012-04-24 20:16:49 +00002 * Copyright 2011-2012 Freescale Semiconductor, Inc.
Kumar Galafe137112011-01-19 03:05:26 -06003 *
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02004 * SPDX-License-Identifier: GPL-2.0+
Kumar Galafe137112011-01-19 03:05:26 -06005 */
6
7#ifndef _ASM_MPC85xx_CONFIG_H_
8#define _ASM_MPC85xx_CONFIG_H_
9
10/* SoC specific defines for Freescale MPC85xx (PQ3) and QorIQ processors */
11
Timur Tabid8f341c2011-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 Sunf066a042012-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 Sun2896cb72014-03-27 17:54:47 -070022#include <fsl_ddrc_version.h>
23#define CONFIG_SYS_FSL_DDR_BE
York Sun7d69ea32012-10-08 07:44:22 +000024
Prabhakar Kushwaha62908c22014-01-18 12:28:30 +053025/* IP endianness */
26#define CONFIG_SYS_FSL_IFC_BE
27
Kumar Galafe137112011-01-19 03:05:26 -060028/* Number of TLB CAM entries we have on FSL Book-E chips */
29#if defined(CONFIG_E500MC)
30#define CONFIG_SYS_NUM_TLBCAMS 64
31#elif defined(CONFIG_E500)
32#define CONFIG_SYS_NUM_TLBCAMS 16
33#endif
34
35#if defined(CONFIG_MPC8536)
36#define CONFIG_MAX_CPUS 1
37#define CONFIG_SYS_FSL_NUM_LAWS 12
Prabhakar Kushwaha826cf622012-08-15 04:12:43 +000038#define CONFIG_SYS_PPC_E500_DEBUG_TLB 1
Kumar Galafe137112011-01-19 03:05:26 -060039#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabid8f341c2011-08-04 18:03:41 -050040#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
York Sun99825792014-05-23 13:15:00 -070041#define CONFIG_SYS_FSL_ERRATUM_A004508
York Sun0cc59072013-08-20 15:09:43 -070042#define CONFIG_SYS_FSL_ERRATUM_A005125
Kumar Galafe137112011-01-19 03:05:26 -060043
Wolfgang Denka4de8352011-02-02 22:36:10 +010044#elif defined(CONFIG_MPC8540)
Kumar Galafe137112011-01-19 03:05:26 -060045#define CONFIG_MAX_CPUS 1
46#define CONFIG_SYS_FSL_NUM_LAWS 8
York Sunf0626592013-09-30 09:22:09 -070047#define CONFIG_SYS_FSL_DDRC_GEN1
Timur Tabid8f341c2011-08-04 18:03:41 -050048#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Galafe137112011-01-19 03:05:26 -060049
Wolfgang Denka4de8352011-02-02 22:36:10 +010050#elif defined(CONFIG_MPC8541)
Kumar Galafe137112011-01-19 03:05:26 -060051#define CONFIG_MAX_CPUS 1
52#define CONFIG_SYS_FSL_NUM_LAWS 8
York Sunf0626592013-09-30 09:22:09 -070053#define CONFIG_SYS_FSL_DDRC_GEN1
Kumar Galafe137112011-01-19 03:05:26 -060054#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabid8f341c2011-08-04 18:03:41 -050055#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Galafe137112011-01-19 03:05:26 -060056
57#elif defined(CONFIG_MPC8544)
58#define CONFIG_MAX_CPUS 1
59#define CONFIG_SYS_FSL_NUM_LAWS 10
York Sunf0626592013-09-30 09:22:09 -070060#define CONFIG_SYS_FSL_DDRC_GEN2
Prabhakar Kushwaha826cf622012-08-15 04:12:43 +000061#define CONFIG_SYS_PPC_E500_DEBUG_TLB 0
Kumar Galafe137112011-01-19 03:05:26 -060062#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabid8f341c2011-08-04 18:03:41 -050063#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
York Sun0cc59072013-08-20 15:09:43 -070064#define CONFIG_SYS_FSL_ERRATUM_A005125
Kumar Galafe137112011-01-19 03:05:26 -060065
66#elif defined(CONFIG_MPC8548)
67#define CONFIG_MAX_CPUS 1
68#define CONFIG_SYS_FSL_NUM_LAWS 10
York Sunf0626592013-09-30 09:22:09 -070069#define CONFIG_SYS_FSL_DDRC_GEN2
Prabhakar Kushwaha826cf622012-08-15 04:12:43 +000070#define CONFIG_SYS_PPC_E500_DEBUG_TLB 0
Kumar Galafe137112011-01-19 03:05:26 -060071#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabid8f341c2011-08-04 18:03:41 -050072#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Gala866c6fa2011-09-16 09:54:30 -050073#define CONFIG_SYS_FSL_ERRATUM_NMG_DDR120
Kumar Galaf3339d62011-10-03 08:37:57 -050074#define CONFIG_SYS_FSL_ERRATUM_NMG_LBC103
chenhui zhaoc8caa8a2011-10-03 08:38:50 -050075#define CONFIG_SYS_FSL_ERRATUM_NMG_ETSEC129
Liu Gang78deaa12012-03-08 00:33:14 +000076#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 1
77#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
78#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
79#define CONFIG_SYS_FSL_RMU
80#define CONFIG_SYS_FSL_SRIO_MSG_UNIT_NUM 2
York Sun0cc59072013-08-20 15:09:43 -070081#define CONFIG_SYS_FSL_ERRATUM_A005125
Chunhe Lan92546402013-08-16 15:10:37 +080082#define CONFIG_SYS_FSL_ERRATUM_I2C_A004447
83#define CONFIG_SYS_FSL_A004447_SVR_REV 0x00
Kumar Galafe137112011-01-19 03:05:26 -060084
85#elif defined(CONFIG_MPC8555)
86#define CONFIG_MAX_CPUS 1
87#define CONFIG_SYS_FSL_NUM_LAWS 8
York Sunf0626592013-09-30 09:22:09 -070088#define CONFIG_SYS_FSL_DDRC_GEN1
Kumar Galafe137112011-01-19 03:05:26 -060089#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabid8f341c2011-08-04 18:03:41 -050090#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Galafe137112011-01-19 03:05:26 -060091
92#elif defined(CONFIG_MPC8560)
93#define CONFIG_MAX_CPUS 1
94#define CONFIG_SYS_FSL_NUM_LAWS 8
York Sunf0626592013-09-30 09:22:09 -070095#define CONFIG_SYS_FSL_DDRC_GEN1
Timur Tabid8f341c2011-08-04 18:03:41 -050096#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Galafe137112011-01-19 03:05:26 -060097
98#elif defined(CONFIG_MPC8568)
99#define CONFIG_MAX_CPUS 1
100#define CONFIG_SYS_FSL_NUM_LAWS 10
York Sunf0626592013-09-30 09:22:09 -0700101#define CONFIG_SYS_FSL_DDRC_GEN2
Kumar Galafe137112011-01-19 03:05:26 -0600102#define CONFIG_SYS_FSL_SEC_COMPAT 2
Kumar Gala52bd8152011-01-31 23:09:25 -0600103#define QE_MURAM_SIZE 0x10000UL
104#define MAX_QE_RISC 2
105#define QE_NUM_OF_SNUM 28
Timur Tabid8f341c2011-08-04 18:03:41 -0500106#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Liu Gang78deaa12012-03-08 00:33:14 +0000107#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 1
108#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
109#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
110#define CONFIG_SYS_FSL_RMU
111#define CONFIG_SYS_FSL_SRIO_MSG_UNIT_NUM 2
Kumar Galafe137112011-01-19 03:05:26 -0600112
113#elif defined(CONFIG_MPC8569)
114#define CONFIG_MAX_CPUS 1
115#define CONFIG_SYS_FSL_NUM_LAWS 10
116#define CONFIG_SYS_FSL_SEC_COMPAT 2
Kumar Gala52bd8152011-01-31 23:09:25 -0600117#define QE_MURAM_SIZE 0x20000UL
118#define MAX_QE_RISC 4
119#define QE_NUM_OF_SNUM 46
Timur Tabid8f341c2011-08-04 18:03:41 -0500120#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Liu Gang78deaa12012-03-08 00:33:14 +0000121#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 1
122#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
123#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
124#define CONFIG_SYS_FSL_RMU
125#define CONFIG_SYS_FSL_SRIO_MSG_UNIT_NUM 2
York Sun99825792014-05-23 13:15:00 -0700126#define CONFIG_SYS_FSL_ERRATUM_A004508
York Sun0cc59072013-08-20 15:09:43 -0700127#define CONFIG_SYS_FSL_ERRATUM_A005125
Kumar Galafe137112011-01-19 03:05:26 -0600128
129#elif defined(CONFIG_MPC8572)
130#define CONFIG_MAX_CPUS 2
131#define CONFIG_SYS_FSL_NUM_LAWS 12
Prabhakar Kushwaha826cf622012-08-15 04:12:43 +0000132#define CONFIG_SYS_PPC_E500_DEBUG_TLB 2
Kumar Galafe137112011-01-19 03:05:26 -0600133#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabid8f341c2011-08-04 18:03:41 -0500134#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
York Sun9aa857b2011-01-25 21:51:27 -0800135#define CONFIG_SYS_FSL_ERRATUM_DDR_115
York Sunc8fc9592011-01-25 22:05:49 -0800136#define CONFIG_SYS_FSL_ERRATUM_DDR111_DDR134
York Sun99825792014-05-23 13:15:00 -0700137#define CONFIG_SYS_FSL_ERRATUM_A004508
York Sun0cc59072013-08-20 15:09:43 -0700138#define CONFIG_SYS_FSL_ERRATUM_A005125
Kumar Galafe137112011-01-19 03:05:26 -0600139
140#elif defined(CONFIG_P1010)
141#define CONFIG_MAX_CPUS 1
Priyanka Jain02449632011-02-09 09:24:10 +0530142#define CONFIG_FSL_SDHC_V2_3
Kumar Galafe137112011-01-19 03:05:26 -0600143#define CONFIG_SYS_FSL_NUM_LAWS 12
Prabhakar Kushwaha3d42a962012-04-29 23:57:12 +0000144#define CONFIG_SYS_PPC_E500_DEBUG_TLB 3
Kumar Galafe137112011-01-19 03:05:26 -0600145#define CONFIG_TSECV2
146#define CONFIG_SYS_FSL_SEC_COMPAT 4
Poonam Aggrwal7373c592011-02-06 11:31:44 +0530147#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
148#define CONFIG_NUM_DDR_CONTROLLERS 1
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530149#define CONFIG_USB_MAX_CONTROLLER_COUNT 1
Mingkai Hu6f024c92013-05-16 10:18:13 +0800150#define CONFIG_SYS_FSL_IFC_BANK_COUNT 4
Poonam Aggrwal7373c592011-02-06 11:31:44 +0530151#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Gala179b1b22011-05-20 00:39:21 -0500152#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.2"
Ramneek Mehresh3fb68ee2011-03-23 15:20:43 +0530153#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
Poonam Aggrwalc7664a42011-06-30 03:00:28 -0500154#define CONFIG_SYS_FSL_ERRATUM_IFC_A002769
Poonam Aggrwalaf54a5f2011-06-29 16:32:52 +0530155#define CONFIG_SYS_FSL_ERRATUM_P1010_A003549
Shengzhou Liu097be702013-08-15 09:31:47 +0800156#define CONFIG_SYS_FSL_ERRATUM_SEC_A003571
Poonam Aggrwal46b86ca2011-07-07 20:36:47 +0530157#define CONFIG_SYS_FSL_ERRATUM_IFC_A003399
York Sun0cc59072013-08-20 15:09:43 -0700158#define CONFIG_SYS_FSL_ERRATUM_A005125
Chunhe Lan92546402013-08-16 15:10:37 +0800159#define CONFIG_SYS_FSL_ERRATUM_I2C_A004447
York Sun99825792014-05-23 13:15:00 -0700160#define CONFIG_SYS_FSL_ERRATUM_A004508
Nikhil Badola2613cfc2014-02-26 17:43:15 +0530161#define CONFIG_SYS_FSL_ERRATUM_A007075
Suresh Gupta086f0a72014-02-26 14:29:12 +0530162#define CONFIG_SYS_FSL_ERRATUM_A006261
Chunhe Lan92546402013-08-16 15:10:37 +0800163#define CONFIG_SYS_FSL_A004447_SVR_REV 0x10
Haijun.Zhang22e3c422014-01-10 13:52:19 +0800164#define CONFIG_ESDHC_HC_BLK_ADDR
Kumar Galafe137112011-01-19 03:05:26 -0600165
Kumar Galae4e69252011-02-05 13:45:07 -0600166/* P1011 is single core version of P1020 */
Kumar Galafe137112011-01-19 03:05:26 -0600167#elif defined(CONFIG_P1011)
168#define CONFIG_MAX_CPUS 1
169#define CONFIG_SYS_FSL_NUM_LAWS 12
Prabhakar Kushwaha3d42a962012-04-29 23:57:12 +0000170#define CONFIG_SYS_PPC_E500_DEBUG_TLB 2
Kumar Galafe137112011-01-19 03:05:26 -0600171#define CONFIG_TSECV2
Prabhakar Kushwaha1c48e772011-02-01 15:55:58 +0000172#define CONFIG_FSL_PCIE_DISABLE_ASPM
Kumar Galafe137112011-01-19 03:05:26 -0600173#define CONFIG_SYS_FSL_SEC_COMPAT 2
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530174#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
Timur Tabid8f341c2011-08-04 18:03:41 -0500175#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Galae4e69252011-02-05 13:45:07 -0600176#define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
177#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
York Sun99825792014-05-23 13:15:00 -0700178#define CONFIG_SYS_FSL_ERRATUM_A004508
York Sun0cc59072013-08-20 15:09:43 -0700179#define CONFIG_SYS_FSL_ERRATUM_A005125
Kumar Galafe137112011-01-19 03:05:26 -0600180
Kumar Galae4e69252011-02-05 13:45:07 -0600181/* P1012 is single core version of P1021 */
Kumar Galafe137112011-01-19 03:05:26 -0600182#elif defined(CONFIG_P1012)
183#define CONFIG_MAX_CPUS 1
184#define CONFIG_SYS_FSL_NUM_LAWS 12
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530185#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
Prabhakar Kushwaha3d42a962012-04-29 23:57:12 +0000186#define CONFIG_SYS_PPC_E500_DEBUG_TLB 2
Kumar Galafe137112011-01-19 03:05:26 -0600187#define CONFIG_TSECV2
Prabhakar Kushwaha1c48e772011-02-01 15:55:58 +0000188#define CONFIG_FSL_PCIE_DISABLE_ASPM
Kumar Galafe137112011-01-19 03:05:26 -0600189#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabid8f341c2011-08-04 18:03:41 -0500190#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Galae4e69252011-02-05 13:45:07 -0600191#define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
192#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
Haiying Wang8cb2af72011-02-11 01:25:30 -0600193#define QE_MURAM_SIZE 0x6000UL
194#define MAX_QE_RISC 1
195#define QE_NUM_OF_SNUM 28
York Sun99825792014-05-23 13:15:00 -0700196#define CONFIG_SYS_FSL_ERRATUM_A004508
York Sun0cc59072013-08-20 15:09:43 -0700197#define CONFIG_SYS_FSL_ERRATUM_A005125
Kumar Galafe137112011-01-19 03:05:26 -0600198
Kumar Galae4e69252011-02-05 13:45:07 -0600199/* P1013 is single core version of P1022 */
Kumar Galafe137112011-01-19 03:05:26 -0600200#elif defined(CONFIG_P1013)
201#define CONFIG_MAX_CPUS 1
202#define CONFIG_SYS_FSL_NUM_LAWS 12
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530203#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
Prabhakar Kushwaha3d42a962012-04-29 23:57:12 +0000204#define CONFIG_SYS_PPC_E500_DEBUG_TLB 2
Kumar Galafe137112011-01-19 03:05:26 -0600205#define CONFIG_TSECV2
206#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabid8f341c2011-08-04 18:03:41 -0500207#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Jiang Yutang7cd05902011-01-30 17:06:20 -0600208#define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
209#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
210#define CONFIG_FSL_SATA_ERRATUM_A001
York Sun99825792014-05-23 13:15:00 -0700211#define CONFIG_SYS_FSL_ERRATUM_A004508
York Sun0cc59072013-08-20 15:09:43 -0700212#define CONFIG_SYS_FSL_ERRATUM_A005125
Kumar Galafe137112011-01-19 03:05:26 -0600213
214#elif defined(CONFIG_P1014)
215#define CONFIG_MAX_CPUS 1
Priyanka Jain02449632011-02-09 09:24:10 +0530216#define CONFIG_FSL_SDHC_V2_3
Kumar Galafe137112011-01-19 03:05:26 -0600217#define CONFIG_SYS_FSL_NUM_LAWS 12
Prabhakar Kushwaha3d42a962012-04-29 23:57:12 +0000218#define CONFIG_SYS_PPC_E500_DEBUG_TLB 3
Kumar Galafe137112011-01-19 03:05:26 -0600219#define CONFIG_TSECV2
220#define CONFIG_SYS_FSL_SEC_COMPAT 4
Poonam Aggrwal7373c592011-02-06 11:31:44 +0530221#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
222#define CONFIG_NUM_DDR_CONTROLLERS 1
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530223#define CONFIG_USB_MAX_CONTROLLER_COUNT 1
Poonam Aggrwal7373c592011-02-06 11:31:44 +0530224#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Ramneek Mehresh3fb68ee2011-03-23 15:20:43 +0530225#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
Poonam Aggrwalc7664a42011-06-30 03:00:28 -0500226#define CONFIG_SYS_FSL_ERRATUM_IFC_A002769
Poonam Aggrwalaf54a5f2011-06-29 16:32:52 +0530227#define CONFIG_SYS_FSL_ERRATUM_P1010_A003549
Poonam Aggrwal46b86ca2011-07-07 20:36:47 +0530228#define CONFIG_SYS_FSL_ERRATUM_IFC_A003399
York Sun99825792014-05-23 13:15:00 -0700229#define CONFIG_SYS_FSL_ERRATUM_A004508
Kumar Galafe137112011-01-19 03:05:26 -0600230
Kumar Galae4e69252011-02-05 13:45:07 -0600231/* P1017 is single core version of P1023 */
Roy Zang1de20b02011-02-03 22:14:19 -0600232#elif defined(CONFIG_P1017)
233#define CONFIG_MAX_CPUS 1
234#define CONFIG_SYS_FSL_NUM_LAWS 12
235#define CONFIG_SYS_FSL_SEC_COMPAT 4
236#define CONFIG_SYS_NUM_FMAN 1
237#define CONFIG_SYS_NUM_FM1_DTSEC 2
238#define CONFIG_NUM_DDR_CONTROLLERS 1
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530239#define CONFIG_USB_MAX_CONTROLLER_COUNT 1
Roy Zang1de20b02011-02-03 22:14:19 -0600240#define CONFIG_SYS_QMAN_NUM_PORTALS 3
241#define CONFIG_SYS_BMAN_NUM_PORTALS 3
Kumar Galad80dfe42011-02-04 00:43:34 -0600242#define CONFIG_SYS_FM_MURAM_SIZE 0x10000
Kumar Gala179b1b22011-05-20 00:39:21 -0500243#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.2"
Timur Tabid8f341c2011-08-04 18:03:41 -0500244#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff600000
York Sun99825792014-05-23 13:15:00 -0700245#define CONFIG_SYS_FSL_ERRATUM_A004508
York Sun0cc59072013-08-20 15:09:43 -0700246#define CONFIG_SYS_FSL_ERRATUM_A005125
Roy Zang1de20b02011-02-03 22:14:19 -0600247
Kumar Galafe137112011-01-19 03:05:26 -0600248#elif defined(CONFIG_P1020)
249#define CONFIG_MAX_CPUS 2
250#define CONFIG_SYS_FSL_NUM_LAWS 12
Prabhakar Kushwaha3d42a962012-04-29 23:57:12 +0000251#define CONFIG_SYS_PPC_E500_DEBUG_TLB 2
Kumar Galafe137112011-01-19 03:05:26 -0600252#define CONFIG_TSECV2
Prabhakar Kushwaha1c48e772011-02-01 15:55:58 +0000253#define CONFIG_FSL_PCIE_DISABLE_ASPM
Kumar Galafe137112011-01-19 03:05:26 -0600254#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabid8f341c2011-08-04 18:03:41 -0500255#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Galae4e69252011-02-05 13:45:07 -0600256#define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
257#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
York Sun99825792014-05-23 13:15:00 -0700258#define CONFIG_SYS_FSL_ERRATUM_A004508
York Sun0cc59072013-08-20 15:09:43 -0700259#define CONFIG_SYS_FSL_ERRATUM_A005125
ramneek mehresh3ca2b9a2014-05-13 15:36:07 +0530260#ifndef CONFIG_USB_MAX_CONTROLLER_COUNT
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530261#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
ramneek mehresh3ca2b9a2014-05-13 15:36:07 +0530262#endif
Kumar Galafe137112011-01-19 03:05:26 -0600263
264#elif defined(CONFIG_P1021)
265#define CONFIG_MAX_CPUS 2
266#define CONFIG_SYS_FSL_NUM_LAWS 12
Prabhakar Kushwaha3d42a962012-04-29 23:57:12 +0000267#define CONFIG_SYS_PPC_E500_DEBUG_TLB 2
Kumar Galafe137112011-01-19 03:05:26 -0600268#define CONFIG_TSECV2
Prabhakar Kushwaha1c48e772011-02-01 15:55:58 +0000269#define CONFIG_FSL_PCIE_DISABLE_ASPM
Kumar Galafe137112011-01-19 03:05:26 -0600270#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabid8f341c2011-08-04 18:03:41 -0500271#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Galae4e69252011-02-05 13:45:07 -0600272#define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
273#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
Haiying Wang8cb2af72011-02-11 01:25:30 -0600274#define QE_MURAM_SIZE 0x6000UL
275#define MAX_QE_RISC 1
276#define QE_NUM_OF_SNUM 28
York Sun99825792014-05-23 13:15:00 -0700277#define CONFIG_SYS_FSL_ERRATUM_A004508
York Sun0cc59072013-08-20 15:09:43 -0700278#define CONFIG_SYS_FSL_ERRATUM_A005125
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530279#define CONFIG_USB_MAX_CONTROLLER_COUNT 1
Kumar Galafe137112011-01-19 03:05:26 -0600280
281#elif defined(CONFIG_P1022)
282#define CONFIG_MAX_CPUS 2
283#define CONFIG_SYS_FSL_NUM_LAWS 12
Prabhakar Kushwaha3d42a962012-04-29 23:57:12 +0000284#define CONFIG_SYS_PPC_E500_DEBUG_TLB 2
Kumar Galafe137112011-01-19 03:05:26 -0600285#define CONFIG_TSECV2
286#define CONFIG_SYS_FSL_SEC_COMPAT 2
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530287#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
Timur Tabid8f341c2011-08-04 18:03:41 -0500288#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Jiang Yutang7cd05902011-01-30 17:06:20 -0600289#define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
290#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
291#define CONFIG_FSL_SATA_ERRATUM_A001
York Sun99825792014-05-23 13:15:00 -0700292#define CONFIG_SYS_FSL_ERRATUM_A004508
York Sun0cc59072013-08-20 15:09:43 -0700293#define CONFIG_SYS_FSL_ERRATUM_A005125
Kumar Galafe137112011-01-19 03:05:26 -0600294
Roy Zang1de20b02011-02-03 22:14:19 -0600295#elif defined(CONFIG_P1023)
296#define CONFIG_MAX_CPUS 2
297#define CONFIG_SYS_FSL_NUM_LAWS 12
298#define CONFIG_SYS_FSL_SEC_COMPAT 4
299#define CONFIG_SYS_NUM_FMAN 1
300#define CONFIG_SYS_NUM_FM1_DTSEC 2
301#define CONFIG_NUM_DDR_CONTROLLERS 1
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530302#define CONFIG_USB_MAX_CONTROLLER_COUNT 1
Roy Zang1de20b02011-02-03 22:14:19 -0600303#define CONFIG_SYS_QMAN_NUM_PORTALS 3
304#define CONFIG_SYS_BMAN_NUM_PORTALS 3
Kumar Galad80dfe42011-02-04 00:43:34 -0600305#define CONFIG_SYS_FM_MURAM_SIZE 0x10000
Kumar Gala179b1b22011-05-20 00:39:21 -0500306#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.2"
Timur Tabid8f341c2011-08-04 18:03:41 -0500307#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff600000
York Sun99825792014-05-23 13:15:00 -0700308#define CONFIG_SYS_FSL_ERRATUM_A004508
York Sun0cc59072013-08-20 15:09:43 -0700309#define CONFIG_SYS_FSL_ERRATUM_A005125
Chunhe Lan92546402013-08-16 15:10:37 +0800310#define CONFIG_SYS_FSL_ERRATUM_I2C_A004447
311#define CONFIG_SYS_FSL_A004447_SVR_REV 0x11
Roy Zang1de20b02011-02-03 22:14:19 -0600312
Kumar Galae4e69252011-02-05 13:45:07 -0600313/* P1024 is lower end variant of P1020 */
314#elif defined(CONFIG_P1024)
315#define CONFIG_MAX_CPUS 2
316#define CONFIG_SYS_FSL_NUM_LAWS 12
Prabhakar Kushwaha3d42a962012-04-29 23:57:12 +0000317#define CONFIG_SYS_PPC_E500_DEBUG_TLB 2
Kumar Galae4e69252011-02-05 13:45:07 -0600318#define CONFIG_TSECV2
319#define CONFIG_FSL_PCIE_DISABLE_ASPM
320#define CONFIG_SYS_FSL_SEC_COMPAT 2
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530321#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
Timur Tabid8f341c2011-08-04 18:03:41 -0500322#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Galae4e69252011-02-05 13:45:07 -0600323#define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
324#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
York Sun99825792014-05-23 13:15:00 -0700325#define CONFIG_SYS_FSL_ERRATUM_A004508
York Sun0cc59072013-08-20 15:09:43 -0700326#define CONFIG_SYS_FSL_ERRATUM_A005125
Kumar Galae4e69252011-02-05 13:45:07 -0600327
328/* P1025 is lower end variant of P1021 */
329#elif defined(CONFIG_P1025)
330#define CONFIG_MAX_CPUS 2
331#define CONFIG_SYS_FSL_NUM_LAWS 12
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530332#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
Prabhakar Kushwaha3d42a962012-04-29 23:57:12 +0000333#define CONFIG_SYS_PPC_E500_DEBUG_TLB 2
Kumar Galae4e69252011-02-05 13:45:07 -0600334#define CONFIG_TSECV2
335#define CONFIG_FSL_PCIE_DISABLE_ASPM
336#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabid8f341c2011-08-04 18:03:41 -0500337#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Galae4e69252011-02-05 13:45:07 -0600338#define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
339#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
Haiying Wang8cb2af72011-02-11 01:25:30 -0600340#define QE_MURAM_SIZE 0x6000UL
341#define MAX_QE_RISC 1
342#define QE_NUM_OF_SNUM 28
York Sun99825792014-05-23 13:15:00 -0700343#define CONFIG_SYS_FSL_ERRATUM_A004508
York Sun0cc59072013-08-20 15:09:43 -0700344#define CONFIG_SYS_FSL_ERRATUM_A005125
Kumar Galae4e69252011-02-05 13:45:07 -0600345
346/* P2010 is single core version of P2020 */
Kumar Galafe137112011-01-19 03:05:26 -0600347#elif defined(CONFIG_P2010)
348#define CONFIG_MAX_CPUS 1
349#define CONFIG_SYS_FSL_NUM_LAWS 12
Prabhakar Kushwaha3d42a962012-04-29 23:57:12 +0000350#define CONFIG_SYS_PPC_E500_DEBUG_TLB 2
Kumar Galafe137112011-01-19 03:05:26 -0600351#define CONFIG_SYS_FSL_SEC_COMPAT 2
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530352#define CONFIG_USB_MAX_CONTROLLER_COUNT 1
Timur Tabid8f341c2011-08-04 18:03:41 -0500353#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Gala7b5b4802011-01-26 01:43:15 -0600354#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
Kumar Gala9a878d52011-01-29 15:36:10 -0600355#define CONFIG_SYS_FSL_ERRATUM_ESDHC_A001
York Sun99825792014-05-23 13:15:00 -0700356#define CONFIG_SYS_FSL_ERRATUM_A004508
York Sun0cc59072013-08-20 15:09:43 -0700357#define CONFIG_SYS_FSL_ERRATUM_A005125
Kumar Galafe137112011-01-19 03:05:26 -0600358
359#elif defined(CONFIG_P2020)
360#define CONFIG_MAX_CPUS 2
361#define CONFIG_SYS_FSL_NUM_LAWS 12
Prabhakar Kushwaha3d42a962012-04-29 23:57:12 +0000362#define CONFIG_SYS_PPC_E500_DEBUG_TLB 2
Kumar Galafe137112011-01-19 03:05:26 -0600363#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabid8f341c2011-08-04 18:03:41 -0500364#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Gala7b5b4802011-01-26 01:43:15 -0600365#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
Kumar Gala9a878d52011-01-29 15:36:10 -0600366#define CONFIG_SYS_FSL_ERRATUM_ESDHC_A001
Liu Gang78deaa12012-03-08 00:33:14 +0000367#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 2
368#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
369#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
370#define CONFIG_SYS_FSL_RMU
371#define CONFIG_SYS_FSL_SRIO_MSG_UNIT_NUM 2
York Sun99825792014-05-23 13:15:00 -0700372#define CONFIG_SYS_FSL_ERRATUM_A004508
York Sun0cc59072013-08-20 15:09:43 -0700373#define CONFIG_SYS_FSL_ERRATUM_A005125
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530374#define CONFIG_USB_MAX_CONTROLLER_COUNT 1
York Sun99825792014-05-23 13:15:00 -0700375
Scott Wooda1ef48c2012-08-14 10:14:51 +0000376#elif defined(CONFIG_PPC_P2041) /* also supports P2040 */
York Sun7e0edbd2012-10-08 07:44:15 +0000377#define CONFIG_SYS_FSL_QORIQ_CHASSIS1
York Sun544f8812013-06-25 11:37:39 -0700378#define CONFIG_FSL_CORENET /* Freescale CoreNet platform */
Kumar Galafe137112011-01-19 03:05:26 -0600379#define CONFIG_MAX_CPUS 4
Kumar Gala3842bb52011-02-16 02:03:29 -0600380#define CONFIG_SYS_FSL_NUM_CC_PLLS 2
Kumar Galafe137112011-01-19 03:05:26 -0600381#define CONFIG_SYS_FSL_NUM_LAWS 32
382#define CONFIG_SYS_FSL_SEC_COMPAT 4
Kumar Gala619541b2011-05-13 01:16:07 -0500383#define CONFIG_SYS_NUM_FMAN 1
384#define CONFIG_SYS_NUM_FM1_DTSEC 5
385#define CONFIG_SYS_NUM_FM1_10GEC 1
386#define CONFIG_NUM_DDR_CONTROLLERS 1
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530387#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
Kumar Gala619541b2011-05-13 01:16:07 -0500388#define CONFIG_SYS_FM_MURAM_SIZE 0x28000
389#define CONFIG_SYS_FSL_TBCLK_DIV 32
390#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.2"
Timur Tabid8f341c2011-08-04 18:03:41 -0500391#define CONFIG_SYS_CCSRBAR_DEFAULT 0xfe000000
Kumar Gala619541b2011-05-13 01:16:07 -0500392#define CONFIG_SYS_FSL_USB1_PHY_ENABLE
393#define CONFIG_SYS_FSL_USB2_PHY_ENABLE
Kumar Galaa49034f2011-04-13 00:19:10 -0500394#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
Kumar Gala619541b2011-05-13 01:16:07 -0500395#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
York Sun9ed88112012-05-07 07:26:47 +0000396#define CONFIG_SYS_FSL_ERRATUM_NMG_CPU_A011
Xuleicf4f4932013-03-11 17:56:34 +0000397#define CONFIG_SYS_FSL_ERRATUM_USB14
Kumar Gala945e59a2011-11-22 06:51:15 -0600398#define CONFIG_SYS_FSL_ERRATUM_CPU_A003999
York Sun52db64b2013-03-25 07:30:11 +0000399#define CONFIG_SYS_FSL_ERRATUM_DDR_A003
York Sundf2be192011-11-20 10:01:35 -0800400#define CONFIG_SYS_FSL_ERRATUM_DDR_A003474
Liu Gang78deaa12012-03-08 00:33:14 +0000401#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 2
402#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
403#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
Scott Wood80806962012-08-14 10:14:53 +0000404#define CONFIG_SYS_FSL_ERRATUM_A004510
405#define CONFIG_SYS_FSL_ERRATUM_A004510_SVR_REV 0x10
406#define CONFIG_SYS_FSL_ERRATUM_A004510_SVR_REV2 0x11
407#define CONFIG_SYS_FSL_CORENET_SNOOPVEC_COREONLY 0xf0000000
Liu Gang712b6622012-09-28 21:26:19 +0000408#define CONFIG_SYS_FSL_ERRATUM_SRIO_A004034
Timur Tabie3ab8c12012-10-25 12:40:00 +0000409#define CONFIG_SYS_FSL_ERRATUM_A004849
Chunhe Lan92546402013-08-16 15:10:37 +0800410#define CONFIG_SYS_FSL_ERRATUM_I2C_A004447
Suresh Gupta086f0a72014-02-26 14:29:12 +0530411#define CONFIG_SYS_FSL_ERRATUM_A006261
Chunhe Lan92546402013-08-16 15:10:37 +0800412#define CONFIG_SYS_FSL_A004447_SVR_REV 0x11
Kumar Gala619541b2011-05-13 01:16:07 -0500413
Kumar Galafe137112011-01-19 03:05:26 -0600414#elif defined(CONFIG_PPC_P3041)
York Sun7e0edbd2012-10-08 07:44:15 +0000415#define CONFIG_SYS_FSL_QORIQ_CHASSIS1
York Sun544f8812013-06-25 11:37:39 -0700416#define CONFIG_FSL_CORENET /* Freescale CoreNet platform */
Kumar Galafe137112011-01-19 03:05:26 -0600417#define CONFIG_MAX_CPUS 4
Kumar Gala3842bb52011-02-16 02:03:29 -0600418#define CONFIG_SYS_FSL_NUM_CC_PLLS 2
Kumar Galafe137112011-01-19 03:05:26 -0600419#define CONFIG_SYS_FSL_NUM_LAWS 32
420#define CONFIG_SYS_FSL_SEC_COMPAT 4
Kumar Gala60d95d82011-01-25 12:42:32 -0600421#define CONFIG_SYS_NUM_FMAN 1
422#define CONFIG_SYS_NUM_FM1_DTSEC 5
423#define CONFIG_SYS_NUM_FM1_10GEC 1
424#define CONFIG_NUM_DDR_CONTROLLERS 1
York Sun2896cb72014-03-27 17:54:47 -0700425#define CONFIG_SYS_FSL_DDR_VER FSL_DDR_VER_4_5
Kumar Galad80dfe42011-02-04 00:43:34 -0600426#define CONFIG_SYS_FM_MURAM_SIZE 0x28000
Kumar Galaf4fb90f2011-02-18 05:40:54 -0600427#define CONFIG_SYS_FSL_TBCLK_DIV 32
Kumar Gala179b1b22011-05-20 00:39:21 -0500428#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.2"
Timur Tabid8f341c2011-08-04 18:03:41 -0500429#define CONFIG_SYS_CCSRBAR_DEFAULT 0xfe000000
Roy Zang6d6a0e12011-04-13 00:08:51 -0500430#define CONFIG_SYS_FSL_USB1_PHY_ENABLE
431#define CONFIG_SYS_FSL_USB2_PHY_ENABLE
Kumar Galaa49034f2011-04-13 00:19:10 -0500432#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530433#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
Lei Xu32276202011-04-19 15:28:41 +0800434#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
York Sun53155532012-08-08 18:04:53 +0000435#define CONFIG_SYS_FSL_ERRATUM_NMG_CPU_A011
Xuleicf4f4932013-03-11 17:56:34 +0000436#define CONFIG_SYS_FSL_ERRATUM_USB14
Kumar Gala945e59a2011-11-22 06:51:15 -0600437#define CONFIG_SYS_FSL_ERRATUM_CPU_A003999
York Sun52db64b2013-03-25 07:30:11 +0000438#define CONFIG_SYS_FSL_ERRATUM_DDR_A003
York Sundf2be192011-11-20 10:01:35 -0800439#define CONFIG_SYS_FSL_ERRATUM_DDR_A003474
Liu Gang78deaa12012-03-08 00:33:14 +0000440#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 2
441#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
442#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
Scott Wood80806962012-08-14 10:14:53 +0000443#define CONFIG_SYS_FSL_ERRATUM_A004510
444#define CONFIG_SYS_FSL_ERRATUM_A004510_SVR_REV 0x10
445#define CONFIG_SYS_FSL_ERRATUM_A004510_SVR_REV2 0x11
446#define CONFIG_SYS_FSL_CORENET_SNOOPVEC_COREONLY 0xf0000000
Liu Gang712b6622012-09-28 21:26:19 +0000447#define CONFIG_SYS_FSL_ERRATUM_SRIO_A004034
Timur Tabie3ab8c12012-10-25 12:40:00 +0000448#define CONFIG_SYS_FSL_ERRATUM_A004849
York Suncca41c52013-06-25 11:37:49 -0700449#define CONFIG_SYS_FSL_ERRATUM_A005812
Chunhe Lan92546402013-08-16 15:10:37 +0800450#define CONFIG_SYS_FSL_ERRATUM_I2C_A004447
Suresh Gupta086f0a72014-02-26 14:29:12 +0530451#define CONFIG_SYS_FSL_ERRATUM_A006261
Chunhe Lan92546402013-08-16 15:10:37 +0800452#define CONFIG_SYS_FSL_A004447_SVR_REV 0x20
Kumar Galafe137112011-01-19 03:05:26 -0600453
Scott Wooda1ef48c2012-08-14 10:14:51 +0000454#elif defined(CONFIG_PPC_P4080) /* also supports P4040 */
York Sun7e0edbd2012-10-08 07:44:15 +0000455#define CONFIG_SYS_FSL_QORIQ_CHASSIS1
York Sun544f8812013-06-25 11:37:39 -0700456#define CONFIG_FSL_CORENET /* Freescale CoreNet platform */
Kumar Galafe137112011-01-19 03:05:26 -0600457#define CONFIG_MAX_CPUS 8
Kumar Gala3842bb52011-02-16 02:03:29 -0600458#define CONFIG_SYS_FSL_NUM_CC_PLLS 4
Kumar Galafe137112011-01-19 03:05:26 -0600459#define CONFIG_SYS_FSL_NUM_LAWS 32
460#define CONFIG_SYS_FSL_SEC_COMPAT 4
461#define CONFIG_SYS_NUM_FMAN 2
462#define CONFIG_SYS_NUM_FM1_DTSEC 4
463#define CONFIG_SYS_NUM_FM2_DTSEC 4
464#define CONFIG_SYS_NUM_FM1_10GEC 1
465#define CONFIG_SYS_NUM_FM2_10GEC 1
466#define CONFIG_NUM_DDR_CONTROLLERS 2
York Sun2896cb72014-03-27 17:54:47 -0700467#define CONFIG_SYS_FSL_DDR_VER FSL_DDR_VER_4_4
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530468#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
Kumar Galad80dfe42011-02-04 00:43:34 -0600469#define CONFIG_SYS_FM_MURAM_SIZE 0x28000
Kumar Galaf4fb90f2011-02-18 05:40:54 -0600470#define CONFIG_SYS_FSL_TBCLK_DIV 16
Kumar Gala179b1b22011-05-20 00:39:21 -0500471#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,p4080-pcie"
Timur Tabid8f341c2011-08-04 18:03:41 -0500472#define CONFIG_SYS_CCSRBAR_DEFAULT 0xfe000000
Kumar Galafe137112011-01-19 03:05:26 -0600473#define CONFIG_SYS_FSL_ERRATUM_CPC_A002
474#define CONFIG_SYS_FSL_ERRATUM_CPC_A003
York Sun922f40f2011-01-10 12:03:01 +0000475#define CONFIG_SYS_FSL_ERRATUM_DDR_A003
Kumar Galafe137112011-01-19 03:05:26 -0600476#define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
477#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
478#define CONFIG_SYS_FSL_ERRATUM_ESDHC135
Zang Roy-R6191183659922012-09-18 09:50:08 +0000479#define CONFIG_SYS_FSL_ERRATUM_ESDHC13
Kumar Galafe137112011-01-19 03:05:26 -0600480#define CONFIG_SYS_P4080_ERRATUM_CPU22
York Sun9ed88112012-05-07 07:26:47 +0000481#define CONFIG_SYS_FSL_ERRATUM_NMG_CPU_A011
Kumar Galafe137112011-01-19 03:05:26 -0600482#define CONFIG_SYS_P4080_ERRATUM_SERDES8
Emil Medveb01c81f2010-08-31 22:57:38 -0500483#define CONFIG_SYS_P4080_ERRATUM_SERDES9
Timur Tabi6a62dc42011-04-18 17:16:00 -0500484#define CONFIG_SYS_P4080_ERRATUM_SERDES_A001
Timur Tabi90f381d2011-04-01 13:19:36 -0500485#define CONFIG_SYS_P4080_ERRATUM_SERDES_A005
Kumar Gala945e59a2011-11-22 06:51:15 -0600486#define CONFIG_SYS_FSL_ERRATUM_CPU_A003999
York Sundf2be192011-11-20 10:01:35 -0800487#define CONFIG_SYS_FSL_ERRATUM_DDR_A003474
Liu Gang78deaa12012-03-08 00:33:14 +0000488#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 2
489#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
490#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
491#define CONFIG_SYS_FSL_RMU
492#define CONFIG_SYS_FSL_SRIO_MSG_UNIT_NUM 2
Scott Wood80806962012-08-14 10:14:53 +0000493#define CONFIG_SYS_FSL_ERRATUM_A004510
494#define CONFIG_SYS_FSL_ERRATUM_A004510_SVR_REV 0x20
495#define CONFIG_SYS_FSL_CORENET_SNOOPVEC_COREONLY 0xff000000
Liu Gang712b6622012-09-28 21:26:19 +0000496#define CONFIG_SYS_FSL_ERRATUM_SRIO_A004034
Timur Tabie3ab8c12012-10-25 12:40:00 +0000497#define CONFIG_SYS_FSL_ERRATUM_A004849
Timur Tabic5355dd2012-11-01 08:20:23 +0000498#define CONFIG_SYS_FSL_ERRATUM_A004580
Yuanquan Chenc48234e2012-11-26 23:49:45 +0000499#define CONFIG_SYS_P4080_ERRATUM_PCIE_A003
York Suncca41c52013-06-25 11:37:49 -0700500#define CONFIG_SYS_FSL_ERRATUM_A005812
Chunhe Lan92546402013-08-16 15:10:37 +0800501#define CONFIG_SYS_FSL_ERRATUM_I2C_A004447
Nikhil Badola2613cfc2014-02-26 17:43:15 +0530502#define CONFIG_SYS_FSL_ERRATUM_A007075
Chunhe Lan92546402013-08-16 15:10:37 +0800503#define CONFIG_SYS_FSL_A004447_SVR_REV 0x20
Kumar Galafe137112011-01-19 03:05:26 -0600504
Scott Wooda1ef48c2012-08-14 10:14:51 +0000505#elif defined(CONFIG_PPC_P5020) /* also supports P5010 */
York Sun2394a0f2012-10-08 07:44:30 +0000506#define CONFIG_SYS_PPC64 /* 64-bit core */
York Sun7e0edbd2012-10-08 07:44:15 +0000507#define CONFIG_SYS_FSL_QORIQ_CHASSIS1
York Sun544f8812013-06-25 11:37:39 -0700508#define CONFIG_FSL_CORENET /* Freescale CoreNet platform */
Kumar Galafe137112011-01-19 03:05:26 -0600509#define CONFIG_MAX_CPUS 2
Kumar Gala3842bb52011-02-16 02:03:29 -0600510#define CONFIG_SYS_FSL_NUM_CC_PLLS 2
Kumar Galafe137112011-01-19 03:05:26 -0600511#define CONFIG_SYS_FSL_NUM_LAWS 32
512#define CONFIG_SYS_FSL_SEC_COMPAT 4
Kumar Gala60d95d82011-01-25 12:42:32 -0600513#define CONFIG_SYS_NUM_FMAN 1
514#define CONFIG_SYS_NUM_FM1_DTSEC 5
515#define CONFIG_SYS_NUM_FM1_10GEC 1
516#define CONFIG_NUM_DDR_CONTROLLERS 2
York Sun2896cb72014-03-27 17:54:47 -0700517#define CONFIG_SYS_FSL_DDR_VER FSL_DDR_VER_4_4
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530518#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
Kumar Galad80dfe42011-02-04 00:43:34 -0600519#define CONFIG_SYS_FM_MURAM_SIZE 0x28000
Kumar Galaf4fb90f2011-02-18 05:40:54 -0600520#define CONFIG_SYS_FSL_TBCLK_DIV 32
Kumar Gala179b1b22011-05-20 00:39:21 -0500521#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.2"
Timur Tabid8f341c2011-08-04 18:03:41 -0500522#define CONFIG_SYS_CCSRBAR_DEFAULT 0xfe000000
Roy Zang6d6a0e12011-04-13 00:08:51 -0500523#define CONFIG_SYS_FSL_USB1_PHY_ENABLE
524#define CONFIG_SYS_FSL_USB2_PHY_ENABLE
Kumar Galaa49034f2011-04-13 00:19:10 -0500525#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
Lei Xu32276202011-04-19 15:28:41 +0800526#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
Xuleicf4f4932013-03-11 17:56:34 +0000527#define CONFIG_SYS_FSL_ERRATUM_USB14
York Sun52db64b2013-03-25 07:30:11 +0000528#define CONFIG_SYS_FSL_ERRATUM_DDR_A003
York Sundf2be192011-11-20 10:01:35 -0800529#define CONFIG_SYS_FSL_ERRATUM_DDR_A003474
Liu Gang78deaa12012-03-08 00:33:14 +0000530#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 2
531#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
532#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
Scott Wood80806962012-08-14 10:14:53 +0000533#define CONFIG_SYS_FSL_ERRATUM_A004510
534#define CONFIG_SYS_FSL_ERRATUM_A004510_SVR_REV 0x10
535#define CONFIG_SYS_FSL_CORENET_SNOOPVEC_COREONLY 0xc0000000
Liu Gang712b6622012-09-28 21:26:19 +0000536#define CONFIG_SYS_FSL_ERRATUM_SRIO_A004034
Chunhe Lan92546402013-08-16 15:10:37 +0800537#define CONFIG_SYS_FSL_ERRATUM_I2C_A004447
Suresh Gupta086f0a72014-02-26 14:29:12 +0530538#define CONFIG_SYS_FSL_ERRATUM_A006261
Chunhe Lan92546402013-08-16 15:10:37 +0800539#define CONFIG_SYS_FSL_A004447_SVR_REV 0x20
Kumar Galafe137112011-01-19 03:05:26 -0600540
Timur Tabid5e13882012-10-05 11:09:19 +0000541#elif defined(CONFIG_PPC_P5040)
Timur Tabi9a7b5a32012-10-23 10:48:09 +0000542#define CONFIG_SYS_PPC64
Timur Tabid5e13882012-10-05 11:09:19 +0000543#define CONFIG_SYS_FSL_QORIQ_CHASSIS1
York Sun544f8812013-06-25 11:37:39 -0700544#define CONFIG_FSL_CORENET /* Freescale CoreNet platform */
Timur Tabid5e13882012-10-05 11:09:19 +0000545#define CONFIG_MAX_CPUS 4
546#define CONFIG_SYS_FSL_NUM_CC_PLLS 3
547#define CONFIG_SYS_FSL_NUM_LAWS 32
548#define CONFIG_SYS_FSL_SEC_COMPAT 4
549#define CONFIG_SYS_NUM_FMAN 2
550#define CONFIG_SYS_NUM_FM1_DTSEC 5
551#define CONFIG_SYS_NUM_FM1_10GEC 1
552#define CONFIG_SYS_NUM_FM2_DTSEC 5
553#define CONFIG_SYS_NUM_FM2_10GEC 1
554#define CONFIG_NUM_DDR_CONTROLLERS 2
York Sun2896cb72014-03-27 17:54:47 -0700555#define CONFIG_SYS_FSL_DDR_VER FSL_DDR_VER_4_4
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530556#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
Timur Tabid5e13882012-10-05 11:09:19 +0000557#define CONFIG_SYS_FM_MURAM_SIZE 0x28000
558#define CONFIG_SYS_FSL_TBCLK_DIV 16
559#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.4"
560#define CONFIG_SYS_CCSRBAR_DEFAULT 0xfe000000
561#define CONFIG_SYS_FSL_USB1_PHY_ENABLE
562#define CONFIG_SYS_FSL_USB2_PHY_ENABLE
563#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
564#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
Xuleicf4f4932013-03-11 17:56:34 +0000565#define CONFIG_SYS_FSL_ERRATUM_USB14
Timur Tabid5e13882012-10-05 11:09:19 +0000566#define CONFIG_SYS_FSL_ERRATUM_DDR_A003
567#define CONFIG_SYS_FSL_ERRATUM_DDR_A003474
568#define CONFIG_SYS_FSL_ERRATUM_A004699
Timur Tabid5e13882012-10-05 11:09:19 +0000569#define CONFIG_SYS_FSL_ERRATUM_A004510
570#define CONFIG_SYS_FSL_ERRATUM_A004510_SVR_REV 0x10
Suresh Gupta086f0a72014-02-26 14:29:12 +0530571#define CONFIG_SYS_FSL_ERRATUM_A006261
Timur Tabid5e13882012-10-05 11:09:19 +0000572#define CONFIG_SYS_FSL_CORENET_SNOOPVEC_COREONLY 0xf0000000
York Suncca41c52013-06-25 11:37:49 -0700573#define CONFIG_SYS_FSL_ERRATUM_A005812
Timur Tabid5e13882012-10-05 11:09:19 +0000574
Prabhakar Kushwahabeebb882012-04-24 20:16:49 +0000575#elif defined(CONFIG_BSC9131)
576#define CONFIG_MAX_CPUS 1
577#define CONFIG_FSL_SDHC_V2_3
578#define CONFIG_SYS_FSL_NUM_LAWS 12
579#define CONFIG_TSECV2
580#define CONFIG_SYS_FSL_SEC_COMPAT 4
581#define CONFIG_NUM_DDR_CONTROLLERS 1
York Sun2896cb72014-03-27 17:54:47 -0700582#define CONFIG_SYS_FSL_DDR_VER FSL_DDR_VER_4_4
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530583#define CONFIG_USB_MAX_CONTROLLER_COUNT 1
Priyanka Jainf81e8b22013-04-04 09:31:54 +0530584#define CONFIG_SYS_FSL_DSP_M2_RAM_ADDR 0xb0000000
585#define CONFIG_SYS_FSL_DSP_CCSRBAR_DEFAULT 0xff600000
Mingkai Hu6f024c92013-05-16 10:18:13 +0800586#define CONFIG_SYS_FSL_IFC_BANK_COUNT 3
Prabhakar Kushwahabeebb882012-04-24 20:16:49 +0000587#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
588#define CONFIG_NAND_FSL_IFC
Prabhakar Kushwahabeebb882012-04-24 20:16:49 +0000589#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
York Sun0cc59072013-08-20 15:09:43 -0700590#define CONFIG_SYS_FSL_ERRATUM_A005125
Haijun.Zhang22e3c422014-01-10 13:52:19 +0800591#define CONFIG_ESDHC_HC_BLK_ADDR
Prabhakar Kushwahabeebb882012-04-24 20:16:49 +0000592
Prabhakar Kushwaha92543c22013-01-23 17:59:57 +0000593#elif defined(CONFIG_BSC9132)
594#define CONFIG_MAX_CPUS 2
595#define CONFIG_SYS_PPC_E500_DEBUG_TLB 3
596#define CONFIG_FSL_SDHC_V2_3
597#define CONFIG_SYS_FSL_NUM_LAWS 12
598#define CONFIG_TSECV2
599#define CONFIG_SYS_FSL_SEC_COMPAT 4
600#define CONFIG_NUM_DDR_CONTROLLERS 2
York Sun2896cb72014-03-27 17:54:47 -0700601#define CONFIG_SYS_FSL_DDR_VER FSL_DDR_VER_4_6
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530602#define CONFIG_USB_MAX_CONTROLLER_COUNT 1
Priyanka Jainc73b9032013-07-02 09:21:04 +0530603#define CONFIG_SYS_FSL_DSP_DDR_ADDR 0x40000000
604#define CONFIG_SYS_FSL_DSP_M2_RAM_ADDR 0xb0000000
605#define CONFIG_SYS_FSL_DSP_M3_RAM_ADDR 0xc0000000
606#define CONFIG_SYS_FSL_DSP_CCSRBAR_DEFAULT 0xff600000
York Sun84fa67e2013-04-18 19:31:01 -0700607#define CONFIG_SYS_FSL_IFC_BANK_COUNT 3
Prabhakar Kushwaha92543c22013-01-23 17:59:57 +0000608#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
609#define CONFIG_NAND_FSL_IFC
Prabhakar Kushwaha92543c22013-01-23 17:59:57 +0000610#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
611#define CONFIG_SYS_FSL_ESDHC_P1010_BROKEN_SDCLK
612#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.2"
York Sun0cc59072013-08-20 15:09:43 -0700613#define CONFIG_SYS_FSL_ERRATUM_A005125
Chunhe Lan7155ad52014-05-07 10:50:20 +0800614#define CONFIG_SYS_FSL_ERRATUM_A005434
Chunhe Lan92546402013-08-16 15:10:37 +0800615#define CONFIG_SYS_FSL_ERRATUM_I2C_A004447
616#define CONFIG_SYS_FSL_A004447_SVR_REV 0x11
Haijun.Zhang22e3c422014-01-10 13:52:19 +0800617#define CONFIG_ESDHC_HC_BLK_ADDR
Prabhakar Kushwaha92543c22013-01-23 17:59:57 +0000618
Shengzhou Liu26ed2d02014-04-25 16:31:22 +0800619#elif defined(CONFIG_PPC_T4240) || defined(CONFIG_PPC_T4160) || \
620 defined(CONFIG_PPC_T4080)
York Sun64fd08b2013-03-25 07:40:05 +0000621#define CONFIG_E6500
York Sun2394a0f2012-10-08 07:44:30 +0000622#define CONFIG_SYS_PPC64 /* 64-bit core */
York Sun9941a222012-10-08 07:44:19 +0000623#define CONFIG_FSL_CORENET /* Freescale CoreNet platform */
624#define CONFIG_SYS_FSL_QORIQ_CHASSIS2 /* Freescale Chassis generation 2 */
York Sunaa150bb2013-03-25 07:40:07 +0000625#define CONFIG_SYS_FSL_CORES_PER_CLUSTER 4
York Sun9941a222012-10-08 07:44:19 +0000626#define CONFIG_SYS_FSL_QMAN_V3 /* QMAN version 3 */
York Sun64fd08b2013-03-25 07:40:05 +0000627#ifdef CONFIG_PPC_T4240
York Sun9941a222012-10-08 07:44:19 +0000628#define CONFIG_MAX_CPUS 12
Prabhakar Kushwaha7e8382f2013-09-03 11:20:15 +0530629#define CONFIG_SYS_FSL_CLUSTER_CLOCKS { 1, 1, 4 }
York Sun9941a222012-10-08 07:44:19 +0000630#define CONFIG_SYS_NUM_FM1_DTSEC 8
631#define CONFIG_SYS_NUM_FM1_10GEC 2
632#define CONFIG_SYS_NUM_FM2_DTSEC 8
633#define CONFIG_SYS_NUM_FM2_10GEC 2
634#define CONFIG_NUM_DDR_CONTROLLERS 3
York Sun64fd08b2013-03-25 07:40:05 +0000635#else
Shengzhou Liu26ed2d02014-04-25 16:31:22 +0800636#define CONFIG_SYS_NUM_FM1_DTSEC 6
York Sun64fd08b2013-03-25 07:40:05 +0000637#define CONFIG_SYS_NUM_FM1_10GEC 1
Shengzhou Liu26ed2d02014-04-25 16:31:22 +0800638#define CONFIG_SYS_NUM_FM2_DTSEC 8
York Sun64fd08b2013-03-25 07:40:05 +0000639#define CONFIG_SYS_NUM_FM2_10GEC 1
640#define CONFIG_NUM_DDR_CONTROLLERS 2
Shengzhou Liu26ed2d02014-04-25 16:31:22 +0800641#if defined(CONFIG_PPC_T4160)
642#define CONFIG_MAX_CPUS 8
643#define CONFIG_SYS_FSL_CLUSTER_CLOCKS { 1, 1 }
644#elif defined(CONFIG_PPC_T4080)
645#define CONFIG_MAX_CPUS 4
646#define CONFIG_SYS_FSL_CLUSTER_CLOCKS { 1 }
647#endif
York Sun64fd08b2013-03-25 07:40:05 +0000648#endif
York Sunfb5137a2013-03-25 07:33:29 +0000649#define CONFIG_SYS_FSL_NUM_CC_PLLS 5
650#define CONFIG_SYS_FSL_NUM_LAWS 32
Prabhakar Kushwaha873e9f02013-07-31 16:56:41 +0530651#define CONFIG_SYS_FSL_SRDS_1
652#define CONFIG_SYS_FSL_SRDS_2
York Sunfb5137a2013-03-25 07:33:29 +0000653#define CONFIG_SYS_FSL_SRDS_3
654#define CONFIG_SYS_FSL_SRDS_4
655#define CONFIG_SYS_FSL_SEC_COMPAT 4
656#define CONFIG_SYS_NUM_FMAN 2
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530657#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
Prabhakar Kushwaha7e8382f2013-09-03 11:20:15 +0530658#define CONFIG_SYS_PME_CLK 0
York Sunfb5137a2013-03-25 07:33:29 +0000659#define CONFIG_SYS_FSL_DDR_VER FSL_DDR_VER_4_7
Mingkai Hu6f024c92013-05-16 10:18:13 +0800660#define CONFIG_SYS_FSL_IFC_BANK_COUNT 8
York Sunfb5137a2013-03-25 07:33:29 +0000661#define CONFIG_SYS_FMAN_V3
Prabhakar Kushwaha7e8382f2013-09-03 11:20:15 +0530662#define CONFIG_SYS_FM1_CLK 3
663#define CONFIG_SYS_FM2_CLK 3
York Sunfb5137a2013-03-25 07:33:29 +0000664#define CONFIG_SYS_FM_MURAM_SIZE 0x60000
665#define CONFIG_SYS_FSL_TBCLK_DIV 16
666#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v3.0"
667#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 2
668#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
669#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
Liu Gangd5eca7e2013-06-25 18:12:14 +0800670#define CONFIG_SYS_FSL_SRIO_LIODN
York Sunfb5137a2013-03-25 07:33:29 +0000671#define CONFIG_SYS_FSL_USB_DUAL_PHY_ENABLE
672#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
673#define CONFIG_SYS_FSL_ERRATUM_A004468
674#define CONFIG_SYS_FSL_ERRATUM_A_004934
675#define CONFIG_SYS_FSL_ERRATUM_A005871
Suresh Gupta086f0a72014-02-26 14:29:12 +0530676#define CONFIG_SYS_FSL_ERRATUM_A006261
York Sunb1954252013-09-16 12:49:31 -0700677#define CONFIG_SYS_FSL_ERRATUM_A006379
Shaveta Leekha7c0f5e82014-05-28 14:18:55 +0530678#define CONFIG_SYS_FSL_ERRATUM_A007186
Scott Wood3f4a5c42013-05-15 17:50:13 -0500679#define CONFIG_SYS_FSL_ERRATUM_A006593
York Sunfb5137a2013-03-25 07:33:29 +0000680#define CONFIG_SYS_CCSRBAR_DEFAULT 0xfe000000
Shaveta Leekha7c0f5e82014-05-28 14:18:55 +0530681#define CONFIG_SYS_FSL_SFP_VER_3_0
York Sunfb5137a2013-03-25 07:33:29 +0000682#define CONFIG_SYS_FSL_PCI_VER_3_X
683
Poonam Aggrwal525ab512013-03-25 07:40:20 +0000684#elif defined(CONFIG_PPC_B4860) || defined(CONFIG_PPC_B4420)
685#define CONFIG_E6500
Poonam Aggrwal248865e2012-12-23 19:24:16 +0000686#define CONFIG_SYS_PPC64 /* 64-bit core */
687#define CONFIG_FSL_CORENET /* Freescale CoreNet platform */
688#define CONFIG_SYS_FSL_QORIQ_CHASSIS2 /* Freescale Chassis generation 2 */
689#define CONFIG_SYS_FSL_QMAN_V3 /* QMAN version 3 */
Poonam Aggrwal248865e2012-12-23 19:24:16 +0000690#define CONFIG_SYS_FSL_NUM_LAWS 32
Prabhakar Kushwaha873e9f02013-07-31 16:56:41 +0530691#define CONFIG_SYS_FSL_SRDS_1
692#define CONFIG_SYS_FSL_SRDS_2
Poonam Aggrwal248865e2012-12-23 19:24:16 +0000693#define CONFIG_SYS_FSL_SEC_COMPAT 4
694#define CONFIG_SYS_NUM_FMAN 1
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530695#define CONFIG_USB_MAX_CONTROLLER_COUNT 1
Prabhakar Kushwaha7e8382f2013-09-03 11:20:15 +0530696#define CONFIG_SYS_FM1_CLK 0
Poonam Aggrwal248865e2012-12-23 19:24:16 +0000697#define CONFIG_SYS_FSL_DDR_VER FSL_DDR_VER_4_7
Mingkai Hu6f024c92013-05-16 10:18:13 +0800698#define CONFIG_SYS_FSL_IFC_BANK_COUNT 4
Poonam Aggrwal248865e2012-12-23 19:24:16 +0000699#define CONFIG_SYS_FMAN_V3
700#define CONFIG_SYS_FM_MURAM_SIZE 0x60000
701#define CONFIG_SYS_FSL_TBCLK_DIV 16
702#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.4"
703#define CONFIG_SYS_FSL_USB1_PHY_ENABLE
704#define CONFIG_SYS_FSL_ERRATUM_A_004934
Shengzhou Liu5d9606e2013-02-27 21:56:54 +0000705#define CONFIG_SYS_FSL_ERRATUM_A005871
York Sunb1954252013-09-16 12:49:31 -0700706#define CONFIG_SYS_FSL_ERRATUM_A006379
Shaveta Leekha7c0f5e82014-05-28 14:18:55 +0530707#define CONFIG_SYS_FSL_ERRATUM_A007186
Scott Wood3f4a5c42013-05-15 17:50:13 -0500708#define CONFIG_SYS_FSL_ERRATUM_A006593
Nikhil Badola2613cfc2014-02-26 17:43:15 +0530709#define CONFIG_SYS_FSL_ERRATUM_A007075
Shaveta Leekhad11523b2014-02-26 16:08:22 +0530710#define CONFIG_SYS_FSL_ERRATUM_A006475
711#define CONFIG_SYS_FSL_ERRATUM_A006384
York Sun7b083df2014-03-28 15:07:27 -0700712#define CONFIG_SYS_FSL_ERRATUM_A007212
Poonam Aggrwal248865e2012-12-23 19:24:16 +0000713#define CONFIG_SYS_CCSRBAR_DEFAULT 0xfe000000
Shaveta Leekha7c0f5e82014-05-28 14:18:55 +0530714#define CONFIG_SYS_FSL_SFP_VER_3_0
Poonam Aggrwal248865e2012-12-23 19:24:16 +0000715
Poonam Aggrwal525ab512013-03-25 07:40:20 +0000716#ifdef CONFIG_PPC_B4860
York Sunaa150bb2013-03-25 07:40:07 +0000717#define CONFIG_SYS_FSL_CORES_PER_CLUSTER 4
York Sunbcf7b3d2012-10-08 07:44:20 +0000718#define CONFIG_MAX_CPUS 4
Shaveta Leekha0dda3982014-02-26 16:07:37 +0530719#define CONFIG_SYS_FSL_SRDS_NUM_PLLS 2
York Sunbcf7b3d2012-10-08 07:44:20 +0000720#define CONFIG_SYS_FSL_NUM_CC_PLLS 4
Prabhakar Kushwaha7e8382f2013-09-03 11:20:15 +0530721#define CONFIG_SYS_FSL_CLUSTER_CLOCKS { 1, 4, 4, 4 }
York Sunbcf7b3d2012-10-08 07:44:20 +0000722#define CONFIG_SYS_NUM_FM1_DTSEC 6
723#define CONFIG_SYS_NUM_FM1_10GEC 2
Poonam Aggrwal1c859552012-12-23 19:22:33 +0000724#define CONFIG_NUM_DDR_CONTROLLERS 2
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530725#define CONFIG_USB_MAX_CONTROLLER_COUNT 1
York Sunbcf7b3d2012-10-08 07:44:20 +0000726#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 2
727#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
728#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
Liu Gangbc6486a2013-06-25 18:12:13 +0800729#define CONFIG_SYS_FSL_SRIO_LIODN
Poonam Aggrwal525ab512013-03-25 07:40:20 +0000730#else
731#define CONFIG_MAX_CPUS 2
Shaveta Leekha0dda3982014-02-26 16:07:37 +0530732#define CONFIG_SYS_FSL_SRDS_NUM_PLLS 1
Poonam Aggrwal525ab512013-03-25 07:40:20 +0000733#define CONFIG_SYS_FSL_CORES_PER_CLUSTER 2
734#define CONFIG_SYS_FSL_NUM_CC_PLLS 4
Prabhakar Kushwaha7e8382f2013-09-03 11:20:15 +0530735#define CONFIG_SYS_FSL_CLUSTER_CLOCKS { 1, 4 }
Poonam Aggrwal525ab512013-03-25 07:40:20 +0000736#define CONFIG_SYS_NUM_FM1_DTSEC 4
737#define CONFIG_SYS_NUM_FM1_10GEC 0
738#define CONFIG_NUM_DDR_CONTROLLERS 1
739#endif
York Sunbcf7b3d2012-10-08 07:44:20 +0000740
Priyanka Jain94dce8b2013-10-18 12:30:21 +0530741#elif defined(CONFIG_PPC_T1040) || defined(CONFIG_PPC_T1042) ||\
742defined(CONFIG_PPC_T1020) || defined(CONFIG_PPC_T1022)
York Sun46571362013-03-25 07:40:06 +0000743#define CONFIG_E5500
744#define CONFIG_FSL_CORENET /* Freescale CoreNet platform */
745#define CONFIG_SYS_FSL_QORIQ_CHASSIS2 /* Freescale Chassis generation 2 */
York Sunaa150bb2013-03-25 07:40:07 +0000746#define CONFIG_SYS_FSL_CORES_PER_CLUSTER 1
York Sun46571362013-03-25 07:40:06 +0000747#define CONFIG_SYS_FSL_QMAN_V3 /* QMAN version 3 */
York Sun2896cb72014-03-27 17:54:47 -0700748#ifdef CONFIG_SYS_FSL_DDR4
749#define CONFIG_SYS_FSL_DDRC_GEN4
750#endif
Prabhakar Kushwaha78512532013-09-03 11:19:54 +0530751#if defined(CONFIG_PPC_T1040) || defined(CONFIG_PPC_T1042)
York Sun46571362013-03-25 07:40:06 +0000752#define CONFIG_MAX_CPUS 4
Prabhakar Kushwaha78512532013-09-03 11:19:54 +0530753#elif defined(CONFIG_PPC_T1020) || defined(CONFIG_PPC_T1022)
754#define CONFIG_MAX_CPUS 2
755#endif
756#define CONFIG_SYS_FSL_NUM_CC_PLLS 2
Prabhakar Kushwaha7e8382f2013-09-03 11:20:15 +0530757#define CONFIG_SYS_FSL_CLUSTER_CLOCKS { 1, 1, 1, 1 }
758#define CONFIG_SYS_SDHC_CLOCK 0
York Sun46571362013-03-25 07:40:06 +0000759#define CONFIG_SYS_FSL_NUM_LAWS 16
Prabhakar Kushwaha78512532013-09-03 11:19:54 +0530760#define CONFIG_SYS_FSL_SRDS_1
761#define CONFIG_SYS_FSL_SEC_COMPAT 5
York Sun46571362013-03-25 07:40:06 +0000762#define CONFIG_SYS_NUM_FMAN 1
763#define CONFIG_SYS_NUM_FM1_DTSEC 5
764#define CONFIG_NUM_DDR_CONTROLLERS 1
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530765#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
Prabhakar Kushwaha7e8382f2013-09-03 11:20:15 +0530766#define CONFIG_PME_PLAT_CLK_DIV 2
767#define CONFIG_SYS_PME_CLK CONFIG_PME_PLAT_CLK_DIV
Prabhakar Kushwaha78512532013-09-03 11:19:54 +0530768#define CONFIG_SYS_FSL_DDR_VER FSL_DDR_VER_5_0
769#define CONFIG_SYS_FSL_IFC_BANK_COUNT 8
York Sun46571362013-03-25 07:40:06 +0000770#define CONFIG_SYS_FMAN_V3
Prabhakar Kushwaha7e8382f2013-09-03 11:20:15 +0530771#define CONFIG_FM_PLAT_CLK_DIV 1
772#define CONFIG_SYS_FM1_CLK CONFIG_FM_PLAT_CLK_DIV
Prabhakar Kushwaha78512532013-09-03 11:19:54 +0530773#define CONFIG_SYS_FM_MURAM_SIZE 0x30000
Priyanka Jaine9dcaa82013-12-17 14:25:52 +0530774#define CONFIG_SYS_FSL_SINGLE_SOURCE_CLK
Prabhakar Kushwahae6066b02013-12-11 12:49:13 +0530775#define CONFIG_SYS_FSL_TBCLK_DIV 16
York Sun46571362013-03-25 07:40:06 +0000776#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.4"
Nikhil Badola63fcdc62014-01-27 15:21:58 +0530777#define CONFIG_SYS_FSL_USB_DUAL_PHY_ENABLE
York Sun46571362013-03-25 07:40:06 +0000778#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
Suresh Gupta086f0a72014-02-26 14:29:12 +0530779#define CONFIG_SYS_FSL_ERRATUM_A006261
York Sun46571362013-03-25 07:40:06 +0000780#define CONFIG_SYS_CCSRBAR_DEFAULT 0xfe000000
Haijun.Zhangedeb83a2014-03-18 17:04:23 +0800781#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
782#define ESDHCI_QUIRK_BROKEN_TIMEOUT_VALUE
Zhao Qiangb818ba22014-03-21 16:21:45 +0800783#define QE_MURAM_SIZE 0x6000UL
784#define MAX_QE_RISC 1
785#define QE_NUM_OF_SNUM 28
York Sun46571362013-03-25 07:40:06 +0000786
Shengzhou Liuf305cd22013-11-22 17:39:10 +0800787#elif defined(CONFIG_PPC_T2080) || defined(CONFIG_PPC_T2081)
788#define CONFIG_E6500
789#define CONFIG_SYS_PPC64 /* 64-bit core */
790#define CONFIG_FSL_CORENET /* Freescale CoreNet platform */
791#define CONFIG_SYS_FSL_QORIQ_CHASSIS2 /* Freescale Chassis generation 2 */
792#define CONFIG_SYS_FSL_CORES_PER_CLUSTER 4
793#define CONFIG_SYS_FSL_NUM_CC_PLLS 2
794#define CONFIG_SYS_FSL_QMAN_V3
795#define CONFIG_MAX_CPUS 4
796#define CONFIG_SYS_FSL_NUM_LAWS 32
797#define CONFIG_SYS_FSL_SEC_COMPAT 4
798#define CONFIG_SYS_NUM_FMAN 1
799#define CONFIG_SYS_FSL_CLUSTER_CLOCKS { 1, 4, 4, 4 }
800#define CONFIG_SYS_FSL_SRDS_1
801#define CONFIG_SYS_FSL_PCI_VER_3_X
802#if defined(CONFIG_PPC_T2080)
803#define CONFIG_SYS_NUM_FM1_DTSEC 8
804#define CONFIG_SYS_NUM_FM1_10GEC 4
805#define CONFIG_SYS_FSL_SRDS_2
806#define CONFIG_SYS_FSL_SRIO_LIODN
807#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 2
808#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
809#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
810#elif defined(CONFIG_PPC_T2081)
811#define CONFIG_SYS_NUM_FM1_DTSEC 6
812#define CONFIG_SYS_NUM_FM1_10GEC 2
813#endif
Shengzhou Liue681c622013-12-18 10:27:55 +0800814#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
Shengzhou Liuf305cd22013-11-22 17:39:10 +0800815#define CONFIG_NUM_DDR_CONTROLLERS 1
816#define CONFIG_PME_PLAT_CLK_DIV 1
817#define CONFIG_SYS_PME_CLK CONFIG_PME_PLAT_CLK_DIV
818#define CONFIG_SYS_FM1_CLK 0
819#define CONFIG_SYS_FSL_DDR_VER FSL_DDR_VER_4_7
820#define CONFIG_SYS_FSL_IFC_BANK_COUNT 8
821#define CONFIG_SYS_FMAN_V3
822#define CONFIG_SYS_FM_MURAM_SIZE 0x28000
823#define CONFIG_SYS_FSL_TBCLK_DIV 16
824#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v3.0"
825#define CONFIG_SYS_FSL_USB_DUAL_PHY_ENABLE
826#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
York Sun7b083df2014-03-28 15:07:27 -0700827#define CONFIG_SYS_FSL_ERRATUM_A007212
Shengzhou Liuf305cd22013-11-22 17:39:10 +0800828#define CONFIG_SYS_CCSRBAR_DEFAULT 0xfe000000
829#define CONFIG_SYS_FSL_SFP_VER_3_0
830#define CONFIG_SYS_FSL_ISBC_VER 2
Haijun.Zhangedeb83a2014-03-18 17:04:23 +0800831#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
Shengzhou Liubd70f3a2014-04-24 11:10:09 +0800832#define CONFIG_SYS_FSL_ERRATUM_A006261
833#define CONFIG_SYS_FSL_ERRATUM_A006593
Shaveta Leekha7c0f5e82014-05-28 14:18:55 +0530834#define CONFIG_SYS_FSL_ERRATUM_A007186
Shengzhou Liubd70f3a2014-04-24 11:10:09 +0800835#define CONFIG_SYS_FSL_ERRATUM_A006379
Haijun.Zhangedeb83a2014-03-18 17:04:23 +0800836#define ESDHCI_QUIRK_BROKEN_TIMEOUT_VALUE
Shaveta Leekha7c0f5e82014-05-28 14:18:55 +0530837#define CONFIG_SYS_FSL_SFP_VER_3_0
Haijun.Zhangedeb83a2014-03-18 17:04:23 +0800838
Shengzhou Liuf305cd22013-11-22 17:39:10 +0800839
Mingkai Hu1a258072013-07-04 17:30:36 +0800840#elif defined(CONFIG_PPC_C29X)
841#define CONFIG_MAX_CPUS 1
842#define CONFIG_FSL_SDHC_V2_3
843#define CONFIG_SYS_FSL_NUM_LAWS 12
844#define CONFIG_SYS_PPC_E500_DEBUG_TLB 3
845#define CONFIG_TSECV2_1
846#define CONFIG_SYS_FSL_SEC_COMPAT 6
847#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
848#define CONFIG_NUM_DDR_CONTROLLERS 1
York Sun2896cb72014-03-27 17:54:47 -0700849#define CONFIG_SYS_FSL_DDR_VER FSL_DDR_VER_4_6
Mingkai Hu1a258072013-07-04 17:30:36 +0800850#define CONFIG_SYS_FSL_IFC_BANK_COUNT 8
851#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
York Sun0cc59072013-08-20 15:09:43 -0700852#define CONFIG_SYS_FSL_ERRATUM_A005125
Mingkai Hu1a258072013-07-04 17:30:36 +0800853
Alexander Grafc3468482014-04-11 17:09:45 +0200854#elif defined(CONFIG_QEMU_E500)
855#define CONFIG_MAX_CPUS 1
856#define CONFIG_SYS_CCSRBAR_DEFAULT 0xe0000000
857
Kumar Galafe137112011-01-19 03:05:26 -0600858#else
859#error Processor type not defined for this platform
860#endif
861
Timur Tabid8f341c2011-08-04 18:03:41 -0500862#ifndef CONFIG_SYS_CCSRBAR_DEFAULT
863#error "CONFIG_SYS_CCSRBAR_DEFAULT is not defined for this platform."
864#endif
865
York Sunaa150bb2013-03-25 07:40:07 +0000866#ifdef CONFIG_E6500
867#define CONFIG_SYS_FSL_THREADS_PER_CORE 2
868#else
869#define CONFIG_SYS_FSL_THREADS_PER_CORE 1
870#endif
871
York Sunf0626592013-09-30 09:22:09 -0700872#if !defined(CONFIG_SYS_FSL_DDRC_GEN1) && \
873 !defined(CONFIG_SYS_FSL_DDRC_GEN2) && \
York Sun2896cb72014-03-27 17:54:47 -0700874 !defined(CONFIG_SYS_FSL_DDRC_GEN3) && \
875 !defined(CONFIG_SYS_FSL_DDRC_GEN4)
York Sunf0626592013-09-30 09:22:09 -0700876#define CONFIG_SYS_FSL_DDRC_GEN3
877#endif
878
Kumar Galafe137112011-01-19 03:05:26 -0600879#endif /* _ASM_MPC85xx_CONFIG_H_ */