blob: be1d9d2a67da3c68f2496741781ccbf115079cbe [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 Sun7d69ea32012-10-08 07:44:22 +000022#define FSL_DDR_VER_4_7 47
Prabhakar Kushwaha78512532013-09-03 11:19:54 +053023#define FSL_DDR_VER_5_0 50
York Sun7d69ea32012-10-08 07:44:22 +000024
Kumar Galafe137112011-01-19 03:05:26 -060025/* Number of TLB CAM entries we have on FSL Book-E chips */
26#if defined(CONFIG_E500MC)
27#define CONFIG_SYS_NUM_TLBCAMS 64
28#elif defined(CONFIG_E500)
29#define CONFIG_SYS_NUM_TLBCAMS 16
30#endif
31
32#if defined(CONFIG_MPC8536)
33#define CONFIG_MAX_CPUS 1
34#define CONFIG_SYS_FSL_NUM_LAWS 12
Prabhakar Kushwaha826cf622012-08-15 04:12:43 +000035#define CONFIG_SYS_PPC_E500_DEBUG_TLB 1
Kumar Galafe137112011-01-19 03:05:26 -060036#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabid8f341c2011-08-04 18:03:41 -050037#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
York Sun0cc59072013-08-20 15:09:43 -070038#define CONFIG_SYS_FSL_ERRATUM_A005125
Kumar Galafe137112011-01-19 03:05:26 -060039
Wolfgang Denka4de8352011-02-02 22:36:10 +010040#elif defined(CONFIG_MPC8540)
Kumar Galafe137112011-01-19 03:05:26 -060041#define CONFIG_MAX_CPUS 1
42#define CONFIG_SYS_FSL_NUM_LAWS 8
York Sunf0626592013-09-30 09:22:09 -070043#define CONFIG_SYS_FSL_DDRC_GEN1
Timur Tabid8f341c2011-08-04 18:03:41 -050044#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Galafe137112011-01-19 03:05:26 -060045
Wolfgang Denka4de8352011-02-02 22:36:10 +010046#elif defined(CONFIG_MPC8541)
Kumar Galafe137112011-01-19 03:05:26 -060047#define CONFIG_MAX_CPUS 1
48#define CONFIG_SYS_FSL_NUM_LAWS 8
York Sunf0626592013-09-30 09:22:09 -070049#define CONFIG_SYS_FSL_DDRC_GEN1
Kumar Galafe137112011-01-19 03:05:26 -060050#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabid8f341c2011-08-04 18:03:41 -050051#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Galafe137112011-01-19 03:05:26 -060052
53#elif defined(CONFIG_MPC8544)
54#define CONFIG_MAX_CPUS 1
55#define CONFIG_SYS_FSL_NUM_LAWS 10
York Sunf0626592013-09-30 09:22:09 -070056#define CONFIG_SYS_FSL_DDRC_GEN2
Prabhakar Kushwaha826cf622012-08-15 04:12:43 +000057#define CONFIG_SYS_PPC_E500_DEBUG_TLB 0
Kumar Galafe137112011-01-19 03:05:26 -060058#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabid8f341c2011-08-04 18:03:41 -050059#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
York Sun0cc59072013-08-20 15:09:43 -070060#define CONFIG_SYS_FSL_ERRATUM_A005125
Kumar Galafe137112011-01-19 03:05:26 -060061
62#elif defined(CONFIG_MPC8548)
63#define CONFIG_MAX_CPUS 1
64#define CONFIG_SYS_FSL_NUM_LAWS 10
York Sunf0626592013-09-30 09:22:09 -070065#define CONFIG_SYS_FSL_DDRC_GEN2
Prabhakar Kushwaha826cf622012-08-15 04:12:43 +000066#define CONFIG_SYS_PPC_E500_DEBUG_TLB 0
Kumar Galafe137112011-01-19 03:05:26 -060067#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabid8f341c2011-08-04 18:03:41 -050068#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Gala866c6fa2011-09-16 09:54:30 -050069#define CONFIG_SYS_FSL_ERRATUM_NMG_DDR120
Kumar Galaf3339d62011-10-03 08:37:57 -050070#define CONFIG_SYS_FSL_ERRATUM_NMG_LBC103
chenhui zhaoc8caa8a2011-10-03 08:38:50 -050071#define CONFIG_SYS_FSL_ERRATUM_NMG_ETSEC129
Liu Gang78deaa12012-03-08 00:33:14 +000072#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 1
73#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
74#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
75#define CONFIG_SYS_FSL_RMU
76#define CONFIG_SYS_FSL_SRIO_MSG_UNIT_NUM 2
York Sun0cc59072013-08-20 15:09:43 -070077#define CONFIG_SYS_FSL_ERRATUM_A005125
Chunhe Lan92546402013-08-16 15:10:37 +080078#define CONFIG_SYS_FSL_ERRATUM_I2C_A004447
79#define CONFIG_SYS_FSL_A004447_SVR_REV 0x00
Kumar Galafe137112011-01-19 03:05:26 -060080
81#elif defined(CONFIG_MPC8555)
82#define CONFIG_MAX_CPUS 1
83#define CONFIG_SYS_FSL_NUM_LAWS 8
York Sunf0626592013-09-30 09:22:09 -070084#define CONFIG_SYS_FSL_DDRC_GEN1
Kumar Galafe137112011-01-19 03:05:26 -060085#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabid8f341c2011-08-04 18:03:41 -050086#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Galafe137112011-01-19 03:05:26 -060087
88#elif defined(CONFIG_MPC8560)
89#define CONFIG_MAX_CPUS 1
90#define CONFIG_SYS_FSL_NUM_LAWS 8
York Sunf0626592013-09-30 09:22:09 -070091#define CONFIG_SYS_FSL_DDRC_GEN1
Timur Tabid8f341c2011-08-04 18:03:41 -050092#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Galafe137112011-01-19 03:05:26 -060093
94#elif defined(CONFIG_MPC8568)
95#define CONFIG_MAX_CPUS 1
96#define CONFIG_SYS_FSL_NUM_LAWS 10
York Sunf0626592013-09-30 09:22:09 -070097#define CONFIG_SYS_FSL_DDRC_GEN2
Kumar Galafe137112011-01-19 03:05:26 -060098#define CONFIG_SYS_FSL_SEC_COMPAT 2
Kumar Gala52bd8152011-01-31 23:09:25 -060099#define QE_MURAM_SIZE 0x10000UL
100#define MAX_QE_RISC 2
101#define QE_NUM_OF_SNUM 28
Timur Tabid8f341c2011-08-04 18:03:41 -0500102#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Liu Gang78deaa12012-03-08 00:33:14 +0000103#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 1
104#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
105#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
106#define CONFIG_SYS_FSL_RMU
107#define CONFIG_SYS_FSL_SRIO_MSG_UNIT_NUM 2
Kumar Galafe137112011-01-19 03:05:26 -0600108
109#elif defined(CONFIG_MPC8569)
110#define CONFIG_MAX_CPUS 1
111#define CONFIG_SYS_FSL_NUM_LAWS 10
112#define CONFIG_SYS_FSL_SEC_COMPAT 2
Kumar Gala52bd8152011-01-31 23:09:25 -0600113#define QE_MURAM_SIZE 0x20000UL
114#define MAX_QE_RISC 4
115#define QE_NUM_OF_SNUM 46
Timur Tabid8f341c2011-08-04 18:03:41 -0500116#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Liu Gang78deaa12012-03-08 00:33:14 +0000117#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 1
118#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
119#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
120#define CONFIG_SYS_FSL_RMU
121#define CONFIG_SYS_FSL_SRIO_MSG_UNIT_NUM 2
York Sun0cc59072013-08-20 15:09:43 -0700122#define CONFIG_SYS_FSL_ERRATUM_A005125
Kumar Galafe137112011-01-19 03:05:26 -0600123
124#elif defined(CONFIG_MPC8572)
125#define CONFIG_MAX_CPUS 2
126#define CONFIG_SYS_FSL_NUM_LAWS 12
Prabhakar Kushwaha826cf622012-08-15 04:12:43 +0000127#define CONFIG_SYS_PPC_E500_DEBUG_TLB 2
Kumar Galafe137112011-01-19 03:05:26 -0600128#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabid8f341c2011-08-04 18:03:41 -0500129#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
York Sun9aa857b2011-01-25 21:51:27 -0800130#define CONFIG_SYS_FSL_ERRATUM_DDR_115
York Sunc8fc9592011-01-25 22:05:49 -0800131#define CONFIG_SYS_FSL_ERRATUM_DDR111_DDR134
York Sun0cc59072013-08-20 15:09:43 -0700132#define CONFIG_SYS_FSL_ERRATUM_A005125
Kumar Galafe137112011-01-19 03:05:26 -0600133
134#elif defined(CONFIG_P1010)
135#define CONFIG_MAX_CPUS 1
Priyanka Jain02449632011-02-09 09:24:10 +0530136#define CONFIG_FSL_SDHC_V2_3
Kumar Galafe137112011-01-19 03:05:26 -0600137#define CONFIG_SYS_FSL_NUM_LAWS 12
Prabhakar Kushwaha3d42a962012-04-29 23:57:12 +0000138#define CONFIG_SYS_PPC_E500_DEBUG_TLB 3
Kumar Galafe137112011-01-19 03:05:26 -0600139#define CONFIG_TSECV2
140#define CONFIG_SYS_FSL_SEC_COMPAT 4
Poonam Aggrwal7373c592011-02-06 11:31:44 +0530141#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
142#define CONFIG_NUM_DDR_CONTROLLERS 1
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530143#define CONFIG_USB_MAX_CONTROLLER_COUNT 1
Mingkai Hu6f024c92013-05-16 10:18:13 +0800144#define CONFIG_SYS_FSL_IFC_BANK_COUNT 4
Poonam Aggrwal7373c592011-02-06 11:31:44 +0530145#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Gala179b1b22011-05-20 00:39:21 -0500146#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.2"
Ramneek Mehresh3fb68ee2011-03-23 15:20:43 +0530147#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
Poonam Aggrwalc7664a42011-06-30 03:00:28 -0500148#define CONFIG_SYS_FSL_ERRATUM_IFC_A002769
Poonam Aggrwalaf54a5f2011-06-29 16:32:52 +0530149#define CONFIG_SYS_FSL_ERRATUM_P1010_A003549
Shengzhou Liu097be702013-08-15 09:31:47 +0800150#define CONFIG_SYS_FSL_ERRATUM_SEC_A003571
Poonam Aggrwal46b86ca2011-07-07 20:36:47 +0530151#define CONFIG_SYS_FSL_ERRATUM_IFC_A003399
York Sun0cc59072013-08-20 15:09:43 -0700152#define CONFIG_SYS_FSL_ERRATUM_A005125
Chunhe Lan92546402013-08-16 15:10:37 +0800153#define CONFIG_SYS_FSL_ERRATUM_I2C_A004447
154#define CONFIG_SYS_FSL_A004447_SVR_REV 0x10
Haijun.Zhang22e3c422014-01-10 13:52:19 +0800155#define CONFIG_ESDHC_HC_BLK_ADDR
Kumar Galafe137112011-01-19 03:05:26 -0600156
Kumar Galae4e69252011-02-05 13:45:07 -0600157/* P1011 is single core version of P1020 */
Kumar Galafe137112011-01-19 03:05:26 -0600158#elif defined(CONFIG_P1011)
159#define CONFIG_MAX_CPUS 1
160#define CONFIG_SYS_FSL_NUM_LAWS 12
Prabhakar Kushwaha3d42a962012-04-29 23:57:12 +0000161#define CONFIG_SYS_PPC_E500_DEBUG_TLB 2
Kumar Galafe137112011-01-19 03:05:26 -0600162#define CONFIG_TSECV2
Prabhakar Kushwaha1c48e772011-02-01 15:55:58 +0000163#define CONFIG_FSL_PCIE_DISABLE_ASPM
Kumar Galafe137112011-01-19 03:05:26 -0600164#define CONFIG_SYS_FSL_SEC_COMPAT 2
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530165#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
Timur Tabid8f341c2011-08-04 18:03:41 -0500166#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Galae4e69252011-02-05 13:45:07 -0600167#define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
168#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
York Sun0cc59072013-08-20 15:09:43 -0700169#define CONFIG_SYS_FSL_ERRATUM_A005125
Kumar Galafe137112011-01-19 03:05:26 -0600170
Kumar Galae4e69252011-02-05 13:45:07 -0600171/* P1012 is single core version of P1021 */
Kumar Galafe137112011-01-19 03:05:26 -0600172#elif defined(CONFIG_P1012)
173#define CONFIG_MAX_CPUS 1
174#define CONFIG_SYS_FSL_NUM_LAWS 12
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530175#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
Prabhakar Kushwaha3d42a962012-04-29 23:57:12 +0000176#define CONFIG_SYS_PPC_E500_DEBUG_TLB 2
Kumar Galafe137112011-01-19 03:05:26 -0600177#define CONFIG_TSECV2
Prabhakar Kushwaha1c48e772011-02-01 15:55:58 +0000178#define CONFIG_FSL_PCIE_DISABLE_ASPM
Kumar Galafe137112011-01-19 03:05:26 -0600179#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabid8f341c2011-08-04 18:03:41 -0500180#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Galae4e69252011-02-05 13:45:07 -0600181#define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
182#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
Haiying Wang8cb2af72011-02-11 01:25:30 -0600183#define QE_MURAM_SIZE 0x6000UL
184#define MAX_QE_RISC 1
185#define QE_NUM_OF_SNUM 28
York Sun0cc59072013-08-20 15:09:43 -0700186#define CONFIG_SYS_FSL_ERRATUM_A005125
Kumar Galafe137112011-01-19 03:05:26 -0600187
Kumar Galae4e69252011-02-05 13:45:07 -0600188/* P1013 is single core version of P1022 */
Kumar Galafe137112011-01-19 03:05:26 -0600189#elif defined(CONFIG_P1013)
190#define CONFIG_MAX_CPUS 1
191#define CONFIG_SYS_FSL_NUM_LAWS 12
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530192#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
Prabhakar Kushwaha3d42a962012-04-29 23:57:12 +0000193#define CONFIG_SYS_PPC_E500_DEBUG_TLB 2
Kumar Galafe137112011-01-19 03:05:26 -0600194#define CONFIG_TSECV2
195#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabid8f341c2011-08-04 18:03:41 -0500196#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Jiang Yutang7cd05902011-01-30 17:06:20 -0600197#define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
198#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
199#define CONFIG_FSL_SATA_ERRATUM_A001
York Sun0cc59072013-08-20 15:09:43 -0700200#define CONFIG_SYS_FSL_ERRATUM_A005125
Kumar Galafe137112011-01-19 03:05:26 -0600201
202#elif defined(CONFIG_P1014)
203#define CONFIG_MAX_CPUS 1
Priyanka Jain02449632011-02-09 09:24:10 +0530204#define CONFIG_FSL_SDHC_V2_3
Kumar Galafe137112011-01-19 03:05:26 -0600205#define CONFIG_SYS_FSL_NUM_LAWS 12
Prabhakar Kushwaha3d42a962012-04-29 23:57:12 +0000206#define CONFIG_SYS_PPC_E500_DEBUG_TLB 3
Kumar Galafe137112011-01-19 03:05:26 -0600207#define CONFIG_TSECV2
208#define CONFIG_SYS_FSL_SEC_COMPAT 4
Poonam Aggrwal7373c592011-02-06 11:31:44 +0530209#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
210#define CONFIG_NUM_DDR_CONTROLLERS 1
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530211#define CONFIG_USB_MAX_CONTROLLER_COUNT 1
Poonam Aggrwal7373c592011-02-06 11:31:44 +0530212#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Ramneek Mehresh3fb68ee2011-03-23 15:20:43 +0530213#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
Poonam Aggrwalc7664a42011-06-30 03:00:28 -0500214#define CONFIG_SYS_FSL_ERRATUM_IFC_A002769
Poonam Aggrwalaf54a5f2011-06-29 16:32:52 +0530215#define CONFIG_SYS_FSL_ERRATUM_P1010_A003549
Poonam Aggrwal46b86ca2011-07-07 20:36:47 +0530216#define CONFIG_SYS_FSL_ERRATUM_IFC_A003399
Kumar Galafe137112011-01-19 03:05:26 -0600217
Kumar Galae4e69252011-02-05 13:45:07 -0600218/* P1017 is single core version of P1023 */
Roy Zang1de20b02011-02-03 22:14:19 -0600219#elif defined(CONFIG_P1017)
220#define CONFIG_MAX_CPUS 1
221#define CONFIG_SYS_FSL_NUM_LAWS 12
222#define CONFIG_SYS_FSL_SEC_COMPAT 4
223#define CONFIG_SYS_NUM_FMAN 1
224#define CONFIG_SYS_NUM_FM1_DTSEC 2
225#define CONFIG_NUM_DDR_CONTROLLERS 1
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530226#define CONFIG_USB_MAX_CONTROLLER_COUNT 1
Roy Zang1de20b02011-02-03 22:14:19 -0600227#define CONFIG_SYS_QMAN_NUM_PORTALS 3
228#define CONFIG_SYS_BMAN_NUM_PORTALS 3
Kumar Galad80dfe42011-02-04 00:43:34 -0600229#define CONFIG_SYS_FM_MURAM_SIZE 0x10000
Kumar Gala179b1b22011-05-20 00:39:21 -0500230#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.2"
Timur Tabid8f341c2011-08-04 18:03:41 -0500231#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff600000
York Sun0cc59072013-08-20 15:09:43 -0700232#define CONFIG_SYS_FSL_ERRATUM_A005125
Roy Zang1de20b02011-02-03 22:14:19 -0600233
Kumar Galafe137112011-01-19 03:05:26 -0600234#elif defined(CONFIG_P1020)
235#define CONFIG_MAX_CPUS 2
236#define CONFIG_SYS_FSL_NUM_LAWS 12
Prabhakar Kushwaha3d42a962012-04-29 23:57:12 +0000237#define CONFIG_SYS_PPC_E500_DEBUG_TLB 2
Kumar Galafe137112011-01-19 03:05:26 -0600238#define CONFIG_TSECV2
Prabhakar Kushwaha1c48e772011-02-01 15:55:58 +0000239#define CONFIG_FSL_PCIE_DISABLE_ASPM
Kumar Galafe137112011-01-19 03:05:26 -0600240#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabid8f341c2011-08-04 18:03:41 -0500241#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Galae4e69252011-02-05 13:45:07 -0600242#define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
243#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
York Sun0cc59072013-08-20 15:09:43 -0700244#define CONFIG_SYS_FSL_ERRATUM_A005125
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530245#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
Kumar Galafe137112011-01-19 03:05:26 -0600246
247#elif defined(CONFIG_P1021)
248#define CONFIG_MAX_CPUS 2
249#define CONFIG_SYS_FSL_NUM_LAWS 12
Prabhakar Kushwaha3d42a962012-04-29 23:57:12 +0000250#define CONFIG_SYS_PPC_E500_DEBUG_TLB 2
Kumar Galafe137112011-01-19 03:05:26 -0600251#define CONFIG_TSECV2
Prabhakar Kushwaha1c48e772011-02-01 15:55:58 +0000252#define CONFIG_FSL_PCIE_DISABLE_ASPM
Kumar Galafe137112011-01-19 03:05:26 -0600253#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabid8f341c2011-08-04 18:03:41 -0500254#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Galae4e69252011-02-05 13:45:07 -0600255#define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
256#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
Haiying Wang8cb2af72011-02-11 01:25:30 -0600257#define QE_MURAM_SIZE 0x6000UL
258#define MAX_QE_RISC 1
259#define QE_NUM_OF_SNUM 28
York Sun0cc59072013-08-20 15:09:43 -0700260#define CONFIG_SYS_FSL_ERRATUM_A005125
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530261#define CONFIG_USB_MAX_CONTROLLER_COUNT 1
Kumar Galafe137112011-01-19 03:05:26 -0600262
263#elif defined(CONFIG_P1022)
264#define CONFIG_MAX_CPUS 2
265#define CONFIG_SYS_FSL_NUM_LAWS 12
Prabhakar Kushwaha3d42a962012-04-29 23:57:12 +0000266#define CONFIG_SYS_PPC_E500_DEBUG_TLB 2
Kumar Galafe137112011-01-19 03:05:26 -0600267#define CONFIG_TSECV2
268#define CONFIG_SYS_FSL_SEC_COMPAT 2
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530269#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
Timur Tabid8f341c2011-08-04 18:03:41 -0500270#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Jiang Yutang7cd05902011-01-30 17:06:20 -0600271#define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
272#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
273#define CONFIG_FSL_SATA_ERRATUM_A001
York Sun0cc59072013-08-20 15:09:43 -0700274#define CONFIG_SYS_FSL_ERRATUM_A005125
Kumar Galafe137112011-01-19 03:05:26 -0600275
Roy Zang1de20b02011-02-03 22:14:19 -0600276#elif defined(CONFIG_P1023)
277#define CONFIG_MAX_CPUS 2
278#define CONFIG_SYS_FSL_NUM_LAWS 12
279#define CONFIG_SYS_FSL_SEC_COMPAT 4
280#define CONFIG_SYS_NUM_FMAN 1
281#define CONFIG_SYS_NUM_FM1_DTSEC 2
282#define CONFIG_NUM_DDR_CONTROLLERS 1
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530283#define CONFIG_USB_MAX_CONTROLLER_COUNT 1
Roy Zang1de20b02011-02-03 22:14:19 -0600284#define CONFIG_SYS_QMAN_NUM_PORTALS 3
285#define CONFIG_SYS_BMAN_NUM_PORTALS 3
Kumar Galad80dfe42011-02-04 00:43:34 -0600286#define CONFIG_SYS_FM_MURAM_SIZE 0x10000
Kumar Gala179b1b22011-05-20 00:39:21 -0500287#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.2"
Timur Tabid8f341c2011-08-04 18:03:41 -0500288#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff600000
York Sun0cc59072013-08-20 15:09:43 -0700289#define CONFIG_SYS_FSL_ERRATUM_A005125
Chunhe Lan92546402013-08-16 15:10:37 +0800290#define CONFIG_SYS_FSL_ERRATUM_I2C_A004447
291#define CONFIG_SYS_FSL_A004447_SVR_REV 0x11
Roy Zang1de20b02011-02-03 22:14:19 -0600292
Kumar Galae4e69252011-02-05 13:45:07 -0600293/* P1024 is lower end variant of P1020 */
294#elif defined(CONFIG_P1024)
295#define CONFIG_MAX_CPUS 2
296#define CONFIG_SYS_FSL_NUM_LAWS 12
Prabhakar Kushwaha3d42a962012-04-29 23:57:12 +0000297#define CONFIG_SYS_PPC_E500_DEBUG_TLB 2
Kumar Galae4e69252011-02-05 13:45:07 -0600298#define CONFIG_TSECV2
299#define CONFIG_FSL_PCIE_DISABLE_ASPM
300#define CONFIG_SYS_FSL_SEC_COMPAT 2
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530301#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
Timur Tabid8f341c2011-08-04 18:03:41 -0500302#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Galae4e69252011-02-05 13:45:07 -0600303#define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
304#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
York Sun0cc59072013-08-20 15:09:43 -0700305#define CONFIG_SYS_FSL_ERRATUM_A005125
Kumar Galae4e69252011-02-05 13:45:07 -0600306
307/* P1025 is lower end variant of P1021 */
308#elif defined(CONFIG_P1025)
309#define CONFIG_MAX_CPUS 2
310#define CONFIG_SYS_FSL_NUM_LAWS 12
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530311#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
Prabhakar Kushwaha3d42a962012-04-29 23:57:12 +0000312#define CONFIG_SYS_PPC_E500_DEBUG_TLB 2
Kumar Galae4e69252011-02-05 13:45:07 -0600313#define CONFIG_TSECV2
314#define CONFIG_FSL_PCIE_DISABLE_ASPM
315#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabid8f341c2011-08-04 18:03:41 -0500316#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Galae4e69252011-02-05 13:45:07 -0600317#define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
318#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
Haiying Wang8cb2af72011-02-11 01:25:30 -0600319#define QE_MURAM_SIZE 0x6000UL
320#define MAX_QE_RISC 1
321#define QE_NUM_OF_SNUM 28
York Sun0cc59072013-08-20 15:09:43 -0700322#define CONFIG_SYS_FSL_ERRATUM_A005125
Kumar Galae4e69252011-02-05 13:45:07 -0600323
324/* P2010 is single core version of P2020 */
Kumar Galafe137112011-01-19 03:05:26 -0600325#elif defined(CONFIG_P2010)
326#define CONFIG_MAX_CPUS 1
327#define CONFIG_SYS_FSL_NUM_LAWS 12
Prabhakar Kushwaha3d42a962012-04-29 23:57:12 +0000328#define CONFIG_SYS_PPC_E500_DEBUG_TLB 2
Kumar Galafe137112011-01-19 03:05:26 -0600329#define CONFIG_SYS_FSL_SEC_COMPAT 2
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530330#define CONFIG_USB_MAX_CONTROLLER_COUNT 1
Timur Tabid8f341c2011-08-04 18:03:41 -0500331#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Gala7b5b4802011-01-26 01:43:15 -0600332#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
Kumar Gala9a878d52011-01-29 15:36:10 -0600333#define CONFIG_SYS_FSL_ERRATUM_ESDHC_A001
York Sun0cc59072013-08-20 15:09:43 -0700334#define CONFIG_SYS_FSL_ERRATUM_A005125
Kumar Galafe137112011-01-19 03:05:26 -0600335
336#elif defined(CONFIG_P2020)
337#define CONFIG_MAX_CPUS 2
338#define CONFIG_SYS_FSL_NUM_LAWS 12
Prabhakar Kushwaha3d42a962012-04-29 23:57:12 +0000339#define CONFIG_SYS_PPC_E500_DEBUG_TLB 2
Kumar Galafe137112011-01-19 03:05:26 -0600340#define CONFIG_SYS_FSL_SEC_COMPAT 2
Timur Tabid8f341c2011-08-04 18:03:41 -0500341#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
Kumar Gala7b5b4802011-01-26 01:43:15 -0600342#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
Kumar Gala9a878d52011-01-29 15:36:10 -0600343#define CONFIG_SYS_FSL_ERRATUM_ESDHC_A001
Liu Gang78deaa12012-03-08 00:33:14 +0000344#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 2
345#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
346#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
347#define CONFIG_SYS_FSL_RMU
348#define CONFIG_SYS_FSL_SRIO_MSG_UNIT_NUM 2
York Sun0cc59072013-08-20 15:09:43 -0700349#define CONFIG_SYS_FSL_ERRATUM_A005125
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530350#define CONFIG_USB_MAX_CONTROLLER_COUNT 1
Scott Wooda1ef48c2012-08-14 10:14:51 +0000351#elif defined(CONFIG_PPC_P2041) /* also supports P2040 */
York Sun7e0edbd2012-10-08 07:44:15 +0000352#define CONFIG_SYS_FSL_QORIQ_CHASSIS1
York Sun544f8812013-06-25 11:37:39 -0700353#define CONFIG_FSL_CORENET /* Freescale CoreNet platform */
Kumar Galafe137112011-01-19 03:05:26 -0600354#define CONFIG_MAX_CPUS 4
Kumar Gala3842bb52011-02-16 02:03:29 -0600355#define CONFIG_SYS_FSL_NUM_CC_PLLS 2
Kumar Galafe137112011-01-19 03:05:26 -0600356#define CONFIG_SYS_FSL_NUM_LAWS 32
357#define CONFIG_SYS_FSL_SEC_COMPAT 4
Kumar Gala619541b2011-05-13 01:16:07 -0500358#define CONFIG_SYS_NUM_FMAN 1
359#define CONFIG_SYS_NUM_FM1_DTSEC 5
360#define CONFIG_SYS_NUM_FM1_10GEC 1
361#define CONFIG_NUM_DDR_CONTROLLERS 1
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530362#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
Kumar Gala619541b2011-05-13 01:16:07 -0500363#define CONFIG_SYS_FM_MURAM_SIZE 0x28000
364#define CONFIG_SYS_FSL_TBCLK_DIV 32
365#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.2"
Timur Tabid8f341c2011-08-04 18:03:41 -0500366#define CONFIG_SYS_CCSRBAR_DEFAULT 0xfe000000
Kumar Gala619541b2011-05-13 01:16:07 -0500367#define CONFIG_SYS_FSL_USB1_PHY_ENABLE
368#define CONFIG_SYS_FSL_USB2_PHY_ENABLE
Kumar Galaa49034f2011-04-13 00:19:10 -0500369#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
Kumar Gala619541b2011-05-13 01:16:07 -0500370#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
York Sun9ed88112012-05-07 07:26:47 +0000371#define CONFIG_SYS_FSL_ERRATUM_NMG_CPU_A011
Xuleicf4f4932013-03-11 17:56:34 +0000372#define CONFIG_SYS_FSL_ERRATUM_USB14
Kumar Gala945e59a2011-11-22 06:51:15 -0600373#define CONFIG_SYS_FSL_ERRATUM_CPU_A003999
York Sun52db64b2013-03-25 07:30:11 +0000374#define CONFIG_SYS_FSL_ERRATUM_DDR_A003
York Sundf2be192011-11-20 10:01:35 -0800375#define CONFIG_SYS_FSL_ERRATUM_DDR_A003474
Liu Gang78deaa12012-03-08 00:33:14 +0000376#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 2
377#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
378#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
Scott Wood80806962012-08-14 10:14:53 +0000379#define CONFIG_SYS_FSL_ERRATUM_A004510
380#define CONFIG_SYS_FSL_ERRATUM_A004510_SVR_REV 0x10
381#define CONFIG_SYS_FSL_ERRATUM_A004510_SVR_REV2 0x11
382#define CONFIG_SYS_FSL_CORENET_SNOOPVEC_COREONLY 0xf0000000
Liu Gang712b6622012-09-28 21:26:19 +0000383#define CONFIG_SYS_FSL_ERRATUM_SRIO_A004034
Timur Tabie3ab8c12012-10-25 12:40:00 +0000384#define CONFIG_SYS_FSL_ERRATUM_A004849
Chunhe Lan92546402013-08-16 15:10:37 +0800385#define CONFIG_SYS_FSL_ERRATUM_I2C_A004447
386#define CONFIG_SYS_FSL_A004447_SVR_REV 0x11
Kumar Gala619541b2011-05-13 01:16:07 -0500387
Kumar Galafe137112011-01-19 03:05:26 -0600388#elif defined(CONFIG_PPC_P3041)
York Sun7e0edbd2012-10-08 07:44:15 +0000389#define CONFIG_SYS_FSL_QORIQ_CHASSIS1
York Sun544f8812013-06-25 11:37:39 -0700390#define CONFIG_FSL_CORENET /* Freescale CoreNet platform */
Kumar Galafe137112011-01-19 03:05:26 -0600391#define CONFIG_MAX_CPUS 4
Kumar Gala3842bb52011-02-16 02:03:29 -0600392#define CONFIG_SYS_FSL_NUM_CC_PLLS 2
Kumar Galafe137112011-01-19 03:05:26 -0600393#define CONFIG_SYS_FSL_NUM_LAWS 32
394#define CONFIG_SYS_FSL_SEC_COMPAT 4
Kumar Gala60d95d82011-01-25 12:42:32 -0600395#define CONFIG_SYS_NUM_FMAN 1
396#define CONFIG_SYS_NUM_FM1_DTSEC 5
397#define CONFIG_SYS_NUM_FM1_10GEC 1
398#define CONFIG_NUM_DDR_CONTROLLERS 1
Kumar Galad80dfe42011-02-04 00:43:34 -0600399#define CONFIG_SYS_FM_MURAM_SIZE 0x28000
Kumar Galaf4fb90f2011-02-18 05:40:54 -0600400#define CONFIG_SYS_FSL_TBCLK_DIV 32
Kumar Gala179b1b22011-05-20 00:39:21 -0500401#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.2"
Timur Tabid8f341c2011-08-04 18:03:41 -0500402#define CONFIG_SYS_CCSRBAR_DEFAULT 0xfe000000
Roy Zang6d6a0e12011-04-13 00:08:51 -0500403#define CONFIG_SYS_FSL_USB1_PHY_ENABLE
404#define CONFIG_SYS_FSL_USB2_PHY_ENABLE
Kumar Galaa49034f2011-04-13 00:19:10 -0500405#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530406#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
Lei Xu32276202011-04-19 15:28:41 +0800407#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
York Sun53155532012-08-08 18:04:53 +0000408#define CONFIG_SYS_FSL_ERRATUM_NMG_CPU_A011
Xuleicf4f4932013-03-11 17:56:34 +0000409#define CONFIG_SYS_FSL_ERRATUM_USB14
Kumar Gala945e59a2011-11-22 06:51:15 -0600410#define CONFIG_SYS_FSL_ERRATUM_CPU_A003999
York Sun52db64b2013-03-25 07:30:11 +0000411#define CONFIG_SYS_FSL_ERRATUM_DDR_A003
York Sundf2be192011-11-20 10:01:35 -0800412#define CONFIG_SYS_FSL_ERRATUM_DDR_A003474
Liu Gang78deaa12012-03-08 00:33:14 +0000413#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 2
414#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
415#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
Scott Wood80806962012-08-14 10:14:53 +0000416#define CONFIG_SYS_FSL_ERRATUM_A004510
417#define CONFIG_SYS_FSL_ERRATUM_A004510_SVR_REV 0x10
418#define CONFIG_SYS_FSL_ERRATUM_A004510_SVR_REV2 0x11
419#define CONFIG_SYS_FSL_CORENET_SNOOPVEC_COREONLY 0xf0000000
Liu Gang712b6622012-09-28 21:26:19 +0000420#define CONFIG_SYS_FSL_ERRATUM_SRIO_A004034
Timur Tabie3ab8c12012-10-25 12:40:00 +0000421#define CONFIG_SYS_FSL_ERRATUM_A004849
York Suncca41c52013-06-25 11:37:49 -0700422#define CONFIG_SYS_FSL_ERRATUM_A005812
Chunhe Lan92546402013-08-16 15:10:37 +0800423#define CONFIG_SYS_FSL_ERRATUM_I2C_A004447
424#define CONFIG_SYS_FSL_A004447_SVR_REV 0x20
Kumar Galafe137112011-01-19 03:05:26 -0600425
Scott Wooda1ef48c2012-08-14 10:14:51 +0000426#elif defined(CONFIG_PPC_P4080) /* also supports P4040 */
York Sun7e0edbd2012-10-08 07:44:15 +0000427#define CONFIG_SYS_FSL_QORIQ_CHASSIS1
York Sun544f8812013-06-25 11:37:39 -0700428#define CONFIG_FSL_CORENET /* Freescale CoreNet platform */
Kumar Galafe137112011-01-19 03:05:26 -0600429#define CONFIG_MAX_CPUS 8
Kumar Gala3842bb52011-02-16 02:03:29 -0600430#define CONFIG_SYS_FSL_NUM_CC_PLLS 4
Kumar Galafe137112011-01-19 03:05:26 -0600431#define CONFIG_SYS_FSL_NUM_LAWS 32
432#define CONFIG_SYS_FSL_SEC_COMPAT 4
433#define CONFIG_SYS_NUM_FMAN 2
434#define CONFIG_SYS_NUM_FM1_DTSEC 4
435#define CONFIG_SYS_NUM_FM2_DTSEC 4
436#define CONFIG_SYS_NUM_FM1_10GEC 1
437#define CONFIG_SYS_NUM_FM2_10GEC 1
438#define CONFIG_NUM_DDR_CONTROLLERS 2
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530439#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
Kumar Galad80dfe42011-02-04 00:43:34 -0600440#define CONFIG_SYS_FM_MURAM_SIZE 0x28000
Kumar Galaf4fb90f2011-02-18 05:40:54 -0600441#define CONFIG_SYS_FSL_TBCLK_DIV 16
Kumar Gala179b1b22011-05-20 00:39:21 -0500442#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,p4080-pcie"
Timur Tabid8f341c2011-08-04 18:03:41 -0500443#define CONFIG_SYS_CCSRBAR_DEFAULT 0xfe000000
Kumar Galafe137112011-01-19 03:05:26 -0600444#define CONFIG_SYS_FSL_ERRATUM_CPC_A002
445#define CONFIG_SYS_FSL_ERRATUM_CPC_A003
York Sun922f40f2011-01-10 12:03:01 +0000446#define CONFIG_SYS_FSL_ERRATUM_DDR_A003
Kumar Galafe137112011-01-19 03:05:26 -0600447#define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
448#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
449#define CONFIG_SYS_FSL_ERRATUM_ESDHC135
Zang Roy-R6191183659922012-09-18 09:50:08 +0000450#define CONFIG_SYS_FSL_ERRATUM_ESDHC13
Kumar Galafe137112011-01-19 03:05:26 -0600451#define CONFIG_SYS_P4080_ERRATUM_CPU22
York Sun9ed88112012-05-07 07:26:47 +0000452#define CONFIG_SYS_FSL_ERRATUM_NMG_CPU_A011
Kumar Galafe137112011-01-19 03:05:26 -0600453#define CONFIG_SYS_P4080_ERRATUM_SERDES8
Emil Medveb01c81f2010-08-31 22:57:38 -0500454#define CONFIG_SYS_P4080_ERRATUM_SERDES9
Timur Tabi6a62dc42011-04-18 17:16:00 -0500455#define CONFIG_SYS_P4080_ERRATUM_SERDES_A001
Timur Tabi90f381d2011-04-01 13:19:36 -0500456#define CONFIG_SYS_P4080_ERRATUM_SERDES_A005
Kumar Gala945e59a2011-11-22 06:51:15 -0600457#define CONFIG_SYS_FSL_ERRATUM_CPU_A003999
York Sundf2be192011-11-20 10:01:35 -0800458#define CONFIG_SYS_FSL_ERRATUM_DDR_A003474
Liu Gang78deaa12012-03-08 00:33:14 +0000459#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 2
460#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
461#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
462#define CONFIG_SYS_FSL_RMU
463#define CONFIG_SYS_FSL_SRIO_MSG_UNIT_NUM 2
Scott Wood80806962012-08-14 10:14:53 +0000464#define CONFIG_SYS_FSL_ERRATUM_A004510
465#define CONFIG_SYS_FSL_ERRATUM_A004510_SVR_REV 0x20
466#define CONFIG_SYS_FSL_CORENET_SNOOPVEC_COREONLY 0xff000000
Liu Gang712b6622012-09-28 21:26:19 +0000467#define CONFIG_SYS_FSL_ERRATUM_SRIO_A004034
Timur Tabie3ab8c12012-10-25 12:40:00 +0000468#define CONFIG_SYS_FSL_ERRATUM_A004849
Timur Tabic5355dd2012-11-01 08:20:23 +0000469#define CONFIG_SYS_FSL_ERRATUM_A004580
Yuanquan Chenc48234e2012-11-26 23:49:45 +0000470#define CONFIG_SYS_P4080_ERRATUM_PCIE_A003
York Suncca41c52013-06-25 11:37:49 -0700471#define CONFIG_SYS_FSL_ERRATUM_A005812
Chunhe Lan92546402013-08-16 15:10:37 +0800472#define CONFIG_SYS_FSL_ERRATUM_I2C_A004447
473#define CONFIG_SYS_FSL_A004447_SVR_REV 0x20
Kumar Galafe137112011-01-19 03:05:26 -0600474
Scott Wooda1ef48c2012-08-14 10:14:51 +0000475#elif defined(CONFIG_PPC_P5020) /* also supports P5010 */
York Sun2394a0f2012-10-08 07:44:30 +0000476#define CONFIG_SYS_PPC64 /* 64-bit core */
York Sun7e0edbd2012-10-08 07:44:15 +0000477#define CONFIG_SYS_FSL_QORIQ_CHASSIS1
York Sun544f8812013-06-25 11:37:39 -0700478#define CONFIG_FSL_CORENET /* Freescale CoreNet platform */
Kumar Galafe137112011-01-19 03:05:26 -0600479#define CONFIG_MAX_CPUS 2
Kumar Gala3842bb52011-02-16 02:03:29 -0600480#define CONFIG_SYS_FSL_NUM_CC_PLLS 2
Kumar Galafe137112011-01-19 03:05:26 -0600481#define CONFIG_SYS_FSL_NUM_LAWS 32
482#define CONFIG_SYS_FSL_SEC_COMPAT 4
Kumar Gala60d95d82011-01-25 12:42:32 -0600483#define CONFIG_SYS_NUM_FMAN 1
484#define CONFIG_SYS_NUM_FM1_DTSEC 5
485#define CONFIG_SYS_NUM_FM1_10GEC 1
486#define CONFIG_NUM_DDR_CONTROLLERS 2
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530487#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
Kumar Galad80dfe42011-02-04 00:43:34 -0600488#define CONFIG_SYS_FM_MURAM_SIZE 0x28000
Kumar Galaf4fb90f2011-02-18 05:40:54 -0600489#define CONFIG_SYS_FSL_TBCLK_DIV 32
Kumar Gala179b1b22011-05-20 00:39:21 -0500490#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.2"
Timur Tabid8f341c2011-08-04 18:03:41 -0500491#define CONFIG_SYS_CCSRBAR_DEFAULT 0xfe000000
Roy Zang6d6a0e12011-04-13 00:08:51 -0500492#define CONFIG_SYS_FSL_USB1_PHY_ENABLE
493#define CONFIG_SYS_FSL_USB2_PHY_ENABLE
Kumar Galaa49034f2011-04-13 00:19:10 -0500494#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
Lei Xu32276202011-04-19 15:28:41 +0800495#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
Xuleicf4f4932013-03-11 17:56:34 +0000496#define CONFIG_SYS_FSL_ERRATUM_USB14
York Sun52db64b2013-03-25 07:30:11 +0000497#define CONFIG_SYS_FSL_ERRATUM_DDR_A003
York Sundf2be192011-11-20 10:01:35 -0800498#define CONFIG_SYS_FSL_ERRATUM_DDR_A003474
Liu Gang78deaa12012-03-08 00:33:14 +0000499#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 2
500#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
501#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
Scott Wood80806962012-08-14 10:14:53 +0000502#define CONFIG_SYS_FSL_ERRATUM_A004510
503#define CONFIG_SYS_FSL_ERRATUM_A004510_SVR_REV 0x10
504#define CONFIG_SYS_FSL_CORENET_SNOOPVEC_COREONLY 0xc0000000
Liu Gang712b6622012-09-28 21:26:19 +0000505#define CONFIG_SYS_FSL_ERRATUM_SRIO_A004034
Chunhe Lan92546402013-08-16 15:10:37 +0800506#define CONFIG_SYS_FSL_ERRATUM_I2C_A004447
507#define CONFIG_SYS_FSL_A004447_SVR_REV 0x20
Kumar Galafe137112011-01-19 03:05:26 -0600508
Timur Tabid5e13882012-10-05 11:09:19 +0000509#elif defined(CONFIG_PPC_P5040)
Timur Tabi9a7b5a32012-10-23 10:48:09 +0000510#define CONFIG_SYS_PPC64
Timur Tabid5e13882012-10-05 11:09:19 +0000511#define CONFIG_SYS_FSL_QORIQ_CHASSIS1
York Sun544f8812013-06-25 11:37:39 -0700512#define CONFIG_FSL_CORENET /* Freescale CoreNet platform */
Timur Tabid5e13882012-10-05 11:09:19 +0000513#define CONFIG_MAX_CPUS 4
514#define CONFIG_SYS_FSL_NUM_CC_PLLS 3
515#define CONFIG_SYS_FSL_NUM_LAWS 32
516#define CONFIG_SYS_FSL_SEC_COMPAT 4
517#define CONFIG_SYS_NUM_FMAN 2
518#define CONFIG_SYS_NUM_FM1_DTSEC 5
519#define CONFIG_SYS_NUM_FM1_10GEC 1
520#define CONFIG_SYS_NUM_FM2_DTSEC 5
521#define CONFIG_SYS_NUM_FM2_10GEC 1
522#define CONFIG_NUM_DDR_CONTROLLERS 2
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530523#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
Timur Tabid5e13882012-10-05 11:09:19 +0000524#define CONFIG_SYS_FM_MURAM_SIZE 0x28000
525#define CONFIG_SYS_FSL_TBCLK_DIV 16
526#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.4"
527#define CONFIG_SYS_CCSRBAR_DEFAULT 0xfe000000
528#define CONFIG_SYS_FSL_USB1_PHY_ENABLE
529#define CONFIG_SYS_FSL_USB2_PHY_ENABLE
530#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
531#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
Xuleicf4f4932013-03-11 17:56:34 +0000532#define CONFIG_SYS_FSL_ERRATUM_USB14
Timur Tabid5e13882012-10-05 11:09:19 +0000533#define CONFIG_SYS_FSL_ERRATUM_DDR_A003
534#define CONFIG_SYS_FSL_ERRATUM_DDR_A003474
535#define CONFIG_SYS_FSL_ERRATUM_A004699
Timur Tabid5e13882012-10-05 11:09:19 +0000536#define CONFIG_SYS_FSL_ERRATUM_A004510
537#define CONFIG_SYS_FSL_ERRATUM_A004510_SVR_REV 0x10
538#define CONFIG_SYS_FSL_CORENET_SNOOPVEC_COREONLY 0xf0000000
York Suncca41c52013-06-25 11:37:49 -0700539#define CONFIG_SYS_FSL_ERRATUM_A005812
Timur Tabid5e13882012-10-05 11:09:19 +0000540
Prabhakar Kushwahabeebb882012-04-24 20:16:49 +0000541#elif defined(CONFIG_BSC9131)
542#define CONFIG_MAX_CPUS 1
543#define CONFIG_FSL_SDHC_V2_3
544#define CONFIG_SYS_FSL_NUM_LAWS 12
545#define CONFIG_TSECV2
546#define CONFIG_SYS_FSL_SEC_COMPAT 4
547#define CONFIG_NUM_DDR_CONTROLLERS 1
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530548#define CONFIG_USB_MAX_CONTROLLER_COUNT 1
Priyanka Jainf81e8b22013-04-04 09:31:54 +0530549#define CONFIG_SYS_FSL_DSP_M2_RAM_ADDR 0xb0000000
550#define CONFIG_SYS_FSL_DSP_CCSRBAR_DEFAULT 0xff600000
Mingkai Hu6f024c92013-05-16 10:18:13 +0800551#define CONFIG_SYS_FSL_IFC_BANK_COUNT 3
Prabhakar Kushwahabeebb882012-04-24 20:16:49 +0000552#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
553#define CONFIG_NAND_FSL_IFC
Prabhakar Kushwahabeebb882012-04-24 20:16:49 +0000554#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
York Sun0cc59072013-08-20 15:09:43 -0700555#define CONFIG_SYS_FSL_ERRATUM_A005125
Haijun.Zhang22e3c422014-01-10 13:52:19 +0800556#define CONFIG_ESDHC_HC_BLK_ADDR
Prabhakar Kushwahabeebb882012-04-24 20:16:49 +0000557
Prabhakar Kushwaha92543c22013-01-23 17:59:57 +0000558#elif defined(CONFIG_BSC9132)
559#define CONFIG_MAX_CPUS 2
560#define CONFIG_SYS_PPC_E500_DEBUG_TLB 3
561#define CONFIG_FSL_SDHC_V2_3
562#define CONFIG_SYS_FSL_NUM_LAWS 12
563#define CONFIG_TSECV2
564#define CONFIG_SYS_FSL_SEC_COMPAT 4
565#define CONFIG_NUM_DDR_CONTROLLERS 2
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530566#define CONFIG_USB_MAX_CONTROLLER_COUNT 1
Priyanka Jainc73b9032013-07-02 09:21:04 +0530567#define CONFIG_SYS_FSL_DSP_DDR_ADDR 0x40000000
568#define CONFIG_SYS_FSL_DSP_M2_RAM_ADDR 0xb0000000
569#define CONFIG_SYS_FSL_DSP_M3_RAM_ADDR 0xc0000000
570#define CONFIG_SYS_FSL_DSP_CCSRBAR_DEFAULT 0xff600000
York Sun84fa67e2013-04-18 19:31:01 -0700571#define CONFIG_SYS_FSL_IFC_BANK_COUNT 3
Prabhakar Kushwaha92543c22013-01-23 17:59:57 +0000572#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
573#define CONFIG_NAND_FSL_IFC
Prabhakar Kushwaha92543c22013-01-23 17:59:57 +0000574#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
575#define CONFIG_SYS_FSL_ESDHC_P1010_BROKEN_SDCLK
576#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.2"
York Sun0cc59072013-08-20 15:09:43 -0700577#define CONFIG_SYS_FSL_ERRATUM_A005125
Chunhe Lan92546402013-08-16 15:10:37 +0800578#define CONFIG_SYS_FSL_ERRATUM_I2C_A004447
579#define CONFIG_SYS_FSL_A004447_SVR_REV 0x11
Haijun.Zhang22e3c422014-01-10 13:52:19 +0800580#define CONFIG_ESDHC_HC_BLK_ADDR
Prabhakar Kushwaha92543c22013-01-23 17:59:57 +0000581
York Sun64fd08b2013-03-25 07:40:05 +0000582#elif defined(CONFIG_PPC_T4240) || defined(CONFIG_PPC_T4160)
583#define CONFIG_E6500
York Sun2394a0f2012-10-08 07:44:30 +0000584#define CONFIG_SYS_PPC64 /* 64-bit core */
York Sun9941a222012-10-08 07:44:19 +0000585#define CONFIG_FSL_CORENET /* Freescale CoreNet platform */
586#define CONFIG_SYS_FSL_QORIQ_CHASSIS2 /* Freescale Chassis generation 2 */
York Sunaa150bb2013-03-25 07:40:07 +0000587#define CONFIG_SYS_FSL_CORES_PER_CLUSTER 4
York Sun9941a222012-10-08 07:44:19 +0000588#define CONFIG_SYS_FSL_QMAN_V3 /* QMAN version 3 */
York Sun64fd08b2013-03-25 07:40:05 +0000589#ifdef CONFIG_PPC_T4240
York Sun9941a222012-10-08 07:44:19 +0000590#define CONFIG_MAX_CPUS 12
Prabhakar Kushwaha7e8382f2013-09-03 11:20:15 +0530591#define CONFIG_SYS_FSL_CLUSTER_CLOCKS { 1, 1, 4 }
York Sun9941a222012-10-08 07:44:19 +0000592#define CONFIG_SYS_NUM_FM1_DTSEC 8
593#define CONFIG_SYS_NUM_FM1_10GEC 2
594#define CONFIG_SYS_NUM_FM2_DTSEC 8
595#define CONFIG_SYS_NUM_FM2_10GEC 2
596#define CONFIG_NUM_DDR_CONTROLLERS 3
York Sun64fd08b2013-03-25 07:40:05 +0000597#else
York Sunfb5137a2013-03-25 07:33:29 +0000598#define CONFIG_MAX_CPUS 8
Prabhakar Kushwaha7e8382f2013-09-03 11:20:15 +0530599#define CONFIG_SYS_FSL_CLUSTER_CLOCKS { 1, 1 }
York Sun64fd08b2013-03-25 07:40:05 +0000600#define CONFIG_SYS_NUM_FM1_DTSEC 7
601#define CONFIG_SYS_NUM_FM1_10GEC 1
602#define CONFIG_SYS_NUM_FM2_DTSEC 7
603#define CONFIG_SYS_NUM_FM2_10GEC 1
604#define CONFIG_NUM_DDR_CONTROLLERS 2
605#endif
York Sunfb5137a2013-03-25 07:33:29 +0000606#define CONFIG_SYS_FSL_NUM_CC_PLLS 5
607#define CONFIG_SYS_FSL_NUM_LAWS 32
Prabhakar Kushwaha873e9f02013-07-31 16:56:41 +0530608#define CONFIG_SYS_FSL_SRDS_1
609#define CONFIG_SYS_FSL_SRDS_2
York Sunfb5137a2013-03-25 07:33:29 +0000610#define CONFIG_SYS_FSL_SRDS_3
611#define CONFIG_SYS_FSL_SRDS_4
612#define CONFIG_SYS_FSL_SEC_COMPAT 4
613#define CONFIG_SYS_NUM_FMAN 2
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530614#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
Prabhakar Kushwaha7e8382f2013-09-03 11:20:15 +0530615#define CONFIG_SYS_PME_CLK 0
York Sunfb5137a2013-03-25 07:33:29 +0000616#define CONFIG_SYS_FSL_DDR_VER FSL_DDR_VER_4_7
Mingkai Hu6f024c92013-05-16 10:18:13 +0800617#define CONFIG_SYS_FSL_IFC_BANK_COUNT 8
York Sunfb5137a2013-03-25 07:33:29 +0000618#define CONFIG_SYS_FMAN_V3
Prabhakar Kushwaha7e8382f2013-09-03 11:20:15 +0530619#define CONFIG_SYS_FM1_CLK 3
620#define CONFIG_SYS_FM2_CLK 3
York Sunfb5137a2013-03-25 07:33:29 +0000621#define CONFIG_SYS_FM_MURAM_SIZE 0x60000
622#define CONFIG_SYS_FSL_TBCLK_DIV 16
623#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v3.0"
624#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 2
625#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
626#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
Liu Gangd5eca7e2013-06-25 18:12:14 +0800627#define CONFIG_SYS_FSL_SRIO_LIODN
York Sunfb5137a2013-03-25 07:33:29 +0000628#define CONFIG_SYS_FSL_USB_DUAL_PHY_ENABLE
629#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
630#define CONFIG_SYS_FSL_ERRATUM_A004468
631#define CONFIG_SYS_FSL_ERRATUM_A_004934
632#define CONFIG_SYS_FSL_ERRATUM_A005871
York Sunb1954252013-09-16 12:49:31 -0700633#define CONFIG_SYS_FSL_ERRATUM_A006379
Scott Wood3f4a5c42013-05-15 17:50:13 -0500634#define CONFIG_SYS_FSL_ERRATUM_A006593
York Sunfb5137a2013-03-25 07:33:29 +0000635#define CONFIG_SYS_CCSRBAR_DEFAULT 0xfe000000
636#define CONFIG_SYS_FSL_PCI_VER_3_X
637
Poonam Aggrwal525ab512013-03-25 07:40:20 +0000638#elif defined(CONFIG_PPC_B4860) || defined(CONFIG_PPC_B4420)
639#define CONFIG_E6500
Poonam Aggrwal248865e2012-12-23 19:24:16 +0000640#define CONFIG_SYS_PPC64 /* 64-bit core */
641#define CONFIG_FSL_CORENET /* Freescale CoreNet platform */
642#define CONFIG_SYS_FSL_QORIQ_CHASSIS2 /* Freescale Chassis generation 2 */
643#define CONFIG_SYS_FSL_QMAN_V3 /* QMAN version 3 */
Poonam Aggrwal248865e2012-12-23 19:24:16 +0000644#define CONFIG_SYS_FSL_NUM_LAWS 32
Prabhakar Kushwaha873e9f02013-07-31 16:56:41 +0530645#define CONFIG_SYS_FSL_SRDS_1
646#define CONFIG_SYS_FSL_SRDS_2
Poonam Aggrwal248865e2012-12-23 19:24:16 +0000647#define CONFIG_SYS_FSL_SEC_COMPAT 4
648#define CONFIG_SYS_NUM_FMAN 1
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530649#define CONFIG_USB_MAX_CONTROLLER_COUNT 1
Prabhakar Kushwaha7e8382f2013-09-03 11:20:15 +0530650#define CONFIG_SYS_FM1_CLK 0
Poonam Aggrwal248865e2012-12-23 19:24:16 +0000651#define CONFIG_SYS_FSL_DDR_VER FSL_DDR_VER_4_7
Mingkai Hu6f024c92013-05-16 10:18:13 +0800652#define CONFIG_SYS_FSL_IFC_BANK_COUNT 4
Poonam Aggrwal248865e2012-12-23 19:24:16 +0000653#define CONFIG_SYS_FMAN_V3
654#define CONFIG_SYS_FM_MURAM_SIZE 0x60000
655#define CONFIG_SYS_FSL_TBCLK_DIV 16
656#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.4"
657#define CONFIG_SYS_FSL_USB1_PHY_ENABLE
658#define CONFIG_SYS_FSL_ERRATUM_A_004934
Shengzhou Liu5d9606e2013-02-27 21:56:54 +0000659#define CONFIG_SYS_FSL_ERRATUM_A005871
York Sunb1954252013-09-16 12:49:31 -0700660#define CONFIG_SYS_FSL_ERRATUM_A006379
Scott Wood3f4a5c42013-05-15 17:50:13 -0500661#define CONFIG_SYS_FSL_ERRATUM_A006593
Poonam Aggrwal248865e2012-12-23 19:24:16 +0000662#define CONFIG_SYS_CCSRBAR_DEFAULT 0xfe000000
663
Poonam Aggrwal525ab512013-03-25 07:40:20 +0000664#ifdef CONFIG_PPC_B4860
York Sunaa150bb2013-03-25 07:40:07 +0000665#define CONFIG_SYS_FSL_CORES_PER_CLUSTER 4
York Sunbcf7b3d2012-10-08 07:44:20 +0000666#define CONFIG_MAX_CPUS 4
667#define CONFIG_SYS_FSL_NUM_CC_PLLS 4
Prabhakar Kushwaha7e8382f2013-09-03 11:20:15 +0530668#define CONFIG_SYS_FSL_CLUSTER_CLOCKS { 1, 4, 4, 4 }
York Sunbcf7b3d2012-10-08 07:44:20 +0000669#define CONFIG_SYS_NUM_FM1_DTSEC 6
670#define CONFIG_SYS_NUM_FM1_10GEC 2
Poonam Aggrwal1c859552012-12-23 19:22:33 +0000671#define CONFIG_NUM_DDR_CONTROLLERS 2
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530672#define CONFIG_USB_MAX_CONTROLLER_COUNT 1
York Sunbcf7b3d2012-10-08 07:44:20 +0000673#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 2
674#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
675#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
Liu Gangbc6486a2013-06-25 18:12:13 +0800676#define CONFIG_SYS_FSL_SRIO_LIODN
Poonam Aggrwal525ab512013-03-25 07:40:20 +0000677#else
678#define CONFIG_MAX_CPUS 2
679#define CONFIG_SYS_FSL_CORES_PER_CLUSTER 2
680#define CONFIG_SYS_FSL_NUM_CC_PLLS 4
Prabhakar Kushwaha7e8382f2013-09-03 11:20:15 +0530681#define CONFIG_SYS_FSL_CLUSTER_CLOCKS { 1, 4 }
Poonam Aggrwal525ab512013-03-25 07:40:20 +0000682#define CONFIG_SYS_NUM_FM1_DTSEC 4
683#define CONFIG_SYS_NUM_FM1_10GEC 0
684#define CONFIG_NUM_DDR_CONTROLLERS 1
685#endif
York Sunbcf7b3d2012-10-08 07:44:20 +0000686
Priyanka Jain94dce8b2013-10-18 12:30:21 +0530687#elif defined(CONFIG_PPC_T1040) || defined(CONFIG_PPC_T1042) ||\
688defined(CONFIG_PPC_T1020) || defined(CONFIG_PPC_T1022)
York Sun46571362013-03-25 07:40:06 +0000689#define CONFIG_E5500
690#define CONFIG_FSL_CORENET /* Freescale CoreNet platform */
691#define CONFIG_SYS_FSL_QORIQ_CHASSIS2 /* Freescale Chassis generation 2 */
York Sunaa150bb2013-03-25 07:40:07 +0000692#define CONFIG_SYS_FSL_CORES_PER_CLUSTER 1
York Sun46571362013-03-25 07:40:06 +0000693#define CONFIG_SYS_FSL_QMAN_V3 /* QMAN version 3 */
Prabhakar Kushwaha78512532013-09-03 11:19:54 +0530694#if defined(CONFIG_PPC_T1040) || defined(CONFIG_PPC_T1042)
York Sun46571362013-03-25 07:40:06 +0000695#define CONFIG_MAX_CPUS 4
Prabhakar Kushwaha78512532013-09-03 11:19:54 +0530696#elif defined(CONFIG_PPC_T1020) || defined(CONFIG_PPC_T1022)
697#define CONFIG_MAX_CPUS 2
698#endif
699#define CONFIG_SYS_FSL_NUM_CC_PLLS 2
Prabhakar Kushwaha7e8382f2013-09-03 11:20:15 +0530700#define CONFIG_SYS_FSL_CLUSTER_CLOCKS { 1, 1, 1, 1 }
701#define CONFIG_SYS_SDHC_CLOCK 0
York Sun46571362013-03-25 07:40:06 +0000702#define CONFIG_SYS_FSL_NUM_LAWS 16
Prabhakar Kushwaha78512532013-09-03 11:19:54 +0530703#define CONFIG_SYS_FSL_SRDS_1
704#define CONFIG_SYS_FSL_SEC_COMPAT 5
York Sun46571362013-03-25 07:40:06 +0000705#define CONFIG_SYS_NUM_FMAN 1
706#define CONFIG_SYS_NUM_FM1_DTSEC 5
707#define CONFIG_NUM_DDR_CONTROLLERS 1
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530708#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
Prabhakar Kushwaha7e8382f2013-09-03 11:20:15 +0530709#define CONFIG_PME_PLAT_CLK_DIV 2
710#define CONFIG_SYS_PME_CLK CONFIG_PME_PLAT_CLK_DIV
Prabhakar Kushwaha78512532013-09-03 11:19:54 +0530711#define CONFIG_SYS_FSL_DDR_VER FSL_DDR_VER_5_0
712#define CONFIG_SYS_FSL_IFC_BANK_COUNT 8
York Sun46571362013-03-25 07:40:06 +0000713#define CONFIG_SYS_FMAN_V3
Prabhakar Kushwaha7e8382f2013-09-03 11:20:15 +0530714#define CONFIG_FM_PLAT_CLK_DIV 1
715#define CONFIG_SYS_FM1_CLK CONFIG_FM_PLAT_CLK_DIV
Prabhakar Kushwaha78512532013-09-03 11:19:54 +0530716#define CONFIG_SYS_FM_MURAM_SIZE 0x30000
Priyanka Jaine9dcaa82013-12-17 14:25:52 +0530717#define CONFIG_SYS_FSL_SINGLE_SOURCE_CLK
Prabhakar Kushwahae6066b02013-12-11 12:49:13 +0530718#define CONFIG_SYS_FSL_TBCLK_DIV 16
York Sun46571362013-03-25 07:40:06 +0000719#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.4"
York Sun46571362013-03-25 07:40:06 +0000720#define CONFIG_SYS_FSL_USB1_PHY_ENABLE
721#define CONFIG_SYS_FSL_USB2_PHY_ENABLE
722#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
723#define CONFIG_SYS_CCSRBAR_DEFAULT 0xfe000000
724
Shengzhou Liuf305cd22013-11-22 17:39:10 +0800725#elif defined(CONFIG_PPC_T2080) || defined(CONFIG_PPC_T2081)
726#define CONFIG_E6500
727#define CONFIG_SYS_PPC64 /* 64-bit core */
728#define CONFIG_FSL_CORENET /* Freescale CoreNet platform */
729#define CONFIG_SYS_FSL_QORIQ_CHASSIS2 /* Freescale Chassis generation 2 */
730#define CONFIG_SYS_FSL_CORES_PER_CLUSTER 4
731#define CONFIG_SYS_FSL_NUM_CC_PLLS 2
732#define CONFIG_SYS_FSL_QMAN_V3
733#define CONFIG_MAX_CPUS 4
734#define CONFIG_SYS_FSL_NUM_LAWS 32
735#define CONFIG_SYS_FSL_SEC_COMPAT 4
736#define CONFIG_SYS_NUM_FMAN 1
737#define CONFIG_SYS_FSL_CLUSTER_CLOCKS { 1, 4, 4, 4 }
738#define CONFIG_SYS_FSL_SRDS_1
739#define CONFIG_SYS_FSL_PCI_VER_3_X
740#if defined(CONFIG_PPC_T2080)
741#define CONFIG_SYS_NUM_FM1_DTSEC 8
742#define CONFIG_SYS_NUM_FM1_10GEC 4
743#define CONFIG_SYS_FSL_SRDS_2
744#define CONFIG_SYS_FSL_SRIO_LIODN
745#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 2
746#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
747#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
748#elif defined(CONFIG_PPC_T2081)
749#define CONFIG_SYS_NUM_FM1_DTSEC 6
750#define CONFIG_SYS_NUM_FM1_10GEC 2
751#endif
Shengzhou Liue681c622013-12-18 10:27:55 +0800752#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
Shengzhou Liuf305cd22013-11-22 17:39:10 +0800753#define CONFIG_NUM_DDR_CONTROLLERS 1
754#define CONFIG_PME_PLAT_CLK_DIV 1
755#define CONFIG_SYS_PME_CLK CONFIG_PME_PLAT_CLK_DIV
756#define CONFIG_SYS_FM1_CLK 0
757#define CONFIG_SYS_FSL_DDR_VER FSL_DDR_VER_4_7
758#define CONFIG_SYS_FSL_IFC_BANK_COUNT 8
759#define CONFIG_SYS_FMAN_V3
760#define CONFIG_SYS_FM_MURAM_SIZE 0x28000
761#define CONFIG_SYS_FSL_TBCLK_DIV 16
762#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v3.0"
763#define CONFIG_SYS_FSL_USB_DUAL_PHY_ENABLE
764#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
765#define CONFIG_SYS_CCSRBAR_DEFAULT 0xfe000000
766#define CONFIG_SYS_FSL_SFP_VER_3_0
767#define CONFIG_SYS_FSL_ISBC_VER 2
768
Mingkai Hu1a258072013-07-04 17:30:36 +0800769#elif defined(CONFIG_PPC_C29X)
770#define CONFIG_MAX_CPUS 1
771#define CONFIG_FSL_SDHC_V2_3
772#define CONFIG_SYS_FSL_NUM_LAWS 12
773#define CONFIG_SYS_PPC_E500_DEBUG_TLB 3
774#define CONFIG_TSECV2_1
775#define CONFIG_SYS_FSL_SEC_COMPAT 6
776#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
777#define CONFIG_NUM_DDR_CONTROLLERS 1
778#define CONFIG_SYS_FSL_IFC_BANK_COUNT 8
779#define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000
York Sun0cc59072013-08-20 15:09:43 -0700780#define CONFIG_SYS_FSL_ERRATUM_A005125
Mingkai Hu1a258072013-07-04 17:30:36 +0800781
Kumar Galafe137112011-01-19 03:05:26 -0600782#else
783#error Processor type not defined for this platform
784#endif
785
Timur Tabid8f341c2011-08-04 18:03:41 -0500786#ifndef CONFIG_SYS_CCSRBAR_DEFAULT
787#error "CONFIG_SYS_CCSRBAR_DEFAULT is not defined for this platform."
788#endif
789
York Sunaa150bb2013-03-25 07:40:07 +0000790#ifdef CONFIG_E6500
791#define CONFIG_SYS_FSL_THREADS_PER_CORE 2
792#else
793#define CONFIG_SYS_FSL_THREADS_PER_CORE 1
794#endif
795
York Sunf0626592013-09-30 09:22:09 -0700796#if !defined(CONFIG_SYS_FSL_DDRC_GEN1) && \
797 !defined(CONFIG_SYS_FSL_DDRC_GEN2) && \
798 !defined(CONFIG_SYS_FSL_DDRC_GEN3)
799#define CONFIG_SYS_FSL_DDRC_GEN3
800#endif
801
Kumar Galafe137112011-01-19 03:05:26 -0600802#endif /* _ASM_MPC85xx_CONFIG_H_ */