1243be8e2SKumar Gala /* 2243be8e2SKumar Gala * Copyright 2011 Freescale Semiconductor, Inc. 3243be8e2SKumar Gala * 4243be8e2SKumar Gala * This program is free software; you can redistribute it and/or 5243be8e2SKumar Gala * modify it under the terms of the GNU General Public License as 6243be8e2SKumar Gala * published by the Free Software Foundation; either version 2 of 7243be8e2SKumar Gala * the License, or (at your option) any later version. 8243be8e2SKumar Gala * 9243be8e2SKumar Gala * This program is distributed in the hope that it will be useful, 10243be8e2SKumar Gala * but WITHOUT ANY WARRANTY; without even the implied warranty of 11243be8e2SKumar Gala * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12243be8e2SKumar Gala * GNU General Public License for more details. 13243be8e2SKumar Gala * 14243be8e2SKumar Gala * You should have received a copy of the GNU General Public License 15243be8e2SKumar Gala * along with this program; if not, write to the Free Software 16243be8e2SKumar Gala * Foundation, Inc., 59 Temple Place, Suite 330, Boston, 17243be8e2SKumar Gala * MA 02111-1307 USA 18243be8e2SKumar Gala * 19243be8e2SKumar Gala */ 20243be8e2SKumar Gala 21243be8e2SKumar Gala #ifndef _ASM_MPC85xx_CONFIG_H_ 22243be8e2SKumar Gala #define _ASM_MPC85xx_CONFIG_H_ 23243be8e2SKumar Gala 24243be8e2SKumar Gala /* SoC specific defines for Freescale MPC85xx (PQ3) and QorIQ processors */ 25243be8e2SKumar Gala 26e46fedfeSTimur Tabi #ifdef CONFIG_SYS_CCSRBAR_DEFAULT 27e46fedfeSTimur Tabi #error "Do not define CONFIG_SYS_CCSRBAR_DEFAULT in the board header file." 28e46fedfeSTimur Tabi #endif 29e46fedfeSTimur Tabi 30243be8e2SKumar Gala /* Number of TLB CAM entries we have on FSL Book-E chips */ 31243be8e2SKumar Gala #if defined(CONFIG_E500MC) 32243be8e2SKumar Gala #define CONFIG_SYS_NUM_TLBCAMS 64 33243be8e2SKumar Gala #elif defined(CONFIG_E500) 34243be8e2SKumar Gala #define CONFIG_SYS_NUM_TLBCAMS 16 35243be8e2SKumar Gala #endif 36243be8e2SKumar Gala 37243be8e2SKumar Gala #if defined(CONFIG_MPC8536) 38243be8e2SKumar Gala #define CONFIG_MAX_CPUS 1 39243be8e2SKumar Gala #define CONFIG_SYS_FSL_NUM_LAWS 12 40243be8e2SKumar Gala #define CONFIG_SYS_FSL_SEC_COMPAT 2 41e46fedfeSTimur Tabi #define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000 42243be8e2SKumar Gala 43243be8e2SKumar Gala #elif defined(CONFIG_MPC8540) 44243be8e2SKumar Gala #define CONFIG_MAX_CPUS 1 45243be8e2SKumar Gala #define CONFIG_SYS_FSL_NUM_LAWS 8 46e46fedfeSTimur Tabi #define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000 47243be8e2SKumar Gala 48243be8e2SKumar Gala #elif defined(CONFIG_MPC8541) 49243be8e2SKumar Gala #define CONFIG_MAX_CPUS 1 50243be8e2SKumar Gala #define CONFIG_SYS_FSL_NUM_LAWS 8 51243be8e2SKumar Gala #define CONFIG_SYS_FSL_SEC_COMPAT 2 52e46fedfeSTimur Tabi #define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000 53243be8e2SKumar Gala 54243be8e2SKumar Gala #elif defined(CONFIG_MPC8544) 55243be8e2SKumar Gala #define CONFIG_MAX_CPUS 1 56243be8e2SKumar Gala #define CONFIG_SYS_FSL_NUM_LAWS 10 57243be8e2SKumar Gala #define CONFIG_SYS_FSL_SEC_COMPAT 2 58e46fedfeSTimur Tabi #define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000 59243be8e2SKumar Gala 60243be8e2SKumar Gala #elif defined(CONFIG_MPC8548) 61243be8e2SKumar Gala #define CONFIG_MAX_CPUS 1 62243be8e2SKumar Gala #define CONFIG_SYS_FSL_NUM_LAWS 10 63243be8e2SKumar Gala #define CONFIG_SYS_FSL_SEC_COMPAT 2 64e46fedfeSTimur Tabi #define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000 655ace2992SKumar Gala #define CONFIG_SYS_FSL_ERRATUM_NMG_DDR120 662b3a1cddSKumar Gala #define CONFIG_SYS_FSL_ERRATUM_NMG_LBC103 67aada81deSchenhui zhao #define CONFIG_SYS_FSL_ERRATUM_NMG_ETSEC129 68243be8e2SKumar Gala 69243be8e2SKumar Gala #elif defined(CONFIG_MPC8555) 70243be8e2SKumar Gala #define CONFIG_MAX_CPUS 1 71243be8e2SKumar Gala #define CONFIG_SYS_FSL_NUM_LAWS 8 72243be8e2SKumar Gala #define CONFIG_SYS_FSL_SEC_COMPAT 2 73e46fedfeSTimur Tabi #define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000 74243be8e2SKumar Gala 75243be8e2SKumar Gala #elif defined(CONFIG_MPC8560) 76243be8e2SKumar Gala #define CONFIG_MAX_CPUS 1 77243be8e2SKumar Gala #define CONFIG_SYS_FSL_NUM_LAWS 8 78e46fedfeSTimur Tabi #define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000 79243be8e2SKumar Gala 80243be8e2SKumar Gala #elif defined(CONFIG_MPC8568) 81243be8e2SKumar Gala #define CONFIG_MAX_CPUS 1 82243be8e2SKumar Gala #define CONFIG_SYS_FSL_NUM_LAWS 10 83243be8e2SKumar Gala #define CONFIG_SYS_FSL_SEC_COMPAT 2 84fdb4dad3SKumar Gala #define QE_MURAM_SIZE 0x10000UL 85fdb4dad3SKumar Gala #define MAX_QE_RISC 2 86fdb4dad3SKumar Gala #define QE_NUM_OF_SNUM 28 87e46fedfeSTimur Tabi #define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000 88243be8e2SKumar Gala 89243be8e2SKumar Gala #elif defined(CONFIG_MPC8569) 90243be8e2SKumar Gala #define CONFIG_MAX_CPUS 1 91243be8e2SKumar Gala #define CONFIG_SYS_FSL_NUM_LAWS 10 92243be8e2SKumar Gala #define CONFIG_SYS_FSL_SEC_COMPAT 2 93fdb4dad3SKumar Gala #define QE_MURAM_SIZE 0x20000UL 94fdb4dad3SKumar Gala #define MAX_QE_RISC 4 95fdb4dad3SKumar Gala #define QE_NUM_OF_SNUM 46 96e46fedfeSTimur Tabi #define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000 97243be8e2SKumar Gala 98243be8e2SKumar Gala #elif defined(CONFIG_MPC8572) 99243be8e2SKumar Gala #define CONFIG_MAX_CPUS 2 100243be8e2SKumar Gala #define CONFIG_SYS_FSL_NUM_LAWS 12 101243be8e2SKumar Gala #define CONFIG_SYS_FSL_SEC_COMPAT 2 102e46fedfeSTimur Tabi #define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000 103eb0aff77SYork Sun #define CONFIG_SYS_FSL_ERRATUM_DDR_115 10491671913SYork Sun #define CONFIG_SYS_FSL_ERRATUM_DDR111_DDR134 105243be8e2SKumar Gala 106243be8e2SKumar Gala #elif defined(CONFIG_P1010) 107243be8e2SKumar Gala #define CONFIG_MAX_CPUS 1 10832c8cfb2SPriyanka Jain #define CONFIG_FSL_SDHC_V2_3 109243be8e2SKumar Gala #define CONFIG_SYS_FSL_NUM_LAWS 12 110243be8e2SKumar Gala #define CONFIG_TSECV2 111243be8e2SKumar Gala #define CONFIG_SYS_FSL_SEC_COMPAT 4 1121fbf3483SPoonam Aggrwal #define CONFIG_FSL_SATA_V2 1131fbf3483SPoonam Aggrwal #define CONFIG_SYS_FSL_ERRATUM_ESDHC111 1141fbf3483SPoonam Aggrwal #define CONFIG_NUM_DDR_CONTROLLERS 1 1151fbf3483SPoonam Aggrwal #define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000 1168f29084aSKumar Gala #define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.2" 1171b719e66SRamneek Mehresh #define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY 11842aee64bSPoonam Aggrwal #define CONFIG_SYS_FSL_ERRATUM_IFC_A002769 119fb855f43SPoonam Aggrwal #define CONFIG_SYS_FSL_ERRATUM_P1010_A003549 120bc6bbd6bSPoonam Aggrwal #define CONFIG_SYS_FSL_ERRATUM_IFC_A003399 121243be8e2SKumar Gala 122093cffbeSKumar Gala /* P1011 is single core version of P1020 */ 123243be8e2SKumar Gala #elif defined(CONFIG_P1011) 124243be8e2SKumar Gala #define CONFIG_MAX_CPUS 1 125243be8e2SKumar Gala #define CONFIG_SYS_FSL_NUM_LAWS 12 126243be8e2SKumar Gala #define CONFIG_TSECV2 127b03a466dSPrabhakar Kushwaha #define CONFIG_FSL_PCIE_DISABLE_ASPM 128243be8e2SKumar Gala #define CONFIG_SYS_FSL_SEC_COMPAT 2 129e46fedfeSTimur Tabi #define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000 130093cffbeSKumar Gala #define CONFIG_SYS_FSL_ERRATUM_ELBC_A001 131093cffbeSKumar Gala #define CONFIG_SYS_FSL_ERRATUM_ESDHC111 132243be8e2SKumar Gala 133093cffbeSKumar Gala /* P1012 is single core version of P1021 */ 134243be8e2SKumar Gala #elif defined(CONFIG_P1012) 135243be8e2SKumar Gala #define CONFIG_MAX_CPUS 1 136243be8e2SKumar Gala #define CONFIG_SYS_FSL_NUM_LAWS 12 137243be8e2SKumar Gala #define CONFIG_TSECV2 138b03a466dSPrabhakar Kushwaha #define CONFIG_FSL_PCIE_DISABLE_ASPM 139243be8e2SKumar Gala #define CONFIG_SYS_FSL_SEC_COMPAT 2 140e46fedfeSTimur Tabi #define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000 141093cffbeSKumar Gala #define CONFIG_SYS_FSL_ERRATUM_ELBC_A001 142093cffbeSKumar Gala #define CONFIG_SYS_FSL_ERRATUM_ESDHC111 143a52d2f81SHaiying Wang #define QE_MURAM_SIZE 0x6000UL 144a52d2f81SHaiying Wang #define MAX_QE_RISC 1 145a52d2f81SHaiying Wang #define QE_NUM_OF_SNUM 28 146243be8e2SKumar Gala 147093cffbeSKumar Gala /* P1013 is single core version of P1022 */ 148243be8e2SKumar Gala #elif defined(CONFIG_P1013) 149243be8e2SKumar Gala #define CONFIG_MAX_CPUS 1 150243be8e2SKumar Gala #define CONFIG_SYS_FSL_NUM_LAWS 12 151243be8e2SKumar Gala #define CONFIG_TSECV2 152243be8e2SKumar Gala #define CONFIG_SYS_FSL_SEC_COMPAT 2 153*3e0529f7STimur Tabi #define CONFIG_FSL_SATA_V2 154e46fedfeSTimur Tabi #define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000 1552d7534a3SJiang Yutang #define CONFIG_SYS_FSL_ERRATUM_ELBC_A001 1562d7534a3SJiang Yutang #define CONFIG_SYS_FSL_ERRATUM_ESDHC111 1572d7534a3SJiang Yutang #define CONFIG_FSL_SATA_ERRATUM_A001 158243be8e2SKumar Gala 159243be8e2SKumar Gala #elif defined(CONFIG_P1014) 160243be8e2SKumar Gala #define CONFIG_MAX_CPUS 1 16132c8cfb2SPriyanka Jain #define CONFIG_FSL_SDHC_V2_3 162243be8e2SKumar Gala #define CONFIG_SYS_FSL_NUM_LAWS 12 163243be8e2SKumar Gala #define CONFIG_TSECV2 164243be8e2SKumar Gala #define CONFIG_SYS_FSL_SEC_COMPAT 4 1651fbf3483SPoonam Aggrwal #define CONFIG_FSL_SATA_V2 1661fbf3483SPoonam Aggrwal #define CONFIG_SYS_FSL_ERRATUM_ESDHC111 1671fbf3483SPoonam Aggrwal #define CONFIG_NUM_DDR_CONTROLLERS 1 1681fbf3483SPoonam Aggrwal #define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000 1691b719e66SRamneek Mehresh #define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY 17042aee64bSPoonam Aggrwal #define CONFIG_SYS_FSL_ERRATUM_IFC_A002769 171fb855f43SPoonam Aggrwal #define CONFIG_SYS_FSL_ERRATUM_P1010_A003549 172bc6bbd6bSPoonam Aggrwal #define CONFIG_SYS_FSL_ERRATUM_IFC_A003399 173243be8e2SKumar Gala 174093cffbeSKumar Gala /* P1015 is single core version of P1024 */ 175093cffbeSKumar Gala #elif defined(CONFIG_P1015) 176093cffbeSKumar Gala #define CONFIG_MAX_CPUS 1 177093cffbeSKumar Gala #define CONFIG_SYS_FSL_NUM_LAWS 12 178093cffbeSKumar Gala #define CONFIG_TSECV2 179093cffbeSKumar Gala #define CONFIG_FSL_PCIE_DISABLE_ASPM 180093cffbeSKumar Gala #define CONFIG_SYS_FSL_SEC_COMPAT 2 181e46fedfeSTimur Tabi #define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000 182093cffbeSKumar Gala #define CONFIG_SYS_FSL_ERRATUM_ELBC_A001 183093cffbeSKumar Gala #define CONFIG_SYS_FSL_ERRATUM_ESDHC111 184093cffbeSKumar Gala 185093cffbeSKumar Gala /* P1016 is single core version of P1025 */ 186093cffbeSKumar Gala #elif defined(CONFIG_P1016) 187093cffbeSKumar Gala #define CONFIG_MAX_CPUS 1 188093cffbeSKumar Gala #define CONFIG_SYS_FSL_NUM_LAWS 12 189093cffbeSKumar Gala #define CONFIG_TSECV2 190093cffbeSKumar Gala #define CONFIG_FSL_PCIE_DISABLE_ASPM 191093cffbeSKumar Gala #define CONFIG_SYS_FSL_SEC_COMPAT 2 192093cffbeSKumar Gala #define CONFIG_SYS_FSL_ERRATUM_ELBC_A001 193093cffbeSKumar Gala #define CONFIG_SYS_FSL_ERRATUM_ESDHC111 194a52d2f81SHaiying Wang #define QE_MURAM_SIZE 0x6000UL 195a52d2f81SHaiying Wang #define MAX_QE_RISC 1 196a52d2f81SHaiying Wang #define QE_NUM_OF_SNUM 28 197e46fedfeSTimur Tabi #define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000 198093cffbeSKumar Gala 199093cffbeSKumar Gala /* P1017 is single core version of P1023 */ 20067a719daSRoy Zang #elif defined(CONFIG_P1017) 20167a719daSRoy Zang #define CONFIG_MAX_CPUS 1 20267a719daSRoy Zang #define CONFIG_SYS_FSL_NUM_LAWS 12 20367a719daSRoy Zang #define CONFIG_SYS_FSL_SEC_COMPAT 4 20467a719daSRoy Zang #define CONFIG_SYS_NUM_FMAN 1 20567a719daSRoy Zang #define CONFIG_SYS_NUM_FM1_DTSEC 2 20667a719daSRoy Zang #define CONFIG_NUM_DDR_CONTROLLERS 1 20767a719daSRoy Zang #define CONFIG_SYS_QMAN_NUM_PORTALS 3 20867a719daSRoy Zang #define CONFIG_SYS_BMAN_NUM_PORTALS 3 209c657d898SKumar Gala #define CONFIG_SYS_FM_MURAM_SIZE 0x10000 2108f29084aSKumar Gala #define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.2" 211e46fedfeSTimur Tabi #define CONFIG_SYS_CCSRBAR_DEFAULT 0xff600000 21267a719daSRoy Zang 213243be8e2SKumar Gala #elif defined(CONFIG_P1020) 214243be8e2SKumar Gala #define CONFIG_MAX_CPUS 2 215243be8e2SKumar Gala #define CONFIG_SYS_FSL_NUM_LAWS 12 216243be8e2SKumar Gala #define CONFIG_TSECV2 217b03a466dSPrabhakar Kushwaha #define CONFIG_FSL_PCIE_DISABLE_ASPM 218243be8e2SKumar Gala #define CONFIG_SYS_FSL_SEC_COMPAT 2 219e46fedfeSTimur Tabi #define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000 220093cffbeSKumar Gala #define CONFIG_SYS_FSL_ERRATUM_ELBC_A001 221093cffbeSKumar Gala #define CONFIG_SYS_FSL_ERRATUM_ESDHC111 222243be8e2SKumar Gala 223243be8e2SKumar Gala #elif defined(CONFIG_P1021) 224243be8e2SKumar Gala #define CONFIG_MAX_CPUS 2 225243be8e2SKumar Gala #define CONFIG_SYS_FSL_NUM_LAWS 12 226243be8e2SKumar Gala #define CONFIG_TSECV2 227b03a466dSPrabhakar Kushwaha #define CONFIG_FSL_PCIE_DISABLE_ASPM 228243be8e2SKumar Gala #define CONFIG_SYS_FSL_SEC_COMPAT 2 229e46fedfeSTimur Tabi #define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000 230093cffbeSKumar Gala #define CONFIG_SYS_FSL_ERRATUM_ELBC_A001 231093cffbeSKumar Gala #define CONFIG_SYS_FSL_ERRATUM_ESDHC111 232a52d2f81SHaiying Wang #define QE_MURAM_SIZE 0x6000UL 233a52d2f81SHaiying Wang #define MAX_QE_RISC 1 234a52d2f81SHaiying Wang #define QE_NUM_OF_SNUM 28 235243be8e2SKumar Gala 236243be8e2SKumar Gala #elif defined(CONFIG_P1022) 237243be8e2SKumar Gala #define CONFIG_MAX_CPUS 2 238243be8e2SKumar Gala #define CONFIG_SYS_FSL_NUM_LAWS 12 239243be8e2SKumar Gala #define CONFIG_TSECV2 240243be8e2SKumar Gala #define CONFIG_SYS_FSL_SEC_COMPAT 2 241*3e0529f7STimur Tabi #define CONFIG_FSL_SATA_V2 242e46fedfeSTimur Tabi #define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000 2432d7534a3SJiang Yutang #define CONFIG_SYS_FSL_ERRATUM_ELBC_A001 2442d7534a3SJiang Yutang #define CONFIG_SYS_FSL_ERRATUM_ESDHC111 2452d7534a3SJiang Yutang #define CONFIG_FSL_SATA_ERRATUM_A001 246243be8e2SKumar Gala 24767a719daSRoy Zang #elif defined(CONFIG_P1023) 24867a719daSRoy Zang #define CONFIG_MAX_CPUS 2 24967a719daSRoy Zang #define CONFIG_SYS_FSL_NUM_LAWS 12 25067a719daSRoy Zang #define CONFIG_SYS_FSL_SEC_COMPAT 4 25167a719daSRoy Zang #define CONFIG_SYS_NUM_FMAN 1 25267a719daSRoy Zang #define CONFIG_SYS_NUM_FM1_DTSEC 2 25367a719daSRoy Zang #define CONFIG_NUM_DDR_CONTROLLERS 1 25467a719daSRoy Zang #define CONFIG_SYS_QMAN_NUM_PORTALS 3 25567a719daSRoy Zang #define CONFIG_SYS_BMAN_NUM_PORTALS 3 256c657d898SKumar Gala #define CONFIG_SYS_FM_MURAM_SIZE 0x10000 2578f29084aSKumar Gala #define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.2" 258e46fedfeSTimur Tabi #define CONFIG_SYS_CCSRBAR_DEFAULT 0xff600000 25967a719daSRoy Zang 260093cffbeSKumar Gala /* P1024 is lower end variant of P1020 */ 261093cffbeSKumar Gala #elif defined(CONFIG_P1024) 262093cffbeSKumar Gala #define CONFIG_MAX_CPUS 2 263093cffbeSKumar Gala #define CONFIG_SYS_FSL_NUM_LAWS 12 264093cffbeSKumar Gala #define CONFIG_TSECV2 265093cffbeSKumar Gala #define CONFIG_FSL_PCIE_DISABLE_ASPM 266093cffbeSKumar Gala #define CONFIG_SYS_FSL_SEC_COMPAT 2 267e46fedfeSTimur Tabi #define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000 268093cffbeSKumar Gala #define CONFIG_SYS_FSL_ERRATUM_ELBC_A001 269093cffbeSKumar Gala #define CONFIG_SYS_FSL_ERRATUM_ESDHC111 270093cffbeSKumar Gala 271093cffbeSKumar Gala /* P1025 is lower end variant of P1021 */ 272093cffbeSKumar Gala #elif defined(CONFIG_P1025) 273093cffbeSKumar Gala #define CONFIG_MAX_CPUS 2 274093cffbeSKumar Gala #define CONFIG_SYS_FSL_NUM_LAWS 12 275093cffbeSKumar Gala #define CONFIG_TSECV2 276093cffbeSKumar Gala #define CONFIG_FSL_PCIE_DISABLE_ASPM 277093cffbeSKumar Gala #define CONFIG_SYS_FSL_SEC_COMPAT 2 278e46fedfeSTimur Tabi #define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000 279093cffbeSKumar Gala #define CONFIG_SYS_FSL_ERRATUM_ELBC_A001 280093cffbeSKumar Gala #define CONFIG_SYS_FSL_ERRATUM_ESDHC111 281a52d2f81SHaiying Wang #define QE_MURAM_SIZE 0x6000UL 282a52d2f81SHaiying Wang #define MAX_QE_RISC 1 283a52d2f81SHaiying Wang #define QE_NUM_OF_SNUM 28 284093cffbeSKumar Gala 285093cffbeSKumar Gala /* P2010 is single core version of P2020 */ 286243be8e2SKumar Gala #elif defined(CONFIG_P2010) 287243be8e2SKumar Gala #define CONFIG_MAX_CPUS 1 288243be8e2SKumar Gala #define CONFIG_SYS_FSL_NUM_LAWS 12 289243be8e2SKumar Gala #define CONFIG_SYS_FSL_SEC_COMPAT 2 290e46fedfeSTimur Tabi #define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000 2916e7f0bc0SKumar Gala #define CONFIG_SYS_FSL_ERRATUM_ESDHC111 2925103a03aSKumar Gala #define CONFIG_SYS_FSL_ERRATUM_ESDHC_A001 293243be8e2SKumar Gala 294243be8e2SKumar Gala #elif defined(CONFIG_P2020) 295243be8e2SKumar Gala #define CONFIG_MAX_CPUS 2 296243be8e2SKumar Gala #define CONFIG_SYS_FSL_NUM_LAWS 12 297243be8e2SKumar Gala #define CONFIG_SYS_FSL_SEC_COMPAT 2 298e46fedfeSTimur Tabi #define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000 2996e7f0bc0SKumar Gala #define CONFIG_SYS_FSL_ERRATUM_ESDHC111 3005103a03aSKumar Gala #define CONFIG_SYS_FSL_ERRATUM_ESDHC_A001 301243be8e2SKumar Gala 302243be8e2SKumar Gala #elif defined(CONFIG_PPC_P2040) 303243be8e2SKumar Gala #define CONFIG_MAX_CPUS 4 304b5c8753fSKumar Gala #define CONFIG_SYS_FSL_NUM_CC_PLLS 2 305243be8e2SKumar Gala #define CONFIG_SYS_FSL_NUM_LAWS 32 306243be8e2SKumar Gala #define CONFIG_SYS_FSL_SEC_COMPAT 4 307fbee0f7fSKumar Gala #define CONFIG_SYS_NUM_FMAN 1 308fbee0f7fSKumar Gala #define CONFIG_SYS_NUM_FM1_DTSEC 5 309fbee0f7fSKumar Gala #define CONFIG_NUM_DDR_CONTROLLERS 1 310c657d898SKumar Gala #define CONFIG_SYS_FM_MURAM_SIZE 0x28000 31166412c63SKumar Gala #define CONFIG_SYS_FSL_TBCLK_DIV 32 3128f29084aSKumar Gala #define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.2" 313e46fedfeSTimur Tabi #define CONFIG_SYS_CCSRBAR_DEFAULT 0xfe000000 31486221f09SRoy Zang #define CONFIG_SYS_FSL_USB1_PHY_ENABLE 31586221f09SRoy Zang #define CONFIG_SYS_FSL_USB2_PHY_ENABLE 316b6c3722dSKumar Gala #define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY 31730009766SLei Xu #define CONFIG_SYS_FSL_ERRATUM_ESDHC111 31843f082bbSKumar Gala #define CONFIG_SYS_FSL_ERRATUM_CPU_A003999 3194108508aSYork Sun #define CONFIG_SYS_FSL_ERRATUM_DDR_A003474 320243be8e2SKumar Gala 3211f97987aSKumar Gala #elif defined(CONFIG_PPC_P2041) 3221f97987aSKumar Gala #define CONFIG_MAX_CPUS 4 3231f97987aSKumar Gala #define CONFIG_SYS_FSL_NUM_CC_PLLS 2 3241f97987aSKumar Gala #define CONFIG_SYS_FSL_NUM_LAWS 32 3251f97987aSKumar Gala #define CONFIG_SYS_FSL_SEC_COMPAT 4 326*3e0529f7STimur Tabi #define CONFIG_FSL_SATA_V2 3271f97987aSKumar Gala #define CONFIG_SYS_NUM_FMAN 1 3281f97987aSKumar Gala #define CONFIG_SYS_NUM_FM1_DTSEC 5 3291f97987aSKumar Gala #define CONFIG_SYS_NUM_FM1_10GEC 1 3301f97987aSKumar Gala #define CONFIG_NUM_DDR_CONTROLLERS 1 3311f97987aSKumar Gala #define CONFIG_SYS_FM_MURAM_SIZE 0x28000 3321f97987aSKumar Gala #define CONFIG_SYS_FSL_TBCLK_DIV 32 3331f97987aSKumar Gala #define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.2" 334e46fedfeSTimur Tabi #define CONFIG_SYS_CCSRBAR_DEFAULT 0xfe000000 3351f97987aSKumar Gala #define CONFIG_SYS_FSL_USB1_PHY_ENABLE 3361f97987aSKumar Gala #define CONFIG_SYS_FSL_USB2_PHY_ENABLE 337b6c3722dSKumar Gala #define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY 3381f97987aSKumar Gala #define CONFIG_SYS_FSL_ERRATUM_ESDHC111 33943f082bbSKumar Gala #define CONFIG_SYS_FSL_ERRATUM_CPU_A003999 3404108508aSYork Sun #define CONFIG_SYS_FSL_ERRATUM_DDR_A003474 3411f97987aSKumar Gala 342243be8e2SKumar Gala #elif defined(CONFIG_PPC_P3041) 343243be8e2SKumar Gala #define CONFIG_MAX_CPUS 4 344b5c8753fSKumar Gala #define CONFIG_SYS_FSL_NUM_CC_PLLS 2 345243be8e2SKumar Gala #define CONFIG_SYS_FSL_NUM_LAWS 32 346243be8e2SKumar Gala #define CONFIG_SYS_FSL_SEC_COMPAT 4 347*3e0529f7STimur Tabi #define CONFIG_FSL_SATA_V2 348fbee0f7fSKumar Gala #define CONFIG_SYS_NUM_FMAN 1 349fbee0f7fSKumar Gala #define CONFIG_SYS_NUM_FM1_DTSEC 5 350fbee0f7fSKumar Gala #define CONFIG_SYS_NUM_FM1_10GEC 1 351fbee0f7fSKumar Gala #define CONFIG_NUM_DDR_CONTROLLERS 1 352c657d898SKumar Gala #define CONFIG_SYS_FM_MURAM_SIZE 0x28000 35366412c63SKumar Gala #define CONFIG_SYS_FSL_TBCLK_DIV 32 3548f29084aSKumar Gala #define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.2" 355e46fedfeSTimur Tabi #define CONFIG_SYS_CCSRBAR_DEFAULT 0xfe000000 35686221f09SRoy Zang #define CONFIG_SYS_FSL_USB1_PHY_ENABLE 35786221f09SRoy Zang #define CONFIG_SYS_FSL_USB2_PHY_ENABLE 358b6c3722dSKumar Gala #define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY 35930009766SLei Xu #define CONFIG_SYS_FSL_ERRATUM_ESDHC111 36043f082bbSKumar Gala #define CONFIG_SYS_FSL_ERRATUM_CPU_A003999 3614108508aSYork Sun #define CONFIG_SYS_FSL_ERRATUM_DDR_A003474 362243be8e2SKumar Gala 3636d7b061aSShengzhou Liu #elif defined(CONFIG_PPC_P3060) 3646d7b061aSShengzhou Liu #define CONFIG_MAX_CPUS 8 3656d7b061aSShengzhou Liu #define CONFIG_SYS_FSL_NUM_CC_PLLS 4 3666d7b061aSShengzhou Liu #define CONFIG_SYS_FSL_NUM_LAWS 32 3676d7b061aSShengzhou Liu #define CONFIG_SYS_FSL_SEC_COMPAT 4 3686d7b061aSShengzhou Liu #define CONFIG_SYS_NUM_FMAN 2 3696d7b061aSShengzhou Liu #define CONFIG_SYS_NUM_FM1_DTSEC 4 3706d7b061aSShengzhou Liu #define CONFIG_SYS_NUM_FM2_DTSEC 4 3716d7b061aSShengzhou Liu #define CONFIG_NUM_DDR_CONTROLLERS 1 3726d7b061aSShengzhou Liu #define CONFIG_SYS_FM_MURAM_SIZE 0x28000 3736d7b061aSShengzhou Liu #define CONFIG_SYS_FSL_TBCLK_DIV 16 3746d7b061aSShengzhou Liu #define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.2" 3756d7b061aSShengzhou Liu #define CONFIG_SYS_CCSRBAR_DEFAULT 0xfe000000 3766d7b061aSShengzhou Liu #define CONFIG_SYS_FSL_ERRATUM_DDR_A003 37743f082bbSKumar Gala #define CONFIG_SYS_FSL_ERRATUM_CPU_A003999 3786d7b061aSShengzhou Liu 379243be8e2SKumar Gala #elif defined(CONFIG_PPC_P4040) 380243be8e2SKumar Gala #define CONFIG_MAX_CPUS 4 381b5c8753fSKumar Gala #define CONFIG_SYS_FSL_NUM_CC_PLLS 4 382243be8e2SKumar Gala #define CONFIG_SYS_FSL_NUM_LAWS 32 383243be8e2SKumar Gala #define CONFIG_SYS_FSL_SEC_COMPAT 4 384c657d898SKumar Gala #define CONFIG_SYS_FM_MURAM_SIZE 0x28000 38566412c63SKumar Gala #define CONFIG_SYS_FSL_TBCLK_DIV 16 3868f29084aSKumar Gala #define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,p4080-pcie" 387e46fedfeSTimur Tabi #define CONFIG_SYS_CCSRBAR_DEFAULT 0xfe000000 38843f082bbSKumar Gala #define CONFIG_SYS_FSL_ERRATUM_CPU_A003999 3894108508aSYork Sun #define CONFIG_SYS_FSL_ERRATUM_DDR_A003474 390243be8e2SKumar Gala 391243be8e2SKumar Gala #elif defined(CONFIG_PPC_P4080) 392243be8e2SKumar Gala #define CONFIG_MAX_CPUS 8 393b5c8753fSKumar Gala #define CONFIG_SYS_FSL_NUM_CC_PLLS 4 394243be8e2SKumar Gala #define CONFIG_SYS_FSL_NUM_LAWS 32 395243be8e2SKumar Gala #define CONFIG_SYS_FSL_SEC_COMPAT 4 396243be8e2SKumar Gala #define CONFIG_SYS_NUM_FMAN 2 397243be8e2SKumar Gala #define CONFIG_SYS_NUM_FM1_DTSEC 4 398243be8e2SKumar Gala #define CONFIG_SYS_NUM_FM2_DTSEC 4 399243be8e2SKumar Gala #define CONFIG_SYS_NUM_FM1_10GEC 1 400243be8e2SKumar Gala #define CONFIG_SYS_NUM_FM2_10GEC 1 401243be8e2SKumar Gala #define CONFIG_NUM_DDR_CONTROLLERS 2 402c657d898SKumar Gala #define CONFIG_SYS_FM_MURAM_SIZE 0x28000 40366412c63SKumar Gala #define CONFIG_SYS_FSL_TBCLK_DIV 16 4048f29084aSKumar Gala #define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,p4080-pcie" 405e46fedfeSTimur Tabi #define CONFIG_SYS_CCSRBAR_DEFAULT 0xfe000000 406243be8e2SKumar Gala #define CONFIG_SYS_FSL_ERRATUM_CPC_A002 407243be8e2SKumar Gala #define CONFIG_SYS_FSL_ERRATUM_CPC_A003 408fa8d23c0SYork Sun #define CONFIG_SYS_FSL_ERRATUM_DDR_A003 409243be8e2SKumar Gala #define CONFIG_SYS_FSL_ERRATUM_ELBC_A001 410243be8e2SKumar Gala #define CONFIG_SYS_FSL_ERRATUM_ESDHC111 411243be8e2SKumar Gala #define CONFIG_SYS_FSL_ERRATUM_ESDHC135 412243be8e2SKumar Gala #define CONFIG_SYS_FSL_ERRATUM_ESDHC136 413243be8e2SKumar Gala #define CONFIG_SYS_P4080_ERRATUM_CPU22 414243be8e2SKumar Gala #define CONFIG_SYS_P4080_ERRATUM_SERDES8 415df8af0b4SEmil Medve #define CONFIG_SYS_P4080_ERRATUM_SERDES9 416d90fdba6STimur Tabi #define CONFIG_SYS_P4080_ERRATUM_SERDES_A001 417da30b9fdSTimur Tabi #define CONFIG_SYS_P4080_ERRATUM_SERDES_A005 41843f082bbSKumar Gala #define CONFIG_SYS_FSL_ERRATUM_CPU_A003999 4194108508aSYork Sun #define CONFIG_SYS_FSL_ERRATUM_DDR_A003474 420243be8e2SKumar Gala 421093cffbeSKumar Gala /* P5010 is single core version of P5020 */ 422243be8e2SKumar Gala #elif defined(CONFIG_PPC_P5010) 423243be8e2SKumar Gala #define CONFIG_MAX_CPUS 1 424b5c8753fSKumar Gala #define CONFIG_SYS_FSL_NUM_CC_PLLS 2 425243be8e2SKumar Gala #define CONFIG_SYS_FSL_NUM_LAWS 32 426243be8e2SKumar Gala #define CONFIG_SYS_FSL_SEC_COMPAT 4 427*3e0529f7STimur Tabi #define CONFIG_FSL_SATA_V2 428fbee0f7fSKumar Gala #define CONFIG_SYS_NUM_FMAN 1 429fbee0f7fSKumar Gala #define CONFIG_SYS_NUM_FM1_DTSEC 5 430fbee0f7fSKumar Gala #define CONFIG_SYS_NUM_FM1_10GEC 1 431fbee0f7fSKumar Gala #define CONFIG_NUM_DDR_CONTROLLERS 1 432c657d898SKumar Gala #define CONFIG_SYS_FM_MURAM_SIZE 0x28000 43366412c63SKumar Gala #define CONFIG_SYS_FSL_TBCLK_DIV 32 4348f29084aSKumar Gala #define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.2" 435e46fedfeSTimur Tabi #define CONFIG_SYS_CCSRBAR_DEFAULT 0xfe000000 43686221f09SRoy Zang #define CONFIG_SYS_FSL_USB1_PHY_ENABLE 43786221f09SRoy Zang #define CONFIG_SYS_FSL_USB2_PHY_ENABLE 438b6c3722dSKumar Gala #define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY 43930009766SLei Xu #define CONFIG_SYS_FSL_ERRATUM_ESDHC111 4404108508aSYork Sun #define CONFIG_SYS_FSL_ERRATUM_DDR_A003474 441243be8e2SKumar Gala 442243be8e2SKumar Gala #elif defined(CONFIG_PPC_P5020) 443243be8e2SKumar Gala #define CONFIG_MAX_CPUS 2 444b5c8753fSKumar Gala #define CONFIG_SYS_FSL_NUM_CC_PLLS 2 445243be8e2SKumar Gala #define CONFIG_SYS_FSL_NUM_LAWS 32 446243be8e2SKumar Gala #define CONFIG_SYS_FSL_SEC_COMPAT 4 447*3e0529f7STimur Tabi #define CONFIG_FSL_SATA_V2 448fbee0f7fSKumar Gala #define CONFIG_SYS_NUM_FMAN 1 449fbee0f7fSKumar Gala #define CONFIG_SYS_NUM_FM1_DTSEC 5 450fbee0f7fSKumar Gala #define CONFIG_SYS_NUM_FM1_10GEC 1 451fbee0f7fSKumar Gala #define CONFIG_NUM_DDR_CONTROLLERS 2 452c657d898SKumar Gala #define CONFIG_SYS_FM_MURAM_SIZE 0x28000 45366412c63SKumar Gala #define CONFIG_SYS_FSL_TBCLK_DIV 32 4548f29084aSKumar Gala #define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.2" 455e46fedfeSTimur Tabi #define CONFIG_SYS_CCSRBAR_DEFAULT 0xfe000000 45686221f09SRoy Zang #define CONFIG_SYS_FSL_USB1_PHY_ENABLE 45786221f09SRoy Zang #define CONFIG_SYS_FSL_USB2_PHY_ENABLE 458b6c3722dSKumar Gala #define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY 45930009766SLei Xu #define CONFIG_SYS_FSL_ERRATUM_ESDHC111 4604108508aSYork Sun #define CONFIG_SYS_FSL_ERRATUM_DDR_A003474 461243be8e2SKumar Gala 462243be8e2SKumar Gala #else 463243be8e2SKumar Gala #error Processor type not defined for this platform 464243be8e2SKumar Gala #endif 465243be8e2SKumar Gala 466e46fedfeSTimur Tabi #ifndef CONFIG_SYS_CCSRBAR_DEFAULT 467e46fedfeSTimur Tabi #error "CONFIG_SYS_CCSRBAR_DEFAULT is not defined for this platform." 468e46fedfeSTimur Tabi #endif 469e46fedfeSTimur Tabi 470243be8e2SKumar Gala #endif /* _ASM_MPC85xx_CONFIG_H_ */ 471