Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Kumar Gala | fe13711 | 2011-01-19 03:05:26 -0600 | [diff] [blame] | 2 | /* |
Prabhakar Kushwaha | beebb88 | 2012-04-24 20:16:49 +0000 | [diff] [blame] | 3 | * Copyright 2011-2012 Freescale Semiconductor, Inc. |
Kumar Gala | fe13711 | 2011-01-19 03:05:26 -0600 | [diff] [blame] | 4 | */ |
| 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 Sun | f066a04 | 2012-10-28 08:12:54 +0000 | [diff] [blame] | 11 | /* |
| 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 Sun | 2896cb7 | 2014-03-27 17:54:47 -0700 | [diff] [blame] | 17 | #include <fsl_ddrc_version.h> |
York Sun | 7d69ea3 | 2012-10-08 07:44:22 +0000 | [diff] [blame] | 18 | |
York Sun | 6e413f5 | 2016-12-28 08:43:47 -0800 | [diff] [blame] | 19 | #if defined(CONFIG_ARCH_MPC8548) |
Liu Gang | 78deaa1 | 2012-03-08 00:33:14 +0000 | [diff] [blame] | 20 | #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 Gang | 78deaa1 | 2012-03-08 00:33:14 +0000 | [diff] [blame] | 23 | #define CONFIG_SYS_FSL_SRIO_MSG_UNIT_NUM 2 |
Kumar Gala | fe13711 | 2011-01-19 03:05:26 -0600 | [diff] [blame] | 24 | |
York Sun | 24f88b3 | 2016-11-16 13:08:52 -0800 | [diff] [blame] | 25 | #elif defined(CONFIG_ARCH_P1010) |
Priyanka Jain | 0244963 | 2011-02-09 09:24:10 +0530 | [diff] [blame] | 26 | #define CONFIG_FSL_SDHC_V2_3 |
Kumar Gala | fe13711 | 2011-01-19 03:05:26 -0600 | [diff] [blame] | 27 | #define CONFIG_TSECV2 |
Mingkai Hu | 6f024c9 | 2013-05-16 10:18:13 +0800 | [diff] [blame] | 28 | #define CONFIG_SYS_FSL_IFC_BANK_COUNT 4 |
Kumar Gala | fe13711 | 2011-01-19 03:05:26 -0600 | [diff] [blame] | 29 | |
Kumar Gala | e4e6925 | 2011-02-05 13:45:07 -0600 | [diff] [blame] | 30 | /* P1011 is single core version of P1020 */ |
York Sun | 3680e59 | 2016-11-16 15:54:15 -0800 | [diff] [blame] | 31 | #elif defined(CONFIG_ARCH_P1011) |
Kumar Gala | fe13711 | 2011-01-19 03:05:26 -0600 | [diff] [blame] | 32 | #define CONFIG_TSECV2 |
Kumar Gala | fe13711 | 2011-01-19 03:05:26 -0600 | [diff] [blame] | 33 | |
York Sun | af2dc81 | 2016-11-18 10:02:14 -0800 | [diff] [blame] | 34 | #elif defined(CONFIG_ARCH_P1020) |
Kumar Gala | fe13711 | 2011-01-19 03:05:26 -0600 | [diff] [blame] | 35 | #define CONFIG_TSECV2 |
Kumar Gala | fe13711 | 2011-01-19 03:05:26 -0600 | [diff] [blame] | 36 | |
York Sun | 2f924be | 2016-11-18 10:59:02 -0800 | [diff] [blame] | 37 | #elif defined(CONFIG_ARCH_P1021) |
Kumar Gala | fe13711 | 2011-01-19 03:05:26 -0600 | [diff] [blame] | 38 | #define CONFIG_TSECV2 |
Haiying Wang | 8cb2af7 | 2011-02-11 01:25:30 -0600 | [diff] [blame] | 39 | #define QE_MURAM_SIZE 0x6000UL |
| 40 | #define MAX_QE_RISC 1 |
| 41 | #define QE_NUM_OF_SNUM 28 |
Kumar Gala | fe13711 | 2011-01-19 03:05:26 -0600 | [diff] [blame] | 42 | |
York Sun | feeaae2 | 2016-11-16 15:45:31 -0800 | [diff] [blame] | 43 | #elif defined(CONFIG_ARCH_P1023) |
Roy Zang | 1de20b0 | 2011-02-03 22:14:19 -0600 | [diff] [blame] | 44 | #define CONFIG_SYS_NUM_FMAN 1 |
| 45 | #define CONFIG_SYS_NUM_FM1_DTSEC 2 |
Roy Zang | 1de20b0 | 2011-02-03 22:14:19 -0600 | [diff] [blame] | 46 | #define CONFIG_SYS_QMAN_NUM_PORTALS 3 |
| 47 | #define CONFIG_SYS_BMAN_NUM_PORTALS 3 |
Kumar Gala | d80dfe4 | 2011-02-04 00:43:34 -0600 | [diff] [blame] | 48 | #define CONFIG_SYS_FM_MURAM_SIZE 0x10000 |
Roy Zang | 1de20b0 | 2011-02-03 22:14:19 -0600 | [diff] [blame] | 49 | |
Kumar Gala | e4e6925 | 2011-02-05 13:45:07 -0600 | [diff] [blame] | 50 | /* P1024 is lower end variant of P1020 */ |
York Sun | 76780b2 | 2016-11-18 11:00:57 -0800 | [diff] [blame] | 51 | #elif defined(CONFIG_ARCH_P1024) |
Kumar Gala | e4e6925 | 2011-02-05 13:45:07 -0600 | [diff] [blame] | 52 | #define CONFIG_TSECV2 |
Kumar Gala | e4e6925 | 2011-02-05 13:45:07 -0600 | [diff] [blame] | 53 | |
| 54 | /* P1025 is lower end variant of P1021 */ |
York Sun | 0f57797 | 2016-11-18 11:05:38 -0800 | [diff] [blame] | 55 | #elif defined(CONFIG_ARCH_P1025) |
Kumar Gala | e4e6925 | 2011-02-05 13:45:07 -0600 | [diff] [blame] | 56 | #define CONFIG_TSECV2 |
Haiying Wang | 8cb2af7 | 2011-02-11 01:25:30 -0600 | [diff] [blame] | 57 | #define QE_MURAM_SIZE 0x6000UL |
| 58 | #define MAX_QE_RISC 1 |
| 59 | #define QE_NUM_OF_SNUM 28 |
Kumar Gala | e4e6925 | 2011-02-05 13:45:07 -0600 | [diff] [blame] | 60 | |
York Sun | 4b08dd7 | 2016-11-18 11:08:43 -0800 | [diff] [blame] | 61 | #elif defined(CONFIG_ARCH_P2020) |
Liu Gang | 78deaa1 | 2012-03-08 00:33:14 +0000 | [diff] [blame] | 62 | #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 Gang | 78deaa1 | 2012-03-08 00:33:14 +0000 | [diff] [blame] | 65 | #define CONFIG_SYS_FSL_SRIO_MSG_UNIT_NUM 2 |
York Sun | 9982579 | 2014-05-23 13:15:00 -0700 | [diff] [blame] | 66 | |
York Sun | 5786fca | 2016-11-18 11:15:21 -0800 | [diff] [blame] | 67 | #elif defined(CONFIG_ARCH_P2041) /* also supports P2040 */ |
Kumar Gala | 619541b | 2011-05-13 01:16:07 -0500 | [diff] [blame] | 68 | #define CONFIG_SYS_NUM_FMAN 1 |
| 69 | #define CONFIG_SYS_NUM_FM1_DTSEC 5 |
| 70 | #define CONFIG_SYS_NUM_FM1_10GEC 1 |
Kumar Gala | 619541b | 2011-05-13 01:16:07 -0500 | [diff] [blame] | 71 | #define CONFIG_SYS_FM_MURAM_SIZE 0x28000 |
Liu Gang | 78deaa1 | 2012-03-08 00:33:14 +0000 | [diff] [blame] | 72 | #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 Wood | 8080696 | 2012-08-14 10:14:53 +0000 | [diff] [blame] | 75 | #define CONFIG_SYS_FSL_CORENET_SNOOPVEC_COREONLY 0xf0000000 |
Kumar Gala | 619541b | 2011-05-13 01:16:07 -0500 | [diff] [blame] | 76 | |
York Sun | df70d06 | 2016-11-18 11:20:40 -0800 | [diff] [blame] | 77 | #elif defined(CONFIG_ARCH_P3041) |
Kumar Gala | 60d95d8 | 2011-01-25 12:42:32 -0600 | [diff] [blame] | 78 | #define CONFIG_SYS_NUM_FMAN 1 |
| 79 | #define CONFIG_SYS_NUM_FM1_DTSEC 5 |
| 80 | #define CONFIG_SYS_NUM_FM1_10GEC 1 |
Kumar Gala | d80dfe4 | 2011-02-04 00:43:34 -0600 | [diff] [blame] | 81 | #define CONFIG_SYS_FM_MURAM_SIZE 0x28000 |
Liu Gang | 78deaa1 | 2012-03-08 00:33:14 +0000 | [diff] [blame] | 82 | #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 Wood | 8080696 | 2012-08-14 10:14:53 +0000 | [diff] [blame] | 85 | #define CONFIG_SYS_FSL_CORENET_SNOOPVEC_COREONLY 0xf0000000 |
Kumar Gala | fe13711 | 2011-01-19 03:05:26 -0600 | [diff] [blame] | 86 | |
York Sun | 84be8a9 | 2016-11-18 11:24:40 -0800 | [diff] [blame] | 87 | #elif defined(CONFIG_ARCH_P4080) /* also supports P4040 */ |
Kumar Gala | fe13711 | 2011-01-19 03:05:26 -0600 | [diff] [blame] | 88 | #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 Gala | d80dfe4 | 2011-02-04 00:43:34 -0600 | [diff] [blame] | 93 | #define CONFIG_SYS_FM_MURAM_SIZE 0x28000 |
Liu Gang | 78deaa1 | 2012-03-08 00:33:14 +0000 | [diff] [blame] | 94 | #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 Gang | 78deaa1 | 2012-03-08 00:33:14 +0000 | [diff] [blame] | 97 | #define CONFIG_SYS_FSL_SRIO_MSG_UNIT_NUM 2 |
Scott Wood | 8080696 | 2012-08-14 10:14:53 +0000 | [diff] [blame] | 98 | #define CONFIG_SYS_FSL_CORENET_SNOOPVEC_COREONLY 0xff000000 |
Kumar Gala | fe13711 | 2011-01-19 03:05:26 -0600 | [diff] [blame] | 99 | |
York Sun | a3c5b66 | 2016-11-18 11:39:36 -0800 | [diff] [blame] | 100 | #elif defined(CONFIG_ARCH_P5040) |
Timur Tabi | d5e1388 | 2012-10-05 11:09:19 +0000 | [diff] [blame] | 101 | #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 Tabi | d5e1388 | 2012-10-05 11:09:19 +0000 | [diff] [blame] | 106 | #define CONFIG_SYS_FM_MURAM_SIZE 0x28000 |
Timur Tabi | d5e1388 | 2012-10-05 11:09:19 +0000 | [diff] [blame] | 107 | #define CONFIG_SYS_FSL_CORENET_SNOOPVEC_COREONLY 0xf0000000 |
| 108 | |
York Sun | a80bdf7 | 2016-11-15 14:09:50 -0800 | [diff] [blame] | 109 | #elif defined(CONFIG_ARCH_BSC9131) |
Prabhakar Kushwaha | beebb88 | 2012-04-24 20:16:49 +0000 | [diff] [blame] | 110 | #define CONFIG_FSL_SDHC_V2_3 |
Prabhakar Kushwaha | beebb88 | 2012-04-24 20:16:49 +0000 | [diff] [blame] | 111 | #define CONFIG_TSECV2 |
Mingkai Hu | 6f024c9 | 2013-05-16 10:18:13 +0800 | [diff] [blame] | 112 | #define CONFIG_SYS_FSL_IFC_BANK_COUNT 3 |
Prabhakar Kushwaha | beebb88 | 2012-04-24 20:16:49 +0000 | [diff] [blame] | 113 | |
York Sun | a80bdf7 | 2016-11-15 14:09:50 -0800 | [diff] [blame] | 114 | #elif defined(CONFIG_ARCH_BSC9132) |
Prabhakar Kushwaha | 92543c2 | 2013-01-23 17:59:57 +0000 | [diff] [blame] | 115 | #define CONFIG_FSL_SDHC_V2_3 |
Prabhakar Kushwaha | 92543c2 | 2013-01-23 17:59:57 +0000 | [diff] [blame] | 116 | #define CONFIG_TSECV2 |
York Sun | 84fa67e | 2013-04-18 19:31:01 -0700 | [diff] [blame] | 117 | #define CONFIG_SYS_FSL_IFC_BANK_COUNT 3 |
Prabhakar Kushwaha | 92543c2 | 2013-01-23 17:59:57 +0000 | [diff] [blame] | 118 | |
Tom Rini | a7ffa3d | 2021-05-23 10:58:05 -0400 | [diff] [blame] | 119 | #elif defined(CONFIG_ARCH_T4240) |
York Sun | 0fad326 | 2016-11-21 13:35:41 -0800 | [diff] [blame] | 120 | #ifdef CONFIG_ARCH_T4240 |
Prabhakar Kushwaha | 7e8382f | 2013-09-03 11:20:15 +0530 | [diff] [blame] | 121 | #define CONFIG_SYS_FSL_CLUSTER_CLOCKS { 1, 1, 4 } |
York Sun | 9941a22 | 2012-10-08 07:44:19 +0000 | [diff] [blame] | 122 | #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 Sun | 64fd08b | 2013-03-25 07:40:05 +0000 | [diff] [blame] | 126 | #else |
Shengzhou Liu | 26ed2d0 | 2014-04-25 16:31:22 +0800 | [diff] [blame] | 127 | #define CONFIG_SYS_NUM_FM1_DTSEC 6 |
York Sun | 64fd08b | 2013-03-25 07:40:05 +0000 | [diff] [blame] | 128 | #define CONFIG_SYS_NUM_FM1_10GEC 1 |
Shengzhou Liu | 26ed2d0 | 2014-04-25 16:31:22 +0800 | [diff] [blame] | 129 | #define CONFIG_SYS_NUM_FM2_DTSEC 8 |
York Sun | 64fd08b | 2013-03-25 07:40:05 +0000 | [diff] [blame] | 130 | #define CONFIG_SYS_NUM_FM2_10GEC 1 |
York Sun | 64fd08b | 2013-03-25 07:40:05 +0000 | [diff] [blame] | 131 | #endif |
Prabhakar Kushwaha | 873e9f0 | 2013-07-31 16:56:41 +0530 | [diff] [blame] | 132 | #define CONFIG_SYS_FSL_SRDS_1 |
| 133 | #define CONFIG_SYS_FSL_SRDS_2 |
York Sun | fb5137a | 2013-03-25 07:33:29 +0000 | [diff] [blame] | 134 | #define CONFIG_SYS_FSL_SRDS_3 |
| 135 | #define CONFIG_SYS_FSL_SRDS_4 |
York Sun | fb5137a | 2013-03-25 07:33:29 +0000 | [diff] [blame] | 136 | #define CONFIG_SYS_NUM_FMAN 2 |
Prabhakar Kushwaha | 7e8382f | 2013-09-03 11:20:15 +0530 | [diff] [blame] | 137 | #define CONFIG_SYS_PME_CLK 0 |
Mingkai Hu | 6f024c9 | 2013-05-16 10:18:13 +0800 | [diff] [blame] | 138 | #define CONFIG_SYS_FSL_IFC_BANK_COUNT 8 |
Prabhakar Kushwaha | 7e8382f | 2013-09-03 11:20:15 +0530 | [diff] [blame] | 139 | #define CONFIG_SYS_FM1_CLK 3 |
| 140 | #define CONFIG_SYS_FM2_CLK 3 |
York Sun | fb5137a | 2013-03-25 07:33:29 +0000 | [diff] [blame] | 141 | #define CONFIG_SYS_FM_MURAM_SIZE 0x60000 |
York Sun | fb5137a | 2013-03-25 07:33:29 +0000 | [diff] [blame] | 142 | #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 Sun | fb5137a | 2013-03-25 07:33:29 +0000 | [diff] [blame] | 145 | |
York Sun | fda566d | 2016-11-18 11:56:57 -0800 | [diff] [blame] | 146 | #elif defined(CONFIG_ARCH_B4860) || defined(CONFIG_ARCH_B4420) |
Prabhakar Kushwaha | 873e9f0 | 2013-07-31 16:56:41 +0530 | [diff] [blame] | 147 | #define CONFIG_SYS_FSL_SRDS_1 |
| 148 | #define CONFIG_SYS_FSL_SRDS_2 |
Poonam Aggrwal | 248865e | 2012-12-23 19:24:16 +0000 | [diff] [blame] | 149 | #define CONFIG_SYS_NUM_FMAN 1 |
Prabhakar Kushwaha | 7e8382f | 2013-09-03 11:20:15 +0530 | [diff] [blame] | 150 | #define CONFIG_SYS_FM1_CLK 0 |
Mingkai Hu | 6f024c9 | 2013-05-16 10:18:13 +0800 | [diff] [blame] | 151 | #define CONFIG_SYS_FSL_IFC_BANK_COUNT 4 |
Poonam Aggrwal | 248865e | 2012-12-23 19:24:16 +0000 | [diff] [blame] | 152 | #define CONFIG_SYS_FM_MURAM_SIZE 0x60000 |
Poonam Aggrwal | 248865e | 2012-12-23 19:24:16 +0000 | [diff] [blame] | 153 | |
York Sun | 68eaa9a | 2016-11-18 11:44:43 -0800 | [diff] [blame] | 154 | #ifdef CONFIG_ARCH_B4860 |
Shaveta Leekha | dbf0bc8 | 2015-01-19 12:46:54 +0530 | [diff] [blame] | 155 | #define CONFIG_MAX_DSP_CPUS 12 |
| 156 | #define CONFIG_NUM_DSP_CPUS 6 |
Prabhakar Kushwaha | 7e8382f | 2013-09-03 11:20:15 +0530 | [diff] [blame] | 157 | #define CONFIG_SYS_FSL_CLUSTER_CLOCKS { 1, 4, 4, 4 } |
York Sun | bcf7b3d | 2012-10-08 07:44:20 +0000 | [diff] [blame] | 158 | #define CONFIG_SYS_NUM_FM1_DTSEC 6 |
| 159 | #define CONFIG_SYS_NUM_FM1_10GEC 2 |
York Sun | bcf7b3d | 2012-10-08 07:44:20 +0000 | [diff] [blame] | 160 | #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 Aggrwal | 525ab51 | 2013-03-25 07:40:20 +0000 | [diff] [blame] | 163 | #else |
Shaveta Leekha | dbf0bc8 | 2015-01-19 12:46:54 +0530 | [diff] [blame] | 164 | #define CONFIG_MAX_DSP_CPUS 2 |
Prabhakar Kushwaha | 7e8382f | 2013-09-03 11:20:15 +0530 | [diff] [blame] | 165 | #define CONFIG_SYS_FSL_CLUSTER_CLOCKS { 1, 4 } |
Poonam Aggrwal | 525ab51 | 2013-03-25 07:40:20 +0000 | [diff] [blame] | 166 | #define CONFIG_SYS_NUM_FM1_DTSEC 4 |
| 167 | #define CONFIG_SYS_NUM_FM1_10GEC 0 |
Poonam Aggrwal | 525ab51 | 2013-03-25 07:40:20 +0000 | [diff] [blame] | 168 | #endif |
York Sun | bcf7b3d | 2012-10-08 07:44:20 +0000 | [diff] [blame] | 169 | |
York Sun | d7dd06c | 2016-12-28 08:43:32 -0800 | [diff] [blame] | 170 | #elif defined(CONFIG_ARCH_T1040) || defined(CONFIG_ARCH_T1042) |
Prabhakar Kushwaha | 7e8382f | 2013-09-03 11:20:15 +0530 | [diff] [blame] | 171 | #define CONFIG_SYS_FSL_CLUSTER_CLOCKS { 1, 1, 1, 1 } |
Prabhakar Kushwaha | 7851253 | 2013-09-03 11:19:54 +0530 | [diff] [blame] | 172 | #define CONFIG_SYS_FSL_SRDS_1 |
York Sun | 4657136 | 2013-03-25 07:40:06 +0000 | [diff] [blame] | 173 | #define CONFIG_SYS_NUM_FMAN 1 |
| 174 | #define CONFIG_SYS_NUM_FM1_DTSEC 5 |
Prabhakar Kushwaha | 7e8382f | 2013-09-03 11:20:15 +0530 | [diff] [blame] | 175 | #define CONFIG_PME_PLAT_CLK_DIV 2 |
| 176 | #define CONFIG_SYS_PME_CLK CONFIG_PME_PLAT_CLK_DIV |
Prabhakar Kushwaha | 7851253 | 2013-09-03 11:19:54 +0530 | [diff] [blame] | 177 | #define CONFIG_SYS_FSL_IFC_BANK_COUNT 8 |
Prabhakar Kushwaha | 7e8382f | 2013-09-03 11:20:15 +0530 | [diff] [blame] | 178 | #define CONFIG_FM_PLAT_CLK_DIV 1 |
| 179 | #define CONFIG_SYS_FM1_CLK CONFIG_FM_PLAT_CLK_DIV |
Prabhakar Kushwaha | 7851253 | 2013-09-03 11:19:54 +0530 | [diff] [blame] | 180 | #define CONFIG_SYS_FM_MURAM_SIZE 0x30000 |
Haijun.Zhang | edeb83a | 2014-03-18 17:04:23 +0800 | [diff] [blame] | 181 | #define ESDHCI_QUIRK_BROKEN_TIMEOUT_VALUE |
Zhao Qiang | b818ba2 | 2014-03-21 16:21:45 +0800 | [diff] [blame] | 182 | #define QE_MURAM_SIZE 0x6000UL |
| 183 | #define MAX_QE_RISC 1 |
| 184 | #define QE_NUM_OF_SNUM 28 |
York Sun | 4657136 | 2013-03-25 07:40:06 +0000 | [diff] [blame] | 185 | |
Tom Rini | b4e6026 | 2021-05-14 21:34:22 -0400 | [diff] [blame] | 186 | #elif defined(CONFIG_ARCH_T1024) |
Shengzhou Liu | e6fb770 | 2014-11-24 17:11:54 +0800 | [diff] [blame] | 187 | #define CONFIG_SYS_FSL_NUM_CC_PLL 2 |
| 188 | #define CONFIG_SYS_FSL_CLUSTER_CLOCKS { 1, 1, 1, 1 } |
Shengzhou Liu | e6fb770 | 2014-11-24 17:11:54 +0800 | [diff] [blame] | 189 | #define CONFIG_SYS_FSL_SRDS_1 |
Shengzhou Liu | e6fb770 | 2014-11-24 17:11:54 +0800 | [diff] [blame] | 190 | #define CONFIG_SYS_NUM_FMAN 1 |
| 191 | #define CONFIG_SYS_NUM_FM1_DTSEC 4 |
| 192 | #define CONFIG_SYS_NUM_FM1_10GEC 1 |
Shengzhou Liu | a1ccdff | 2014-11-24 17:11:57 +0800 | [diff] [blame] | 193 | #define CONFIG_FSL_FM_10GEC_REGULAR_NOTATION |
Shengzhou Liu | e6fb770 | 2014-11-24 17:11:54 +0800 | [diff] [blame] | 194 | #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 Liu | e6fb770 | 2014-11-24 17:11:54 +0800 | [diff] [blame] | 198 | #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 Liu | e6fb770 | 2014-11-24 17:11:54 +0800 | [diff] [blame] | 202 | |
Tom Rini | 3ec582b | 2021-02-20 20:06:21 -0500 | [diff] [blame] | 203 | #elif defined(CONFIG_ARCH_T2080) |
Shengzhou Liu | f305cd2 | 2013-11-22 17:39:10 +0800 | [diff] [blame] | 204 | #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 Sun | e20c685 | 2016-11-21 12:54:19 -0800 | [diff] [blame] | 207 | #if defined(CONFIG_ARCH_T2080) |
Shengzhou Liu | f305cd2 | 2013-11-22 17:39:10 +0800 | [diff] [blame] | 208 | #define CONFIG_SYS_NUM_FM1_DTSEC 8 |
| 209 | #define CONFIG_SYS_NUM_FM1_10GEC 4 |
| 210 | #define CONFIG_SYS_FSL_SRDS_2 |
Shengzhou Liu | f305cd2 | 2013-11-22 17:39:10 +0800 | [diff] [blame] | 211 | #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 Liu | f305cd2 | 2013-11-22 17:39:10 +0800 | [diff] [blame] | 214 | #endif |
Shengzhou Liu | f305cd2 | 2013-11-22 17:39:10 +0800 | [diff] [blame] | 215 | #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 Liu | f305cd2 | 2013-11-22 17:39:10 +0800 | [diff] [blame] | 218 | #define CONFIG_SYS_FSL_IFC_BANK_COUNT 8 |
Shengzhou Liu | f305cd2 | 2013-11-22 17:39:10 +0800 | [diff] [blame] | 219 | #define CONFIG_SYS_FM_MURAM_SIZE 0x28000 |
Haijun.Zhang | edeb83a | 2014-03-18 17:04:23 +0800 | [diff] [blame] | 220 | #define ESDHCI_QUIRK_BROKEN_TIMEOUT_VALUE |
| 221 | |
Shengzhou Liu | f305cd2 | 2013-11-22 17:39:10 +0800 | [diff] [blame] | 222 | |
York Sun | 4119aee | 2016-11-15 18:44:22 -0800 | [diff] [blame] | 223 | #elif defined(CONFIG_ARCH_C29X) |
Mingkai Hu | 1a25807 | 2013-07-04 17:30:36 +0800 | [diff] [blame] | 224 | #define CONFIG_FSL_SDHC_V2_3 |
Mingkai Hu | 1a25807 | 2013-07-04 17:30:36 +0800 | [diff] [blame] | 225 | #define CONFIG_TSECV2_1 |
Mingkai Hu | 1a25807 | 2013-07-04 17:30:36 +0800 | [diff] [blame] | 226 | #define CONFIG_SYS_FSL_IFC_BANK_COUNT 8 |
Alex Porosanu | b4848d0 | 2016-04-29 15:17:59 +0300 | [diff] [blame] | 227 | #define CONFIG_SYS_FSL_SEC_IDX_OFFSET 0x20000 |
Mingkai Hu | 1a25807 | 2013-07-04 17:30:36 +0800 | [diff] [blame] | 228 | |
Kumar Gala | fe13711 | 2011-01-19 03:05:26 -0600 | [diff] [blame] | 229 | #endif |
| 230 | |
Kumar Gala | fe13711 | 2011-01-19 03:05:26 -0600 | [diff] [blame] | 231 | #endif /* _ASM_MPC85xx_CONFIG_H_ */ |