blob: 4d70259f09ba96c2af550f8499f02475d04b641e [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Kumar Galafe137112011-01-19 03:05:26 -06002/*
Prabhakar Kushwahabeebb882012-04-24 20:16:49 +00003 * Copyright 2011-2012 Freescale Semiconductor, Inc.
Kumar Galafe137112011-01-19 03:05:26 -06004 */
5
6#ifndef _ASM_MPC85xx_CONFIG_H_
7#define _ASM_MPC85xx_CONFIG_H_
8
9/* SoC specific defines for Freescale MPC85xx (PQ3) and QorIQ processors */
10
York Sunf066a042012-10-28 08:12:54 +000011/*
12 * This macro should be removed when we no longer care about backwards
13 * compatibility with older operating systems.
14 */
15#define CONFIG_PPC_SPINTABLE_COMPATIBLE
16
York Sun2896cb72014-03-27 17:54:47 -070017#include <fsl_ddrc_version.h>
York Sun7d69ea32012-10-08 07:44:22 +000018
Prabhakar Kushwaha62908c22014-01-18 12:28:30 +053019/* IP endianness */
20#define CONFIG_SYS_FSL_IFC_BE
gaurav rana9d171da2015-02-27 09:43:49 +053021#define CONFIG_SYS_FSL_SFP_BE
gaurav rana8b5ea652015-02-27 09:46:17 +053022#define CONFIG_SYS_FSL_SEC_MON_BE
Prabhakar Kushwaha62908c22014-01-18 12:28:30 +053023
York Sun6e413f52016-12-28 08:43:47 -080024#if defined(CONFIG_ARCH_MPC8548)
Liu Gang78deaa12012-03-08 00:33:14 +000025#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 1
26#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
27#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
28#define CONFIG_SYS_FSL_RMU
29#define CONFIG_SYS_FSL_SRIO_MSG_UNIT_NUM 2
Kumar Galafe137112011-01-19 03:05:26 -060030
York Suna0d4b582016-11-16 11:32:17 -080031#elif defined(CONFIG_ARCH_MPC8568)
Kumar Gala52bd8152011-01-31 23:09:25 -060032#define QE_MURAM_SIZE 0x10000UL
33#define MAX_QE_RISC 2
34#define QE_NUM_OF_SNUM 28
Liu Gang78deaa12012-03-08 00:33:14 +000035#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 1
36#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
37#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
38#define CONFIG_SYS_FSL_RMU
39#define CONFIG_SYS_FSL_SRIO_MSG_UNIT_NUM 2
Kumar Galafe137112011-01-19 03:05:26 -060040
York Sun24f88b32016-11-16 13:08:52 -080041#elif defined(CONFIG_ARCH_P1010)
Priyanka Jain02449632011-02-09 09:24:10 +053042#define CONFIG_FSL_SDHC_V2_3
Kumar Galafe137112011-01-19 03:05:26 -060043#define CONFIG_TSECV2
ramneek mehreshd04f8fe2013-10-18 17:40:17 +053044#define CONFIG_USB_MAX_CONTROLLER_COUNT 1
Mingkai Hu6f024c92013-05-16 10:18:13 +080045#define CONFIG_SYS_FSL_IFC_BANK_COUNT 4
Kumar Gala179b1b22011-05-20 00:39:21 -050046#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.2"
Ramneek Mehresh3fb68ee2011-03-23 15:20:43 +053047#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
Sriram Dash1ae7e4c2016-08-17 11:47:53 +053048#define CONFIG_SYS_FSL_USB1_PHY_ENABLE
Haijun.Zhang22e3c422014-01-10 13:52:19 +080049#define CONFIG_ESDHC_HC_BLK_ADDR
Kumar Galafe137112011-01-19 03:05:26 -060050
Kumar Galae4e69252011-02-05 13:45:07 -060051/* P1011 is single core version of P1020 */
York Sun3680e592016-11-16 15:54:15 -080052#elif defined(CONFIG_ARCH_P1011)
Kumar Galafe137112011-01-19 03:05:26 -060053#define CONFIG_TSECV2
ramneek mehreshd04f8fe2013-10-18 17:40:17 +053054#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
Kumar Galafe137112011-01-19 03:05:26 -060055
York Sunaf2dc812016-11-18 10:02:14 -080056#elif defined(CONFIG_ARCH_P1020)
Kumar Galafe137112011-01-19 03:05:26 -060057#define CONFIG_TSECV2
ramneek mehresh3ca2b9a2014-05-13 15:36:07 +053058#ifndef CONFIG_USB_MAX_CONTROLLER_COUNT
ramneek mehreshd04f8fe2013-10-18 17:40:17 +053059#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
ramneek mehresh3ca2b9a2014-05-13 15:36:07 +053060#endif
Kumar Galafe137112011-01-19 03:05:26 -060061
York Sun2f924be2016-11-18 10:59:02 -080062#elif defined(CONFIG_ARCH_P1021)
Kumar Galafe137112011-01-19 03:05:26 -060063#define CONFIG_TSECV2
Haiying Wang8cb2af72011-02-11 01:25:30 -060064#define QE_MURAM_SIZE 0x6000UL
65#define MAX_QE_RISC 1
66#define QE_NUM_OF_SNUM 28
ramneek mehreshd04f8fe2013-10-18 17:40:17 +053067#define CONFIG_USB_MAX_CONTROLLER_COUNT 1
Kumar Galafe137112011-01-19 03:05:26 -060068
York Sun08672a52016-11-16 15:23:52 -080069#elif defined(CONFIG_ARCH_P1022)
Kumar Galafe137112011-01-19 03:05:26 -060070#define CONFIG_TSECV2
Ying Zhangf81b37f2015-01-30 14:52:11 +080071#define CONFIG_USB_MAX_CONTROLLER_COUNT 1
Kumar Galafe137112011-01-19 03:05:26 -060072
York Sunfeeaae22016-11-16 15:45:31 -080073#elif defined(CONFIG_ARCH_P1023)
Roy Zang1de20b02011-02-03 22:14:19 -060074#define CONFIG_SYS_NUM_FMAN 1
75#define CONFIG_SYS_NUM_FM1_DTSEC 2
ramneek mehreshd04f8fe2013-10-18 17:40:17 +053076#define CONFIG_USB_MAX_CONTROLLER_COUNT 1
Roy Zang1de20b02011-02-03 22:14:19 -060077#define CONFIG_SYS_QMAN_NUM_PORTALS 3
78#define CONFIG_SYS_BMAN_NUM_PORTALS 3
Kumar Galad80dfe42011-02-04 00:43:34 -060079#define CONFIG_SYS_FM_MURAM_SIZE 0x10000
Kumar Gala179b1b22011-05-20 00:39:21 -050080#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.2"
Roy Zang1de20b02011-02-03 22:14:19 -060081
Kumar Galae4e69252011-02-05 13:45:07 -060082/* P1024 is lower end variant of P1020 */
York Sun76780b22016-11-18 11:00:57 -080083#elif defined(CONFIG_ARCH_P1024)
Kumar Galae4e69252011-02-05 13:45:07 -060084#define CONFIG_TSECV2
ramneek mehreshd04f8fe2013-10-18 17:40:17 +053085#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
Kumar Galae4e69252011-02-05 13:45:07 -060086
87/* P1025 is lower end variant of P1021 */
York Sun0f577972016-11-18 11:05:38 -080088#elif defined(CONFIG_ARCH_P1025)
Nikhil Badolab0e3ddb2015-05-21 09:07:53 +053089#define CONFIG_USB_MAX_CONTROLLER_COUNT 1
Kumar Galae4e69252011-02-05 13:45:07 -060090#define CONFIG_TSECV2
Haiying Wang8cb2af72011-02-11 01:25:30 -060091#define QE_MURAM_SIZE 0x6000UL
92#define MAX_QE_RISC 1
93#define QE_NUM_OF_SNUM 28
Kumar Galae4e69252011-02-05 13:45:07 -060094
York Sun4b08dd72016-11-18 11:08:43 -080095#elif defined(CONFIG_ARCH_P2020)
Liu Gang78deaa12012-03-08 00:33:14 +000096#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 2
97#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
98#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
99#define CONFIG_SYS_FSL_RMU
100#define CONFIG_SYS_FSL_SRIO_MSG_UNIT_NUM 2
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530101#define CONFIG_USB_MAX_CONTROLLER_COUNT 1
York Sun99825792014-05-23 13:15:00 -0700102
York Sun5786fca2016-11-18 11:15:21 -0800103#elif defined(CONFIG_ARCH_P2041) /* also supports P2040 */
York Sun544f8812013-06-25 11:37:39 -0700104#define CONFIG_FSL_CORENET /* Freescale CoreNet platform */
Kumar Gala3842bb52011-02-16 02:03:29 -0600105#define CONFIG_SYS_FSL_NUM_CC_PLLS 2
Kumar Gala619541b2011-05-13 01:16:07 -0500106#define CONFIG_SYS_NUM_FMAN 1
107#define CONFIG_SYS_NUM_FM1_DTSEC 5
108#define CONFIG_SYS_NUM_FM1_10GEC 1
Chris Packham476e7862020-12-03 16:24:29 +1300109#ifndef CONFIG_USB_MAX_CONTROLLER_COUNT
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530110#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
Chris Packham476e7862020-12-03 16:24:29 +1300111#endif
Kumar Gala619541b2011-05-13 01:16:07 -0500112#define CONFIG_SYS_FM_MURAM_SIZE 0x28000
113#define CONFIG_SYS_FSL_TBCLK_DIV 32
114#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.2"
115#define CONFIG_SYS_FSL_USB1_PHY_ENABLE
116#define CONFIG_SYS_FSL_USB2_PHY_ENABLE
Kumar Galaa49034f2011-04-13 00:19:10 -0500117#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
Liu Gang78deaa12012-03-08 00:33:14 +0000118#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 2
119#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
120#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
Scott Wood80806962012-08-14 10:14:53 +0000121#define CONFIG_SYS_FSL_CORENET_SNOOPVEC_COREONLY 0xf0000000
Kumar Gala619541b2011-05-13 01:16:07 -0500122
York Sundf70d062016-11-18 11:20:40 -0800123#elif defined(CONFIG_ARCH_P3041)
York Sun544f8812013-06-25 11:37:39 -0700124#define CONFIG_FSL_CORENET /* Freescale CoreNet platform */
Kumar Gala3842bb52011-02-16 02:03:29 -0600125#define CONFIG_SYS_FSL_NUM_CC_PLLS 2
Kumar Gala60d95d82011-01-25 12:42:32 -0600126#define CONFIG_SYS_NUM_FMAN 1
127#define CONFIG_SYS_NUM_FM1_DTSEC 5
128#define CONFIG_SYS_NUM_FM1_10GEC 1
Kumar Galad80dfe42011-02-04 00:43:34 -0600129#define CONFIG_SYS_FM_MURAM_SIZE 0x28000
Kumar Galaf4fb90f2011-02-18 05:40:54 -0600130#define CONFIG_SYS_FSL_TBCLK_DIV 32
Kumar Gala179b1b22011-05-20 00:39:21 -0500131#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.2"
Roy Zang6d6a0e12011-04-13 00:08:51 -0500132#define CONFIG_SYS_FSL_USB1_PHY_ENABLE
133#define CONFIG_SYS_FSL_USB2_PHY_ENABLE
Kumar Galaa49034f2011-04-13 00:19:10 -0500134#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530135#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
Liu Gang78deaa12012-03-08 00:33:14 +0000136#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 2
137#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
138#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
Scott Wood80806962012-08-14 10:14:53 +0000139#define CONFIG_SYS_FSL_CORENET_SNOOPVEC_COREONLY 0xf0000000
Kumar Galafe137112011-01-19 03:05:26 -0600140
York Sun84be8a92016-11-18 11:24:40 -0800141#elif defined(CONFIG_ARCH_P4080) /* also supports P4040 */
York Sun544f8812013-06-25 11:37:39 -0700142#define CONFIG_FSL_CORENET /* Freescale CoreNet platform */
Kumar Gala3842bb52011-02-16 02:03:29 -0600143#define CONFIG_SYS_FSL_NUM_CC_PLLS 4
Kumar Galafe137112011-01-19 03:05:26 -0600144#define CONFIG_SYS_NUM_FMAN 2
145#define CONFIG_SYS_NUM_FM1_DTSEC 4
146#define CONFIG_SYS_NUM_FM2_DTSEC 4
147#define CONFIG_SYS_NUM_FM1_10GEC 1
148#define CONFIG_SYS_NUM_FM2_10GEC 1
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530149#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
Kumar Galad80dfe42011-02-04 00:43:34 -0600150#define CONFIG_SYS_FM_MURAM_SIZE 0x28000
Kumar Galaf4fb90f2011-02-18 05:40:54 -0600151#define CONFIG_SYS_FSL_TBCLK_DIV 16
Kumar Gala179b1b22011-05-20 00:39:21 -0500152#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,p4080-pcie"
Liu Gang78deaa12012-03-08 00:33:14 +0000153#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 2
154#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
155#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
156#define CONFIG_SYS_FSL_RMU
157#define CONFIG_SYS_FSL_SRIO_MSG_UNIT_NUM 2
Scott Wood80806962012-08-14 10:14:53 +0000158#define CONFIG_SYS_FSL_CORENET_SNOOPVEC_COREONLY 0xff000000
Kumar Galafe137112011-01-19 03:05:26 -0600159
York Sun2ed73f42016-11-18 11:30:56 -0800160#elif defined(CONFIG_ARCH_P5020) /* also supports P5010 */
York Sun544f8812013-06-25 11:37:39 -0700161#define CONFIG_FSL_CORENET /* Freescale CoreNet platform */
Kumar Gala3842bb52011-02-16 02:03:29 -0600162#define CONFIG_SYS_FSL_NUM_CC_PLLS 2
Kumar Gala60d95d82011-01-25 12:42:32 -0600163#define CONFIG_SYS_NUM_FMAN 1
164#define CONFIG_SYS_NUM_FM1_DTSEC 5
165#define CONFIG_SYS_NUM_FM1_10GEC 1
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530166#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
Kumar Galad80dfe42011-02-04 00:43:34 -0600167#define CONFIG_SYS_FM_MURAM_SIZE 0x28000
Kumar Galaf4fb90f2011-02-18 05:40:54 -0600168#define CONFIG_SYS_FSL_TBCLK_DIV 32
Kumar Gala179b1b22011-05-20 00:39:21 -0500169#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.2"
Roy Zang6d6a0e12011-04-13 00:08:51 -0500170#define CONFIG_SYS_FSL_USB1_PHY_ENABLE
171#define CONFIG_SYS_FSL_USB2_PHY_ENABLE
Kumar Galaa49034f2011-04-13 00:19:10 -0500172#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
Liu Gang78deaa12012-03-08 00:33:14 +0000173#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 2
174#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
175#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
Scott Wood80806962012-08-14 10:14:53 +0000176#define CONFIG_SYS_FSL_CORENET_SNOOPVEC_COREONLY 0xc0000000
Kumar Galafe137112011-01-19 03:05:26 -0600177
York Suna3c5b662016-11-18 11:39:36 -0800178#elif defined(CONFIG_ARCH_P5040)
York Sun544f8812013-06-25 11:37:39 -0700179#define CONFIG_FSL_CORENET /* Freescale CoreNet platform */
Timur Tabid5e13882012-10-05 11:09:19 +0000180#define CONFIG_SYS_FSL_NUM_CC_PLLS 3
Timur Tabid5e13882012-10-05 11:09:19 +0000181#define CONFIG_SYS_NUM_FMAN 2
182#define CONFIG_SYS_NUM_FM1_DTSEC 5
183#define CONFIG_SYS_NUM_FM1_10GEC 1
184#define CONFIG_SYS_NUM_FM2_DTSEC 5
185#define CONFIG_SYS_NUM_FM2_10GEC 1
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530186#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
Timur Tabid5e13882012-10-05 11:09:19 +0000187#define CONFIG_SYS_FM_MURAM_SIZE 0x28000
188#define CONFIG_SYS_FSL_TBCLK_DIV 16
189#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.4"
Timur Tabid5e13882012-10-05 11:09:19 +0000190#define CONFIG_SYS_FSL_USB1_PHY_ENABLE
191#define CONFIG_SYS_FSL_USB2_PHY_ENABLE
192#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
Timur Tabid5e13882012-10-05 11:09:19 +0000193#define CONFIG_SYS_FSL_CORENET_SNOOPVEC_COREONLY 0xf0000000
194
York Suna80bdf72016-11-15 14:09:50 -0800195#elif defined(CONFIG_ARCH_BSC9131)
Prabhakar Kushwahabeebb882012-04-24 20:16:49 +0000196#define CONFIG_FSL_SDHC_V2_3
Prabhakar Kushwahabeebb882012-04-24 20:16:49 +0000197#define CONFIG_TSECV2
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530198#define CONFIG_USB_MAX_CONTROLLER_COUNT 1
Priyanka Jainf81e8b22013-04-04 09:31:54 +0530199#define CONFIG_SYS_FSL_DSP_M2_RAM_ADDR 0xb0000000
200#define CONFIG_SYS_FSL_DSP_CCSRBAR_DEFAULT 0xff600000
Mingkai Hu6f024c92013-05-16 10:18:13 +0800201#define CONFIG_SYS_FSL_IFC_BANK_COUNT 3
Prabhakar Kushwahabeebb882012-04-24 20:16:49 +0000202#define CONFIG_NAND_FSL_IFC
Haijun.Zhang22e3c422014-01-10 13:52:19 +0800203#define CONFIG_ESDHC_HC_BLK_ADDR
Prabhakar Kushwahabeebb882012-04-24 20:16:49 +0000204
York Suna80bdf72016-11-15 14:09:50 -0800205#elif defined(CONFIG_ARCH_BSC9132)
Prabhakar Kushwaha92543c22013-01-23 17:59:57 +0000206#define CONFIG_FSL_SDHC_V2_3
Prabhakar Kushwaha92543c22013-01-23 17:59:57 +0000207#define CONFIG_TSECV2
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530208#define CONFIG_USB_MAX_CONTROLLER_COUNT 1
Priyanka Jainc73b9032013-07-02 09:21:04 +0530209#define CONFIG_SYS_FSL_DSP_DDR_ADDR 0x40000000
210#define CONFIG_SYS_FSL_DSP_M2_RAM_ADDR 0xb0000000
211#define CONFIG_SYS_FSL_DSP_M3_RAM_ADDR 0xc0000000
212#define CONFIG_SYS_FSL_DSP_CCSRBAR_DEFAULT 0xff600000
York Sun84fa67e2013-04-18 19:31:01 -0700213#define CONFIG_SYS_FSL_IFC_BANK_COUNT 3
Prabhakar Kushwaha92543c22013-01-23 17:59:57 +0000214#define CONFIG_NAND_FSL_IFC
Prabhakar Kushwaha92543c22013-01-23 17:59:57 +0000215#define CONFIG_SYS_FSL_ESDHC_P1010_BROKEN_SDCLK
216#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.2"
Haijun.Zhang22e3c422014-01-10 13:52:19 +0800217#define CONFIG_ESDHC_HC_BLK_ADDR
Prabhakar Kushwaha92543c22013-01-23 17:59:57 +0000218
York Sunc1845032016-11-21 13:41:30 -0800219#elif defined(CONFIG_ARCH_T4240) || defined(CONFIG_ARCH_T4160)
York Sun9941a222012-10-08 07:44:19 +0000220#define CONFIG_FSL_CORENET /* Freescale CoreNet platform */
York Sunaa150bb2013-03-25 07:40:07 +0000221#define CONFIG_SYS_FSL_CORES_PER_CLUSTER 4
York Sun9941a222012-10-08 07:44:19 +0000222#define CONFIG_SYS_FSL_QMAN_V3 /* QMAN version 3 */
York Sun0fad3262016-11-21 13:35:41 -0800223#ifdef CONFIG_ARCH_T4240
Prabhakar Kushwaha7e8382f2013-09-03 11:20:15 +0530224#define CONFIG_SYS_FSL_CLUSTER_CLOCKS { 1, 1, 4 }
York Sun9941a222012-10-08 07:44:19 +0000225#define CONFIG_SYS_NUM_FM1_DTSEC 8
226#define CONFIG_SYS_NUM_FM1_10GEC 2
227#define CONFIG_SYS_NUM_FM2_DTSEC 8
228#define CONFIG_SYS_NUM_FM2_10GEC 2
York Sun64fd08b2013-03-25 07:40:05 +0000229#else
Shengzhou Liu26ed2d02014-04-25 16:31:22 +0800230#define CONFIG_SYS_NUM_FM1_DTSEC 6
York Sun64fd08b2013-03-25 07:40:05 +0000231#define CONFIG_SYS_NUM_FM1_10GEC 1
Shengzhou Liu26ed2d02014-04-25 16:31:22 +0800232#define CONFIG_SYS_NUM_FM2_DTSEC 8
York Sun64fd08b2013-03-25 07:40:05 +0000233#define CONFIG_SYS_NUM_FM2_10GEC 1
York Sunc7ea9242016-11-21 13:31:34 -0800234#if defined(CONFIG_ARCH_T4160)
Shengzhou Liu26ed2d02014-04-25 16:31:22 +0800235#define CONFIG_SYS_FSL_CLUSTER_CLOCKS { 1, 1 }
Shengzhou Liu26ed2d02014-04-25 16:31:22 +0800236#endif
York Sun64fd08b2013-03-25 07:40:05 +0000237#endif
York Sunfb5137a2013-03-25 07:33:29 +0000238#define CONFIG_SYS_FSL_NUM_CC_PLLS 5
Prabhakar Kushwaha873e9f02013-07-31 16:56:41 +0530239#define CONFIG_SYS_FSL_SRDS_1
240#define CONFIG_SYS_FSL_SRDS_2
York Sunfb5137a2013-03-25 07:33:29 +0000241#define CONFIG_SYS_FSL_SRDS_3
242#define CONFIG_SYS_FSL_SRDS_4
York Sunfb5137a2013-03-25 07:33:29 +0000243#define CONFIG_SYS_NUM_FMAN 2
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530244#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
Prabhakar Kushwaha7e8382f2013-09-03 11:20:15 +0530245#define CONFIG_SYS_PME_CLK 0
Mingkai Hu6f024c92013-05-16 10:18:13 +0800246#define CONFIG_SYS_FSL_IFC_BANK_COUNT 8
York Sunfb5137a2013-03-25 07:33:29 +0000247#define CONFIG_SYS_FMAN_V3
Prabhakar Kushwaha7e8382f2013-09-03 11:20:15 +0530248#define CONFIG_SYS_FM1_CLK 3
249#define CONFIG_SYS_FM2_CLK 3
York Sunfb5137a2013-03-25 07:33:29 +0000250#define CONFIG_SYS_FM_MURAM_SIZE 0x60000
251#define CONFIG_SYS_FSL_TBCLK_DIV 16
252#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v3.0"
253#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 2
254#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
255#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
Liu Gangd5eca7e2013-06-25 18:12:14 +0800256#define CONFIG_SYS_FSL_SRIO_LIODN
York Sunfb5137a2013-03-25 07:33:29 +0000257#define CONFIG_SYS_FSL_USB_DUAL_PHY_ENABLE
258#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
Shaveta Leekha7c0f5e82014-05-28 14:18:55 +0530259#define CONFIG_SYS_FSL_SFP_VER_3_0
York Sunfb5137a2013-03-25 07:33:29 +0000260#define CONFIG_SYS_FSL_PCI_VER_3_X
261
York Sunfda566d2016-11-18 11:56:57 -0800262#elif defined(CONFIG_ARCH_B4860) || defined(CONFIG_ARCH_B4420)
Poonam Aggrwal248865e2012-12-23 19:24:16 +0000263#define CONFIG_FSL_CORENET /* Freescale CoreNet platform */
Poonam Aggrwal248865e2012-12-23 19:24:16 +0000264#define CONFIG_SYS_FSL_QMAN_V3 /* QMAN version 3 */
Shaveta Leekhadbf0bc82015-01-19 12:46:54 +0530265#define CONFIG_HETROGENOUS_CLUSTERS /* DSP/SC3900 core clusters */
266#define CONFIG_PPC_CLUSTER_START 0 /*Start index of ppc clusters*/
267#define CONFIG_DSP_CLUSTER_START 1 /*Start index of dsp clusters*/
Prabhakar Kushwaha873e9f02013-07-31 16:56:41 +0530268#define CONFIG_SYS_FSL_SRDS_1
269#define CONFIG_SYS_FSL_SRDS_2
Shaveta Leekhadbf0bc82015-01-19 12:46:54 +0530270#define CONFIG_SYS_MAPLE
271#define CONFIG_SYS_CPRI
272#define CONFIG_SYS_FSL_NUM_CC_PLLS 5
Poonam Aggrwal248865e2012-12-23 19:24:16 +0000273#define CONFIG_SYS_NUM_FMAN 1
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530274#define CONFIG_USB_MAX_CONTROLLER_COUNT 1
Prabhakar Kushwaha7e8382f2013-09-03 11:20:15 +0530275#define CONFIG_SYS_FM1_CLK 0
Shaveta Leekhadbf0bc82015-01-19 12:46:54 +0530276#define CONFIG_SYS_CPRI_CLK 3
277#define CONFIG_SYS_ULB_CLK 4
278#define CONFIG_SYS_ETVPE_CLK 1
Mingkai Hu6f024c92013-05-16 10:18:13 +0800279#define CONFIG_SYS_FSL_IFC_BANK_COUNT 4
Poonam Aggrwal248865e2012-12-23 19:24:16 +0000280#define CONFIG_SYS_FMAN_V3
281#define CONFIG_SYS_FM_MURAM_SIZE 0x60000
282#define CONFIG_SYS_FSL_TBCLK_DIV 16
283#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.4"
284#define CONFIG_SYS_FSL_USB1_PHY_ENABLE
Shaveta Leekha7c0f5e82014-05-28 14:18:55 +0530285#define CONFIG_SYS_FSL_SFP_VER_3_0
Poonam Aggrwal248865e2012-12-23 19:24:16 +0000286
York Sun68eaa9a2016-11-18 11:44:43 -0800287#ifdef CONFIG_ARCH_B4860
York Sunaa150bb2013-03-25 07:40:07 +0000288#define CONFIG_SYS_FSL_CORES_PER_CLUSTER 4
Shaveta Leekhadbf0bc82015-01-19 12:46:54 +0530289#define CONFIG_MAX_DSP_CPUS 12
290#define CONFIG_NUM_DSP_CPUS 6
Shaveta Leekha0dda3982014-02-26 16:07:37 +0530291#define CONFIG_SYS_FSL_SRDS_NUM_PLLS 2
Prabhakar Kushwaha7e8382f2013-09-03 11:20:15 +0530292#define CONFIG_SYS_FSL_CLUSTER_CLOCKS { 1, 4, 4, 4 }
York Sunbcf7b3d2012-10-08 07:44:20 +0000293#define CONFIG_SYS_NUM_FM1_DTSEC 6
294#define CONFIG_SYS_NUM_FM1_10GEC 2
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530295#define CONFIG_USB_MAX_CONTROLLER_COUNT 1
York Sunbcf7b3d2012-10-08 07:44:20 +0000296#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 2
297#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
298#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
Liu Gangbc6486a2013-06-25 18:12:13 +0800299#define CONFIG_SYS_FSL_SRIO_LIODN
Poonam Aggrwal525ab512013-03-25 07:40:20 +0000300#else
Shaveta Leekhadbf0bc82015-01-19 12:46:54 +0530301#define CONFIG_MAX_DSP_CPUS 2
Shaveta Leekha0dda3982014-02-26 16:07:37 +0530302#define CONFIG_SYS_FSL_SRDS_NUM_PLLS 1
Poonam Aggrwal525ab512013-03-25 07:40:20 +0000303#define CONFIG_SYS_FSL_CORES_PER_CLUSTER 2
Prabhakar Kushwaha7e8382f2013-09-03 11:20:15 +0530304#define CONFIG_SYS_FSL_CLUSTER_CLOCKS { 1, 4 }
Poonam Aggrwal525ab512013-03-25 07:40:20 +0000305#define CONFIG_SYS_NUM_FM1_DTSEC 4
306#define CONFIG_SYS_NUM_FM1_10GEC 0
Poonam Aggrwal525ab512013-03-25 07:40:20 +0000307#endif
York Sunbcf7b3d2012-10-08 07:44:20 +0000308
York Sund7dd06c2016-12-28 08:43:32 -0800309#elif defined(CONFIG_ARCH_T1040) || defined(CONFIG_ARCH_T1042)
York Sun46571362013-03-25 07:40:06 +0000310#define CONFIG_E5500
311#define CONFIG_FSL_CORENET /* Freescale CoreNet platform */
York Sunaa150bb2013-03-25 07:40:07 +0000312#define CONFIG_SYS_FSL_CORES_PER_CLUSTER 1
York Sun46571362013-03-25 07:40:06 +0000313#define CONFIG_SYS_FSL_QMAN_V3 /* QMAN version 3 */
Prabhakar Kushwaha78512532013-09-03 11:19:54 +0530314#define CONFIG_SYS_FSL_NUM_CC_PLLS 2
Prabhakar Kushwaha7e8382f2013-09-03 11:20:15 +0530315#define CONFIG_SYS_FSL_CLUSTER_CLOCKS { 1, 1, 1, 1 }
Prabhakar Kushwaha78512532013-09-03 11:19:54 +0530316#define CONFIG_SYS_FSL_SRDS_1
York Sun46571362013-03-25 07:40:06 +0000317#define CONFIG_SYS_NUM_FMAN 1
318#define CONFIG_SYS_NUM_FM1_DTSEC 5
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530319#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
Prabhakar Kushwaha7e8382f2013-09-03 11:20:15 +0530320#define CONFIG_PME_PLAT_CLK_DIV 2
321#define CONFIG_SYS_PME_CLK CONFIG_PME_PLAT_CLK_DIV
Prabhakar Kushwaha78512532013-09-03 11:19:54 +0530322#define CONFIG_SYS_FSL_IFC_BANK_COUNT 8
York Sun46571362013-03-25 07:40:06 +0000323#define CONFIG_SYS_FMAN_V3
Prabhakar Kushwaha7e8382f2013-09-03 11:20:15 +0530324#define CONFIG_FM_PLAT_CLK_DIV 1
325#define CONFIG_SYS_FM1_CLK CONFIG_FM_PLAT_CLK_DIV
Prabhakar Kushwaha78512532013-09-03 11:19:54 +0530326#define CONFIG_SYS_FM_MURAM_SIZE 0x30000
Priyanka Jaine9dcaa82013-12-17 14:25:52 +0530327#define CONFIG_SYS_FSL_SINGLE_SOURCE_CLK
Prabhakar Kushwahae6066b02013-12-11 12:49:13 +0530328#define CONFIG_SYS_FSL_TBCLK_DIV 16
York Sun46571362013-03-25 07:40:06 +0000329#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.4"
Nikhil Badola63fcdc62014-01-27 15:21:58 +0530330#define CONFIG_SYS_FSL_USB_DUAL_PHY_ENABLE
York Sun46571362013-03-25 07:40:06 +0000331#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
Haijun.Zhangedeb83a2014-03-18 17:04:23 +0800332#define ESDHCI_QUIRK_BROKEN_TIMEOUT_VALUE
Zhao Qiangb818ba22014-03-21 16:21:45 +0800333#define QE_MURAM_SIZE 0x6000UL
334#define MAX_QE_RISC 1
335#define QE_NUM_OF_SNUM 28
gaurav ranaabfd4482015-03-26 15:52:47 +0530336#define CONFIG_SYS_FSL_SFP_VER_3_0
York Sun46571362013-03-25 07:40:06 +0000337
York Sund7dd06c2016-12-28 08:43:32 -0800338#elif defined(CONFIG_ARCH_T1024) || defined(CONFIG_ARCH_T1023)
Shengzhou Liue6fb7702014-11-24 17:11:54 +0800339#define CONFIG_E5500
340#define CONFIG_FSL_CORENET /* Freescale CoreNet platform */
Shengzhou Liue6fb7702014-11-24 17:11:54 +0800341#define CONFIG_SYS_FSL_CORES_PER_CLUSTER 1
342#define CONFIG_SYS_FSL_QMAN_V3 /* QMAN version 3 */
343#define CONFIG_SYS_FMAN_V3
Shengzhou Liue6fb7702014-11-24 17:11:54 +0800344#define CONFIG_SYS_FSL_NUM_CC_PLL 2
345#define CONFIG_SYS_FSL_CLUSTER_CLOCKS { 1, 1, 1, 1 }
Shengzhou Liue6fb7702014-11-24 17:11:54 +0800346#define CONFIG_SYS_FSL_SRDS_1
Shengzhou Liue6fb7702014-11-24 17:11:54 +0800347#define CONFIG_SYS_NUM_FMAN 1
348#define CONFIG_SYS_NUM_FM1_DTSEC 4
349#define CONFIG_SYS_NUM_FM1_10GEC 1
Shengzhou Liua1ccdff2014-11-24 17:11:57 +0800350#define CONFIG_FSL_FM_10GEC_REGULAR_NOTATION
Shengzhou Liue6fb7702014-11-24 17:11:54 +0800351#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
Shengzhou Liue6fb7702014-11-24 17:11:54 +0800352#define CONFIG_SYS_FSL_IFC_BANK_COUNT 8
353#define CONFIG_SYS_FM1_CLK 0
354#define CONFIG_QBMAN_CLK_DIV 1
355#define CONFIG_SYS_FM_MURAM_SIZE 0x30000
356#define CONFIG_SYS_FSL_SINGLE_SOURCE_CLK
357#define CONFIG_SYS_FSL_TBCLK_DIV 16
358#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.4"
359#define CONFIG_SYS_FSL_USB_DUAL_PHY_ENABLE
360#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
Shengzhou Liue6fb7702014-11-24 17:11:54 +0800361#define ESDHCI_QUIRK_BROKEN_TIMEOUT_VALUE
362#define QE_MURAM_SIZE 0x6000UL
363#define MAX_QE_RISC 1
364#define QE_NUM_OF_SNUM 28
365#define CONFIG_SYS_FSL_SFP_VER_3_0
366
York Sune20c6852016-11-21 12:54:19 -0800367#elif defined(CONFIG_ARCH_T2080) || defined(CONFIG_ARCH_T2081)
Shengzhou Liuf305cd22013-11-22 17:39:10 +0800368#define CONFIG_FSL_CORENET /* Freescale CoreNet platform */
Shengzhou Liuf305cd22013-11-22 17:39:10 +0800369#define CONFIG_SYS_FSL_CORES_PER_CLUSTER 4
370#define CONFIG_SYS_FSL_NUM_CC_PLLS 2
371#define CONFIG_SYS_FSL_QMAN_V3
Shengzhou Liuf305cd22013-11-22 17:39:10 +0800372#define CONFIG_SYS_NUM_FMAN 1
373#define CONFIG_SYS_FSL_CLUSTER_CLOCKS { 1, 4, 4, 4 }
374#define CONFIG_SYS_FSL_SRDS_1
375#define CONFIG_SYS_FSL_PCI_VER_3_X
York Sune20c6852016-11-21 12:54:19 -0800376#if defined(CONFIG_ARCH_T2080)
Shengzhou Liuf305cd22013-11-22 17:39:10 +0800377#define CONFIG_SYS_NUM_FM1_DTSEC 8
378#define CONFIG_SYS_NUM_FM1_10GEC 4
379#define CONFIG_SYS_FSL_SRDS_2
380#define CONFIG_SYS_FSL_SRIO_LIODN
381#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 2
382#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
383#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
York Sune20c6852016-11-21 12:54:19 -0800384#elif defined(CONFIG_ARCH_T2081)
Shengzhou Liuf305cd22013-11-22 17:39:10 +0800385#define CONFIG_SYS_NUM_FM1_DTSEC 6
386#define CONFIG_SYS_NUM_FM1_10GEC 2
387#endif
Shengzhou Liue681c622013-12-18 10:27:55 +0800388#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
Shengzhou Liuf305cd22013-11-22 17:39:10 +0800389#define CONFIG_PME_PLAT_CLK_DIV 1
390#define CONFIG_SYS_PME_CLK CONFIG_PME_PLAT_CLK_DIV
391#define CONFIG_SYS_FM1_CLK 0
Shengzhou Liuf305cd22013-11-22 17:39:10 +0800392#define CONFIG_SYS_FSL_IFC_BANK_COUNT 8
393#define CONFIG_SYS_FMAN_V3
394#define CONFIG_SYS_FM_MURAM_SIZE 0x28000
395#define CONFIG_SYS_FSL_TBCLK_DIV 16
396#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v3.0"
397#define CONFIG_SYS_FSL_USB_DUAL_PHY_ENABLE
398#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
Shengzhou Liuf305cd22013-11-22 17:39:10 +0800399#define CONFIG_SYS_FSL_SFP_VER_3_0
400#define CONFIG_SYS_FSL_ISBC_VER 2
Haijun.Zhangedeb83a2014-03-18 17:04:23 +0800401#define ESDHCI_QUIRK_BROKEN_TIMEOUT_VALUE
Shaveta Leekha7c0f5e82014-05-28 14:18:55 +0530402#define CONFIG_SYS_FSL_SFP_VER_3_0
Haijun.Zhangedeb83a2014-03-18 17:04:23 +0800403
Shengzhou Liuf305cd22013-11-22 17:39:10 +0800404
York Sun4119aee2016-11-15 18:44:22 -0800405#elif defined(CONFIG_ARCH_C29X)
Mingkai Hu1a258072013-07-04 17:30:36 +0800406#define CONFIG_FSL_SDHC_V2_3
Mingkai Hu1a258072013-07-04 17:30:36 +0800407#define CONFIG_TSECV2_1
Mingkai Hu1a258072013-07-04 17:30:36 +0800408#define CONFIG_SYS_FSL_IFC_BANK_COUNT 8
Alex Porosanub4848d02016-04-29 15:17:59 +0300409#define CONFIG_SYS_FSL_MAX_NUM_OF_SEC 3
410#define CONFIG_SYS_FSL_SEC_IDX_OFFSET 0x20000
Mingkai Hu1a258072013-07-04 17:30:36 +0800411
Kumar Galafe137112011-01-19 03:05:26 -0600412#endif
413
York Sun4119aee2016-11-15 18:44:22 -0800414#if !defined(CONFIG_ARCH_C29X)
Alex Porosanub4848d02016-04-29 15:17:59 +0300415#define CONFIG_SYS_FSL_MAX_NUM_OF_SEC 1
416#endif
417
Kumar Galafe137112011-01-19 03:05:26 -0600418#endif /* _ASM_MPC85xx_CONFIG_H_ */