]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
net: hibmcge: Add a Makefile and update Kconfig for hibmcge
authorJijie Shao <shaojijie@huawei.com>
Tue, 15 Oct 2024 12:35:15 +0000 (20:35 +0800)
committerPaolo Abeni <pabeni@redhat.com>
Mon, 21 Oct 2024 09:26:53 +0000 (11:26 +0200)
Add a Makefile and update Kconfig to build hibmcge driver.

Signed-off-by: Jijie Shao <shaojijie@huawei.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/hisilicon/Kconfig
drivers/net/ethernet/hisilicon/Makefile
drivers/net/ethernet/hisilicon/hibmcge/Makefile [new file with mode: 0644]

index 3312e1d93c3b5120d4fccb087369caf415679cc0..65302c41bfb1474bead99dbcfd6015545b5f3b3f 100644 (file)
@@ -7,7 +7,6 @@ config NET_VENDOR_HISILICON
        bool "Hisilicon devices"
        default y
        depends on OF || ACPI
-       depends on ARM || ARM64 || COMPILE_TEST
        help
          If you have a network (Ethernet) card belonging to this class, say Y.
 
@@ -18,6 +17,8 @@ config NET_VENDOR_HISILICON
 
 if NET_VENDOR_HISILICON
 
+if ARM || ARM64 || COMPILE_TEST
+
 config HIX5HD2_GMAC
        tristate "Hisilicon HIX5HD2 Family Network Device Support"
        select PHYLIB
@@ -141,4 +142,19 @@ config HNS3_ENET
 
 endif #HNS3
 
+endif # ARM || ARM64 || COMPILE_TEST
+
+config HIBMCGE
+       tristate "Hisilicon BMC Gigabit Ethernet Device Support"
+       depends on PCI && PCI_MSI
+       select PHYLIB
+       select MOTORCOMM_PHY
+       select REALTEK_PHY
+       help
+         If you wish to compile a kernel for a BMC with HIBMC-xx_gmac
+         then you should answer Y to this. This makes this driver suitable for use
+         on certain boards such as the HIBMC-210.
+
+         If you are unsure, say N.
+
 endif # NET_VENDOR_HISILICON
index 7f76d412047ae7df4c128b19d3945dbd091552f7..0e2cadfea8ff23f984edb7f1e99733bdd0068552 100644 (file)
@@ -9,3 +9,4 @@ obj-$(CONFIG_HNS_MDIO) += hns_mdio.o
 obj-$(CONFIG_HNS) += hns/
 obj-$(CONFIG_HNS3) += hns3/
 obj-$(CONFIG_HISI_FEMAC) += hisi_femac.o
+obj-$(CONFIG_HIBMCGE) += hibmcge/
diff --git a/drivers/net/ethernet/hisilicon/hibmcge/Makefile b/drivers/net/ethernet/hisilicon/hibmcge/Makefile
new file mode 100644 (file)
index 0000000..ae58ac3
--- /dev/null
@@ -0,0 +1,8 @@
+# SPDX-License-Identifier: GPL-2.0+
+#
+# Makefile for the HISILICON BMC GE network device drivers.
+#
+
+obj-$(CONFIG_HIBMCGE) += hibmcge.o
+
+hibmcge-objs = hbg_main.o hbg_hw.o hbg_mdio.o hbg_irq.o hbg_txrx.o hbg_ethtool.o