536-board_fast2704.patch 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. From: Marcin Jurkowski <marcin1j@gmail.com>
  2. Date: Thu, 31 Oct 2013 22:33:10 +0000
  3. Subject: [PATCH] bcm63xx: Add kernel support for Sagemcom F@ST2704V2 ADSL
  4. router
  5. This adds kernel support support for Sagemcom F@st 2704 wireless ADSL
  6. router.
  7. It's a BCM6328-based 802.11n wireless router with USB port and ADSL2+
  8. modem equipped with 64 MiB RAM and 8 MiB flash.
  9. Signed-off-by: Marcin Jurkowski <marcin1j@gmail.com>
  10. ---
  11. --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
  12. +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
  13. @@ -395,6 +395,44 @@ static struct board_info __initdata boar
  14. },
  15. },
  16. };
  17. +
  18. +static struct board_info __initdata board_FAST2704V2 = {
  19. + .name = "F@ST2704V2",
  20. + .expected_cpu_id = 0x6328,
  21. +
  22. + .has_uart0 = 1,
  23. + .has_pci = 1,
  24. + .has_ohci0 = 1,
  25. + .has_ehci0 = 1,
  26. + .has_usbd = 1,
  27. +
  28. + .has_enetsw = 1,
  29. +
  30. + .enetsw = {
  31. + .used_ports = {
  32. + [0] = {
  33. + .used = 1,
  34. + .phy_id = 1,
  35. + .name = "Port 1",
  36. + },
  37. + [1] = {
  38. + .used = 1,
  39. + .phy_id = 2,
  40. + .name = "Port 2",
  41. + },
  42. + [2] = {
  43. + .used = 1,
  44. + .phy_id = 3,
  45. + .name = "Port 3",
  46. + },
  47. + [3] = {
  48. + .used = 1,
  49. + .phy_id = 4,
  50. + .name = "Port 4",
  51. + },
  52. + },
  53. + },
  54. +};
  55. #endif /* CONFIG_BCM63XX_CPU_6328 */
  56. /*
  57. @@ -1807,6 +1845,7 @@ static const struct board_info __initcon
  58. &board_963281TAN,
  59. &board_A4001N1,
  60. &board_dsl_274xb_f1,
  61. + &board_FAST2704V2,
  62. #endif
  63. #ifdef CONFIG_BCM63XX_CPU_6338
  64. &board_96338gw,
  65. @@ -1882,6 +1921,7 @@ static struct of_device_id const bcm963x
  66. { .compatible = "comtrend,ar-5381u", .data = &board_AR5381u, },
  67. { .compatible = "comtrend,ar-5387un", .data = &board_AR5387un, },
  68. { .compatible = "d-link,dsl-274xb-f", .data = &board_dsl_274xb_f1, },
  69. + { .compatible = "sagem,f@st2704v2", .data = &board_FAST2704V2, },
  70. #endif
  71. #ifdef CONFIG_BCM63XX_CPU_6338
  72. { .compatible = "brcm,bcm96338gw", .data = &board_96338gw, },