131-wrt300nv2_mac_plat_info.patch 992 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. --- a/arch/arm/mach-ixp4xx/wrt300nv2-setup.c
  2. +++ b/arch/arm/mach-ixp4xx/wrt300nv2-setup.c
  3. @@ -76,9 +76,38 @@ static struct platform_device wrt300nv2_
  4. .resource = &wrt300nv2_uart_resource,
  5. };
  6. +/* Built-in 10/100 Ethernet MAC interfaces */
  7. +static struct eth_plat_info wrt300nv2_plat_eth[] = {
  8. + {
  9. + .phy = -1,
  10. + .rxq = 3,
  11. + .txreadyq = 20,
  12. + }, {
  13. + .phy = 1,
  14. + .rxq = 4,
  15. + .txreadyq = 21,
  16. + }
  17. +};
  18. +
  19. +static struct platform_device wrt300nv2_eth[] = {
  20. + {
  21. + .name = "ixp4xx_eth",
  22. + .id = IXP4XX_ETH_NPEB,
  23. + .dev.platform_data = wrt300nv2_plat_eth,
  24. + .dev.coherent_dma_mask = DMA_BIT_MASK(32),
  25. + }, {
  26. + .name = "ixp4xx_eth",
  27. + .id = IXP4XX_ETH_NPEC,
  28. + .dev.platform_data = wrt300nv2_plat_eth + 1,
  29. + .dev.coherent_dma_mask = DMA_BIT_MASK(32),
  30. + }
  31. +};
  32. +
  33. static struct platform_device *wrt300nv2_devices[] __initdata = {
  34. &wrt300nv2_flash,
  35. - &wrt300nv2_uart
  36. + &wrt300nv2_uart,
  37. + &wrt300nv2_eth[0],
  38. + &wrt300nv2_eth[1],
  39. };
  40. static void __init wrt300nv2_init(void)