519-board_bcm63268.patch 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307
  1. --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
  2. +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
  3. @@ -2542,6 +2542,273 @@ static struct board_info __initdata boar
  4. #endif /* CONFIG_BCM63XX_CPU_6368 */
  5. /*
  6. + * known 63268/63269 boards
  7. + */
  8. +#ifdef CONFIG_BCM63XX_CPU_63268
  9. +static struct board_info __initdata board_963268bu_p300 = {
  10. + .name = "963268BU_P300",
  11. + .expected_cpu_id = 0x63268,
  12. +
  13. + .has_ohci0 = 1,
  14. + .has_ehci0 = 1,
  15. + .num_usbh_ports = 1,
  16. +
  17. + .has_usbd = 1,
  18. + .usbd = {
  19. + .use_fullspeed = 0,
  20. + .port_no = 0,
  21. + },
  22. +
  23. + .has_enetsw = 1,
  24. + .enetsw = {
  25. + .used_ports = {
  26. + [0] = {
  27. + .used = 1,
  28. + .phy_id = 17,
  29. + .name = "FE1",
  30. + },
  31. + [3] = {
  32. + .used = 1,
  33. + .phy_id = 4,
  34. + .name = "GbE2",
  35. + },
  36. + [4] = {
  37. + .used = 1,
  38. + .phy_id = 0,
  39. + .name = "GbE3",
  40. + .mii_override = 1,
  41. + .timing_sel = 1,
  42. + },
  43. + [5] = {
  44. + .used = 1,
  45. + .phy_id = 1,
  46. + .name = "GbE1",
  47. + .mii_override = 1,
  48. + .timing_sel = 1,
  49. + },
  50. + [6] = {
  51. + .used = 1,
  52. + .phy_id = 24,
  53. + .name = "GbE4",
  54. + .mii_override = 1,
  55. + .timing_sel = 1,
  56. + },
  57. + [7] = {
  58. + .used = 1,
  59. + .phy_id = 25,
  60. + .name = "GbE5",
  61. + .mii_override = 1,
  62. + .timing_sel = 1,
  63. + },
  64. + },
  65. + },
  66. +};
  67. +
  68. +static struct board_info __initdata board_963269bhr = {
  69. + .name = "963269BHR",
  70. + .expected_cpu_id = 0x63268,
  71. +
  72. + .has_pci = 1,
  73. + .has_ohci0 = 1,
  74. + .has_ehci0 = 1,
  75. +
  76. + .has_enetsw = 1,
  77. + .enetsw = {
  78. + .used_ports = {
  79. + [0] = {
  80. + .used = 1,
  81. + .phy_id = 1,
  82. + .name = "port1",
  83. + },
  84. + [1] = {
  85. + .used = 1,
  86. + .phy_id = 2,
  87. + .name = "port2",
  88. + },
  89. + [2] = {
  90. + .used = 1,
  91. + .phy_id = 3,
  92. + .name = "port3",
  93. + },
  94. + [3] = {
  95. + .used = 1,
  96. + .phy_id = 4,
  97. + .name = "port4",
  98. + },
  99. + },
  100. + },
  101. +};
  102. +
  103. +static struct board_info __initdata board_BSKYB_63168 = {
  104. + .name = "BSKYB_63168",
  105. + .expected_cpu_id = 0x63268,
  106. +
  107. + .has_pci = 1,
  108. + .has_ohci0 = 1,
  109. + .has_ehci0 = 1,
  110. + .num_usbh_ports = 2,
  111. +
  112. + .has_enetsw = 1,
  113. + .enetsw = {
  114. + .used_ports = {
  115. + [0] = {
  116. + .used = 1,
  117. + .phy_id = 1,
  118. + .name = "Port 1",
  119. + },
  120. + [1] = {
  121. + .used = 1,
  122. + .phy_id = 2,
  123. + .name = "Port 2",
  124. + },
  125. + [2] = {
  126. + .used = 1,
  127. + .phy_id = 3,
  128. + .name = "Port 3",
  129. + },
  130. + [3] = {
  131. + .used = 1,
  132. + .phy_id = 4,
  133. + .name = "Port 4",
  134. + },
  135. + },
  136. + },
  137. +};
  138. +
  139. +static struct board_info __initdata board_H500s = {
  140. + .name = "BXK00C-1.6",
  141. + .expected_cpu_id = 0x63268,
  142. +
  143. + .has_ohci0 = 1,
  144. + .has_ehci0 = 1,
  145. + .num_usbh_ports = 1,
  146. +
  147. + .has_enetsw = 1,
  148. + .enetsw = {
  149. + .used_ports = {
  150. + [3] = {
  151. + .used = 1,
  152. + .phy_id = 12,
  153. + .name = "WAN",
  154. + },
  155. + [4] = {
  156. + .used = 1,
  157. + .phy_id = 0,
  158. + .bypass_link = 1,
  159. + .force_speed = 1000,
  160. + .force_duplex_full = 1,
  161. + .mii_override = 1,
  162. + .timing_sel = 1,
  163. + .name = "RGMII",
  164. + },
  165. + },
  166. + },
  167. +};
  168. +
  169. +static struct board_info __initdata board_VG8050 = {
  170. + .name = "963169P-1861N5",
  171. + .expected_cpu_id = 0x63268,
  172. +
  173. + .has_ohci0 = 1,
  174. + .has_ehci0 = 1,
  175. + .num_usbh_ports = 2,
  176. +
  177. + .has_enetsw = 1,
  178. + .enetsw = {
  179. + .used_ports = {
  180. + [6] = {
  181. + .used = 1,
  182. + .phy_id = 0xff,
  183. + .bypass_link = 1,
  184. + .force_speed = 1000,
  185. + .force_duplex_full = 1,
  186. + .mii_override = 1,
  187. + .timing_sel = 1,
  188. + .name = "RGMII",
  189. + },
  190. + },
  191. + },
  192. +};
  193. +
  194. +static struct board_info __initdata board_VR3032u = {
  195. + .name = "963168M-1841N1",
  196. + .expected_cpu_id = 0x63268,
  197. +
  198. + .has_ohci0 = 1,
  199. + .has_ehci0 = 1,
  200. + .num_usbh_ports = 1,
  201. +
  202. + .has_enetsw = 1,
  203. + .enetsw = {
  204. + .used_ports = {
  205. + [0] = {
  206. + .used = 1,
  207. + .phy_id = 1,
  208. + .name = "LAN2",
  209. + },
  210. + [1] = {
  211. + .used = 1,
  212. + .phy_id = 2,
  213. + .name = "LAN3",
  214. + },
  215. + [2] = {
  216. + .used = 1,
  217. + .phy_id = 3,
  218. + .name = "LAN4",
  219. + },
  220. + [3] = {
  221. + .used = 1,
  222. + .phy_id = 4,
  223. + .name = "LAN1",
  224. + },
  225. + },
  226. + },
  227. +};
  228. +
  229. +static struct board_info __initdata board_vw6339gu = {
  230. + .name = "VW6339GU",
  231. + .expected_cpu_id = 0x63268,
  232. +
  233. + .has_ohci0 = 1,
  234. + .has_ehci0 = 1,
  235. + .num_usbh_ports = 1,
  236. +
  237. + .has_enetsw = 1,
  238. + .enetsw = {
  239. + .used_ports = {
  240. + [0] = {
  241. + .used = 1,
  242. + .phy_id = 1,
  243. + .name = "LAN2",
  244. + },
  245. + [1] = {
  246. + .used = 1,
  247. + .phy_id = 2,
  248. + .name = "LAN3",
  249. + },
  250. + [2] = {
  251. + .used = 1,
  252. + .phy_id = 3,
  253. + .name = "LAN4",
  254. + },
  255. + [3] = {
  256. + .used = 1,
  257. + .phy_id = 4,
  258. + .name = "LAN1",
  259. + },
  260. + [4] = {
  261. + .used = 1,
  262. + .phy_id = 7,
  263. + .name = "WAN",
  264. + .mii_override = 1,
  265. + .timing_sel = 1,
  266. + },
  267. + },
  268. + },
  269. +};
  270. +#endif /* CONFIG_BCM63XX_CPU_63268 */
  271. +
  272. +/*
  273. * all boards
  274. */
  275. static const struct board_info __initconst *bcm963xx_boards[] = {
  276. @@ -2642,6 +2909,15 @@ static const struct board_info __initcon
  277. &board_VR3026e,
  278. &board_WAP5813n,
  279. #endif /* CONFIG_BCM63XX_CPU_6368 */
  280. +#ifdef CONFIG_BCM63XX_CPU_63268
  281. + &board_963268bu_p300,
  282. + &board_963269bhr,
  283. + &board_BSKYB_63168,
  284. + &board_H500s,
  285. + &board_VG8050,
  286. + &board_VR3032u,
  287. + &board_vw6339gu,
  288. +#endif /* CONFIG_BCM63XX_CPU_63268 */
  289. };
  290. static struct of_device_id const bcm963xx_boards_dt[] = {
  291. @@ -2755,6 +3031,14 @@ static struct of_device_id const bcm963x
  292. { .compatible = "zyxel,p870hw-51a-v2", .data = &board_P870HW51A_V2, },
  293. #endif /* CONFIG_BCM63XX_CPU_6368 */
  294. #ifdef CONFIG_BCM63XX_CPU_63268
  295. + { .compatible = "brcm,bcm963268bu-p300", .data = &board_963268bu_p300, },
  296. + { .compatible = "brcm,bcm963269bhr", .data = &board_963269bhr, },
  297. + { .compatible = "comtrend,vg-8050", .data = &board_VG8050, },
  298. + { .compatible = "comtrend,vr-3032u", .data = &board_VR3032u, },
  299. + { .compatible = "inteno,vg50", .data = &board_vw6339gu, },
  300. + { .compatible = "sercomm,h500-s-lowi", .data = &board_H500s, },
  301. + { .compatible = "sercomm,h500-s-vfes", .data = &board_H500s, },
  302. + { .compatible = "sky,sr102", .data = &board_BSKYB_63168, },
  303. #endif /* CONFIG_BCM63XX_CPU_63268 */
  304. #endif /* CONFIG_OF */
  305. { },