568-board_DGND3700v1_3800B.patch 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
  2. +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
  3. @@ -1861,6 +1861,48 @@ static struct board_info __initdata boar
  4. .has_ehci0 = 1,
  5. };
  6. +static struct b53_platform_data DGND3700v1_3800B_b53_pdata = {
  7. + .alias = "eth0",
  8. +};
  9. +
  10. +static struct spi_board_info DGND3700v1_3800B_spi_devices[] = {
  11. + {
  12. + .modalias = "b53-switch",
  13. + .max_speed_hz = 781000,
  14. + .bus_num = 0,
  15. + .chip_select = 1,
  16. + .platform_data = &DGND3700v1_3800B_b53_pdata,
  17. + }
  18. +};
  19. +
  20. +static struct board_info __initdata board_DGND3700v1_3800B = {
  21. + .name = "DGND3700v1_3800B",
  22. + .expected_cpu_id = 0x6368,
  23. +
  24. + .has_uart0 = 1,
  25. + .has_pci = 1,
  26. + .has_ohci0 = 1,
  27. + .has_ehci0 = 1,
  28. + .num_usbh_ports = 2,
  29. +
  30. + .has_enetsw = 1,
  31. + .enetsw = {
  32. + .used_ports = {
  33. + [5] = {
  34. + .used = 1,
  35. + .phy_id = 0xff,
  36. + .bypass_link = 1,
  37. + .force_speed = 1000,
  38. + .force_duplex_full = 1,
  39. + .name = "RGMII",
  40. + },
  41. + },
  42. + },
  43. +
  44. + .spis = DGND3700v1_3800B_spi_devices,
  45. + .num_spis = ARRAY_SIZE(DGND3700v1_3800B_spi_devices),
  46. +};
  47. +
  48. static struct sprom_fixup __initdata vr3025u_fixups[] = {
  49. { .offset = 97, .value = 0xfeb3 },
  50. { .offset = 98, .value = 0x1618 },
  51. @@ -2309,6 +2351,7 @@ static const struct board_info __initcon
  52. #ifdef CONFIG_BCM63XX_CPU_6368
  53. &board_96368mvwg,
  54. &board_96368mvngr,
  55. + &board_DGND3700v1_3800B,
  56. &board_P870HW51A_V2,
  57. &board_VR3025u,
  58. &board_VR3025un,
  59. @@ -2411,6 +2454,7 @@ static struct of_device_id const bcm963x
  60. { .compatible = "comtrend,vr-3025u", .data = &board_VR3025u, },
  61. { .compatible = "comtrend,vr-3025un", .data = &board_VR3025un, },
  62. { .compatible = "comtrend,wap-5813n", .data = &board_WAP5813n, },
  63. + { .compatible = "netgear,dgnd3700v1", .data = &board_DGND3700v1_3800B, },
  64. { .compatible = "zyxel,p870hw-51a-v2", .data = &board_P870HW51A_V2, },
  65. #endif
  66. #ifdef CONFIG_BCM63XX_CPU_63268