config_mpc85xx.h 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225
  1. /*
  2. * Copyright 2011 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. #ifndef _ASM_MPC85xx_CONFIG_H_
  21. #define _ASM_MPC85xx_CONFIG_H_
  22. /* SoC specific defines for Freescale MPC85xx (PQ3) and QorIQ processors */
  23. /* Number of TLB CAM entries we have on FSL Book-E chips */
  24. #if defined(CONFIG_E500MC)
  25. #define CONFIG_SYS_NUM_TLBCAMS 64
  26. #elif defined(CONFIG_E500)
  27. #define CONFIG_SYS_NUM_TLBCAMS 16
  28. #endif
  29. #if defined(CONFIG_MPC8536)
  30. #define CONFIG_MAX_CPUS 1
  31. #define CONFIG_SYS_FSL_NUM_LAWS 12
  32. #define CONFIG_SYS_FSL_SEC_COMPAT 2
  33. #elif defined(CONFIG_MPC8540)
  34. #define CONFIG_MAX_CPUS 1
  35. #define CONFIG_SYS_FSL_NUM_LAWS 8
  36. #elif defined(CONFIG_MPC8541)
  37. #define CONFIG_MAX_CPUS 1
  38. #define CONFIG_SYS_FSL_NUM_LAWS 8
  39. #define CONFIG_SYS_FSL_SEC_COMPAT 2
  40. #elif defined(CONFIG_MPC8544)
  41. #define CONFIG_MAX_CPUS 1
  42. #define CONFIG_SYS_FSL_NUM_LAWS 10
  43. #define CONFIG_SYS_FSL_SEC_COMPAT 2
  44. #elif defined(CONFIG_MPC8548)
  45. #define CONFIG_MAX_CPUS 1
  46. #define CONFIG_SYS_FSL_NUM_LAWS 10
  47. #define CONFIG_SYS_FSL_SEC_COMPAT 2
  48. #elif defined(CONFIG_MPC8555)
  49. #define CONFIG_MAX_CPUS 1
  50. #define CONFIG_SYS_FSL_NUM_LAWS 8
  51. #define CONFIG_SYS_FSL_SEC_COMPAT 2
  52. #elif defined(CONFIG_MPC8560)
  53. #define CONFIG_MAX_CPUS 1
  54. #define CONFIG_SYS_FSL_NUM_LAWS 8
  55. #elif defined(CONFIG_MPC8568)
  56. #define CONFIG_MAX_CPUS 1
  57. #define CONFIG_SYS_FSL_NUM_LAWS 10
  58. #define CONFIG_SYS_FSL_SEC_COMPAT 2
  59. #define QE_MURAM_SIZE 0x10000UL
  60. #define MAX_QE_RISC 2
  61. #define QE_NUM_OF_SNUM 28
  62. #elif defined(CONFIG_MPC8569)
  63. #define CONFIG_MAX_CPUS 1
  64. #define CONFIG_SYS_FSL_NUM_LAWS 10
  65. #define CONFIG_SYS_FSL_SEC_COMPAT 2
  66. #define QE_MURAM_SIZE 0x20000UL
  67. #define MAX_QE_RISC 4
  68. #define QE_NUM_OF_SNUM 46
  69. #elif defined(CONFIG_MPC8572)
  70. #define CONFIG_MAX_CPUS 2
  71. #define CONFIG_SYS_FSL_NUM_LAWS 12
  72. #define CONFIG_SYS_FSL_SEC_COMPAT 2
  73. #define CONFIG_SYS_FSL_ERRATUM_DDR_115
  74. #define CONFIG_SYS_FSL_ERRATUM_DDR111_DDR134
  75. #elif defined(CONFIG_P1010)
  76. #define CONFIG_MAX_CPUS 1
  77. #define CONFIG_SYS_FSL_NUM_LAWS 12
  78. #define CONFIG_TSECV2
  79. #define CONFIG_SYS_FSL_SEC_COMPAT 4
  80. #elif defined(CONFIG_P1011)
  81. #define CONFIG_MAX_CPUS 1
  82. #define CONFIG_SYS_FSL_NUM_LAWS 12
  83. #define CONFIG_TSECV2
  84. #define CONFIG_FSL_PCIE_DISABLE_ASPM
  85. #define CONFIG_SYS_FSL_SEC_COMPAT 2
  86. #elif defined(CONFIG_P1012)
  87. #define CONFIG_MAX_CPUS 1
  88. #define CONFIG_SYS_FSL_NUM_LAWS 12
  89. #define CONFIG_TSECV2
  90. #define CONFIG_FSL_PCIE_DISABLE_ASPM
  91. #define CONFIG_SYS_FSL_SEC_COMPAT 2
  92. #elif defined(CONFIG_P1013)
  93. #define CONFIG_MAX_CPUS 1
  94. #define CONFIG_SYS_FSL_NUM_LAWS 12
  95. #define CONFIG_TSECV2
  96. #define CONFIG_SYS_FSL_SEC_COMPAT 2
  97. #define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
  98. #define CONFIG_SYS_FSL_ERRATUM_ESDHC111
  99. #define CONFIG_FSL_SATA_ERRATUM_A001
  100. #elif defined(CONFIG_P1014)
  101. #define CONFIG_MAX_CPUS 1
  102. #define CONFIG_SYS_FSL_NUM_LAWS 12
  103. #define CONFIG_TSECV2
  104. #define CONFIG_SYS_FSL_SEC_COMPAT 4
  105. #elif defined(CONFIG_P1020)
  106. #define CONFIG_MAX_CPUS 2
  107. #define CONFIG_SYS_FSL_NUM_LAWS 12
  108. #define CONFIG_TSECV2
  109. #define CONFIG_FSL_PCIE_DISABLE_ASPM
  110. #define CONFIG_SYS_FSL_SEC_COMPAT 2
  111. #elif defined(CONFIG_P1021)
  112. #define CONFIG_MAX_CPUS 2
  113. #define CONFIG_SYS_FSL_NUM_LAWS 12
  114. #define CONFIG_TSECV2
  115. #define CONFIG_FSL_PCIE_DISABLE_ASPM
  116. #define CONFIG_SYS_FSL_SEC_COMPAT 2
  117. #elif defined(CONFIG_P1022)
  118. #define CONFIG_MAX_CPUS 2
  119. #define CONFIG_SYS_FSL_NUM_LAWS 12
  120. #define CONFIG_TSECV2
  121. #define CONFIG_SYS_FSL_SEC_COMPAT 2
  122. #define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
  123. #define CONFIG_SYS_FSL_ERRATUM_ESDHC111
  124. #define CONFIG_FSL_SATA_ERRATUM_A001
  125. #elif defined(CONFIG_P2010)
  126. #define CONFIG_MAX_CPUS 1
  127. #define CONFIG_SYS_FSL_NUM_LAWS 12
  128. #define CONFIG_SYS_FSL_SEC_COMPAT 2
  129. #define CONFIG_SYS_FSL_ERRATUM_ESDHC111
  130. #define CONFIG_SYS_FSL_ERRATUM_ESDHC_A001
  131. #elif defined(CONFIG_P2020)
  132. #define CONFIG_MAX_CPUS 2
  133. #define CONFIG_SYS_FSL_NUM_LAWS 12
  134. #define CONFIG_SYS_FSL_SEC_COMPAT 2
  135. #define CONFIG_SYS_FSL_ERRATUM_ESDHC111
  136. #define CONFIG_SYS_FSL_ERRATUM_ESDHC_A001
  137. #elif defined(CONFIG_PPC_P2040)
  138. #define CONFIG_MAX_CPUS 4
  139. #define CONFIG_SYS_FSL_NUM_LAWS 32
  140. #define CONFIG_SYS_FSL_SEC_COMPAT 4
  141. #define CONFIG_SYS_NUM_FMAN 1
  142. #define CONFIG_SYS_NUM_FM1_DTSEC 5
  143. #define CONFIG_NUM_DDR_CONTROLLERS 1
  144. #elif defined(CONFIG_PPC_P3041)
  145. #define CONFIG_MAX_CPUS 4
  146. #define CONFIG_SYS_FSL_NUM_LAWS 32
  147. #define CONFIG_SYS_FSL_SEC_COMPAT 4
  148. #define CONFIG_SYS_NUM_FMAN 1
  149. #define CONFIG_SYS_NUM_FM1_DTSEC 5
  150. #define CONFIG_SYS_NUM_FM1_10GEC 1
  151. #define CONFIG_NUM_DDR_CONTROLLERS 1
  152. #elif defined(CONFIG_PPC_P4040)
  153. #define CONFIG_MAX_CPUS 4
  154. #define CONFIG_SYS_FSL_NUM_LAWS 32
  155. #define CONFIG_SYS_FSL_SEC_COMPAT 4
  156. #elif defined(CONFIG_PPC_P4080)
  157. #define CONFIG_MAX_CPUS 8
  158. #define CONFIG_SYS_FSL_NUM_LAWS 32
  159. #define CONFIG_SYS_FSL_SEC_COMPAT 4
  160. #define CONFIG_SYS_NUM_FMAN 2
  161. #define CONFIG_SYS_NUM_FM1_DTSEC 4
  162. #define CONFIG_SYS_NUM_FM2_DTSEC 4
  163. #define CONFIG_SYS_NUM_FM1_10GEC 1
  164. #define CONFIG_SYS_NUM_FM2_10GEC 1
  165. #define CONFIG_NUM_DDR_CONTROLLERS 2
  166. #define CONFIG_SYS_FSL_ERRATUM_CPC_A002
  167. #define CONFIG_SYS_FSL_ERRATUM_CPC_A003
  168. #define CONFIG_SYS_FSL_ERRATUM_DDR_A003
  169. #define CONFIG_SYS_FSL_ERRATUM_ELBC_A001
  170. #define CONFIG_SYS_FSL_ERRATUM_ESDHC111
  171. #define CONFIG_SYS_FSL_ERRATUM_ESDHC135
  172. #define CONFIG_SYS_FSL_ERRATUM_ESDHC136
  173. #define CONFIG_SYS_P4080_ERRATUM_CPU22
  174. #define CONFIG_SYS_P4080_ERRATUM_SERDES8
  175. #elif defined(CONFIG_PPC_P5010)
  176. #define CONFIG_MAX_CPUS 1
  177. #define CONFIG_SYS_FSL_NUM_LAWS 32
  178. #define CONFIG_SYS_FSL_SEC_COMPAT 4
  179. #define CONFIG_SYS_NUM_FMAN 1
  180. #define CONFIG_SYS_NUM_FM1_DTSEC 5
  181. #define CONFIG_SYS_NUM_FM1_10GEC 1
  182. #define CONFIG_NUM_DDR_CONTROLLERS 1
  183. #elif defined(CONFIG_PPC_P5020)
  184. #define CONFIG_MAX_CPUS 2
  185. #define CONFIG_SYS_FSL_NUM_LAWS 32
  186. #define CONFIG_SYS_FSL_SEC_COMPAT 4
  187. #define CONFIG_SYS_NUM_FMAN 1
  188. #define CONFIG_SYS_NUM_FM1_DTSEC 5
  189. #define CONFIG_SYS_NUM_FM1_10GEC 1
  190. #define CONFIG_NUM_DDR_CONTROLLERS 2
  191. #else
  192. #error Processor type not defined for this platform
  193. #endif
  194. #endif /* _ASM_MPC85xx_CONFIG_H_ */