170-ixdpg425_mac_plat_info.patch 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. --- a/arch/arm/mach-ixp4xx/coyote-setup.c
  2. +++ b/arch/arm/mach-ixp4xx/coyote-setup.c
  3. @@ -14,6 +14,7 @@
  4. #include <linux/serial.h>
  5. #include <linux/tty.h>
  6. #include <linux/serial_8250.h>
  7. +#include <linux/dma-mapping.h>
  8. #include <asm/types.h>
  9. #include <asm/setup.h>
  10. @@ -81,9 +82,39 @@ static struct platform_device coyote_uar
  11. .resource = &coyote_uart_resource,
  12. };
  13. +/* Built-in 10/100 Ethernet MAC interfaces */
  14. +static struct eth_plat_info ixdpg425_plat_eth[] = {
  15. + {
  16. + .phy = 5,
  17. + .rxq = 3,
  18. + .txreadyq = 20,
  19. + }, {
  20. + .phy = 4,
  21. + .rxq = 4,
  22. + .txreadyq = 21,
  23. + }
  24. +};
  25. +
  26. +static struct platform_device ixdpg425_eth[] = {
  27. + {
  28. + .name = "ixp4xx_eth",
  29. + .id = IXP4XX_ETH_NPEB,
  30. + .dev.platform_data = ixdpg425_plat_eth,
  31. + .dev.coherent_dma_mask = DMA_BIT_MASK(32),
  32. + }, {
  33. + .name = "ixp4xx_eth",
  34. + .id = IXP4XX_ETH_NPEC,
  35. + .dev.platform_data = ixdpg425_plat_eth + 1,
  36. + .dev.coherent_dma_mask = DMA_BIT_MASK(32),
  37. + }
  38. +};
  39. +
  40. +
  41. static struct platform_device *coyote_devices[] __initdata = {
  42. &coyote_flash,
  43. - &coyote_uart
  44. + &coyote_uart,
  45. + &ixdpg425_eth[0],
  46. + &ixdpg425_eth[1],
  47. };
  48. static void __init coyote_init(void)