562-board_VR-3025u.patch 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
  2. +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
  3. @@ -4169,6 +4169,116 @@ static struct board_info __initdata boar
  4. .has_ehci0 = 1,
  5. };
  6. +static struct sprom_fixup __initdata vr3025u_fixups[] = {
  7. + { .offset = 97, .value = 0xfeb3 },
  8. + { .offset = 98, .value = 0x1618 },
  9. + { .offset = 99, .value = 0xfab0 },
  10. + { .offset = 113, .value = 0xfed1 },
  11. + { .offset = 114, .value = 0x1609 },
  12. + { .offset = 115, .value = 0xfad9 },
  13. +};
  14. +
  15. +static struct board_info __initdata board_VR3025u = {
  16. + .name = "96368M-1541N",
  17. + .expected_cpu_id = 0x6368,
  18. +
  19. + .has_uart0 = 1,
  20. + .has_pci = 1,
  21. + .use_fallback_sprom = 1,
  22. + .has_ohci0 = 1,
  23. + .has_ehci0 = 1,
  24. +
  25. + .has_enetsw = 1,
  26. + .enetsw = {
  27. + .used_ports = {
  28. + [0] = {
  29. + .used = 1,
  30. + .phy_id = 1,
  31. + .name = "port1",
  32. + },
  33. + [1] = {
  34. + .used = 1,
  35. + .phy_id = 2,
  36. + .name = "port2",
  37. + },
  38. + [2] = {
  39. + .used = 1,
  40. + .phy_id = 3,
  41. + .name = "port3",
  42. + },
  43. + [3] = {
  44. + .used = 1,
  45. + .phy_id = 4,
  46. + .name = "port4",
  47. + },
  48. + },
  49. + },
  50. +
  51. + .leds = {
  52. + {
  53. + .name = "VR-3025u:green:dsl",
  54. + .gpio = 2,
  55. + .active_low = 1,
  56. + },
  57. + {
  58. + .name = "VR-3025u:green:inet",
  59. + .gpio = 5,
  60. + },
  61. + {
  62. + .name = "VR-3025u:green:lan1",
  63. + .gpio = 6,
  64. + .active_low = 1,
  65. + },
  66. + {
  67. + .name = "VR-3025u:green:lan2",
  68. + .gpio = 7,
  69. + .active_low = 1,
  70. + },
  71. + {
  72. + .name = "VR-3025u:green:lan3",
  73. + .gpio = 8,
  74. + .active_low = 1,
  75. + },
  76. + {
  77. + .name = "VR-3025u:green:lan4",
  78. + .gpio = 9,
  79. + .active_low = 1,
  80. + },
  81. + {
  82. + .name = "VR-3025u:green:power",
  83. + .gpio = 22,
  84. + .default_trigger = "default-on",
  85. + },
  86. + {
  87. + .name = "VR-3025u:red:power",
  88. + .gpio = 24,
  89. + },
  90. + {
  91. + .name = "VR-3025u:red:inet",
  92. + .gpio = 31,
  93. + },
  94. + },
  95. +
  96. + .buttons = {
  97. + {
  98. + .desc = "reset",
  99. + .gpio = 34,
  100. + .type = EV_KEY,
  101. + .code = KEY_RESTART,
  102. + .debounce_interval = BCM963XX_KEYS_DEBOUNCE_INTERVAL,
  103. + .active_low = 1,
  104. + },
  105. + },
  106. +
  107. + .fallback_sprom = {
  108. + .type = SPROM_BCM43222,
  109. + .pci_bus = 0,
  110. + .pci_dev = 1,
  111. + .board_fixups = vr3025u_fixups,
  112. + .num_board_fixups = ARRAY_SIZE(vr3025u_fixups),
  113. + },
  114. +};
  115. +
  116. static struct b53_platform_data WAP5813n_b53_pdata = {
  117. .alias = "eth0",
  118. };
  119. @@ -4658,6 +4768,7 @@ static const struct board_info __initcon
  120. #ifdef CONFIG_BCM63XX_CPU_6368
  121. &board_96368mvwg,
  122. &board_96368mvngr,
  123. + &board_VR3025u,
  124. &board_WAP5813n,
  125. #endif
  126. #ifdef CONFIG_BCM63XX_CPU_63268