blob: 2edf0d6f83c28da636dfdf7c7287038bd35720be [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)
Tom Rini376b88a2022-10-28 20:27:13 -040020#define CFG_SYS_FSL_SRIO_MAX_PORTS 1
21#define CFG_SYS_FSL_SRIO_OB_WIN_NUM 9
22#define CFG_SYS_FSL_SRIO_IB_WIN_NUM 5
23#define CFG_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)
Tom Rini0a2bac72022-11-16 13:10:29 -050044#define CFG_SYS_NUM_FMAN 1
45#define CFG_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)
Tom Rini376b88a2022-10-28 20:27:13 -040062#define CFG_SYS_FSL_SRIO_MAX_PORTS 2
63#define CFG_SYS_FSL_SRIO_OB_WIN_NUM 9
64#define CFG_SYS_FSL_SRIO_IB_WIN_NUM 5
65#define CFG_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 */
Tom Rini0a2bac72022-11-16 13:10:29 -050068#define CFG_SYS_NUM_FMAN 1
69#define CFG_SYS_NUM_FM1_DTSEC 5
70#define CFG_SYS_NUM_FM1_10GEC 1
Kumar Gala619541b2011-05-13 01:16:07 -050071#define CONFIG_SYS_FM_MURAM_SIZE 0x28000
Tom Rini376b88a2022-10-28 20:27:13 -040072#define CFG_SYS_FSL_SRIO_MAX_PORTS 2
73#define CFG_SYS_FSL_SRIO_OB_WIN_NUM 9
74#define CFG_SYS_FSL_SRIO_IB_WIN_NUM 5
75#define CFG_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)
Tom Rini0a2bac72022-11-16 13:10:29 -050078#define CFG_SYS_NUM_FMAN 1
79#define CFG_SYS_NUM_FM1_DTSEC 5
80#define CFG_SYS_NUM_FM1_10GEC 1
Kumar Galad80dfe42011-02-04 00:43:34 -060081#define CONFIG_SYS_FM_MURAM_SIZE 0x28000
Tom Rini376b88a2022-10-28 20:27:13 -040082#define CFG_SYS_FSL_SRIO_MAX_PORTS 2
83#define CFG_SYS_FSL_SRIO_OB_WIN_NUM 9
84#define CFG_SYS_FSL_SRIO_IB_WIN_NUM 5
85#define CFG_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 */
Tom Rini0a2bac72022-11-16 13:10:29 -050088#define CFG_SYS_NUM_FMAN 2
89#define CFG_SYS_NUM_FM1_DTSEC 4
90#define CFG_SYS_NUM_FM2_DTSEC 4
91#define CFG_SYS_NUM_FM1_10GEC 1
92#define CFG_SYS_NUM_FM2_10GEC 1
Kumar Galad80dfe42011-02-04 00:43:34 -060093#define CONFIG_SYS_FM_MURAM_SIZE 0x28000
Tom Rini376b88a2022-10-28 20:27:13 -040094#define CFG_SYS_FSL_SRIO_MAX_PORTS 2
95#define CFG_SYS_FSL_SRIO_OB_WIN_NUM 9
96#define CFG_SYS_FSL_SRIO_IB_WIN_NUM 5
97#define CFG_SYS_FSL_SRIO_MSG_UNIT_NUM 2
98#define CFG_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)
Tom Rini0a2bac72022-11-16 13:10:29 -0500101#define CFG_SYS_NUM_FMAN 2
102#define CFG_SYS_NUM_FM1_DTSEC 5
103#define CFG_SYS_NUM_FM1_10GEC 1
104#define CFG_SYS_NUM_FM2_DTSEC 5
105#define CFG_SYS_NUM_FM2_10GEC 1
Timur Tabid5e13882012-10-05 11:09:19 +0000106#define CONFIG_SYS_FM_MURAM_SIZE 0x28000
Tom Rini376b88a2022-10-28 20:27:13 -0400107#define CFG_SYS_FSL_CORENET_SNOOPVEC_COREONLY 0xf0000000
Timur Tabid5e13882012-10-05 11:09:19 +0000108
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
Tom Rini376b88a2022-10-28 20:27:13 -0400121#define CFG_SYS_FSL_CLUSTER_CLOCKS { 1, 1, 4 }
Tom Rini0a2bac72022-11-16 13:10:29 -0500122#define CFG_SYS_NUM_FM1_DTSEC 8
123#define CFG_SYS_NUM_FM1_10GEC 2
124#define CFG_SYS_NUM_FM2_DTSEC 8
125#define CFG_SYS_NUM_FM2_10GEC 2
York Sun64fd08b2013-03-25 07:40:05 +0000126#else
Tom Rini0a2bac72022-11-16 13:10:29 -0500127#define CFG_SYS_NUM_FM1_DTSEC 6
128#define CFG_SYS_NUM_FM1_10GEC 1
129#define CFG_SYS_NUM_FM2_DTSEC 8
130#define CFG_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
Tom Rini376b88a2022-10-28 20:27:13 -0400134#define CFG_SYS_FSL_SRDS_3
135#define CFG_SYS_FSL_SRDS_4
Tom Rini0a2bac72022-11-16 13:10:29 -0500136#define CFG_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
Tom Rini376b88a2022-10-28 20:27:13 -0400142#define CFG_SYS_FSL_SRIO_MAX_PORTS 2
143#define CFG_SYS_FSL_SRIO_OB_WIN_NUM 9
144#define CFG_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
Tom Rini0a2bac72022-11-16 13:10:29 -0500149#define CFG_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
Tom Rini376b88a2022-10-28 20:27:13 -0400157#define CFG_SYS_FSL_CLUSTER_CLOCKS { 1, 4, 4, 4 }
Tom Rini0a2bac72022-11-16 13:10:29 -0500158#define CFG_SYS_NUM_FM1_DTSEC 6
159#define CFG_SYS_NUM_FM1_10GEC 2
Tom Rini376b88a2022-10-28 20:27:13 -0400160#define CFG_SYS_FSL_SRIO_MAX_PORTS 2
161#define CFG_SYS_FSL_SRIO_OB_WIN_NUM 9
162#define CFG_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
Tom Rini376b88a2022-10-28 20:27:13 -0400165#define CFG_SYS_FSL_CLUSTER_CLOCKS { 1, 4 }
Tom Rini0a2bac72022-11-16 13:10:29 -0500166#define CFG_SYS_NUM_FM1_DTSEC 4
167#define CFG_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)
Tom Rini376b88a2022-10-28 20:27:13 -0400171#define CFG_SYS_FSL_CLUSTER_CLOCKS { 1, 1, 1, 1 }
Prabhakar Kushwaha78512532013-09-03 11:19:54 +0530172#define CONFIG_SYS_FSL_SRDS_1
Tom Rini0a2bac72022-11-16 13:10:29 -0500173#define CFG_SYS_NUM_FMAN 1
174#define CFG_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)
Tom Rini376b88a2022-10-28 20:27:13 -0400187#define CFG_SYS_FSL_CLUSTER_CLOCKS { 1, 1, 1, 1 }
Shengzhou Liue6fb7702014-11-24 17:11:54 +0800188#define CONFIG_SYS_FSL_SRDS_1
Tom Rini0a2bac72022-11-16 13:10:29 -0500189#define CFG_SYS_NUM_FMAN 1
190#define CFG_SYS_NUM_FM1_DTSEC 4
191#define CFG_SYS_NUM_FM1_10GEC 1
Shengzhou Liua1ccdff2014-11-24 17:11:57 +0800192#define CONFIG_FSL_FM_10GEC_REGULAR_NOTATION
Shengzhou Liue6fb7702014-11-24 17:11:54 +0800193#define CONFIG_SYS_FSL_IFC_BANK_COUNT 8
194#define CONFIG_SYS_FM1_CLK 0
195#define CONFIG_QBMAN_CLK_DIV 1
196#define CONFIG_SYS_FM_MURAM_SIZE 0x30000
Shengzhou Liue6fb7702014-11-24 17:11:54 +0800197#define ESDHCI_QUIRK_BROKEN_TIMEOUT_VALUE
198#define QE_MURAM_SIZE 0x6000UL
199#define MAX_QE_RISC 1
200#define QE_NUM_OF_SNUM 28
Shengzhou Liue6fb7702014-11-24 17:11:54 +0800201
Tom Rini3ec582b2021-02-20 20:06:21 -0500202#elif defined(CONFIG_ARCH_T2080)
Tom Rini0a2bac72022-11-16 13:10:29 -0500203#define CFG_SYS_NUM_FMAN 1
Tom Rini376b88a2022-10-28 20:27:13 -0400204#define CFG_SYS_FSL_CLUSTER_CLOCKS { 1, 4, 4, 4 }
Shengzhou Liuf305cd22013-11-22 17:39:10 +0800205#define CONFIG_SYS_FSL_SRDS_1
York Sune20c6852016-11-21 12:54:19 -0800206#if defined(CONFIG_ARCH_T2080)
Tom Rini0a2bac72022-11-16 13:10:29 -0500207#define CFG_SYS_NUM_FM1_DTSEC 8
208#define CFG_SYS_NUM_FM1_10GEC 4
Shengzhou Liuf305cd22013-11-22 17:39:10 +0800209#define CONFIG_SYS_FSL_SRDS_2
Tom Rini376b88a2022-10-28 20:27:13 -0400210#define CFG_SYS_FSL_SRIO_MAX_PORTS 2
211#define CFG_SYS_FSL_SRIO_OB_WIN_NUM 9
212#define CFG_SYS_FSL_SRIO_IB_WIN_NUM 5
Shengzhou Liuf305cd22013-11-22 17:39:10 +0800213#endif
Shengzhou Liuf305cd22013-11-22 17:39:10 +0800214#define CONFIG_PME_PLAT_CLK_DIV 1
215#define CONFIG_SYS_PME_CLK CONFIG_PME_PLAT_CLK_DIV
216#define CONFIG_SYS_FM1_CLK 0
Shengzhou Liuf305cd22013-11-22 17:39:10 +0800217#define CONFIG_SYS_FSL_IFC_BANK_COUNT 8
Shengzhou Liuf305cd22013-11-22 17:39:10 +0800218#define CONFIG_SYS_FM_MURAM_SIZE 0x28000
Haijun.Zhangedeb83a2014-03-18 17:04:23 +0800219#define ESDHCI_QUIRK_BROKEN_TIMEOUT_VALUE
220
Shengzhou Liuf305cd22013-11-22 17:39:10 +0800221
York Sun4119aee2016-11-15 18:44:22 -0800222#elif defined(CONFIG_ARCH_C29X)
Mingkai Hu1a258072013-07-04 17:30:36 +0800223#define CONFIG_FSL_SDHC_V2_3
Mingkai Hu1a258072013-07-04 17:30:36 +0800224#define CONFIG_TSECV2_1
Mingkai Hu1a258072013-07-04 17:30:36 +0800225#define CONFIG_SYS_FSL_IFC_BANK_COUNT 8
Tom Rini376b88a2022-10-28 20:27:13 -0400226#define CFG_SYS_FSL_SEC_IDX_OFFSET 0x20000
Mingkai Hu1a258072013-07-04 17:30:36 +0800227
Kumar Galafe137112011-01-19 03:05:26 -0600228#endif
229
Kumar Galafe137112011-01-19 03:05:26 -0600230#endif /* _ASM_MPC85xx_CONFIG_H_ */