generic: mtd: backport SPI_NOR_HAS_LOCK
[openwrt/openwrt.git] / target / linux / layerscape / patches-4.4 / 7126-net-phy-add-driver-for-aquantia-AQR106-107-phy.patch
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
6 Signed-off-by: Mingkai Hu <mingkai.hu@nxp.com>
7 ---
8 drivers/net/phy/aquantia.c | 30 ++++++++++++++++++++++++++++++
9 1 file changed, 30 insertions(+)
10
11 --- a/drivers/net/phy/aquantia.c
12 +++ b/drivers/net/phy/aquantia.c
13 @@ -21,6 +21,8 @@
14 #define PHY_ID_AQ1202 0x03a1b445
15 #define PHY_ID_AQ2104 0x03a1b460
16 #define PHY_ID_AQR105 0x03a1b4a2
17 +#define PHY_ID_AQR106 0x03a1b4d0
18 +#define PHY_ID_AQR107 0x03a1b4e0
19 #define PHY_ID_AQR405 0x03a1b4b0
20
21 #define PHY_AQUANTIA_FEATURES (SUPPORTED_10000baseT_Full | \
22 @@ -157,6 +159,32 @@ static struct phy_driver aquantia_driver
23 .driver = { .owner = THIS_MODULE,},
24 },
25 {
26 + .phy_id = PHY_ID_AQR106,
27 + .phy_id_mask = 0xfffffff0,
28 + .name = "Aquantia AQR106",
29 + .features = PHY_AQUANTIA_FEATURES,
30 + .flags = PHY_HAS_INTERRUPT,
31 + .aneg_done = aquantia_aneg_done,
32 + .config_aneg = aquantia_config_aneg,
33 + .config_intr = aquantia_config_intr,
34 + .ack_interrupt = aquantia_ack_interrupt,
35 + .read_status = aquantia_read_status,
36 + .driver = { .owner = THIS_MODULE,},
37 +},
38 +{
39 + .phy_id = PHY_ID_AQR107,
40 + .phy_id_mask = 0xfffffff0,
41 + .name = "Aquantia AQR107",
42 + .features = PHY_AQUANTIA_FEATURES,
43 + .flags = PHY_HAS_INTERRUPT,
44 + .aneg_done = aquantia_aneg_done,
45 + .config_aneg = aquantia_config_aneg,
46 + .config_intr = aquantia_config_intr,
47 + .ack_interrupt = aquantia_ack_interrupt,
48 + .read_status = aquantia_read_status,
49 + .driver = { .owner = THIS_MODULE,},
50 +},
51 +{
52 .phy_id = PHY_ID_AQR405,
53 .phy_id_mask = 0xfffffff0,
54 .name = "Aquantia AQR405",
55 @@ -177,6 +205,8 @@ static struct mdio_device_id __maybe_unu
56 { PHY_ID_AQ1202, 0xfffffff0 },
57 { PHY_ID_AQ2104, 0xfffffff0 },
58 { PHY_ID_AQR105, 0xfffffff0 },
59 + { PHY_ID_AQR106, 0xfffffff0 },
60 + { PHY_ID_AQR107, 0xfffffff0 },
61 { PHY_ID_AQR405, 0xfffffff0 },
62 { }
63 };