Skip to content

Commit 5b904d3

Browse files
huangdaodedavem330
authored andcommitted
net: add Hisilicon Network Subsystem MDIO support
The MDIO support for Hisilicon Network Subsystem. It is used in Hislicon hip04, hip05 and Hi1610 SoC to control the external PHY Signed-off-by: huangdaode <[email protected]> Signed-off-by: Yisen Zhuang <[email protected]> Signed-off-by: Kenneth Lee <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent fc7e37c commit 5b904d3

File tree

4 files changed

+531
-187
lines changed

4 files changed

+531
-187
lines changed

drivers/net/ethernet/hisilicon/Kconfig

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
config NET_VENDOR_HISILICON
66
bool "Hisilicon devices"
77
default y
8-
depends on ARM
8+
depends on ARM || ARM64
99
---help---
1010
If you have a network (Ethernet) card belonging to this class, say Y.
1111

@@ -27,8 +27,16 @@ config HIP04_ETH
2727
select PHYLIB
2828
select MARVELL_PHY
2929
select MFD_SYSCON
30+
select HNS_MDIO
3031
---help---
3132
If you wish to compile a kernel for a hardware with hisilicon p04 SoC and
3233
want to use the internal ethernet then you should answer Y to this.
3334

35+
config HNS_MDIO
36+
tristate "Hisilicon HNS MDIO device Support"
37+
select MDIO
38+
---help---
39+
This selects the HNS MDIO support. It is needed by HNS_DSAF to access
40+
the PHY
41+
3442
endif # NET_VENDOR_HISILICON

drivers/net/ethernet/hisilicon/Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@
33
#
44

55
obj-$(CONFIG_HIX5HD2_GMAC) += hix5hd2_gmac.o
6-
obj-$(CONFIG_HIP04_ETH) += hip04_mdio.o hip04_eth.o
6+
obj-$(CONFIG_HIP04_ETH) += hip04_eth.o
7+
obj-$(CONFIG_HNS_MDIO) += hns_mdio.o

drivers/net/ethernet/hisilicon/hip04_mdio.c

Lines changed: 0 additions & 185 deletions
This file was deleted.

0 commit comments

Comments
 (0)