7126-net-phy-add-driver-for-aquantia-AQR106-107-phy.patch 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. From 637a6e183edf302111b28461c0c98b9634b30437 Mon Sep 17 00:00:00 2001
  2. From: Mingkai Hu <mingkai.hu@nxp.com>
  3. Date: Fri, 1 Apr 2016 17:11:10 +0800
  4. Subject: [PATCH 126/141] net: phy: add driver for aquantia AQR106/107 phy
  5. Signed-off-by: Mingkai Hu <mingkai.hu@nxp.com>
  6. ---
  7. drivers/net/phy/aquantia.c | 30 ++++++++++++++++++++++++++++++
  8. 1 file changed, 30 insertions(+)
  9. --- a/drivers/net/phy/aquantia.c
  10. +++ b/drivers/net/phy/aquantia.c
  11. @@ -21,6 +21,8 @@
  12. #define PHY_ID_AQ1202 0x03a1b445
  13. #define PHY_ID_AQ2104 0x03a1b460
  14. #define PHY_ID_AQR105 0x03a1b4a2
  15. +#define PHY_ID_AQR106 0x03a1b4d0
  16. +#define PHY_ID_AQR107 0x03a1b4e0
  17. #define PHY_ID_AQR405 0x03a1b4b0
  18. #define PHY_AQUANTIA_FEATURES (SUPPORTED_10000baseT_Full | \
  19. @@ -157,6 +159,32 @@ static struct phy_driver aquantia_driver
  20. .driver = { .owner = THIS_MODULE,},
  21. },
  22. {
  23. + .phy_id = PHY_ID_AQR106,
  24. + .phy_id_mask = 0xfffffff0,
  25. + .name = "Aquantia AQR106",
  26. + .features = PHY_AQUANTIA_FEATURES,
  27. + .flags = PHY_HAS_INTERRUPT,
  28. + .aneg_done = aquantia_aneg_done,
  29. + .config_aneg = aquantia_config_aneg,
  30. + .config_intr = aquantia_config_intr,
  31. + .ack_interrupt = aquantia_ack_interrupt,
  32. + .read_status = aquantia_read_status,
  33. + .driver = { .owner = THIS_MODULE,},
  34. +},
  35. +{
  36. + .phy_id = PHY_ID_AQR107,
  37. + .phy_id_mask = 0xfffffff0,
  38. + .name = "Aquantia AQR107",
  39. + .features = PHY_AQUANTIA_FEATURES,
  40. + .flags = PHY_HAS_INTERRUPT,
  41. + .aneg_done = aquantia_aneg_done,
  42. + .config_aneg = aquantia_config_aneg,
  43. + .config_intr = aquantia_config_intr,
  44. + .ack_interrupt = aquantia_ack_interrupt,
  45. + .read_status = aquantia_read_status,
  46. + .driver = { .owner = THIS_MODULE,},
  47. +},
  48. +{
  49. .phy_id = PHY_ID_AQR405,
  50. .phy_id_mask = 0xfffffff0,
  51. .name = "Aquantia AQR405",
  52. @@ -177,6 +205,8 @@ static struct mdio_device_id __maybe_unu
  53. { PHY_ID_AQ1202, 0xfffffff0 },
  54. { PHY_ID_AQ2104, 0xfffffff0 },
  55. { PHY_ID_AQR105, 0xfffffff0 },
  56. + { PHY_ID_AQR106, 0xfffffff0 },
  57. + { PHY_ID_AQR107, 0xfffffff0 },
  58. { PHY_ID_AQR405, 0xfffffff0 },
  59. { }
  60. };