537-board_fast2504n.patch 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. From: Max Staudt <[email protected]>
  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 <[email protected]>
  5. ---
  6. --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
  7. +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
  8. @@ -1382,6 +1382,41 @@ static struct board_info __initdata boar
  9. },
  10. },
  11. };
  12. +
  13. +static struct board_info __initdata board_fast2504n = {
  14. + .name = "F@ST2504n",
  15. + .expected_cpu_id = 0x6362,
  16. +
  17. + .has_enetsw = 1,
  18. +
  19. + .enetsw = {
  20. + .used_ports = {
  21. + [0] = {
  22. + .used = 1,
  23. + .phy_id = 1,
  24. + .name = "Port 1",
  25. + },
  26. +
  27. + [1] = {
  28. + .used = 1,
  29. + .phy_id = 2,
  30. + .name = "Port 2",
  31. + },
  32. +
  33. + [2] = {
  34. + .used = 1,
  35. + .phy_id = 3,
  36. + .name = "Port 3",
  37. + },
  38. +
  39. + [3] = {
  40. + .used = 1,
  41. + .phy_id = 4,
  42. + .name = "Port 4",
  43. + },
  44. + },
  45. + },
  46. +};
  47. #endif /* CONFIG_BCM63XX_CPU_6362 */
  48. /*
  49. @@ -1545,6 +1580,7 @@ static const struct board_info __initcon
  50. #ifdef CONFIG_BCM63XX_CPU_6362
  51. &board_nb6,
  52. + &board_fast2504n,
  53. #endif
  54. #ifdef CONFIG_BCM63XX_CPU_6368
  55. @@ -1626,6 +1662,7 @@ static struct of_device_id const bcm963x
  56. { .compatible = "telsey,cpva642", .data = &board_CPVA642, },
  57. #endif
  58. #ifdef CONFIG_BCM63XX_CPU_6362
  59. + { .compatible = "sagem,f@st2504n", .data = &board_fast2504n, },
  60. { .compatible = "sfr,nb6-ser-r0", .data = &board_nb6, },
  61. #endif
  62. #ifdef CONFIG_BCM63XX_CPU_6368