blob: d3d4e9c053f4eb8ce79f5a54a32fa67f538b4415 [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
York Sun6e413f52016-12-28 08:43:47 -080019#if defined(CONFIG_ARCH_MPC8548)
Liu Gang78deaa12012-03-08 00:33:14 +000020#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 1
21#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
22#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
Liu Gang78deaa12012-03-08 00:33:14 +000023#define CONFIG_SYS_FSL_SRIO_MSG_UNIT_NUM 2
Kumar Galafe137112011-01-19 03:05:26 -060024
York Sun24f88b32016-11-16 13:08:52 -080025#elif defined(CONFIG_ARCH_P1010)
Priyanka Jain02449632011-02-09 09:24:10 +053026#define CONFIG_FSL_SDHC_V2_3
Kumar Galafe137112011-01-19 03:05:26 -060027#define CONFIG_TSECV2
Mingkai Hu6f024c92013-05-16 10:18:13 +080028#define CONFIG_SYS_FSL_IFC_BANK_COUNT 4
Kumar Galafe137112011-01-19 03:05:26 -060029
Kumar Galae4e69252011-02-05 13:45:07 -060030/* P1011 is single core version of P1020 */
York Sun3680e592016-11-16 15:54:15 -080031#elif defined(CONFIG_ARCH_P1011)
Kumar Galafe137112011-01-19 03:05:26 -060032#define CONFIG_TSECV2
Kumar Galafe137112011-01-19 03:05:26 -060033
York Sunaf2dc812016-11-18 10:02:14 -080034#elif defined(CONFIG_ARCH_P1020)
Kumar Galafe137112011-01-19 03:05:26 -060035#define CONFIG_TSECV2
Kumar Galafe137112011-01-19 03:05:26 -060036
York Sun2f924be2016-11-18 10:59:02 -080037#elif defined(CONFIG_ARCH_P1021)
Kumar Galafe137112011-01-19 03:05:26 -060038#define CONFIG_TSECV2
Haiying Wang8cb2af72011-02-11 01:25:30 -060039#define QE_MURAM_SIZE 0x6000UL
40#define MAX_QE_RISC 1
41#define QE_NUM_OF_SNUM 28
Kumar Galafe137112011-01-19 03:05:26 -060042
York Sunfeeaae22016-11-16 15:45:31 -080043#elif defined(CONFIG_ARCH_P1023)
Roy Zang1de20b02011-02-03 22:14:19 -060044#define CONFIG_SYS_NUM_FMAN 1
45#define CONFIG_SYS_NUM_FM1_DTSEC 2
Roy Zang1de20b02011-02-03 22:14:19 -060046#define CONFIG_SYS_QMAN_NUM_PORTALS 3
47#define CONFIG_SYS_BMAN_NUM_PORTALS 3
Kumar Galad80dfe42011-02-04 00:43:34 -060048#define CONFIG_SYS_FM_MURAM_SIZE 0x10000
Roy Zang1de20b02011-02-03 22:14:19 -060049
Kumar Galae4e69252011-02-05 13:45:07 -060050/* P1024 is lower end variant of P1020 */
York Sun76780b22016-11-18 11:00:57 -080051#elif defined(CONFIG_ARCH_P1024)
Kumar Galae4e69252011-02-05 13:45:07 -060052#define CONFIG_TSECV2
Kumar Galae4e69252011-02-05 13:45:07 -060053
54/* P1025 is lower end variant of P1021 */
York Sun0f577972016-11-18 11:05:38 -080055#elif defined(CONFIG_ARCH_P1025)
Kumar Galae4e69252011-02-05 13:45:07 -060056#define CONFIG_TSECV2
Haiying Wang8cb2af72011-02-11 01:25:30 -060057#define QE_MURAM_SIZE 0x6000UL
58#define MAX_QE_RISC 1
59#define QE_NUM_OF_SNUM 28
Kumar Galae4e69252011-02-05 13:45:07 -060060
York Sun4b08dd72016-11-18 11:08:43 -080061#elif defined(CONFIG_ARCH_P2020)
Liu Gang78deaa12012-03-08 00:33:14 +000062#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 2
63#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
64#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
Liu Gang78deaa12012-03-08 00:33:14 +000065#define CONFIG_SYS_FSL_SRIO_MSG_UNIT_NUM 2
York Sun99825792014-05-23 13:15:00 -070066
York Sun5786fca2016-11-18 11:15:21 -080067#elif defined(CONFIG_ARCH_P2041) /* also supports P2040 */
Kumar Gala619541b2011-05-13 01:16:07 -050068#define CONFIG_SYS_NUM_FMAN 1
69#define CONFIG_SYS_NUM_FM1_DTSEC 5
70#define CONFIG_SYS_NUM_FM1_10GEC 1
Kumar Gala619541b2011-05-13 01:16:07 -050071#define CONFIG_SYS_FM_MURAM_SIZE 0x28000
Liu Gang78deaa12012-03-08 00:33:14 +000072#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 2
73#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
74#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
Scott Wood80806962012-08-14 10:14:53 +000075#define CONFIG_SYS_FSL_CORENET_SNOOPVEC_COREONLY 0xf0000000
Kumar Gala619541b2011-05-13 01:16:07 -050076
York Sundf70d062016-11-18 11:20:40 -080077#elif defined(CONFIG_ARCH_P3041)
Kumar Gala60d95d82011-01-25 12:42:32 -060078#define CONFIG_SYS_NUM_FMAN 1
79#define CONFIG_SYS_NUM_FM1_DTSEC 5
80#define CONFIG_SYS_NUM_FM1_10GEC 1
Kumar Galad80dfe42011-02-04 00:43:34 -060081#define CONFIG_SYS_FM_MURAM_SIZE 0x28000
Liu Gang78deaa12012-03-08 00:33:14 +000082#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 2
83#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
84#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
Scott Wood80806962012-08-14 10:14:53 +000085#define CONFIG_SYS_FSL_CORENET_SNOOPVEC_COREONLY 0xf0000000
Kumar Galafe137112011-01-19 03:05:26 -060086
York Sun84be8a92016-11-18 11:24:40 -080087#elif defined(CONFIG_ARCH_P4080) /* also supports P4040 */
Kumar Galafe137112011-01-19 03:05:26 -060088#define CONFIG_SYS_NUM_FMAN 2
89#define CONFIG_SYS_NUM_FM1_DTSEC 4
90#define CONFIG_SYS_NUM_FM2_DTSEC 4
91#define CONFIG_SYS_NUM_FM1_10GEC 1
92#define CONFIG_SYS_NUM_FM2_10GEC 1
Kumar Galad80dfe42011-02-04 00:43:34 -060093#define CONFIG_SYS_FM_MURAM_SIZE 0x28000
Liu Gang78deaa12012-03-08 00:33:14 +000094#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 2
95#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
96#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
Liu Gang78deaa12012-03-08 00:33:14 +000097#define CONFIG_SYS_FSL_SRIO_MSG_UNIT_NUM 2
Scott Wood80806962012-08-14 10:14:53 +000098#define CONFIG_SYS_FSL_CORENET_SNOOPVEC_COREONLY 0xff000000
Kumar Galafe137112011-01-19 03:05:26 -060099
York Suna3c5b662016-11-18 11:39:36 -0800100#elif defined(CONFIG_ARCH_P5040)
Timur Tabid5e13882012-10-05 11:09:19 +0000101#define CONFIG_SYS_NUM_FMAN 2
102#define CONFIG_SYS_NUM_FM1_DTSEC 5
103#define CONFIG_SYS_NUM_FM1_10GEC 1
104#define CONFIG_SYS_NUM_FM2_DTSEC 5
105#define CONFIG_SYS_NUM_FM2_10GEC 1
Timur Tabid5e13882012-10-05 11:09:19 +0000106#define CONFIG_SYS_FM_MURAM_SIZE 0x28000
Timur Tabid5e13882012-10-05 11:09:19 +0000107#define CONFIG_SYS_FSL_CORENET_SNOOPVEC_COREONLY 0xf0000000
108
York Suna80bdf72016-11-15 14:09:50 -0800109#elif defined(CONFIG_ARCH_BSC9131)
Prabhakar Kushwahabeebb882012-04-24 20:16:49 +0000110#define CONFIG_FSL_SDHC_V2_3
Prabhakar Kushwahabeebb882012-04-24 20:16:49 +0000111#define CONFIG_TSECV2
Mingkai Hu6f024c92013-05-16 10:18:13 +0800112#define CONFIG_SYS_FSL_IFC_BANK_COUNT 3
Prabhakar Kushwahabeebb882012-04-24 20:16:49 +0000113
York Suna80bdf72016-11-15 14:09:50 -0800114#elif defined(CONFIG_ARCH_BSC9132)
Prabhakar Kushwaha92543c22013-01-23 17:59:57 +0000115#define CONFIG_FSL_SDHC_V2_3
Prabhakar Kushwaha92543c22013-01-23 17:59:57 +0000116#define CONFIG_TSECV2
York Sun84fa67e2013-04-18 19:31:01 -0700117#define CONFIG_SYS_FSL_IFC_BANK_COUNT 3
Prabhakar Kushwaha92543c22013-01-23 17:59:57 +0000118
Tom Rinia7ffa3d2021-05-23 10:58:05 -0400119#elif defined(CONFIG_ARCH_T4240)
York Sun0fad3262016-11-21 13:35:41 -0800120#ifdef CONFIG_ARCH_T4240
Prabhakar Kushwaha7e8382f2013-09-03 11:20:15 +0530121#define CONFIG_SYS_FSL_CLUSTER_CLOCKS { 1, 1, 4 }
York Sun9941a222012-10-08 07:44:19 +0000122#define CONFIG_SYS_NUM_FM1_DTSEC 8
123#define CONFIG_SYS_NUM_FM1_10GEC 2
124#define CONFIG_SYS_NUM_FM2_DTSEC 8
125#define CONFIG_SYS_NUM_FM2_10GEC 2
York Sun64fd08b2013-03-25 07:40:05 +0000126#else
Shengzhou Liu26ed2d02014-04-25 16:31:22 +0800127#define CONFIG_SYS_NUM_FM1_DTSEC 6
York Sun64fd08b2013-03-25 07:40:05 +0000128#define CONFIG_SYS_NUM_FM1_10GEC 1
Shengzhou Liu26ed2d02014-04-25 16:31:22 +0800129#define CONFIG_SYS_NUM_FM2_DTSEC 8
York Sun64fd08b2013-03-25 07:40:05 +0000130#define CONFIG_SYS_NUM_FM2_10GEC 1
York Sun64fd08b2013-03-25 07:40:05 +0000131#endif
Prabhakar Kushwaha873e9f02013-07-31 16:56:41 +0530132#define CONFIG_SYS_FSL_SRDS_1
133#define CONFIG_SYS_FSL_SRDS_2
York Sunfb5137a2013-03-25 07:33:29 +0000134#define CONFIG_SYS_FSL_SRDS_3
135#define CONFIG_SYS_FSL_SRDS_4
York Sunfb5137a2013-03-25 07:33:29 +0000136#define CONFIG_SYS_NUM_FMAN 2
Prabhakar Kushwaha7e8382f2013-09-03 11:20:15 +0530137#define CONFIG_SYS_PME_CLK 0
Mingkai Hu6f024c92013-05-16 10:18:13 +0800138#define CONFIG_SYS_FSL_IFC_BANK_COUNT 8
Prabhakar Kushwaha7e8382f2013-09-03 11:20:15 +0530139#define CONFIG_SYS_FM1_CLK 3
140#define CONFIG_SYS_FM2_CLK 3
York Sunfb5137a2013-03-25 07:33:29 +0000141#define CONFIG_SYS_FM_MURAM_SIZE 0x60000
York Sunfb5137a2013-03-25 07:33:29 +0000142#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 2
143#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
144#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
York Sunfb5137a2013-03-25 07:33:29 +0000145
York Sunfda566d2016-11-18 11:56:57 -0800146#elif defined(CONFIG_ARCH_B4860) || defined(CONFIG_ARCH_B4420)
Prabhakar Kushwaha873e9f02013-07-31 16:56:41 +0530147#define CONFIG_SYS_FSL_SRDS_1
148#define CONFIG_SYS_FSL_SRDS_2
Poonam Aggrwal248865e2012-12-23 19:24:16 +0000149#define CONFIG_SYS_NUM_FMAN 1
Prabhakar Kushwaha7e8382f2013-09-03 11:20:15 +0530150#define CONFIG_SYS_FM1_CLK 0
Mingkai Hu6f024c92013-05-16 10:18:13 +0800151#define CONFIG_SYS_FSL_IFC_BANK_COUNT 4
Poonam Aggrwal248865e2012-12-23 19:24:16 +0000152#define CONFIG_SYS_FM_MURAM_SIZE 0x60000
Poonam Aggrwal248865e2012-12-23 19:24:16 +0000153
York Sun68eaa9a2016-11-18 11:44:43 -0800154#ifdef CONFIG_ARCH_B4860
Shaveta Leekhadbf0bc82015-01-19 12:46:54 +0530155#define CONFIG_MAX_DSP_CPUS 12
156#define CONFIG_NUM_DSP_CPUS 6
Prabhakar Kushwaha7e8382f2013-09-03 11:20:15 +0530157#define CONFIG_SYS_FSL_CLUSTER_CLOCKS { 1, 4, 4, 4 }
York Sunbcf7b3d2012-10-08 07:44:20 +0000158#define CONFIG_SYS_NUM_FM1_DTSEC 6
159#define CONFIG_SYS_NUM_FM1_10GEC 2
York Sunbcf7b3d2012-10-08 07:44:20 +0000160#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 2
161#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
162#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
Poonam Aggrwal525ab512013-03-25 07:40:20 +0000163#else
Shaveta Leekhadbf0bc82015-01-19 12:46:54 +0530164#define CONFIG_MAX_DSP_CPUS 2
Prabhakar Kushwaha7e8382f2013-09-03 11:20:15 +0530165#define CONFIG_SYS_FSL_CLUSTER_CLOCKS { 1, 4 }
Poonam Aggrwal525ab512013-03-25 07:40:20 +0000166#define CONFIG_SYS_NUM_FM1_DTSEC 4
167#define CONFIG_SYS_NUM_FM1_10GEC 0
Poonam Aggrwal525ab512013-03-25 07:40:20 +0000168#endif
York Sunbcf7b3d2012-10-08 07:44:20 +0000169
York Sund7dd06c2016-12-28 08:43:32 -0800170#elif defined(CONFIG_ARCH_T1040) || defined(CONFIG_ARCH_T1042)
Prabhakar Kushwaha7e8382f2013-09-03 11:20:15 +0530171#define CONFIG_SYS_FSL_CLUSTER_CLOCKS { 1, 1, 1, 1 }
Prabhakar Kushwaha78512532013-09-03 11:19:54 +0530172#define CONFIG_SYS_FSL_SRDS_1
York Sun46571362013-03-25 07:40:06 +0000173#define CONFIG_SYS_NUM_FMAN 1
174#define CONFIG_SYS_NUM_FM1_DTSEC 5
Prabhakar Kushwaha7e8382f2013-09-03 11:20:15 +0530175#define CONFIG_PME_PLAT_CLK_DIV 2
176#define CONFIG_SYS_PME_CLK CONFIG_PME_PLAT_CLK_DIV
Prabhakar Kushwaha78512532013-09-03 11:19:54 +0530177#define CONFIG_SYS_FSL_IFC_BANK_COUNT 8
Prabhakar Kushwaha7e8382f2013-09-03 11:20:15 +0530178#define CONFIG_FM_PLAT_CLK_DIV 1
179#define CONFIG_SYS_FM1_CLK CONFIG_FM_PLAT_CLK_DIV
Prabhakar Kushwaha78512532013-09-03 11:19:54 +0530180#define CONFIG_SYS_FM_MURAM_SIZE 0x30000
Haijun.Zhangedeb83a2014-03-18 17:04:23 +0800181#define ESDHCI_QUIRK_BROKEN_TIMEOUT_VALUE
Zhao Qiangb818ba22014-03-21 16:21:45 +0800182#define QE_MURAM_SIZE 0x6000UL
183#define MAX_QE_RISC 1
184#define QE_NUM_OF_SNUM 28
York Sun46571362013-03-25 07:40:06 +0000185
Tom Rinib4e60262021-05-14 21:34:22 -0400186#elif defined(CONFIG_ARCH_T1024)
Shengzhou Liue6fb7702014-11-24 17:11:54 +0800187#define CONFIG_SYS_FSL_NUM_CC_PLL 2
188#define CONFIG_SYS_FSL_CLUSTER_CLOCKS { 1, 1, 1, 1 }
Shengzhou Liue6fb7702014-11-24 17:11:54 +0800189#define CONFIG_SYS_FSL_SRDS_1
Shengzhou Liue6fb7702014-11-24 17:11:54 +0800190#define CONFIG_SYS_NUM_FMAN 1
191#define CONFIG_SYS_NUM_FM1_DTSEC 4
192#define CONFIG_SYS_NUM_FM1_10GEC 1
Shengzhou Liua1ccdff2014-11-24 17:11:57 +0800193#define CONFIG_FSL_FM_10GEC_REGULAR_NOTATION
Shengzhou Liue6fb7702014-11-24 17:11:54 +0800194#define CONFIG_SYS_FSL_IFC_BANK_COUNT 8
195#define CONFIG_SYS_FM1_CLK 0
196#define CONFIG_QBMAN_CLK_DIV 1
197#define CONFIG_SYS_FM_MURAM_SIZE 0x30000
Shengzhou Liue6fb7702014-11-24 17:11:54 +0800198#define ESDHCI_QUIRK_BROKEN_TIMEOUT_VALUE
199#define QE_MURAM_SIZE 0x6000UL
200#define MAX_QE_RISC 1
201#define QE_NUM_OF_SNUM 28
Shengzhou Liue6fb7702014-11-24 17:11:54 +0800202
Tom Rini3ec582b2021-02-20 20:06:21 -0500203#elif defined(CONFIG_ARCH_T2080)
Shengzhou Liuf305cd22013-11-22 17:39:10 +0800204#define CONFIG_SYS_NUM_FMAN 1
205#define CONFIG_SYS_FSL_CLUSTER_CLOCKS { 1, 4, 4, 4 }
206#define CONFIG_SYS_FSL_SRDS_1
York Sune20c6852016-11-21 12:54:19 -0800207#if defined(CONFIG_ARCH_T2080)
Shengzhou Liuf305cd22013-11-22 17:39:10 +0800208#define CONFIG_SYS_NUM_FM1_DTSEC 8
209#define CONFIG_SYS_NUM_FM1_10GEC 4
210#define CONFIG_SYS_FSL_SRDS_2
Shengzhou Liuf305cd22013-11-22 17:39:10 +0800211#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 2
212#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9
213#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5
Shengzhou Liuf305cd22013-11-22 17:39:10 +0800214#endif
Shengzhou Liuf305cd22013-11-22 17:39:10 +0800215#define CONFIG_PME_PLAT_CLK_DIV 1
216#define CONFIG_SYS_PME_CLK CONFIG_PME_PLAT_CLK_DIV
217#define CONFIG_SYS_FM1_CLK 0
Shengzhou Liuf305cd22013-11-22 17:39:10 +0800218#define CONFIG_SYS_FSL_IFC_BANK_COUNT 8
Shengzhou Liuf305cd22013-11-22 17:39:10 +0800219#define CONFIG_SYS_FM_MURAM_SIZE 0x28000
Haijun.Zhangedeb83a2014-03-18 17:04:23 +0800220#define ESDHCI_QUIRK_BROKEN_TIMEOUT_VALUE
221
Shengzhou Liuf305cd22013-11-22 17:39:10 +0800222
York Sun4119aee2016-11-15 18:44:22 -0800223#elif defined(CONFIG_ARCH_C29X)
Mingkai Hu1a258072013-07-04 17:30:36 +0800224#define CONFIG_FSL_SDHC_V2_3
Mingkai Hu1a258072013-07-04 17:30:36 +0800225#define CONFIG_TSECV2_1
Mingkai Hu1a258072013-07-04 17:30:36 +0800226#define CONFIG_SYS_FSL_IFC_BANK_COUNT 8
Alex Porosanub4848d02016-04-29 15:17:59 +0300227#define CONFIG_SYS_FSL_SEC_IDX_OFFSET 0x20000
Mingkai Hu1a258072013-07-04 17:30:36 +0800228
Kumar Galafe137112011-01-19 03:05:26 -0600229#endif
230
Kumar Galafe137112011-01-19 03:05:26 -0600231#endif /* _ASM_MPC85xx_CONFIG_H_ */