527-board_dva-g3810bn-tl-1.patch 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
  2. +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
  3. @@ -1286,6 +1286,36 @@ static struct board_info __initdata boar
  4. .use_internal_phy = 1,
  5. },
  6. };
  7. +
  8. +/* D-Link DVA-G3810BN/TL */
  9. +static struct board_info __initdata board_DVAG3810BN = {
  10. + .name = "DVAG3810BN",
  11. + .expected_cpu_id = 0x6358,
  12. +
  13. + .has_uart0 = 1,
  14. + .has_enet0 = 1,
  15. + .has_enet1 = 1,
  16. + .has_pci = 1,
  17. +
  18. + .enet0 = {
  19. + .has_phy = 0,
  20. + .use_internal_phy = 1,
  21. + .force_speed_100 = 1,
  22. + .force_duplex_full = 1,
  23. + },
  24. +
  25. + .enet1 = {
  26. + .has_phy = 1,
  27. + .phy_id = 0,
  28. + .force_speed_100 = 1,
  29. + .force_duplex_full = 1,
  30. + },
  31. +
  32. +
  33. + .has_ohci0 = 1,
  34. + .has_pccard = 1,
  35. + .has_ehci0 = 1,
  36. +};
  37. #endif /* CONFIG_BCM63XX_CPU_6358 */
  38. /*
  39. @@ -1436,6 +1466,7 @@ static const struct board_info __initcon
  40. &board_ct6373_1,
  41. &board_HW553,
  42. &board_spw303v,
  43. + &board_DVAG3810BN,
  44. #endif
  45. #ifdef CONFIG_BCM63XX_CPU_6368
  46. @@ -1495,6 +1526,7 @@ static struct of_device_id const bcm963x
  47. { .compatible = "comtrend,ct-6373", .data = &board_ct6373_1, },
  48. { .compatible = "d-link,dsl-274xb-c2", .data = &board_dsl_274xb_rev_c, },
  49. { .compatible = "d-link,dsl-2650u", .data = &board_96358vw2, },
  50. + { .compatible = "d-link,dva-g3810bn/tl", .data = &board_DVAG3810BN, },
  51. { .compatible = "huawei,hg553", .data = &board_HW553, },
  52. { .compatible = "pirelli,a226g", .data = &board_DWVS0, },
  53. { .compatible = "pirelli,a226m", .data = &board_DWVS0, },