524-board_dsl_274xb_rev_f.patch 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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. @@ -167,6 +167,51 @@ 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. + },
  31. + },
  32. +
  33. + .has_enetsw = 1,
  34. +
  35. + .enetsw = {
  36. + .used_ports = {
  37. + [0] = {
  38. + .used = 1,
  39. + .phy_id = 1,
  40. + .name = "Port 4",
  41. + },
  42. + [1] = {
  43. + .used = 1,
  44. + .phy_id = 2,
  45. + .name = "Port 3",
  46. + },
  47. + [2] = {
  48. + .used = 1,
  49. + .phy_id = 3,
  50. + .name = "Port 2",
  51. + },
  52. + [3] = {
  53. + .used = 1,
  54. + .phy_id = 4,
  55. + .name = "Port 1",
  56. + },
  57. + },
  58. + },
  59. +};
  60. #endif /* CONFIG_BCM63XX_CPU_6328 */
  61. /*
  62. @@ -1297,6 +1342,7 @@ static const struct board_info __initcon
  63. #ifdef CONFIG_BCM63XX_CPU_6328
  64. &board_96328avng,
  65. &board_963281TAN,
  66. + &board_dsl_274xb_f1,
  67. #endif
  68. #ifdef CONFIG_BCM63XX_CPU_6338
  69. &board_96338gw,
  70. @@ -1355,6 +1401,7 @@ static struct of_device_id const bcm963x
  71. #ifdef CONFIG_BCM63XX_CPU_6328
  72. { .compatible = "brcm,bcm963281TAN", .data = &board_963281TAN, },
  73. { .compatible = "brcm,bcm96328avng", .data = &board_96328avng, },
  74. + { .compatible = "d-link,dsl-274xb-f", .data = &board_dsl_274xb_f1, },
  75. #endif
  76. #ifdef CONFIG_BCM63XX_CPU_6338
  77. { .compatible = "brcm,bcm96338gw", .data = &board_96338gw, },