1 /* 2 * Copyright 2011-2012 Freescale Semiconductor, Inc. 3 * 4 * This program is free software; you can redistribute it and/or 5 * modify it under the terms of the GNU General Public License as 6 * published by the Free Software Foundation; either version 2 of 7 * the License, or (at your option) any later version. 8 * 9 * This program is distributed in the hope that it will be useful, 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 * GNU General Public License for more details. 13 * 14 * You should have received a copy of the GNU General Public License 15 * along with this program; if not, write to the Free Software 16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, 17 * MA 02111-1307 USA 18 * 19 */ 20 21 #ifndef _ASM_MPC85xx_CONFIG_H_ 22 #define _ASM_MPC85xx_CONFIG_H_ 23 24 /* SoC specific defines for Freescale MPC85xx (PQ3) and QorIQ processors */ 25 26 #ifdef CONFIG_SYS_CCSRBAR_DEFAULT 27 #error "Do not define CONFIG_SYS_CCSRBAR_DEFAULT in the board header file." 28 #endif 29 30 /* 31 * This macro should be removed when we no longer care about backwards 32 * compatibility with older operating systems. 33 */ 34 #define CONFIG_PPC_SPINTABLE_COMPATIBLE 35 36 #define FSL_DDR_VER_4_7 47 37 38 /* Number of TLB CAM entries we have on FSL Book-E chips */ 39 #if defined(CONFIG_E500MC) 40 #define CONFIG_SYS_NUM_TLBCAMS 64 41 #elif defined(CONFIG_E500) 42 #define CONFIG_SYS_NUM_TLBCAMS 16 43 #endif 44 45 #if defined(CONFIG_MPC8536) 46 #define CONFIG_MAX_CPUS 1 47 #define CONFIG_SYS_FSL_NUM_LAWS 12 48 #define CONFIG_SYS_PPC_E500_DEBUG_TLB 1 49 #define CONFIG_SYS_FSL_SEC_COMPAT 2 50 #define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000 51 52 #elif defined(CONFIG_MPC8540) 53 #define CONFIG_MAX_CPUS 1 54 #define CONFIG_SYS_FSL_NUM_LAWS 8 55 #define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000 56 57 #elif defined(CONFIG_MPC8541) 58 #define CONFIG_MAX_CPUS 1 59 #define CONFIG_SYS_FSL_NUM_LAWS 8 60 #define CONFIG_SYS_FSL_SEC_COMPAT 2 61 #define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000 62 63 #elif defined(CONFIG_MPC8544) 64 #define CONFIG_MAX_CPUS 1 65 #define CONFIG_SYS_FSL_NUM_LAWS 10 66 #define CONFIG_SYS_PPC_E500_DEBUG_TLB 0 67 #define CONFIG_SYS_FSL_SEC_COMPAT 2 68 #define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000 69 70 #elif defined(CONFIG_MPC8548) 71 #define CONFIG_MAX_CPUS 1 72 #define CONFIG_SYS_FSL_NUM_LAWS 10 73 #define CONFIG_SYS_PPC_E500_DEBUG_TLB 0 74 #define CONFIG_SYS_FSL_SEC_COMPAT 2 75 #define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000 76 #define CONFIG_SYS_FSL_ERRATUM_NMG_DDR120 77 #define CONFIG_SYS_FSL_ERRATUM_NMG_LBC103 78 #define CONFIG_SYS_FSL_ERRATUM_NMG_ETSEC129 79 #define CONFIG_SYS_FSL_SRIO_MAX_PORTS 1 80 #define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9 81 #define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5 82 #define CONFIG_SYS_FSL_RMU 83 #define CONFIG_SYS_FSL_SRIO_MSG_UNIT_NUM 2 84 85 #elif defined(CONFIG_MPC8555) 86 #define CONFIG_MAX_CPUS 1 87 #define CONFIG_SYS_FSL_NUM_LAWS 8 88 #define CONFIG_SYS_FSL_SEC_COMPAT 2 89 #define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000 90 91 #elif defined(CONFIG_MPC8560) 92 #define CONFIG_MAX_CPUS 1 93 #define CONFIG_SYS_FSL_NUM_LAWS 8 94 #define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000 95 96 #elif defined(CONFIG_MPC8568) 97 #define CONFIG_MAX_CPUS 1 98 #define CONFIG_SYS_FSL_NUM_LAWS 10 99 #define CONFIG_SYS_FSL_SEC_COMPAT 2 100 #define QE_MURAM_SIZE 0x10000UL 101 #define MAX_QE_RISC 2 102 #define QE_NUM_OF_SNUM 28 103 #define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000 104 #define CONFIG_SYS_FSL_SRIO_MAX_PORTS 1 105 #define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9 106 #define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5 107 #define CONFIG_SYS_FSL_RMU 108 #define CONFIG_SYS_FSL_SRIO_MSG_UNIT_NUM 2 109 110 #elif defined(CONFIG_MPC8569) 111 #define CONFIG_MAX_CPUS 1 112 #define CONFIG_SYS_FSL_NUM_LAWS 10 113 #define CONFIG_SYS_FSL_SEC_COMPAT 2 114 #define QE_MURAM_SIZE 0x20000UL 115 #define MAX_QE_RISC 4 116 #define QE_NUM_OF_SNUM 46 117 #define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000 118 #define CONFIG_SYS_FSL_SRIO_MAX_PORTS 1 119 #define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9 120 #define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5 121 #define CONFIG_SYS_FSL_RMU 122 #define CONFIG_SYS_FSL_SRIO_MSG_UNIT_NUM 2 123 124 #elif defined(CONFIG_MPC8572) 125 #define CONFIG_MAX_CPUS 2 126 #define CONFIG_SYS_FSL_NUM_LAWS 12 127 #define CONFIG_SYS_PPC_E500_DEBUG_TLB 2 128 #define CONFIG_SYS_FSL_SEC_COMPAT 2 129 #define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000 130 #define CONFIG_SYS_FSL_ERRATUM_DDR_115 131 #define CONFIG_SYS_FSL_ERRATUM_DDR111_DDR134 132 133 #elif defined(CONFIG_P1010) 134 #define CONFIG_MAX_CPUS 1 135 #define CONFIG_FSL_SDHC_V2_3 136 #define CONFIG_SYS_FSL_NUM_LAWS 12 137 #define CONFIG_SYS_PPC_E500_DEBUG_TLB 3 138 #define CONFIG_TSECV2 139 #define CONFIG_SYS_FSL_SEC_COMPAT 4 140 #define CONFIG_SYS_FSL_ERRATUM_ESDHC111 141 #define CONFIG_NUM_DDR_CONTROLLERS 1 142 #define CONFIG_SYS_FSL_IFC_BANK_COUNT 4 143 #define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000 144 #define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.2" 145 #define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY 146 #define CONFIG_SYS_FSL_ERRATUM_IFC_A002769 147 #define CONFIG_SYS_FSL_ERRATUM_P1010_A003549 148 #define CONFIG_SYS_FSL_ERRATUM_IFC_A003399 149 150 /* P1011 is single core version of P1020 */ 151 #elif defined(CONFIG_P1011) 152 #define CONFIG_MAX_CPUS 1 153 #define CONFIG_SYS_FSL_NUM_LAWS 12 154 #define CONFIG_SYS_PPC_E500_DEBUG_TLB 2 155 #define CONFIG_TSECV2 156 #define CONFIG_FSL_PCIE_DISABLE_ASPM 157 #define CONFIG_SYS_FSL_SEC_COMPAT 2 158 #define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000 159 #define CONFIG_SYS_FSL_ERRATUM_ELBC_A001 160 #define CONFIG_SYS_FSL_ERRATUM_ESDHC111 161 162 /* P1012 is single core version of P1021 */ 163 #elif defined(CONFIG_P1012) 164 #define CONFIG_MAX_CPUS 1 165 #define CONFIG_SYS_FSL_NUM_LAWS 12 166 #define CONFIG_SYS_PPC_E500_DEBUG_TLB 2 167 #define CONFIG_TSECV2 168 #define CONFIG_FSL_PCIE_DISABLE_ASPM 169 #define CONFIG_SYS_FSL_SEC_COMPAT 2 170 #define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000 171 #define CONFIG_SYS_FSL_ERRATUM_ELBC_A001 172 #define CONFIG_SYS_FSL_ERRATUM_ESDHC111 173 #define QE_MURAM_SIZE 0x6000UL 174 #define MAX_QE_RISC 1 175 #define QE_NUM_OF_SNUM 28 176 177 /* P1013 is single core version of P1022 */ 178 #elif defined(CONFIG_P1013) 179 #define CONFIG_MAX_CPUS 1 180 #define CONFIG_SYS_FSL_NUM_LAWS 12 181 #define CONFIG_SYS_PPC_E500_DEBUG_TLB 2 182 #define CONFIG_TSECV2 183 #define CONFIG_SYS_FSL_SEC_COMPAT 2 184 #define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000 185 #define CONFIG_SYS_FSL_ERRATUM_ELBC_A001 186 #define CONFIG_SYS_FSL_ERRATUM_ESDHC111 187 #define CONFIG_FSL_SATA_ERRATUM_A001 188 189 #elif defined(CONFIG_P1014) 190 #define CONFIG_MAX_CPUS 1 191 #define CONFIG_FSL_SDHC_V2_3 192 #define CONFIG_SYS_FSL_NUM_LAWS 12 193 #define CONFIG_SYS_PPC_E500_DEBUG_TLB 3 194 #define CONFIG_TSECV2 195 #define CONFIG_SYS_FSL_SEC_COMPAT 4 196 #define CONFIG_SYS_FSL_ERRATUM_ESDHC111 197 #define CONFIG_NUM_DDR_CONTROLLERS 1 198 #define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000 199 #define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY 200 #define CONFIG_SYS_FSL_ERRATUM_IFC_A002769 201 #define CONFIG_SYS_FSL_ERRATUM_P1010_A003549 202 #define CONFIG_SYS_FSL_ERRATUM_IFC_A003399 203 204 /* P1017 is single core version of P1023 */ 205 #elif defined(CONFIG_P1017) 206 #define CONFIG_MAX_CPUS 1 207 #define CONFIG_SYS_FSL_NUM_LAWS 12 208 #define CONFIG_SYS_FSL_SEC_COMPAT 4 209 #define CONFIG_SYS_NUM_FMAN 1 210 #define CONFIG_SYS_NUM_FM1_DTSEC 2 211 #define CONFIG_NUM_DDR_CONTROLLERS 1 212 #define CONFIG_SYS_QMAN_NUM_PORTALS 3 213 #define CONFIG_SYS_BMAN_NUM_PORTALS 3 214 #define CONFIG_SYS_FM_MURAM_SIZE 0x10000 215 #define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.2" 216 #define CONFIG_SYS_CCSRBAR_DEFAULT 0xff600000 217 218 #elif defined(CONFIG_P1020) 219 #define CONFIG_MAX_CPUS 2 220 #define CONFIG_SYS_FSL_NUM_LAWS 12 221 #define CONFIG_SYS_PPC_E500_DEBUG_TLB 2 222 #define CONFIG_TSECV2 223 #define CONFIG_FSL_PCIE_DISABLE_ASPM 224 #define CONFIG_SYS_FSL_SEC_COMPAT 2 225 #define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000 226 #define CONFIG_SYS_FSL_ERRATUM_ELBC_A001 227 #define CONFIG_SYS_FSL_ERRATUM_ESDHC111 228 229 #elif defined(CONFIG_P1021) 230 #define CONFIG_MAX_CPUS 2 231 #define CONFIG_SYS_FSL_NUM_LAWS 12 232 #define CONFIG_SYS_PPC_E500_DEBUG_TLB 2 233 #define CONFIG_TSECV2 234 #define CONFIG_FSL_PCIE_DISABLE_ASPM 235 #define CONFIG_SYS_FSL_SEC_COMPAT 2 236 #define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000 237 #define CONFIG_SYS_FSL_ERRATUM_ELBC_A001 238 #define CONFIG_SYS_FSL_ERRATUM_ESDHC111 239 #define QE_MURAM_SIZE 0x6000UL 240 #define MAX_QE_RISC 1 241 #define QE_NUM_OF_SNUM 28 242 243 #elif defined(CONFIG_P1022) 244 #define CONFIG_MAX_CPUS 2 245 #define CONFIG_SYS_FSL_NUM_LAWS 12 246 #define CONFIG_SYS_PPC_E500_DEBUG_TLB 2 247 #define CONFIG_TSECV2 248 #define CONFIG_SYS_FSL_SEC_COMPAT 2 249 #define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000 250 #define CONFIG_SYS_FSL_ERRATUM_ELBC_A001 251 #define CONFIG_SYS_FSL_ERRATUM_ESDHC111 252 #define CONFIG_FSL_SATA_ERRATUM_A001 253 254 #elif defined(CONFIG_P1023) 255 #define CONFIG_MAX_CPUS 2 256 #define CONFIG_SYS_FSL_NUM_LAWS 12 257 #define CONFIG_SYS_FSL_SEC_COMPAT 4 258 #define CONFIG_SYS_NUM_FMAN 1 259 #define CONFIG_SYS_NUM_FM1_DTSEC 2 260 #define CONFIG_NUM_DDR_CONTROLLERS 1 261 #define CONFIG_SYS_QMAN_NUM_PORTALS 3 262 #define CONFIG_SYS_BMAN_NUM_PORTALS 3 263 #define CONFIG_SYS_FM_MURAM_SIZE 0x10000 264 #define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.2" 265 #define CONFIG_SYS_CCSRBAR_DEFAULT 0xff600000 266 267 /* P1024 is lower end variant of P1020 */ 268 #elif defined(CONFIG_P1024) 269 #define CONFIG_MAX_CPUS 2 270 #define CONFIG_SYS_FSL_NUM_LAWS 12 271 #define CONFIG_SYS_PPC_E500_DEBUG_TLB 2 272 #define CONFIG_TSECV2 273 #define CONFIG_FSL_PCIE_DISABLE_ASPM 274 #define CONFIG_SYS_FSL_SEC_COMPAT 2 275 #define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000 276 #define CONFIG_SYS_FSL_ERRATUM_ELBC_A001 277 #define CONFIG_SYS_FSL_ERRATUM_ESDHC111 278 279 /* P1025 is lower end variant of P1021 */ 280 #elif defined(CONFIG_P1025) 281 #define CONFIG_MAX_CPUS 2 282 #define CONFIG_SYS_FSL_NUM_LAWS 12 283 #define CONFIG_SYS_PPC_E500_DEBUG_TLB 2 284 #define CONFIG_TSECV2 285 #define CONFIG_FSL_PCIE_DISABLE_ASPM 286 #define CONFIG_SYS_FSL_SEC_COMPAT 2 287 #define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000 288 #define CONFIG_SYS_FSL_ERRATUM_ELBC_A001 289 #define CONFIG_SYS_FSL_ERRATUM_ESDHC111 290 #define QE_MURAM_SIZE 0x6000UL 291 #define MAX_QE_RISC 1 292 #define QE_NUM_OF_SNUM 28 293 294 /* P2010 is single core version of P2020 */ 295 #elif defined(CONFIG_P2010) 296 #define CONFIG_MAX_CPUS 1 297 #define CONFIG_SYS_FSL_NUM_LAWS 12 298 #define CONFIG_SYS_PPC_E500_DEBUG_TLB 2 299 #define CONFIG_SYS_FSL_SEC_COMPAT 2 300 #define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000 301 #define CONFIG_SYS_FSL_ERRATUM_ESDHC111 302 #define CONFIG_SYS_FSL_ERRATUM_ESDHC_A001 303 304 #elif defined(CONFIG_P2020) 305 #define CONFIG_MAX_CPUS 2 306 #define CONFIG_SYS_FSL_NUM_LAWS 12 307 #define CONFIG_SYS_PPC_E500_DEBUG_TLB 2 308 #define CONFIG_SYS_FSL_SEC_COMPAT 2 309 #define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000 310 #define CONFIG_SYS_FSL_ERRATUM_ESDHC111 311 #define CONFIG_SYS_FSL_ERRATUM_ESDHC_A001 312 #define CONFIG_SYS_FSL_SRIO_MAX_PORTS 2 313 #define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9 314 #define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5 315 #define CONFIG_SYS_FSL_RMU 316 #define CONFIG_SYS_FSL_SRIO_MSG_UNIT_NUM 2 317 318 #elif defined(CONFIG_PPC_P2041) /* also supports P2040 */ 319 #define CONFIG_SYS_FSL_QORIQ_CHASSIS1 320 #define CONFIG_MAX_CPUS 4 321 #define CONFIG_SYS_FSL_NUM_CC_PLLS 2 322 #define CONFIG_SYS_FSL_NUM_LAWS 32 323 #define CONFIG_SYS_FSL_SEC_COMPAT 4 324 #define CONFIG_SYS_NUM_FMAN 1 325 #define CONFIG_SYS_NUM_FM1_DTSEC 5 326 #define CONFIG_SYS_NUM_FM1_10GEC 1 327 #define CONFIG_NUM_DDR_CONTROLLERS 1 328 #define CONFIG_SYS_FM_MURAM_SIZE 0x28000 329 #define CONFIG_SYS_FSL_TBCLK_DIV 32 330 #define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.2" 331 #define CONFIG_SYS_CCSRBAR_DEFAULT 0xfe000000 332 #define CONFIG_SYS_FSL_USB1_PHY_ENABLE 333 #define CONFIG_SYS_FSL_USB2_PHY_ENABLE 334 #define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY 335 #define CONFIG_SYS_FSL_ERRATUM_ESDHC111 336 #define CONFIG_SYS_FSL_ERRATUM_NMG_CPU_A011 337 #define CONFIG_SYS_FSL_ERRATUM_USB14 338 #define CONFIG_SYS_FSL_ERRATUM_CPU_A003999 339 #define CONFIG_SYS_FSL_ERRATUM_DDR_A003 340 #define CONFIG_SYS_FSL_ERRATUM_DDR_A003474 341 #define CONFIG_SYS_FSL_SRIO_MAX_PORTS 2 342 #define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9 343 #define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5 344 #define CONFIG_SYS_FSL_ERRATUM_A004510 345 #define CONFIG_SYS_FSL_ERRATUM_A004510_SVR_REV 0x10 346 #define CONFIG_SYS_FSL_ERRATUM_A004510_SVR_REV2 0x11 347 #define CONFIG_SYS_FSL_CORENET_SNOOPVEC_COREONLY 0xf0000000 348 #define CONFIG_SYS_FSL_ERRATUM_SRIO_A004034 349 #define CONFIG_SYS_FSL_ERRATUM_A004849 350 351 #elif defined(CONFIG_PPC_P3041) 352 #define CONFIG_SYS_FSL_QORIQ_CHASSIS1 353 #define CONFIG_MAX_CPUS 4 354 #define CONFIG_SYS_FSL_NUM_CC_PLLS 2 355 #define CONFIG_SYS_FSL_NUM_LAWS 32 356 #define CONFIG_SYS_FSL_SEC_COMPAT 4 357 #define CONFIG_SYS_NUM_FMAN 1 358 #define CONFIG_SYS_NUM_FM1_DTSEC 5 359 #define CONFIG_SYS_NUM_FM1_10GEC 1 360 #define CONFIG_NUM_DDR_CONTROLLERS 1 361 #define CONFIG_SYS_FM_MURAM_SIZE 0x28000 362 #define CONFIG_SYS_FSL_TBCLK_DIV 32 363 #define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.2" 364 #define CONFIG_SYS_CCSRBAR_DEFAULT 0xfe000000 365 #define CONFIG_SYS_FSL_USB1_PHY_ENABLE 366 #define CONFIG_SYS_FSL_USB2_PHY_ENABLE 367 #define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY 368 #define CONFIG_SYS_FSL_ERRATUM_ESDHC111 369 #define CONFIG_SYS_FSL_ERRATUM_NMG_CPU_A011 370 #define CONFIG_SYS_FSL_ERRATUM_USB14 371 #define CONFIG_SYS_FSL_ERRATUM_CPU_A003999 372 #define CONFIG_SYS_FSL_ERRATUM_DDR_A003 373 #define CONFIG_SYS_FSL_ERRATUM_DDR_A003474 374 #define CONFIG_SYS_FSL_SRIO_MAX_PORTS 2 375 #define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9 376 #define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5 377 #define CONFIG_SYS_FSL_ERRATUM_A004510 378 #define CONFIG_SYS_FSL_ERRATUM_A004510_SVR_REV 0x10 379 #define CONFIG_SYS_FSL_ERRATUM_A004510_SVR_REV2 0x11 380 #define CONFIG_SYS_FSL_CORENET_SNOOPVEC_COREONLY 0xf0000000 381 #define CONFIG_SYS_FSL_ERRATUM_SRIO_A004034 382 #define CONFIG_SYS_FSL_ERRATUM_A004849 383 384 #elif defined(CONFIG_PPC_P4080) /* also supports P4040 */ 385 #define CONFIG_SYS_FSL_QORIQ_CHASSIS1 386 #define CONFIG_MAX_CPUS 8 387 #define CONFIG_SYS_FSL_NUM_CC_PLLS 4 388 #define CONFIG_SYS_FSL_NUM_LAWS 32 389 #define CONFIG_SYS_FSL_SEC_COMPAT 4 390 #define CONFIG_SYS_NUM_FMAN 2 391 #define CONFIG_SYS_NUM_FM1_DTSEC 4 392 #define CONFIG_SYS_NUM_FM2_DTSEC 4 393 #define CONFIG_SYS_NUM_FM1_10GEC 1 394 #define CONFIG_SYS_NUM_FM2_10GEC 1 395 #define CONFIG_NUM_DDR_CONTROLLERS 2 396 #define CONFIG_SYS_FM_MURAM_SIZE 0x28000 397 #define CONFIG_SYS_FSL_TBCLK_DIV 16 398 #define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,p4080-pcie" 399 #define CONFIG_SYS_CCSRBAR_DEFAULT 0xfe000000 400 #define CONFIG_SYS_FSL_ERRATUM_CPC_A002 401 #define CONFIG_SYS_FSL_ERRATUM_CPC_A003 402 #define CONFIG_SYS_FSL_ERRATUM_DDR_A003 403 #define CONFIG_SYS_FSL_ERRATUM_ELBC_A001 404 #define CONFIG_SYS_FSL_ERRATUM_ESDHC111 405 #define CONFIG_SYS_FSL_ERRATUM_ESDHC135 406 #define CONFIG_SYS_FSL_ERRATUM_ESDHC13 407 #define CONFIG_SYS_P4080_ERRATUM_CPU22 408 #define CONFIG_SYS_FSL_ERRATUM_NMG_CPU_A011 409 #define CONFIG_SYS_P4080_ERRATUM_SERDES8 410 #define CONFIG_SYS_P4080_ERRATUM_SERDES9 411 #define CONFIG_SYS_P4080_ERRATUM_SERDES_A001 412 #define CONFIG_SYS_P4080_ERRATUM_SERDES_A005 413 #define CONFIG_SYS_FSL_ERRATUM_CPU_A003999 414 #define CONFIG_SYS_FSL_ERRATUM_DDR_A003474 415 #define CONFIG_SYS_FSL_SRIO_MAX_PORTS 2 416 #define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9 417 #define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5 418 #define CONFIG_SYS_FSL_RMU 419 #define CONFIG_SYS_FSL_SRIO_MSG_UNIT_NUM 2 420 #define CONFIG_SYS_FSL_ERRATUM_A004510 421 #define CONFIG_SYS_FSL_ERRATUM_A004510_SVR_REV 0x20 422 #define CONFIG_SYS_FSL_CORENET_SNOOPVEC_COREONLY 0xff000000 423 #define CONFIG_SYS_FSL_ERRATUM_SRIO_A004034 424 #define CONFIG_SYS_FSL_ERRATUM_A004849 425 #define CONFIG_SYS_FSL_ERRATUM_A004580 426 #define CONFIG_SYS_P4080_ERRATUM_PCIE_A003 427 428 #elif defined(CONFIG_PPC_P5020) /* also supports P5010 */ 429 #define CONFIG_SYS_PPC64 /* 64-bit core */ 430 #define CONFIG_SYS_FSL_QORIQ_CHASSIS1 431 #define CONFIG_MAX_CPUS 2 432 #define CONFIG_SYS_FSL_NUM_CC_PLLS 2 433 #define CONFIG_SYS_FSL_NUM_LAWS 32 434 #define CONFIG_SYS_FSL_SEC_COMPAT 4 435 #define CONFIG_SYS_NUM_FMAN 1 436 #define CONFIG_SYS_NUM_FM1_DTSEC 5 437 #define CONFIG_SYS_NUM_FM1_10GEC 1 438 #define CONFIG_NUM_DDR_CONTROLLERS 2 439 #define CONFIG_SYS_FM_MURAM_SIZE 0x28000 440 #define CONFIG_SYS_FSL_TBCLK_DIV 32 441 #define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.2" 442 #define CONFIG_SYS_CCSRBAR_DEFAULT 0xfe000000 443 #define CONFIG_SYS_FSL_USB1_PHY_ENABLE 444 #define CONFIG_SYS_FSL_USB2_PHY_ENABLE 445 #define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY 446 #define CONFIG_SYS_FSL_ERRATUM_ESDHC111 447 #define CONFIG_SYS_FSL_ERRATUM_USB14 448 #define CONFIG_SYS_FSL_ERRATUM_DDR_A003 449 #define CONFIG_SYS_FSL_ERRATUM_DDR_A003474 450 #define CONFIG_SYS_FSL_SRIO_MAX_PORTS 2 451 #define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9 452 #define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5 453 #define CONFIG_SYS_FSL_ERRATUM_A004510 454 #define CONFIG_SYS_FSL_ERRATUM_A004510_SVR_REV 0x10 455 #define CONFIG_SYS_FSL_CORENET_SNOOPVEC_COREONLY 0xc0000000 456 #define CONFIG_SYS_FSL_ERRATUM_SRIO_A004034 457 458 #elif defined(CONFIG_PPC_P5040) 459 #define CONFIG_SYS_PPC64 460 #define CONFIG_SYS_FSL_QORIQ_CHASSIS1 461 #define CONFIG_MAX_CPUS 4 462 #define CONFIG_SYS_FSL_NUM_CC_PLLS 3 463 #define CONFIG_SYS_FSL_NUM_LAWS 32 464 #define CONFIG_SYS_FSL_SEC_COMPAT 4 465 #define CONFIG_SYS_NUM_FMAN 2 466 #define CONFIG_SYS_NUM_FM1_DTSEC 5 467 #define CONFIG_SYS_NUM_FM1_10GEC 1 468 #define CONFIG_SYS_NUM_FM2_DTSEC 5 469 #define CONFIG_SYS_NUM_FM2_10GEC 1 470 #define CONFIG_NUM_DDR_CONTROLLERS 2 471 #define CONFIG_SYS_FM_MURAM_SIZE 0x28000 472 #define CONFIG_SYS_FSL_TBCLK_DIV 16 473 #define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.4" 474 #define CONFIG_SYS_CCSRBAR_DEFAULT 0xfe000000 475 #define CONFIG_SYS_FSL_USB1_PHY_ENABLE 476 #define CONFIG_SYS_FSL_USB2_PHY_ENABLE 477 #define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY 478 #define CONFIG_SYS_FSL_ERRATUM_ESDHC111 479 #define CONFIG_SYS_FSL_ERRATUM_USB14 480 #define CONFIG_SYS_FSL_ERRATUM_DDR_A003 481 #define CONFIG_SYS_FSL_ERRATUM_DDR_A003474 482 #define CONFIG_SYS_FSL_ERRATUM_A004699 483 #define CONFIG_SYS_FSL_ERRATUM_A004510 484 #define CONFIG_SYS_FSL_ERRATUM_A004510_SVR_REV 0x10 485 #define CONFIG_SYS_FSL_CORENET_SNOOPVEC_COREONLY 0xf0000000 486 487 #elif defined(CONFIG_BSC9131) 488 #define CONFIG_MAX_CPUS 1 489 #define CONFIG_FSL_SDHC_V2_3 490 #define CONFIG_SYS_FSL_NUM_LAWS 12 491 #define CONFIG_TSECV2 492 #define CONFIG_SYS_FSL_SEC_COMPAT 4 493 #define CONFIG_NUM_DDR_CONTROLLERS 1 494 #define CONFIG_SYS_FSL_DSP_M2_RAM_ADDR 0xb0000000 495 #define CONFIG_SYS_FSL_DSP_CCSRBAR_DEFAULT 0xff600000 496 #define CONFIG_SYS_FSL_IFC_BANK_COUNT 3 497 #define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000 498 #define CONFIG_NAND_FSL_IFC 499 #define CONFIG_SYS_FSL_ERRATUM_ESDHC111 500 501 #elif defined(CONFIG_BSC9132) 502 #define CONFIG_MAX_CPUS 2 503 #define CONFIG_SYS_PPC_E500_DEBUG_TLB 3 504 #define CONFIG_FSL_SDHC_V2_3 505 #define CONFIG_SYS_FSL_NUM_LAWS 12 506 #define CONFIG_TSECV2 507 #define CONFIG_SYS_FSL_SEC_COMPAT 4 508 #define CONFIG_NUM_DDR_CONTROLLERS 2 509 #define CONFIG_SYS_FSL_IFC_BANK_COUNT 3 510 #define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000 511 #define CONFIG_NAND_FSL_IFC 512 #define CONFIG_SYS_FSL_ERRATUM_ESDHC111 513 #define CONFIG_SYS_FSL_ESDHC_P1010_BROKEN_SDCLK 514 #define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.2" 515 516 #elif defined(CONFIG_PPC_T4240) || defined(CONFIG_PPC_T4160) 517 #define CONFIG_E6500 518 #define CONFIG_SYS_PPC64 /* 64-bit core */ 519 #define CONFIG_FSL_CORENET /* Freescale CoreNet platform */ 520 #define CONFIG_SYS_FSL_QORIQ_CHASSIS2 /* Freescale Chassis generation 2 */ 521 #define CONFIG_SYS_FSL_CORES_PER_CLUSTER 4 522 #define CONFIG_SYS_FSL_QMAN_V3 /* QMAN version 3 */ 523 #ifdef CONFIG_PPC_T4240 524 #define CONFIG_MAX_CPUS 12 525 #define CONFIG_SYS_NUM_FM1_DTSEC 8 526 #define CONFIG_SYS_NUM_FM1_10GEC 2 527 #define CONFIG_SYS_NUM_FM2_DTSEC 8 528 #define CONFIG_SYS_NUM_FM2_10GEC 2 529 #define CONFIG_NUM_DDR_CONTROLLERS 3 530 #else 531 #define CONFIG_MAX_CPUS 8 532 #define CONFIG_SYS_NUM_FM1_DTSEC 7 533 #define CONFIG_SYS_NUM_FM1_10GEC 1 534 #define CONFIG_SYS_NUM_FM2_DTSEC 7 535 #define CONFIG_SYS_NUM_FM2_10GEC 1 536 #define CONFIG_NUM_DDR_CONTROLLERS 2 537 #endif 538 #define CONFIG_SYS_FSL_NUM_CC_PLLS 5 539 #define CONFIG_SYS_FSL_NUM_LAWS 32 540 #define CONFIG_SYS_FSL_SRDS_3 541 #define CONFIG_SYS_FSL_SRDS_4 542 #define CONFIG_SYS_FSL_SEC_COMPAT 4 543 #define CONFIG_SYS_NUM_FMAN 2 544 #define CONFIG_SYS_FSL_DDR_VER FSL_DDR_VER_4_7 545 #define CONFIG_SYS_FSL_IFC_BANK_COUNT 8 546 #define CONFIG_SYS_FMAN_V3 547 #define CONFIG_SYS_FM_MURAM_SIZE 0x60000 548 #define CONFIG_SYS_FSL_TBCLK_DIV 16 549 #define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v3.0" 550 #define CONFIG_SYS_FSL_SRIO_MAX_PORTS 2 551 #define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9 552 #define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5 553 #define CONFIG_SYS_FSL_USB_DUAL_PHY_ENABLE 554 #define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY 555 #define CONFIG_SYS_FSL_ERRATUM_A004468 556 #define CONFIG_SYS_FSL_ERRATUM_A_004934 557 #define CONFIG_SYS_FSL_ERRATUM_A005871 558 #define CONFIG_SYS_FSL_ERRATUM_A006593 559 #define CONFIG_SYS_CCSRBAR_DEFAULT 0xfe000000 560 #define CONFIG_SYS_FSL_PCI_VER_3_X 561 562 #elif defined(CONFIG_PPC_B4860) || defined(CONFIG_PPC_B4420) 563 #define CONFIG_E6500 564 #define CONFIG_SYS_PPC64 /* 64-bit core */ 565 #define CONFIG_FSL_CORENET /* Freescale CoreNet platform */ 566 #define CONFIG_SYS_FSL_QORIQ_CHASSIS2 /* Freescale Chassis generation 2 */ 567 #define CONFIG_SYS_FSL_QMAN_V3 /* QMAN version 3 */ 568 #define CONFIG_SYS_FSL_NUM_LAWS 32 569 #define CONFIG_SYS_FSL_SEC_COMPAT 4 570 #define CONFIG_SYS_NUM_FMAN 1 571 #define CONFIG_SYS_FSL_DDR_VER FSL_DDR_VER_4_7 572 #define CONFIG_SYS_FSL_IFC_BANK_COUNT 4 573 #define CONFIG_SYS_FMAN_V3 574 #define CONFIG_SYS_FM_MURAM_SIZE 0x60000 575 #define CONFIG_SYS_FSL_TBCLK_DIV 16 576 #define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.4" 577 #define CONFIG_SYS_FSL_USB1_PHY_ENABLE 578 #define CONFIG_SYS_FSL_ERRATUM_A_004934 579 #define CONFIG_SYS_FSL_ERRATUM_A005871 580 #define CONFIG_SYS_FSL_ERRATUM_A006593 581 #define CONFIG_SYS_CCSRBAR_DEFAULT 0xfe000000 582 583 #ifdef CONFIG_PPC_B4860 584 #define CONFIG_SYS_FSL_CORES_PER_CLUSTER 4 585 #define CONFIG_MAX_CPUS 4 586 #define CONFIG_SYS_FSL_NUM_CC_PLLS 4 587 #define CONFIG_SYS_NUM_FM1_DTSEC 6 588 #define CONFIG_SYS_NUM_FM1_10GEC 2 589 #define CONFIG_NUM_DDR_CONTROLLERS 2 590 #define CONFIG_SYS_FSL_SRIO_MAX_PORTS 2 591 #define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9 592 #define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5 593 #else 594 #define CONFIG_MAX_CPUS 2 595 #define CONFIG_SYS_FSL_CORES_PER_CLUSTER 2 596 #define CONFIG_SYS_FSL_NUM_CC_PLLS 4 597 #define CONFIG_SYS_NUM_FM1_DTSEC 4 598 #define CONFIG_SYS_NUM_FM1_10GEC 0 599 #define CONFIG_NUM_DDR_CONTROLLERS 1 600 #endif 601 602 #elif defined(CONFIG_PPC_T1040) 603 #define CONFIG_E5500 604 #define CONFIG_FSL_CORENET /* Freescale CoreNet platform */ 605 #define CONFIG_SYS_FSL_QORIQ_CHASSIS2 /* Freescale Chassis generation 2 */ 606 #define CONFIG_SYS_FSL_CORES_PER_CLUSTER 1 607 #define CONFIG_SYS_FSL_QMAN_V3 /* QMAN version 3 */ 608 #define CONFIG_MAX_CPUS 4 609 #define CONFIG_SYS_FSL_NUM_CC_PLLS 5 610 #define CONFIG_SYS_FSL_NUM_LAWS 16 611 #define CONFIG_SYS_FSL_SEC_COMPAT 4 612 #define CONFIG_SYS_NUM_FMAN 1 613 #define CONFIG_SYS_NUM_FM1_DTSEC 5 614 #define CONFIG_NUM_DDR_CONTROLLERS 1 615 #define CONFIG_SYS_FSL_DDR_VER FSL_DDR_VER_4_7 616 #define CONFIG_SYS_FSL_IFC_BANK_COUNT 4 617 #define CONFIG_SYS_FMAN_V3 618 #define CONFIG_SYS_FM_MURAM_SIZE 0x28000 619 #define CONFIG_SYS_FSL_TBCLK_DIV 32 620 #define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.4" 621 #define CONFIG_SYS_FSL_SRIO_MAX_PORTS 2 622 #define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9 623 #define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5 624 #define CONFIG_SYS_FSL_USB1_PHY_ENABLE 625 #define CONFIG_SYS_FSL_USB2_PHY_ENABLE 626 #define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY 627 #define CONFIG_SYS_CCSRBAR_DEFAULT 0xfe000000 628 629 #else 630 #error Processor type not defined for this platform 631 #endif 632 633 #ifndef CONFIG_SYS_CCSRBAR_DEFAULT 634 #error "CONFIG_SYS_CCSRBAR_DEFAULT is not defined for this platform." 635 #endif 636 637 #ifdef CONFIG_E6500 638 #define CONFIG_SYS_FSL_THREADS_PER_CORE 2 639 #else 640 #define CONFIG_SYS_FSL_THREADS_PER_CORE 1 641 #endif 642 643 #endif /* _ASM_MPC85xx_CONFIG_H_ */ 644