[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20230210130321.2898-7-h.jain@amd.com>
Date: Fri, 10 Feb 2023 18:33:21 +0530
From: Harsh Jain <h.jain@....com>
To: <davem@...emloft.net>, <edumazet@...gle.com>, <kuba@...nel.org>,
<pabeni@...hat.com>, <thomas.lendacky@....com>,
<Raju.Rangoju@....com>, <Shyam-sundar.S-k@....com>,
<harshjain.prof@...il.com>, <abhijit.gangurde@....com>,
<puneet.gupta@....com>, <nikhil.agarwal@....com>,
<tarak.reddy@....com>, <netdev@...r.kernel.org>
CC: Harsh Jain <h.jain@....com>
Subject: [PATCH 6/6] net: ethernet: efct: Add maintainer, kconfig, makefile
Include driver in kernel build system.
Signed-off-by: Harsh Jain <h.jain@....com>
---
MAINTAINERS | 7 +++++
drivers/net/ethernet/amd/Kconfig | 2 ++
drivers/net/ethernet/amd/Makefile | 2 ++
drivers/net/ethernet/amd/efct/Kconfig | 40 ++++++++++++++++++++++++++
drivers/net/ethernet/amd/efct/Makefile | 13 +++++++++
5 files changed, 64 insertions(+)
create mode 100644 drivers/net/ethernet/amd/efct/Kconfig
create mode 100644 drivers/net/ethernet/amd/efct/Makefile
diff --git a/MAINTAINERS b/MAINTAINERS
index f2bd469ffae5..de7c36ed04de 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -7611,6 +7611,13 @@ S: Maintained
T: git git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git
F: sound/usb/misc/ua101.c
+EFCT NETWORK DRIVER
+M: Harsh Jain<h.jain@....com>
+M: Nikhil Agarwal <nikhil.agarwal@....com>
+L: netdev@...r.kernel.org
+S: Supported
+F: drivers/net/ethernet/amd/efct/
+
EFI TEST DRIVER
M: Ivan Hu <ivan.hu@...onical.com>
M: Ard Biesheuvel <ardb@...nel.org>
diff --git a/drivers/net/ethernet/amd/Kconfig b/drivers/net/ethernet/amd/Kconfig
index ab42f75b9413..2da60a88ea4a 100644
--- a/drivers/net/ethernet/amd/Kconfig
+++ b/drivers/net/ethernet/amd/Kconfig
@@ -186,4 +186,6 @@ config AMD_XGBE_HAVE_ECC
bool
default n
+source "drivers/net/ethernet/amd/efct/Kconfig"
+
endif # NET_VENDOR_AMD
diff --git a/drivers/net/ethernet/amd/Makefile b/drivers/net/ethernet/amd/Makefile
index 42742afe9115..1f21751a6eb9 100644
--- a/drivers/net/ethernet/amd/Makefile
+++ b/drivers/net/ethernet/amd/Makefile
@@ -17,3 +17,5 @@ obj-$(CONFIG_PCNET32) += pcnet32.o
obj-$(CONFIG_SUN3LANCE) += sun3lance.o
obj-$(CONFIG_SUNLANCE) += sunlance.o
obj-$(CONFIG_AMD_XGBE) += xgbe/
+obj-$(CONFIG_EFCT) += efct/
+
diff --git a/drivers/net/ethernet/amd/efct/Kconfig b/drivers/net/ethernet/amd/efct/Kconfig
new file mode 100644
index 000000000000..ee1a162dd045
--- /dev/null
+++ b/drivers/net/ethernet/amd/efct/Kconfig
@@ -0,0 +1,40 @@
+# SPDX-License-Identifier: GPL-2.0-only
+#
+################################################################################
+#
+# Driver for AMD/Xilinx network controllers and boards
+# Copyright (C) 2021, Xilinx, Inc.
+# Copyright (C) 2022-2023, Advanced Micro Devices, Inc.
+#################################################################################
+#
+#
+
+
+config EFCT
+ tristate "AMD X3 support"
+ depends on PCI && (X86 || ARCH_DMA_ADDR_T_64BIT)
+ default m
+ select NET_DEVLINK
+ select MDIO
+ select CRC32
+ help
+ Supports Ethernet cards based on the Xilinx X3 networking IP in AMD/Xilinx FPGAs
+ To compile this driver as a module, choose M here. The module
+ will be called efct.
+
+config EFCT_MCDI_LOGGING
+ bool "MCDI logging support"
+ depends on EFCT
+ default n
+ help
+ This enables support for tracing of MCDI (Management-Controller-to-
+ Driver-Interface) commands and responses, allowing debugging of
+ driver/firmware interaction.
+
+config EFCT_PTP
+ bool "PTP support"
+ depends on EFCT
+ default y
+ select PTP_1588_CLOCK
+ help
+ This enables support for the Precision Time Protocol.
diff --git a/drivers/net/ethernet/amd/efct/Makefile b/drivers/net/ethernet/amd/efct/Makefile
new file mode 100644
index 000000000000..d366a061a031
--- /dev/null
+++ b/drivers/net/ethernet/amd/efct/Makefile
@@ -0,0 +1,13 @@
+################################################################################
+# Driver for AMD/Xilinx network controllers and boards
+# Copyright (C) 2021, Xilinx, Inc.
+# Copyright (C) 2022-2023, Advanced Micro Devices, Inc.
+################################################################################
+
+
+efct-y := mcdi.o mcdi_port_common.o mcdi_functions.o efct_netdev.o efct_common.o \
+ efct_nic.o efct_pci.o efct_evq.o efct_tx.o efct_rx.o efct_ethtool.o \
+ efct_reflash.o efct_devlink.o
+
+efct-$(CONFIG_EFCT_PTP) += efct_ptp.o
+obj-$(CONFIG_EFCT) += efct.o
--
2.25.1
Powered by blists - more mailing lists