blob: 6fd218a428120817c932c48742bea41dee2e339f [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
York Sunf066a042012-10-28 08:12:54 +000012/*
13 * This macro should be removed when we no longer care about backwards
14 * compatibility with older operating systems.
15 */
16#define CONFIG_PPC_SPINTABLE_COMPATIBLE
17
York Sun2896cb72014-03-27 17:54:47 -070018#include <fsl_ddrc_version.h>
York Sun7d69ea32012-10-08 07:44:22 +000019
Prabhakar Kushwaha62908c22014-01-18 12:28:30 +053020/* IP endianness */
21#define CONFIG_SYS_FSL_IFC_BE
gaurav rana9d171da2015-02-27 09:43:49 +053022#define CONFIG_SYS_FSL_SFP_BE
gaurav rana8b5ea652015-02-27 09:46:17 +053023#define CONFIG_SYS_FSL_SEC_MON_BE
Prabhakar Kushwaha62908c22014-01-18 12:28:30 +053024
York Sun6e413f52016-12-28 08:43:47 -080025#if defined(CONFIG_ARCH_MPC8548)
Liu Gang78deaa12012-03-08 00:33:14 +000026#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 1
27#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
28#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
29#define CONFIG_SYS_FSL_RMU
30#define CONFIG_SYS_FSL_SRIO_MSG_UNIT_NUM 2
Kumar Galafe137112011-01-19 03:05:26 -060031
York Suna0d4b582016-11-16 11:32:17 -080032#elif defined(CONFIG_ARCH_MPC8568)
Kumar Gala52bd8152011-01-31 23:09:25 -060033#define QE_MURAM_SIZE 0x10000UL
34#define MAX_QE_RISC 2
35#define QE_NUM_OF_SNUM 28
Liu Gang78deaa12012-03-08 00:33:14 +000036#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 1
37#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
38#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
39#define CONFIG_SYS_FSL_RMU
40#define CONFIG_SYS_FSL_SRIO_MSG_UNIT_NUM 2
Kumar Galafe137112011-01-19 03:05:26 -060041
York Sun317f2ff2016-11-16 11:34:52 -080042#elif defined(CONFIG_ARCH_MPC8569)
Kumar Gala52bd8152011-01-31 23:09:25 -060043#define QE_MURAM_SIZE 0x20000UL
44#define MAX_QE_RISC 4
45#define QE_NUM_OF_SNUM 46
Liu Gang78deaa12012-03-08 00:33:14 +000046#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 1
47#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
48#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
49#define CONFIG_SYS_FSL_RMU
50#define CONFIG_SYS_FSL_SRIO_MSG_UNIT_NUM 2
Kumar Galafe137112011-01-19 03:05:26 -060051
York Sun24f88b32016-11-16 13:08:52 -080052#elif defined(CONFIG_ARCH_P1010)
Priyanka Jain02449632011-02-09 09:24:10 +053053#define CONFIG_FSL_SDHC_V2_3
Kumar Galafe137112011-01-19 03:05:26 -060054#define CONFIG_TSECV2
ramneek mehreshd04f8fe2013-10-18 17:40:17 +053055#define CONFIG_USB_MAX_CONTROLLER_COUNT 1
Mingkai Hu6f024c92013-05-16 10:18:13 +080056#define CONFIG_SYS_FSL_IFC_BANK_COUNT 4
Kumar Gala179b1b22011-05-20 00:39:21 -050057#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.2"
Ramneek Mehresh3fb68ee2011-03-23 15:20:43 +053058#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
Sriram Dash1ae7e4c2016-08-17 11:47:53 +053059#define CONFIG_SYS_FSL_USB1_PHY_ENABLE
Haijun.Zhang22e3c422014-01-10 13:52:19 +080060#define CONFIG_ESDHC_HC_BLK_ADDR
Kumar Galafe137112011-01-19 03:05:26 -060061
Kumar Galae4e69252011-02-05 13:45:07 -060062/* P1011 is single core version of P1020 */
York Sun3680e592016-11-16 15:54:15 -080063#elif defined(CONFIG_ARCH_P1011)
Kumar Galafe137112011-01-19 03:05:26 -060064#define CONFIG_TSECV2
Prabhakar Kushwaha1c48e772011-02-01 15:55:58 +000065#define CONFIG_FSL_PCIE_DISABLE_ASPM
ramneek mehreshd04f8fe2013-10-18 17:40:17 +053066#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
Kumar Galafe137112011-01-19 03:05:26 -060067
York Sunaf2dc812016-11-18 10:02:14 -080068#elif defined(CONFIG_ARCH_P1020)
Kumar Galafe137112011-01-19 03:05:26 -060069#define CONFIG_TSECV2
Prabhakar Kushwaha1c48e772011-02-01 15:55:58 +000070#define CONFIG_FSL_PCIE_DISABLE_ASPM
ramneek mehresh3ca2b9a2014-05-13 15:36:07 +053071#ifndef CONFIG_USB_MAX_CONTROLLER_COUNT
ramneek mehreshd04f8fe2013-10-18 17:40:17 +053072#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
ramneek mehresh3ca2b9a2014-05-13 15:36:07 +053073#endif
Kumar Galafe137112011-01-19 03:05:26 -060074
York Sun2f924be2016-11-18 10:59:02 -080075#elif defined(CONFIG_ARCH_P1021)
Kumar Galafe137112011-01-19 03:05:26 -060076#define CONFIG_TSECV2
Prabhakar Kushwaha1c48e772011-02-01 15:55:58 +000077#define CONFIG_FSL_PCIE_DISABLE_ASPM
Haiying Wang8cb2af72011-02-11 01:25:30 -060078#define QE_MURAM_SIZE 0x6000UL
79#define MAX_QE_RISC 1
80#define QE_NUM_OF_SNUM 28
ramneek mehreshd04f8fe2013-10-18 17:40:17 +053081#define CONFIG_USB_MAX_CONTROLLER_COUNT 1
Kumar Galafe137112011-01-19 03:05:26 -060082
York Sun08672a52016-11-16 15:23:52 -080083#elif defined(CONFIG_ARCH_P1022)
Kumar Galafe137112011-01-19 03:05:26 -060084#define CONFIG_TSECV2
Ying Zhangf81b37f2015-01-30 14:52:11 +080085#define CONFIG_USB_MAX_CONTROLLER_COUNT 1
Kumar Galafe137112011-01-19 03:05:26 -060086
York Sunfeeaae22016-11-16 15:45:31 -080087#elif defined(CONFIG_ARCH_P1023)
Roy Zang1de20b02011-02-03 22:14:19 -060088#define CONFIG_SYS_NUM_FMAN 1
89#define CONFIG_SYS_NUM_FM1_DTSEC 2
ramneek mehreshd04f8fe2013-10-18 17:40:17 +053090#define CONFIG_USB_MAX_CONTROLLER_COUNT 1
Roy Zang1de20b02011-02-03 22:14:19 -060091#define CONFIG_SYS_QMAN_NUM_PORTALS 3
92#define CONFIG_SYS_BMAN_NUM_PORTALS 3
Kumar Galad80dfe42011-02-04 00:43:34 -060093#define CONFIG_SYS_FM_MURAM_SIZE 0x10000
Kumar Gala179b1b22011-05-20 00:39:21 -050094#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.2"
Roy Zang1de20b02011-02-03 22:14:19 -060095
Kumar Galae4e69252011-02-05 13:45:07 -060096/* P1024 is lower end variant of P1020 */
York Sun76780b22016-11-18 11:00:57 -080097#elif defined(CONFIG_ARCH_P1024)
Kumar Galae4e69252011-02-05 13:45:07 -060098#define CONFIG_TSECV2
99#define CONFIG_FSL_PCIE_DISABLE_ASPM
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530100#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
Kumar Galae4e69252011-02-05 13:45:07 -0600101
102/* P1025 is lower end variant of P1021 */
York Sun0f577972016-11-18 11:05:38 -0800103#elif defined(CONFIG_ARCH_P1025)
Nikhil Badolab0e3ddb2015-05-21 09:07:53 +0530104#define CONFIG_USB_MAX_CONTROLLER_COUNT 1
Kumar Galae4e69252011-02-05 13:45:07 -0600105#define CONFIG_TSECV2
106#define CONFIG_FSL_PCIE_DISABLE_ASPM
Haiying Wang8cb2af72011-02-11 01:25:30 -0600107#define QE_MURAM_SIZE 0x6000UL
108#define MAX_QE_RISC 1
109#define QE_NUM_OF_SNUM 28
Kumar Galae4e69252011-02-05 13:45:07 -0600110
York Sun4b08dd72016-11-18 11:08:43 -0800111#elif defined(CONFIG_ARCH_P2020)
Liu Gang78deaa12012-03-08 00:33:14 +0000112#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 2
113#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
114#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
115#define CONFIG_SYS_FSL_RMU
116#define CONFIG_SYS_FSL_SRIO_MSG_UNIT_NUM 2
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530117#define CONFIG_USB_MAX_CONTROLLER_COUNT 1
York Sun99825792014-05-23 13:15:00 -0700118
York Sun5786fca2016-11-18 11:15:21 -0800119#elif defined(CONFIG_ARCH_P2041) /* also supports P2040 */
York Sun544f8812013-06-25 11:37:39 -0700120#define CONFIG_FSL_CORENET /* Freescale CoreNet platform */
Kumar Gala3842bb52011-02-16 02:03:29 -0600121#define CONFIG_SYS_FSL_NUM_CC_PLLS 2
Kumar Gala619541b2011-05-13 01:16:07 -0500122#define CONFIG_SYS_NUM_FMAN 1
123#define CONFIG_SYS_NUM_FM1_DTSEC 5
124#define CONFIG_SYS_NUM_FM1_10GEC 1
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530125#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
Kumar Gala619541b2011-05-13 01:16:07 -0500126#define CONFIG_SYS_FM_MURAM_SIZE 0x28000
127#define CONFIG_SYS_FSL_TBCLK_DIV 32
128#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.2"
129#define CONFIG_SYS_FSL_USB1_PHY_ENABLE
130#define CONFIG_SYS_FSL_USB2_PHY_ENABLE
Kumar Galaa49034f2011-04-13 00:19:10 -0500131#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
Liu Gang78deaa12012-03-08 00:33:14 +0000132#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 2
133#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
134#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
Scott Wood80806962012-08-14 10:14:53 +0000135#define CONFIG_SYS_FSL_CORENET_SNOOPVEC_COREONLY 0xf0000000
Kumar Gala619541b2011-05-13 01:16:07 -0500136
York Sundf70d062016-11-18 11:20:40 -0800137#elif defined(CONFIG_ARCH_P3041)
York Sun544f8812013-06-25 11:37:39 -0700138#define CONFIG_FSL_CORENET /* Freescale CoreNet platform */
Kumar Gala3842bb52011-02-16 02:03:29 -0600139#define CONFIG_SYS_FSL_NUM_CC_PLLS 2
Kumar Gala60d95d82011-01-25 12:42:32 -0600140#define CONFIG_SYS_NUM_FMAN 1
141#define CONFIG_SYS_NUM_FM1_DTSEC 5
142#define CONFIG_SYS_NUM_FM1_10GEC 1
Kumar Galad80dfe42011-02-04 00:43:34 -0600143#define CONFIG_SYS_FM_MURAM_SIZE 0x28000
Kumar Galaf4fb90f2011-02-18 05:40:54 -0600144#define CONFIG_SYS_FSL_TBCLK_DIV 32
Kumar Gala179b1b22011-05-20 00:39:21 -0500145#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.2"
Roy Zang6d6a0e12011-04-13 00:08:51 -0500146#define CONFIG_SYS_FSL_USB1_PHY_ENABLE
147#define CONFIG_SYS_FSL_USB2_PHY_ENABLE
Kumar Galaa49034f2011-04-13 00:19:10 -0500148#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530149#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
Liu Gang78deaa12012-03-08 00:33:14 +0000150#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 2
151#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
152#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
Scott Wood80806962012-08-14 10:14:53 +0000153#define CONFIG_SYS_FSL_CORENET_SNOOPVEC_COREONLY 0xf0000000
Kumar Galafe137112011-01-19 03:05:26 -0600154
York Sun84be8a92016-11-18 11:24:40 -0800155#elif defined(CONFIG_ARCH_P4080) /* also supports P4040 */
York Sun544f8812013-06-25 11:37:39 -0700156#define CONFIG_FSL_CORENET /* Freescale CoreNet platform */
Kumar Gala3842bb52011-02-16 02:03:29 -0600157#define CONFIG_SYS_FSL_NUM_CC_PLLS 4
Kumar Galafe137112011-01-19 03:05:26 -0600158#define CONFIG_SYS_NUM_FMAN 2
159#define CONFIG_SYS_NUM_FM1_DTSEC 4
160#define CONFIG_SYS_NUM_FM2_DTSEC 4
161#define CONFIG_SYS_NUM_FM1_10GEC 1
162#define CONFIG_SYS_NUM_FM2_10GEC 1
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530163#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
Kumar Galad80dfe42011-02-04 00:43:34 -0600164#define CONFIG_SYS_FM_MURAM_SIZE 0x28000
Kumar Galaf4fb90f2011-02-18 05:40:54 -0600165#define CONFIG_SYS_FSL_TBCLK_DIV 16
Kumar Gala179b1b22011-05-20 00:39:21 -0500166#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,p4080-pcie"
Liu Gang78deaa12012-03-08 00:33:14 +0000167#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 2
168#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
169#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
170#define CONFIG_SYS_FSL_RMU
171#define CONFIG_SYS_FSL_SRIO_MSG_UNIT_NUM 2
Scott Wood80806962012-08-14 10:14:53 +0000172#define CONFIG_SYS_FSL_CORENET_SNOOPVEC_COREONLY 0xff000000
Kumar Galafe137112011-01-19 03:05:26 -0600173
York Sun2ed73f42016-11-18 11:30:56 -0800174#elif defined(CONFIG_ARCH_P5020) /* also supports P5010 */
York Sun544f8812013-06-25 11:37:39 -0700175#define CONFIG_FSL_CORENET /* Freescale CoreNet platform */
Kumar Gala3842bb52011-02-16 02:03:29 -0600176#define CONFIG_SYS_FSL_NUM_CC_PLLS 2
Kumar Gala60d95d82011-01-25 12:42:32 -0600177#define CONFIG_SYS_NUM_FMAN 1
178#define CONFIG_SYS_NUM_FM1_DTSEC 5
179#define CONFIG_SYS_NUM_FM1_10GEC 1
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530180#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
Kumar Galad80dfe42011-02-04 00:43:34 -0600181#define CONFIG_SYS_FM_MURAM_SIZE 0x28000
Kumar Galaf4fb90f2011-02-18 05:40:54 -0600182#define CONFIG_SYS_FSL_TBCLK_DIV 32
Kumar Gala179b1b22011-05-20 00:39:21 -0500183#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.2"
Roy Zang6d6a0e12011-04-13 00:08:51 -0500184#define CONFIG_SYS_FSL_USB1_PHY_ENABLE
185#define CONFIG_SYS_FSL_USB2_PHY_ENABLE
Kumar Galaa49034f2011-04-13 00:19:10 -0500186#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
Liu Gang78deaa12012-03-08 00:33:14 +0000187#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 2
188#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
189#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
Scott Wood80806962012-08-14 10:14:53 +0000190#define CONFIG_SYS_FSL_CORENET_SNOOPVEC_COREONLY 0xc0000000
Kumar Galafe137112011-01-19 03:05:26 -0600191
York Suna3c5b662016-11-18 11:39:36 -0800192#elif defined(CONFIG_ARCH_P5040)
York Sun544f8812013-06-25 11:37:39 -0700193#define CONFIG_FSL_CORENET /* Freescale CoreNet platform */
Timur Tabid5e13882012-10-05 11:09:19 +0000194#define CONFIG_SYS_FSL_NUM_CC_PLLS 3
Timur Tabid5e13882012-10-05 11:09:19 +0000195#define CONFIG_SYS_NUM_FMAN 2
196#define CONFIG_SYS_NUM_FM1_DTSEC 5
197#define CONFIG_SYS_NUM_FM1_10GEC 1
198#define CONFIG_SYS_NUM_FM2_DTSEC 5
199#define CONFIG_SYS_NUM_FM2_10GEC 1
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530200#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
Timur Tabid5e13882012-10-05 11:09:19 +0000201#define CONFIG_SYS_FM_MURAM_SIZE 0x28000
202#define CONFIG_SYS_FSL_TBCLK_DIV 16
203#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.4"
Timur Tabid5e13882012-10-05 11:09:19 +0000204#define CONFIG_SYS_FSL_USB1_PHY_ENABLE
205#define CONFIG_SYS_FSL_USB2_PHY_ENABLE
206#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
Timur Tabid5e13882012-10-05 11:09:19 +0000207#define CONFIG_SYS_FSL_CORENET_SNOOPVEC_COREONLY 0xf0000000
208
York Suna80bdf72016-11-15 14:09:50 -0800209#elif defined(CONFIG_ARCH_BSC9131)
Prabhakar Kushwahabeebb882012-04-24 20:16:49 +0000210#define CONFIG_FSL_SDHC_V2_3
Prabhakar Kushwahabeebb882012-04-24 20:16:49 +0000211#define CONFIG_TSECV2
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530212#define CONFIG_USB_MAX_CONTROLLER_COUNT 1
Priyanka Jainf81e8b22013-04-04 09:31:54 +0530213#define CONFIG_SYS_FSL_DSP_M2_RAM_ADDR 0xb0000000
214#define CONFIG_SYS_FSL_DSP_CCSRBAR_DEFAULT 0xff600000
Mingkai Hu6f024c92013-05-16 10:18:13 +0800215#define CONFIG_SYS_FSL_IFC_BANK_COUNT 3
Prabhakar Kushwahabeebb882012-04-24 20:16:49 +0000216#define CONFIG_NAND_FSL_IFC
Haijun.Zhang22e3c422014-01-10 13:52:19 +0800217#define CONFIG_ESDHC_HC_BLK_ADDR
Prabhakar Kushwahabeebb882012-04-24 20:16:49 +0000218
York Suna80bdf72016-11-15 14:09:50 -0800219#elif defined(CONFIG_ARCH_BSC9132)
Prabhakar Kushwaha92543c22013-01-23 17:59:57 +0000220#define CONFIG_FSL_SDHC_V2_3
Prabhakar Kushwaha92543c22013-01-23 17:59:57 +0000221#define CONFIG_TSECV2
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530222#define CONFIG_USB_MAX_CONTROLLER_COUNT 1
Priyanka Jainc73b9032013-07-02 09:21:04 +0530223#define CONFIG_SYS_FSL_DSP_DDR_ADDR 0x40000000
224#define CONFIG_SYS_FSL_DSP_M2_RAM_ADDR 0xb0000000
225#define CONFIG_SYS_FSL_DSP_M3_RAM_ADDR 0xc0000000
226#define CONFIG_SYS_FSL_DSP_CCSRBAR_DEFAULT 0xff600000
York Sun84fa67e2013-04-18 19:31:01 -0700227#define CONFIG_SYS_FSL_IFC_BANK_COUNT 3
Prabhakar Kushwaha92543c22013-01-23 17:59:57 +0000228#define CONFIG_NAND_FSL_IFC
Prabhakar Kushwaha92543c22013-01-23 17:59:57 +0000229#define CONFIG_SYS_FSL_ESDHC_P1010_BROKEN_SDCLK
230#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.2"
Haijun.Zhang22e3c422014-01-10 13:52:19 +0800231#define CONFIG_ESDHC_HC_BLK_ADDR
Prabhakar Kushwaha92543c22013-01-23 17:59:57 +0000232
York Sunc1845032016-11-21 13:41:30 -0800233#elif defined(CONFIG_ARCH_T4240) || defined(CONFIG_ARCH_T4160)
York Sun9941a222012-10-08 07:44:19 +0000234#define CONFIG_FSL_CORENET /* Freescale CoreNet platform */
York Sunaa150bb2013-03-25 07:40:07 +0000235#define CONFIG_SYS_FSL_CORES_PER_CLUSTER 4
York Sun9941a222012-10-08 07:44:19 +0000236#define CONFIG_SYS_FSL_QMAN_V3 /* QMAN version 3 */
York Sun0fad3262016-11-21 13:35:41 -0800237#ifdef CONFIG_ARCH_T4240
Prabhakar Kushwaha7e8382f2013-09-03 11:20:15 +0530238#define CONFIG_SYS_FSL_CLUSTER_CLOCKS { 1, 1, 4 }
York Sun9941a222012-10-08 07:44:19 +0000239#define CONFIG_SYS_NUM_FM1_DTSEC 8
240#define CONFIG_SYS_NUM_FM1_10GEC 2
241#define CONFIG_SYS_NUM_FM2_DTSEC 8
242#define CONFIG_SYS_NUM_FM2_10GEC 2
York Sun64fd08b2013-03-25 07:40:05 +0000243#else
Shengzhou Liu26ed2d02014-04-25 16:31:22 +0800244#define CONFIG_SYS_NUM_FM1_DTSEC 6
York Sun64fd08b2013-03-25 07:40:05 +0000245#define CONFIG_SYS_NUM_FM1_10GEC 1
Shengzhou Liu26ed2d02014-04-25 16:31:22 +0800246#define CONFIG_SYS_NUM_FM2_DTSEC 8
York Sun64fd08b2013-03-25 07:40:05 +0000247#define CONFIG_SYS_NUM_FM2_10GEC 1
York Sunc7ea9242016-11-21 13:31:34 -0800248#if defined(CONFIG_ARCH_T4160)
Shengzhou Liu26ed2d02014-04-25 16:31:22 +0800249#define CONFIG_SYS_FSL_CLUSTER_CLOCKS { 1, 1 }
Shengzhou Liu26ed2d02014-04-25 16:31:22 +0800250#endif
York Sun64fd08b2013-03-25 07:40:05 +0000251#endif
York Sunfb5137a2013-03-25 07:33:29 +0000252#define CONFIG_SYS_FSL_NUM_CC_PLLS 5
Prabhakar Kushwaha873e9f02013-07-31 16:56:41 +0530253#define CONFIG_SYS_FSL_SRDS_1
254#define CONFIG_SYS_FSL_SRDS_2
York Sunfb5137a2013-03-25 07:33:29 +0000255#define CONFIG_SYS_FSL_SRDS_3
256#define CONFIG_SYS_FSL_SRDS_4
York Sunfb5137a2013-03-25 07:33:29 +0000257#define CONFIG_SYS_NUM_FMAN 2
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530258#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
Prabhakar Kushwaha7e8382f2013-09-03 11:20:15 +0530259#define CONFIG_SYS_PME_CLK 0
Mingkai Hu6f024c92013-05-16 10:18:13 +0800260#define CONFIG_SYS_FSL_IFC_BANK_COUNT 8
York Sunfb5137a2013-03-25 07:33:29 +0000261#define CONFIG_SYS_FMAN_V3
Prabhakar Kushwaha7e8382f2013-09-03 11:20:15 +0530262#define CONFIG_SYS_FM1_CLK 3
263#define CONFIG_SYS_FM2_CLK 3
York Sunfb5137a2013-03-25 07:33:29 +0000264#define CONFIG_SYS_FM_MURAM_SIZE 0x60000
265#define CONFIG_SYS_FSL_TBCLK_DIV 16
266#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v3.0"
267#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 2
268#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
269#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
Liu Gangd5eca7e2013-06-25 18:12:14 +0800270#define CONFIG_SYS_FSL_SRIO_LIODN
York Sunfb5137a2013-03-25 07:33:29 +0000271#define CONFIG_SYS_FSL_USB_DUAL_PHY_ENABLE
272#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
Shaveta Leekha7c0f5e82014-05-28 14:18:55 +0530273#define CONFIG_SYS_FSL_SFP_VER_3_0
York Sunfb5137a2013-03-25 07:33:29 +0000274#define CONFIG_SYS_FSL_PCI_VER_3_X
275
York Sunfda566d2016-11-18 11:56:57 -0800276#elif defined(CONFIG_ARCH_B4860) || defined(CONFIG_ARCH_B4420)
Poonam Aggrwal248865e2012-12-23 19:24:16 +0000277#define CONFIG_FSL_CORENET /* Freescale CoreNet platform */
Poonam Aggrwal248865e2012-12-23 19:24:16 +0000278#define CONFIG_SYS_FSL_QMAN_V3 /* QMAN version 3 */
Shaveta Leekhadbf0bc82015-01-19 12:46:54 +0530279#define CONFIG_HETROGENOUS_CLUSTERS /* DSP/SC3900 core clusters */
280#define CONFIG_PPC_CLUSTER_START 0 /*Start index of ppc clusters*/
281#define CONFIG_DSP_CLUSTER_START 1 /*Start index of dsp clusters*/
Prabhakar Kushwaha873e9f02013-07-31 16:56:41 +0530282#define CONFIG_SYS_FSL_SRDS_1
283#define CONFIG_SYS_FSL_SRDS_2
Shaveta Leekhadbf0bc82015-01-19 12:46:54 +0530284#define CONFIG_SYS_MAPLE
285#define CONFIG_SYS_CPRI
286#define CONFIG_SYS_FSL_NUM_CC_PLLS 5
Poonam Aggrwal248865e2012-12-23 19:24:16 +0000287#define CONFIG_SYS_NUM_FMAN 1
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530288#define CONFIG_USB_MAX_CONTROLLER_COUNT 1
Prabhakar Kushwaha7e8382f2013-09-03 11:20:15 +0530289#define CONFIG_SYS_FM1_CLK 0
Shaveta Leekhadbf0bc82015-01-19 12:46:54 +0530290#define CONFIG_SYS_CPRI_CLK 3
291#define CONFIG_SYS_ULB_CLK 4
292#define CONFIG_SYS_ETVPE_CLK 1
Mingkai Hu6f024c92013-05-16 10:18:13 +0800293#define CONFIG_SYS_FSL_IFC_BANK_COUNT 4
Poonam Aggrwal248865e2012-12-23 19:24:16 +0000294#define CONFIG_SYS_FMAN_V3
295#define CONFIG_SYS_FM_MURAM_SIZE 0x60000
296#define CONFIG_SYS_FSL_TBCLK_DIV 16
297#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.4"
298#define CONFIG_SYS_FSL_USB1_PHY_ENABLE
Shaveta Leekha7c0f5e82014-05-28 14:18:55 +0530299#define CONFIG_SYS_FSL_SFP_VER_3_0
Poonam Aggrwal248865e2012-12-23 19:24:16 +0000300
York Sun68eaa9a2016-11-18 11:44:43 -0800301#ifdef CONFIG_ARCH_B4860
York Sunaa150bb2013-03-25 07:40:07 +0000302#define CONFIG_SYS_FSL_CORES_PER_CLUSTER 4
Shaveta Leekhadbf0bc82015-01-19 12:46:54 +0530303#define CONFIG_MAX_DSP_CPUS 12
304#define CONFIG_NUM_DSP_CPUS 6
Shaveta Leekha0dda3982014-02-26 16:07:37 +0530305#define CONFIG_SYS_FSL_SRDS_NUM_PLLS 2
Prabhakar Kushwaha7e8382f2013-09-03 11:20:15 +0530306#define CONFIG_SYS_FSL_CLUSTER_CLOCKS { 1, 4, 4, 4 }
York Sunbcf7b3d2012-10-08 07:44:20 +0000307#define CONFIG_SYS_NUM_FM1_DTSEC 6
308#define CONFIG_SYS_NUM_FM1_10GEC 2
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530309#define CONFIG_USB_MAX_CONTROLLER_COUNT 1
York Sunbcf7b3d2012-10-08 07:44:20 +0000310#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 2
311#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
312#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
Liu Gangbc6486a2013-06-25 18:12:13 +0800313#define CONFIG_SYS_FSL_SRIO_LIODN
Poonam Aggrwal525ab512013-03-25 07:40:20 +0000314#else
Shaveta Leekhadbf0bc82015-01-19 12:46:54 +0530315#define CONFIG_MAX_DSP_CPUS 2
Shaveta Leekha0dda3982014-02-26 16:07:37 +0530316#define CONFIG_SYS_FSL_SRDS_NUM_PLLS 1
Poonam Aggrwal525ab512013-03-25 07:40:20 +0000317#define CONFIG_SYS_FSL_CORES_PER_CLUSTER 2
Prabhakar Kushwaha7e8382f2013-09-03 11:20:15 +0530318#define CONFIG_SYS_FSL_CLUSTER_CLOCKS { 1, 4 }
Poonam Aggrwal525ab512013-03-25 07:40:20 +0000319#define CONFIG_SYS_NUM_FM1_DTSEC 4
320#define CONFIG_SYS_NUM_FM1_10GEC 0
Poonam Aggrwal525ab512013-03-25 07:40:20 +0000321#endif
York Sunbcf7b3d2012-10-08 07:44:20 +0000322
York Sund7dd06c2016-12-28 08:43:32 -0800323#elif defined(CONFIG_ARCH_T1040) || defined(CONFIG_ARCH_T1042)
York Sun46571362013-03-25 07:40:06 +0000324#define CONFIG_E5500
325#define CONFIG_FSL_CORENET /* Freescale CoreNet platform */
York Sunaa150bb2013-03-25 07:40:07 +0000326#define CONFIG_SYS_FSL_CORES_PER_CLUSTER 1
York Sun46571362013-03-25 07:40:06 +0000327#define CONFIG_SYS_FSL_QMAN_V3 /* QMAN version 3 */
Prabhakar Kushwaha78512532013-09-03 11:19:54 +0530328#define CONFIG_SYS_FSL_NUM_CC_PLLS 2
Prabhakar Kushwaha7e8382f2013-09-03 11:20:15 +0530329#define CONFIG_SYS_FSL_CLUSTER_CLOCKS { 1, 1, 1, 1 }
Prabhakar Kushwaha78512532013-09-03 11:19:54 +0530330#define CONFIG_SYS_FSL_SRDS_1
York Sun46571362013-03-25 07:40:06 +0000331#define CONFIG_SYS_NUM_FMAN 1
332#define CONFIG_SYS_NUM_FM1_DTSEC 5
ramneek mehreshd04f8fe2013-10-18 17:40:17 +0530333#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
Prabhakar Kushwaha7e8382f2013-09-03 11:20:15 +0530334#define CONFIG_PME_PLAT_CLK_DIV 2
335#define CONFIG_SYS_PME_CLK CONFIG_PME_PLAT_CLK_DIV
Prabhakar Kushwaha78512532013-09-03 11:19:54 +0530336#define CONFIG_SYS_FSL_IFC_BANK_COUNT 8
York Sun46571362013-03-25 07:40:06 +0000337#define CONFIG_SYS_FMAN_V3
Prabhakar Kushwaha7e8382f2013-09-03 11:20:15 +0530338#define CONFIG_FM_PLAT_CLK_DIV 1
339#define CONFIG_SYS_FM1_CLK CONFIG_FM_PLAT_CLK_DIV
Yangbo Lu163beec2015-04-22 13:57:40 +0800340#define CONFIG_SYS_SDHC_CLK 0/* Select SDHC CLK begining from PLL1
341 per rcw field value */
342#define CONFIG_SYS_SDHC_CLK_2_PLL /* Select SDHC CLK from 2 PLLs */
Prabhakar Kushwaha78512532013-09-03 11:19:54 +0530343#define CONFIG_SYS_FM_MURAM_SIZE 0x30000
Priyanka Jaine9dcaa82013-12-17 14:25:52 +0530344#define CONFIG_SYS_FSL_SINGLE_SOURCE_CLK
Prabhakar Kushwahae6066b02013-12-11 12:49:13 +0530345#define CONFIG_SYS_FSL_TBCLK_DIV 16
York Sun46571362013-03-25 07:40:06 +0000346#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.4"
Nikhil Badola63fcdc62014-01-27 15:21:58 +0530347#define CONFIG_SYS_FSL_USB_DUAL_PHY_ENABLE
York Sun46571362013-03-25 07:40:06 +0000348#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
Haijun.Zhangedeb83a2014-03-18 17:04:23 +0800349#define ESDHCI_QUIRK_BROKEN_TIMEOUT_VALUE
Zhao Qiangb818ba22014-03-21 16:21:45 +0800350#define QE_MURAM_SIZE 0x6000UL
351#define MAX_QE_RISC 1
352#define QE_NUM_OF_SNUM 28
gaurav ranaabfd4482015-03-26 15:52:47 +0530353#define CONFIG_SYS_FSL_SFP_VER_3_0
York Sun46571362013-03-25 07:40:06 +0000354
York Sund7dd06c2016-12-28 08:43:32 -0800355#elif defined(CONFIG_ARCH_T1024) || defined(CONFIG_ARCH_T1023)
Shengzhou Liue6fb7702014-11-24 17:11:54 +0800356#define CONFIG_E5500
357#define CONFIG_FSL_CORENET /* Freescale CoreNet platform */
Shengzhou Liue6fb7702014-11-24 17:11:54 +0800358#define CONFIG_SYS_FSL_CORES_PER_CLUSTER 1
359#define CONFIG_SYS_FSL_QMAN_V3 /* QMAN version 3 */
360#define CONFIG_SYS_FMAN_V3
Shengzhou Liue6fb7702014-11-24 17:11:54 +0800361#define CONFIG_SYS_FSL_NUM_CC_PLL 2
362#define CONFIG_SYS_FSL_CLUSTER_CLOCKS { 1, 1, 1, 1 }
Shengzhou Liue6fb7702014-11-24 17:11:54 +0800363#define CONFIG_SYS_FSL_SRDS_1
Shengzhou Liue6fb7702014-11-24 17:11:54 +0800364#define CONFIG_SYS_NUM_FMAN 1
365#define CONFIG_SYS_NUM_FM1_DTSEC 4
366#define CONFIG_SYS_NUM_FM1_10GEC 1
Shengzhou Liua1ccdff2014-11-24 17:11:57 +0800367#define CONFIG_FSL_FM_10GEC_REGULAR_NOTATION
Shengzhou Liue6fb7702014-11-24 17:11:54 +0800368#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
Shengzhou Liue6fb7702014-11-24 17:11:54 +0800369#define CONFIG_SYS_FSL_IFC_BANK_COUNT 8
370#define CONFIG_SYS_FM1_CLK 0
Yangbo Lu163beec2015-04-22 13:57:40 +0800371#define CONFIG_SYS_SDHC_CLK 0/* Select SDHC CLK begining from PLL1
372 per rcw field value */
Shengzhou Liue6fb7702014-11-24 17:11:54 +0800373#define CONFIG_QBMAN_CLK_DIV 1
374#define CONFIG_SYS_FM_MURAM_SIZE 0x30000
375#define CONFIG_SYS_FSL_SINGLE_SOURCE_CLK
376#define CONFIG_SYS_FSL_TBCLK_DIV 16
377#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.4"
378#define CONFIG_SYS_FSL_USB_DUAL_PHY_ENABLE
379#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
Shengzhou Liue6fb7702014-11-24 17:11:54 +0800380#define ESDHCI_QUIRK_BROKEN_TIMEOUT_VALUE
381#define QE_MURAM_SIZE 0x6000UL
382#define MAX_QE_RISC 1
383#define QE_NUM_OF_SNUM 28
384#define CONFIG_SYS_FSL_SFP_VER_3_0
385
York Sune20c6852016-11-21 12:54:19 -0800386#elif defined(CONFIG_ARCH_T2080) || defined(CONFIG_ARCH_T2081)
Shengzhou Liuf305cd22013-11-22 17:39:10 +0800387#define CONFIG_FSL_CORENET /* Freescale CoreNet platform */
Shengzhou Liuf305cd22013-11-22 17:39:10 +0800388#define CONFIG_SYS_FSL_CORES_PER_CLUSTER 4
389#define CONFIG_SYS_FSL_NUM_CC_PLLS 2
390#define CONFIG_SYS_FSL_QMAN_V3
Shengzhou Liuf305cd22013-11-22 17:39:10 +0800391#define CONFIG_SYS_NUM_FMAN 1
392#define CONFIG_SYS_FSL_CLUSTER_CLOCKS { 1, 4, 4, 4 }
393#define CONFIG_SYS_FSL_SRDS_1
394#define CONFIG_SYS_FSL_PCI_VER_3_X
York Sune20c6852016-11-21 12:54:19 -0800395#if defined(CONFIG_ARCH_T2080)
Shengzhou Liuf305cd22013-11-22 17:39:10 +0800396#define CONFIG_SYS_NUM_FM1_DTSEC 8
397#define CONFIG_SYS_NUM_FM1_10GEC 4
398#define CONFIG_SYS_FSL_SRDS_2
399#define CONFIG_SYS_FSL_SRIO_LIODN
400#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 2
401#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
402#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
York Sune20c6852016-11-21 12:54:19 -0800403#elif defined(CONFIG_ARCH_T2081)
Shengzhou Liuf305cd22013-11-22 17:39:10 +0800404#define CONFIG_SYS_NUM_FM1_DTSEC 6
405#define CONFIG_SYS_NUM_FM1_10GEC 2
406#endif
Shengzhou Liue681c622013-12-18 10:27:55 +0800407#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
Shengzhou Liuf305cd22013-11-22 17:39:10 +0800408#define CONFIG_PME_PLAT_CLK_DIV 1
409#define CONFIG_SYS_PME_CLK CONFIG_PME_PLAT_CLK_DIV
410#define CONFIG_SYS_FM1_CLK 0
Yangbo Lu163beec2015-04-22 13:57:40 +0800411#define CONFIG_SYS_SDHC_CLK 1/* Select SDHC CLK begining from PLL2
412 per rcw field value */
413#define CONFIG_SYS_SDHC_CLK_2_PLL /* Select SDHC CLK from 2 PLLs */
Shengzhou Liuf305cd22013-11-22 17:39:10 +0800414#define CONFIG_SYS_FSL_IFC_BANK_COUNT 8
415#define CONFIG_SYS_FMAN_V3
416#define CONFIG_SYS_FM_MURAM_SIZE 0x28000
417#define CONFIG_SYS_FSL_TBCLK_DIV 16
418#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v3.0"
419#define CONFIG_SYS_FSL_USB_DUAL_PHY_ENABLE
420#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
Shengzhou Liuf305cd22013-11-22 17:39:10 +0800421#define CONFIG_SYS_FSL_SFP_VER_3_0
422#define CONFIG_SYS_FSL_ISBC_VER 2
Haijun.Zhangedeb83a2014-03-18 17:04:23 +0800423#define ESDHCI_QUIRK_BROKEN_TIMEOUT_VALUE
Shaveta Leekha7c0f5e82014-05-28 14:18:55 +0530424#define CONFIG_SYS_FSL_SFP_VER_3_0
Haijun.Zhangedeb83a2014-03-18 17:04:23 +0800425
Shengzhou Liuf305cd22013-11-22 17:39:10 +0800426
York Sun4119aee2016-11-15 18:44:22 -0800427#elif defined(CONFIG_ARCH_C29X)
Mingkai Hu1a258072013-07-04 17:30:36 +0800428#define CONFIG_FSL_SDHC_V2_3
Mingkai Hu1a258072013-07-04 17:30:36 +0800429#define CONFIG_TSECV2_1
Mingkai Hu1a258072013-07-04 17:30:36 +0800430#define CONFIG_SYS_FSL_IFC_BANK_COUNT 8
Alex Porosanub4848d02016-04-29 15:17:59 +0300431#define CONFIG_SYS_FSL_MAX_NUM_OF_SEC 3
432#define CONFIG_SYS_FSL_SEC_IDX_OFFSET 0x20000
Mingkai Hu1a258072013-07-04 17:30:36 +0800433
Kumar Galafe137112011-01-19 03:05:26 -0600434#endif
435
York Sun4119aee2016-11-15 18:44:22 -0800436#if !defined(CONFIG_ARCH_C29X)
Alex Porosanub4848d02016-04-29 15:17:59 +0300437#define CONFIG_SYS_FSL_MAX_NUM_OF_SEC 1
438#endif
439
Kumar Galafe137112011-01-19 03:05:26 -0600440#endif /* _ASM_MPC85xx_CONFIG_H_ */