Skip to content

Commit 81e176d

Browse files
Jijie ShaoPaolo Abeni
authored andcommitted
net: hibmcge: Add a Makefile and update Kconfig for hibmcge
Add a Makefile and update Kconfig to build hibmcge driver. Signed-off-by: Jijie Shao <[email protected]> Signed-off-by: Paolo Abeni <[email protected]>
1 parent e8d1354 commit 81e176d

File tree

3 files changed

+26
-1
lines changed

3 files changed

+26
-1
lines changed

drivers/net/ethernet/hisilicon/Kconfig

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ config NET_VENDOR_HISILICON
77
bool "Hisilicon devices"
88
default y
99
depends on OF || ACPI
10-
depends on ARM || ARM64 || COMPILE_TEST
1110
help
1211
If you have a network (Ethernet) card belonging to this class, say Y.
1312

@@ -18,6 +17,8 @@ config NET_VENDOR_HISILICON
1817

1918
if NET_VENDOR_HISILICON
2019

20+
if ARM || ARM64 || COMPILE_TEST
21+
2122
config HIX5HD2_GMAC
2223
tristate "Hisilicon HIX5HD2 Family Network Device Support"
2324
select PHYLIB
@@ -141,4 +142,19 @@ config HNS3_ENET
141142

142143
endif #HNS3
143144

145+
endif # ARM || ARM64 || COMPILE_TEST
146+
147+
config HIBMCGE
148+
tristate "Hisilicon BMC Gigabit Ethernet Device Support"
149+
depends on PCI && PCI_MSI
150+
select PHYLIB
151+
select MOTORCOMM_PHY
152+
select REALTEK_PHY
153+
help
154+
If you wish to compile a kernel for a BMC with HIBMC-xx_gmac
155+
then you should answer Y to this. This makes this driver suitable for use
156+
on certain boards such as the HIBMC-210.
157+
158+
If you are unsure, say N.
159+
144160
endif # NET_VENDOR_HISILICON

drivers/net/ethernet/hisilicon/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@ obj-$(CONFIG_HNS_MDIO) += hns_mdio.o
99
obj-$(CONFIG_HNS) += hns/
1010
obj-$(CONFIG_HNS3) += hns3/
1111
obj-$(CONFIG_HISI_FEMAC) += hisi_femac.o
12+
obj-$(CONFIG_HIBMCGE) += hibmcge/
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# SPDX-License-Identifier: GPL-2.0+
2+
#
3+
# Makefile for the HISILICON BMC GE network device drivers.
4+
#
5+
6+
obj-$(CONFIG_HIBMCGE) += hibmcge.o
7+
8+
hibmcge-objs = hbg_main.o hbg_hw.o hbg_mdio.o hbg_irq.o hbg_txrx.o hbg_ethtool.o

0 commit comments

Comments
 (0)