537-board_fast2504n.patch 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. From: Max Staudt <openwrt.max@enpas.org>
  2. Date: Wed, 15 Jan 2014 18:51:13 +0000
  3. Subject: [PATCH] brcm63xx: F@ST2504n board support (Linux-3.10.26)
  4. Signed-off-by: Max Staudt <openwrt.max@enpas.org>
  5. ---
  6. --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
  7. +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
  8. @@ -1731,6 +1731,43 @@ static struct board_info __initdata boar
  9. .devs = nb6_devices,
  10. .num_devs = ARRAY_SIZE(nb6_devices),
  11. };
  12. +
  13. +static struct board_info __initdata board_fast2504n = {
  14. + .name = "F@ST2504n",
  15. + .expected_cpu_id = 0x6362,
  16. +
  17. + .has_uart0 = 1,
  18. +
  19. + .has_enetsw = 1,
  20. +
  21. + .enetsw = {
  22. + .used_ports = {
  23. + [0] = {
  24. + .used = 1,
  25. + .phy_id = 1,
  26. + .name = "Port 1",
  27. + },
  28. +
  29. + [1] = {
  30. + .used = 1,
  31. + .phy_id = 2,
  32. + .name = "Port 2",
  33. + },
  34. +
  35. + [2] = {
  36. + .used = 1,
  37. + .phy_id = 3,
  38. + .name = "Port 3",
  39. + },
  40. +
  41. + [3] = {
  42. + .used = 1,
  43. + .phy_id = 4,
  44. + .name = "Port 4",
  45. + },
  46. + },
  47. + },
  48. +};
  49. #endif /* CONFIG_BCM63XX_CPU_6362 */
  50. /*
  51. @@ -1896,6 +1933,7 @@ static const struct board_info __initcon
  52. #ifdef CONFIG_BCM63XX_CPU_6362
  53. &board_nb6,
  54. + &board_fast2504n,
  55. #endif
  56. #ifdef CONFIG_BCM63XX_CPU_6368
  57. @@ -1977,6 +2015,7 @@ static struct of_device_id const bcm963x
  58. { .compatible = "telsey,cpva642", .data = &board_CPVA642, },
  59. #endif
  60. #ifdef CONFIG_BCM63XX_CPU_6362
  61. + { .compatible = "sagem,f@st2504n", .data = &board_fast2504n, },
  62. { .compatible = "sfr,nb6-ser-r0", .data = &board_nb6, },
  63. #endif
  64. #ifdef CONFIG_BCM63XX_CPU_6368