blob: 246bcb9fe498b78dc5dc7d91a9b21c9e533c72b4 [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 Sun2896cb72014-03-27 17:54:47 -070011#include <fsl_ddrc_version.h>
York Sun7d69ea32012-10-08 07:44:22 +000012
York Sun6e413f52016-12-28 08:43:47 -080013#if defined(CONFIG_ARCH_MPC8548)
Tom Rini376b88a2022-10-28 20:27:13 -040014#define CFG_SYS_FSL_SRIO_MAX_PORTS 1
15#define CFG_SYS_FSL_SRIO_OB_WIN_NUM 9
16#define CFG_SYS_FSL_SRIO_IB_WIN_NUM 5
17#define CFG_SYS_FSL_SRIO_MSG_UNIT_NUM 2
Kumar Galafe137112011-01-19 03:05:26 -060018
York Sun24f88b32016-11-16 13:08:52 -080019#elif defined(CONFIG_ARCH_P1010)
Mingkai Hu6f024c92013-05-16 10:18:13 +080020#define CONFIG_SYS_FSL_IFC_BANK_COUNT 4
Kumar Galafe137112011-01-19 03:05:26 -060021
York Sun2f924be2016-11-18 10:59:02 -080022#elif defined(CONFIG_ARCH_P1021)
Haiying Wang8cb2af72011-02-11 01:25:30 -060023#define QE_MURAM_SIZE 0x6000UL
24#define MAX_QE_RISC 1
25#define QE_NUM_OF_SNUM 28
Kumar Galafe137112011-01-19 03:05:26 -060026
York Sunfeeaae22016-11-16 15:45:31 -080027#elif defined(CONFIG_ARCH_P1023)
Tom Rini0a2bac72022-11-16 13:10:29 -050028#define CFG_SYS_NUM_FMAN 1
29#define CFG_SYS_NUM_FM1_DTSEC 2
Tom Rini6a5dccc2022-11-16 13:10:41 -050030#define CFG_SYS_QMAN_NUM_PORTALS 3
31#define CFG_SYS_BMAN_NUM_PORTALS 3
32#define CFG_SYS_FM_MURAM_SIZE 0x10000
Roy Zang1de20b02011-02-03 22:14:19 -060033
Kumar Galae4e69252011-02-05 13:45:07 -060034/* P1025 is lower end variant of P1021 */
York Sun0f577972016-11-18 11:05:38 -080035#elif defined(CONFIG_ARCH_P1025)
Haiying Wang8cb2af72011-02-11 01:25:30 -060036#define QE_MURAM_SIZE 0x6000UL
37#define MAX_QE_RISC 1
38#define QE_NUM_OF_SNUM 28
Kumar Galae4e69252011-02-05 13:45:07 -060039
York Sun4b08dd72016-11-18 11:08:43 -080040#elif defined(CONFIG_ARCH_P2020)
Tom Rini376b88a2022-10-28 20:27:13 -040041#define CFG_SYS_FSL_SRIO_MAX_PORTS 2
42#define CFG_SYS_FSL_SRIO_OB_WIN_NUM 9
43#define CFG_SYS_FSL_SRIO_IB_WIN_NUM 5
44#define CFG_SYS_FSL_SRIO_MSG_UNIT_NUM 2
York Sun99825792014-05-23 13:15:00 -070045
York Sun5786fca2016-11-18 11:15:21 -080046#elif defined(CONFIG_ARCH_P2041) /* also supports P2040 */
Tom Rini0a2bac72022-11-16 13:10:29 -050047#define CFG_SYS_NUM_FMAN 1
48#define CFG_SYS_NUM_FM1_DTSEC 5
49#define CFG_SYS_NUM_FM1_10GEC 1
Tom Rini6a5dccc2022-11-16 13:10:41 -050050#define CFG_SYS_FM_MURAM_SIZE 0x28000
Tom Rini376b88a2022-10-28 20:27:13 -040051#define CFG_SYS_FSL_SRIO_MAX_PORTS 2
52#define CFG_SYS_FSL_SRIO_OB_WIN_NUM 9
53#define CFG_SYS_FSL_SRIO_IB_WIN_NUM 5
54#define CFG_SYS_FSL_CORENET_SNOOPVEC_COREONLY 0xf0000000
Kumar Gala619541b2011-05-13 01:16:07 -050055
York Sundf70d062016-11-18 11:20:40 -080056#elif defined(CONFIG_ARCH_P3041)
Tom Rini0a2bac72022-11-16 13:10:29 -050057#define CFG_SYS_NUM_FMAN 1
58#define CFG_SYS_NUM_FM1_DTSEC 5
59#define CFG_SYS_NUM_FM1_10GEC 1
Tom Rini6a5dccc2022-11-16 13:10:41 -050060#define CFG_SYS_FM_MURAM_SIZE 0x28000
Tom Rini376b88a2022-10-28 20:27:13 -040061#define CFG_SYS_FSL_SRIO_MAX_PORTS 2
62#define CFG_SYS_FSL_SRIO_OB_WIN_NUM 9
63#define CFG_SYS_FSL_SRIO_IB_WIN_NUM 5
64#define CFG_SYS_FSL_CORENET_SNOOPVEC_COREONLY 0xf0000000
Kumar Galafe137112011-01-19 03:05:26 -060065
York Sun84be8a92016-11-18 11:24:40 -080066#elif defined(CONFIG_ARCH_P4080) /* also supports P4040 */
Tom Rini0a2bac72022-11-16 13:10:29 -050067#define CFG_SYS_NUM_FMAN 2
68#define CFG_SYS_NUM_FM1_DTSEC 4
69#define CFG_SYS_NUM_FM2_DTSEC 4
70#define CFG_SYS_NUM_FM1_10GEC 1
71#define CFG_SYS_NUM_FM2_10GEC 1
Tom Rini6a5dccc2022-11-16 13:10:41 -050072#define CFG_SYS_FM_MURAM_SIZE 0x28000
Tom Rini376b88a2022-10-28 20:27:13 -040073#define CFG_SYS_FSL_SRIO_MAX_PORTS 2
74#define CFG_SYS_FSL_SRIO_OB_WIN_NUM 9
75#define CFG_SYS_FSL_SRIO_IB_WIN_NUM 5
76#define CFG_SYS_FSL_SRIO_MSG_UNIT_NUM 2
77#define CFG_SYS_FSL_CORENET_SNOOPVEC_COREONLY 0xff000000
Kumar Galafe137112011-01-19 03:05:26 -060078
York Suna3c5b662016-11-18 11:39:36 -080079#elif defined(CONFIG_ARCH_P5040)
Tom Rini0a2bac72022-11-16 13:10:29 -050080#define CFG_SYS_NUM_FMAN 2
81#define CFG_SYS_NUM_FM1_DTSEC 5
82#define CFG_SYS_NUM_FM1_10GEC 1
83#define CFG_SYS_NUM_FM2_DTSEC 5
84#define CFG_SYS_NUM_FM2_10GEC 1
Tom Rini6a5dccc2022-11-16 13:10:41 -050085#define CFG_SYS_FM_MURAM_SIZE 0x28000
Tom Rini376b88a2022-10-28 20:27:13 -040086#define CFG_SYS_FSL_CORENET_SNOOPVEC_COREONLY 0xf0000000
Timur Tabid5e13882012-10-05 11:09:19 +000087
York Suna80bdf72016-11-15 14:09:50 -080088#elif defined(CONFIG_ARCH_BSC9131)
Mingkai Hu6f024c92013-05-16 10:18:13 +080089#define CONFIG_SYS_FSL_IFC_BANK_COUNT 3
Prabhakar Kushwahabeebb882012-04-24 20:16:49 +000090
York Suna80bdf72016-11-15 14:09:50 -080091#elif defined(CONFIG_ARCH_BSC9132)
York Sun84fa67e2013-04-18 19:31:01 -070092#define CONFIG_SYS_FSL_IFC_BANK_COUNT 3
Prabhakar Kushwaha92543c22013-01-23 17:59:57 +000093
Tom Rinia7ffa3d2021-05-23 10:58:05 -040094#elif defined(CONFIG_ARCH_T4240)
York Sun0fad3262016-11-21 13:35:41 -080095#ifdef CONFIG_ARCH_T4240
Tom Rini376b88a2022-10-28 20:27:13 -040096#define CFG_SYS_FSL_CLUSTER_CLOCKS { 1, 1, 4 }
Tom Rini0a2bac72022-11-16 13:10:29 -050097#define CFG_SYS_NUM_FM1_DTSEC 8
98#define CFG_SYS_NUM_FM1_10GEC 2
99#define CFG_SYS_NUM_FM2_DTSEC 8
100#define CFG_SYS_NUM_FM2_10GEC 2
York Sun64fd08b2013-03-25 07:40:05 +0000101#else
Tom Rini0a2bac72022-11-16 13:10:29 -0500102#define CFG_SYS_NUM_FM1_DTSEC 6
103#define CFG_SYS_NUM_FM1_10GEC 1
104#define CFG_SYS_NUM_FM2_DTSEC 8
105#define CFG_SYS_NUM_FM2_10GEC 1
York Sun64fd08b2013-03-25 07:40:05 +0000106#endif
Prabhakar Kushwaha873e9f02013-07-31 16:56:41 +0530107#define CONFIG_SYS_FSL_SRDS_1
108#define CONFIG_SYS_FSL_SRDS_2
Tom Rini376b88a2022-10-28 20:27:13 -0400109#define CFG_SYS_FSL_SRDS_3
110#define CFG_SYS_FSL_SRDS_4
Tom Rini0a2bac72022-11-16 13:10:29 -0500111#define CFG_SYS_NUM_FMAN 2
Tom Rini6a5dccc2022-11-16 13:10:41 -0500112#define CFG_SYS_PME_CLK 0
Mingkai Hu6f024c92013-05-16 10:18:13 +0800113#define CONFIG_SYS_FSL_IFC_BANK_COUNT 8
Tom Rini6a5dccc2022-11-16 13:10:41 -0500114#define CFG_SYS_FM1_CLK 3
115#define CFG_SYS_FM2_CLK 3
116#define CFG_SYS_FM_MURAM_SIZE 0x60000
Tom Rini376b88a2022-10-28 20:27:13 -0400117#define CFG_SYS_FSL_SRIO_MAX_PORTS 2
118#define CFG_SYS_FSL_SRIO_OB_WIN_NUM 9
119#define CFG_SYS_FSL_SRIO_IB_WIN_NUM 5
York Sunfb5137a2013-03-25 07:33:29 +0000120
York Sunfda566d2016-11-18 11:56:57 -0800121#elif defined(CONFIG_ARCH_B4860) || defined(CONFIG_ARCH_B4420)
Prabhakar Kushwaha873e9f02013-07-31 16:56:41 +0530122#define CONFIG_SYS_FSL_SRDS_1
123#define CONFIG_SYS_FSL_SRDS_2
Tom Rini0a2bac72022-11-16 13:10:29 -0500124#define CFG_SYS_NUM_FMAN 1
Tom Rini6a5dccc2022-11-16 13:10:41 -0500125#define CFG_SYS_FM1_CLK 0
Mingkai Hu6f024c92013-05-16 10:18:13 +0800126#define CONFIG_SYS_FSL_IFC_BANK_COUNT 4
Tom Rini6a5dccc2022-11-16 13:10:41 -0500127#define CFG_SYS_FM_MURAM_SIZE 0x60000
Poonam Aggrwal248865e2012-12-23 19:24:16 +0000128
York Sun68eaa9a2016-11-18 11:44:43 -0800129#ifdef CONFIG_ARCH_B4860
Tom Rini376b88a2022-10-28 20:27:13 -0400130#define CFG_SYS_FSL_CLUSTER_CLOCKS { 1, 4, 4, 4 }
Tom Rini0a2bac72022-11-16 13:10:29 -0500131#define CFG_SYS_NUM_FM1_DTSEC 6
132#define CFG_SYS_NUM_FM1_10GEC 2
Tom Rini376b88a2022-10-28 20:27:13 -0400133#define CFG_SYS_FSL_SRIO_MAX_PORTS 2
134#define CFG_SYS_FSL_SRIO_OB_WIN_NUM 9
135#define CFG_SYS_FSL_SRIO_IB_WIN_NUM 5
Poonam Aggrwal525ab512013-03-25 07:40:20 +0000136#else
Tom Rini376b88a2022-10-28 20:27:13 -0400137#define CFG_SYS_FSL_CLUSTER_CLOCKS { 1, 4 }
Tom Rini0a2bac72022-11-16 13:10:29 -0500138#define CFG_SYS_NUM_FM1_DTSEC 4
139#define CFG_SYS_NUM_FM1_10GEC 0
Poonam Aggrwal525ab512013-03-25 07:40:20 +0000140#endif
York Sunbcf7b3d2012-10-08 07:44:20 +0000141
York Sund7dd06c2016-12-28 08:43:32 -0800142#elif defined(CONFIG_ARCH_T1040) || defined(CONFIG_ARCH_T1042)
Tom Rini376b88a2022-10-28 20:27:13 -0400143#define CFG_SYS_FSL_CLUSTER_CLOCKS { 1, 1, 1, 1 }
Prabhakar Kushwaha78512532013-09-03 11:19:54 +0530144#define CONFIG_SYS_FSL_SRDS_1
Tom Rini0a2bac72022-11-16 13:10:29 -0500145#define CFG_SYS_NUM_FMAN 1
146#define CFG_SYS_NUM_FM1_DTSEC 5
Prabhakar Kushwaha7e8382f2013-09-03 11:20:15 +0530147#define CONFIG_PME_PLAT_CLK_DIV 2
Tom Rini6a5dccc2022-11-16 13:10:41 -0500148#define CFG_SYS_PME_CLK CONFIG_PME_PLAT_CLK_DIV
Prabhakar Kushwaha78512532013-09-03 11:19:54 +0530149#define CONFIG_SYS_FSL_IFC_BANK_COUNT 8
Prabhakar Kushwaha7e8382f2013-09-03 11:20:15 +0530150#define CONFIG_FM_PLAT_CLK_DIV 1
Tom Rini6a5dccc2022-11-16 13:10:41 -0500151#define CFG_SYS_FM1_CLK CONFIG_FM_PLAT_CLK_DIV
152#define CFG_SYS_FM_MURAM_SIZE 0x30000
Haijun.Zhangedeb83a2014-03-18 17:04:23 +0800153#define ESDHCI_QUIRK_BROKEN_TIMEOUT_VALUE
Zhao Qiangb818ba22014-03-21 16:21:45 +0800154#define QE_MURAM_SIZE 0x6000UL
155#define MAX_QE_RISC 1
156#define QE_NUM_OF_SNUM 28
York Sun46571362013-03-25 07:40:06 +0000157
Tom Rinib4e60262021-05-14 21:34:22 -0400158#elif defined(CONFIG_ARCH_T1024)
Tom Rini376b88a2022-10-28 20:27:13 -0400159#define CFG_SYS_FSL_CLUSTER_CLOCKS { 1, 1, 1, 1 }
Shengzhou Liue6fb7702014-11-24 17:11:54 +0800160#define CONFIG_SYS_FSL_SRDS_1
Tom Rini0a2bac72022-11-16 13:10:29 -0500161#define CFG_SYS_NUM_FMAN 1
162#define CFG_SYS_NUM_FM1_DTSEC 4
163#define CFG_SYS_NUM_FM1_10GEC 1
Shengzhou Liue6fb7702014-11-24 17:11:54 +0800164#define CONFIG_SYS_FSL_IFC_BANK_COUNT 8
Tom Rini6a5dccc2022-11-16 13:10:41 -0500165#define CFG_SYS_FM1_CLK 0
Shengzhou Liue6fb7702014-11-24 17:11:54 +0800166#define CONFIG_QBMAN_CLK_DIV 1
Tom Rini6a5dccc2022-11-16 13:10:41 -0500167#define CFG_SYS_FM_MURAM_SIZE 0x30000
Shengzhou Liue6fb7702014-11-24 17:11:54 +0800168#define ESDHCI_QUIRK_BROKEN_TIMEOUT_VALUE
169#define QE_MURAM_SIZE 0x6000UL
170#define MAX_QE_RISC 1
171#define QE_NUM_OF_SNUM 28
Shengzhou Liue6fb7702014-11-24 17:11:54 +0800172
Tom Rini3ec582b2021-02-20 20:06:21 -0500173#elif defined(CONFIG_ARCH_T2080)
Tom Rini0a2bac72022-11-16 13:10:29 -0500174#define CFG_SYS_NUM_FMAN 1
Tom Rini376b88a2022-10-28 20:27:13 -0400175#define CFG_SYS_FSL_CLUSTER_CLOCKS { 1, 4, 4, 4 }
Shengzhou Liuf305cd22013-11-22 17:39:10 +0800176#define CONFIG_SYS_FSL_SRDS_1
York Sune20c6852016-11-21 12:54:19 -0800177#if defined(CONFIG_ARCH_T2080)
Tom Rini0a2bac72022-11-16 13:10:29 -0500178#define CFG_SYS_NUM_FM1_DTSEC 8
179#define CFG_SYS_NUM_FM1_10GEC 4
Shengzhou Liuf305cd22013-11-22 17:39:10 +0800180#define CONFIG_SYS_FSL_SRDS_2
Tom Rini376b88a2022-10-28 20:27:13 -0400181#define CFG_SYS_FSL_SRIO_MAX_PORTS 2
182#define CFG_SYS_FSL_SRIO_OB_WIN_NUM 9
183#define CFG_SYS_FSL_SRIO_IB_WIN_NUM 5
Shengzhou Liuf305cd22013-11-22 17:39:10 +0800184#endif
Shengzhou Liuf305cd22013-11-22 17:39:10 +0800185#define CONFIG_PME_PLAT_CLK_DIV 1
Tom Rini6a5dccc2022-11-16 13:10:41 -0500186#define CFG_SYS_PME_CLK CONFIG_PME_PLAT_CLK_DIV
187#define CFG_SYS_FM1_CLK 0
Shengzhou Liuf305cd22013-11-22 17:39:10 +0800188#define CONFIG_SYS_FSL_IFC_BANK_COUNT 8
Tom Rini6a5dccc2022-11-16 13:10:41 -0500189#define CFG_SYS_FM_MURAM_SIZE 0x28000
Haijun.Zhangedeb83a2014-03-18 17:04:23 +0800190#define ESDHCI_QUIRK_BROKEN_TIMEOUT_VALUE
191
Shengzhou Liuf305cd22013-11-22 17:39:10 +0800192
York Sun4119aee2016-11-15 18:44:22 -0800193#elif defined(CONFIG_ARCH_C29X)
Mingkai Hu1a258072013-07-04 17:30:36 +0800194#define CONFIG_SYS_FSL_IFC_BANK_COUNT 8
Tom Rini376b88a2022-10-28 20:27:13 -0400195#define CFG_SYS_FSL_SEC_IDX_OFFSET 0x20000
Mingkai Hu1a258072013-07-04 17:30:36 +0800196
Kumar Galafe137112011-01-19 03:05:26 -0600197#endif
198
Kumar Galafe137112011-01-19 03:05:26 -0600199#endif /* _ASM_MPC85xx_CONFIG_H_ */