Skip to content

Commit

Permalink
net: add Hisilicon Network Subsystem MDIO support
Browse files Browse the repository at this point in the history
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 <huangdaode@hisilicon.com>
Signed-off-by: Yisen Zhuang <Yisen.Zhuang@huawei.com>
Signed-off-by: Kenneth Lee <liguozhu@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
huangdaode authored and David S. Miller committed Sep 21, 2015
1 parent fc7e37c commit 5b904d3
Show file tree
Hide file tree
Showing 4 changed files with 531 additions and 187 deletions.
10 changes: 9 additions & 1 deletion drivers/net/ethernet/hisilicon/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
config NET_VENDOR_HISILICON
bool "Hisilicon devices"
default y
depends on ARM
depends on ARM || ARM64
---help---
If you have a network (Ethernet) card belonging to this class, say Y.

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

config HNS_MDIO
tristate "Hisilicon HNS MDIO device Support"
select MDIO
---help---
This selects the HNS MDIO support. It is needed by HNS_DSAF to access
the PHY

endif # NET_VENDOR_HISILICON
3 changes: 2 additions & 1 deletion drivers/net/ethernet/hisilicon/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@
#

obj-$(CONFIG_HIX5HD2_GMAC) += hix5hd2_gmac.o
obj-$(CONFIG_HIP04_ETH) += hip04_mdio.o hip04_eth.o
obj-$(CONFIG_HIP04_ETH) += hip04_eth.o
obj-$(CONFIG_HNS_MDIO) += hns_mdio.o
185 changes: 0 additions & 185 deletions drivers/net/ethernet/hisilicon/hip04_mdio.c

This file was deleted.

Loading

0 comments on commit 5b904d3

Please sign in to comment.