524-board_dsl_274xb_rev_f.patch 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. From 66808f706b3dcd83a9f5157997ff478a880a2906 Mon Sep 17 00:00:00 2001
  2. From: Jonas Gorski <jonas.gorski@gmail.com>
  3. Date: Mon, 30 Apr 2012 09:10:51 +0200
  4. Subject: [PATCH 70/79] MIPS: BCM63XX: Add board definition for D-Link
  5. DSL-274xB rev F1
  6. ---
  7. arch/mips/bcm63xx/boards/board_bcm963xx.c | 104 +++++++++++++++++++++++++++++
  8. 1 files changed, 104 insertions(+), 0 deletions(-)
  9. --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
  10. +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
  11. @@ -168,6 +168,52 @@ static struct board_info __initdata boar
  12. },
  13. },
  14. };
  15. +
  16. +static struct board_info __initdata board_dsl_274xb_f1 = {
  17. + .name = "AW4339U",
  18. + .expected_cpu_id = 0x6328,
  19. +
  20. + .has_uart0 = 1,
  21. + .has_pci = 1,
  22. +
  23. + .has_caldata = 1,
  24. + .caldata = {
  25. + {
  26. + .vendor = PCI_VENDOR_ID_ATHEROS,
  27. + .caldata_offset = 0x7d1000,
  28. + .slot = 0,
  29. + .led_pin = -1,
  30. + .led_active_high = 1,
  31. + },
  32. + },
  33. +
  34. + .has_enetsw = 1,
  35. +
  36. + .enetsw = {
  37. + .used_ports = {
  38. + [0] = {
  39. + .used = 1,
  40. + .phy_id = 1,
  41. + .name = "Port 4",
  42. + },
  43. + [1] = {
  44. + .used = 1,
  45. + .phy_id = 2,
  46. + .name = "Port 3",
  47. + },
  48. + [2] = {
  49. + .used = 1,
  50. + .phy_id = 3,
  51. + .name = "Port 2",
  52. + },
  53. + [3] = {
  54. + .used = 1,
  55. + .phy_id = 4,
  56. + .name = "Port 1",
  57. + },
  58. + },
  59. + },
  60. +};
  61. #endif /* CONFIG_BCM63XX_CPU_6328 */
  62. /*
  63. @@ -1298,6 +1344,7 @@ static const struct board_info __initcon
  64. #ifdef CONFIG_BCM63XX_CPU_6328
  65. &board_96328avng,
  66. &board_963281TAN,
  67. + &board_dsl_274xb_f1,
  68. #endif
  69. #ifdef CONFIG_BCM63XX_CPU_6338
  70. &board_96338gw,
  71. @@ -1356,6 +1403,7 @@ static struct of_device_id const bcm963x
  72. #ifdef CONFIG_BCM63XX_CPU_6328
  73. { .compatible = "brcm,bcm963281TAN", .data = &board_963281TAN, },
  74. { .compatible = "brcm,bcm96328avng", .data = &board_96328avng, },
  75. + { .compatible = "d-link,dsl-274xb-f", .data = &board_dsl_274xb_f1, },
  76. #endif
  77. #ifdef CONFIG_BCM63XX_CPU_6338
  78. { .compatible = "brcm,bcm96338gw", .data = &board_96338gw, },