505-board_spw500v.patch 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
  2. +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
  3. @@ -572,6 +572,45 @@ static struct board_info __initdata boar
  4. .force_duplex_full = 1,
  5. },
  6. };
  7. +
  8. +static struct sprom_fixup __initdata spw500v_fixups[] = {
  9. + { .offset = 46, .value = 0x3046 },
  10. + { .offset = 47, .value = 0x15a7 },
  11. + { .offset = 48, .value = 0xfa89 },
  12. + { .offset = 49, .value = 0xfe79 },
  13. + { .offset = 57, .value = 0x6a49 },
  14. +};
  15. +
  16. +static struct board_info __initdata board_spw500v = {
  17. + .name = "SPW500V",
  18. + .expected_cpu_id = 0x6348,
  19. +
  20. + .has_uart0 = 1,
  21. + .has_enet0 = 1,
  22. + .has_pci = 1,
  23. + .use_fallback_sprom = 1,
  24. +
  25. + .enet0 = {
  26. + .has_phy = 1,
  27. + .use_internal_phy = 1,
  28. + },
  29. +
  30. + .has_dsp = 1,
  31. + .dsp = {
  32. + .gpio_rst = 6,
  33. + .gpio_int = 34,
  34. + .ext_irq = 2,
  35. + .cs = 2,
  36. + },
  37. +
  38. + .fallback_sprom = {
  39. + .type = SPROM_BCM4318,
  40. + .pci_bus = 0,
  41. + .pci_dev = 1,
  42. + .board_fixups = spw500v_fixups,
  43. + .num_board_fixups = ARRAY_SIZE(spw500v_fixups),
  44. + },
  45. +};
  46. #endif /* CONFIG_BCM63XX_CPU_6348 */
  47. /*
  48. @@ -856,6 +895,7 @@ static const struct board_info __initcon
  49. &board_96348gw_a,
  50. &board_rta1025w_16,
  51. &board_96348_D4PW,
  52. + &board_spw500v,
  53. #endif
  54. #ifdef CONFIG_BCM63XX_CPU_6358
  55. @@ -897,6 +937,7 @@ static struct of_device_id const bcm963x
  56. { .compatible = "dynalink,rta1025w", .data = &board_rta1025w_16, },
  57. { .compatible = "netgear,dg834gtpn", .data = &board_96348gw_10, },
  58. { .compatible = "sagem,f@st2404", .data = &board_FAST2404, },
  59. + { .compatible = "t-com,spw500v", .data = &board_spw500v, },
  60. { .compatible = "tp-link,td-w8900gb", .data = &board_96348gw_11, },
  61. { .compatible = "usr,9108", .data = &board_96348gw_a, },
  62. #endif