521-bcm63xx-add-support-for-96368MVNgr-board.patch 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. From f457fc2eb9bb915b5a4d251c7c68d4694cf07b01 Mon Sep 17 00:00:00 2001
  2. From: Maxime Bizon <mbizon@freebox.fr>
  3. Date: Fri, 4 Nov 2011 12:33:48 +0100
  4. Subject: [PATCH 33/63] bcm63xx: add support for 96368MVNgr board.
  5. ---
  6. arch/mips/bcm63xx/boards/board_bcm963xx.c | 67 +++++++++++++++++++++++++++++
  7. 1 files changed, 67 insertions(+), 0 deletions(-)
  8. --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
  9. +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
  10. @@ -1183,6 +1183,46 @@ static struct board_info __initdata boar
  11. .has_ohci0 = 1,
  12. .has_ehci0 = 1,
  13. };
  14. +
  15. +static struct board_info __initdata board_96368mvngr = {
  16. + .name = "96368MVNgr",
  17. + .expected_cpu_id = 0x6368,
  18. +
  19. + .has_uart0 = 1,
  20. + .has_pci = 1,
  21. + .has_enetsw = 1,
  22. +
  23. + .enetsw = {
  24. + .used_ports = {
  25. + [0] = {
  26. + .used = 1,
  27. + .phy_id = 1,
  28. + .name = "port1",
  29. + },
  30. +
  31. + [1] = {
  32. + .used = 1,
  33. + .phy_id = 2,
  34. + .name = "port2",
  35. + },
  36. +
  37. + [2] = {
  38. + .used = 1,
  39. + .phy_id = 3,
  40. + .name = "port3",
  41. + },
  42. +
  43. + [3] = {
  44. + .used = 1,
  45. + .phy_id = 4,
  46. + .name = "port4",
  47. + },
  48. + },
  49. + },
  50. +
  51. + .has_ohci0 = 1,
  52. + .has_ehci0 = 1,
  53. +};
  54. #endif /* CONFIG_BCM63XX_CPU_6368 */
  55. /*
  56. @@ -1240,6 +1280,7 @@ static const struct board_info __initcon
  57. #ifdef CONFIG_BCM63XX_CPU_6368
  58. &board_96368mvwg,
  59. + &board_96368mvngr,
  60. #endif
  61. };
  62. @@ -1301,6 +1342,7 @@ static struct of_device_id const bcm963x
  63. { .compatible = "telsey,cpva642", .data = &board_CPVA642, },
  64. #endif
  65. #ifdef CONFIG_BCM63XX_CPU_6368
  66. + { .compatible = "brcm,bcm96368mvngr", .data = &board_96368mvngr, },
  67. { .compatible = "brcm,bcm96368mvwg", .data = &board_96368mvwg, },
  68. #endif
  69. #ifdef CONFIG_BCM63XX_CPU_63268