566-board_A4001N.patch 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
  2. +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
  3. @@ -363,6 +363,50 @@ static struct board_info __initdata boar
  4. },
  5. };
  6. +static struct board_info __initdata board_A4001N = {
  7. + .name = "96328dg2x2",
  8. + .expected_cpu_id = 0x6328,
  9. +
  10. + .has_uart0 = 1,
  11. + .has_pci = 1,
  12. + .use_fallback_sprom = 1,
  13. + .has_ohci0 = 1,
  14. + .has_ehci0 = 1,
  15. + .num_usbh_ports = 1,
  16. + .has_enetsw = 1,
  17. +
  18. + .enetsw = {
  19. + .used_ports = {
  20. + [0] = {
  21. + .used = 1,
  22. + .phy_id = 1,
  23. + .name = "Port 1",
  24. + },
  25. + [1] = {
  26. + .used = 1,
  27. + .phy_id = 2,
  28. + .name = "Port 2",
  29. + },
  30. + [2] = {
  31. + .used = 1,
  32. + .phy_id = 3,
  33. + .name = "Port 3",
  34. + },
  35. + [3] = {
  36. + .used = 1,
  37. + .phy_id = 4,
  38. + .name = "Port 4",
  39. + },
  40. + },
  41. + },
  42. +
  43. + .fallback_sprom = {
  44. + .type = SPROM_BCM43225,
  45. + .pci_bus = 1,
  46. + .pci_dev = 0,
  47. + },
  48. +};
  49. +
  50. static struct board_info __initdata board_A4001N1 = {
  51. .name = "963281T_TEF",
  52. .expected_cpu_id = 0x6328,
  53. @@ -2128,6 +2172,7 @@ static const struct board_info __initcon
  54. &board_AR5381u,
  55. &board_AR5387un,
  56. &board_963281TAN,
  57. + &board_A4001N,
  58. &board_A4001N1,
  59. &board_dsl_274xb_f1,
  60. &board_FAST2704V2,
  61. @@ -2216,6 +2261,7 @@ static struct of_device_id const bcm963x
  62. { .compatible = "brcm,bcm96318ref_p300", .data = &board_96318ref_p300, },
  63. #endif
  64. #ifdef CONFIG_BCM63XX_CPU_6328
  65. + { .compatible = "adb,a4001n", .data = &board_A4001N, },
  66. { .compatible = "adb,a4001n1", .data = &board_A4001N1, },
  67. { .compatible = "brcm,bcm963281TAN", .data = &board_963281TAN, },
  68. { .compatible = "brcm,bcm96328avng", .data = &board_96328avng, },