From: Harsh Jain <h.jain@amd.com>
To: <davem@davemloft.net>, <edumazet@google.com>, <kuba@kernel.org>,
<pabeni@redhat.com>, <thomas.lendacky@amd.com>,
<Raju.Rangoju@amd.com>, <Shyam-sundar.S-k@amd.com>,
<harshjain.prof@gmail.com>, <abhijit.gangurde@amd.com>,
<puneet.gupta@amd.com>, <nikhil.agarwal@amd.com>,
<tarak.reddy@amd.com>, <netdev@vger.kernel.org>
Cc: Harsh Jain <h.jain@amd.com>
Subject: [PATCH 6/6] net: ethernet: efct: Add maintainer, kconfig, makefile
Date: Fri, 10 Feb 2023 18:33:21 +0530 [thread overview]
Message-ID: <20230210130321.2898-7-h.jain@amd.com> (raw)
In-Reply-To: <20230210130321.2898-1-h.jain@amd.com>
Include driver in kernel build system.
Signed-off-by: Harsh Jain <h.jain@amd.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@amd.com>
+M: Nikhil Agarwal <nikhil.agarwal@amd.com>
+L: netdev@vger.kernel.org
+S: Supported
+F: drivers/net/ethernet/amd/efct/
+
EFI TEST DRIVER
M: Ivan Hu <ivan.hu@canonical.com>
M: Ard Biesheuvel <ardb@kernel.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
next prev parent reply other threads:[~2023-02-10 13:04 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-10 13:03 [PATCH 0/6] net: ethernet: efct Add x3 ethernet driver Harsh Jain
2023-02-10 13:03 ` [PATCH 1/6] net: ethernet: efct: New X3 net driver Harsh Jain
2023-02-10 17:00 ` Simon Horman
2023-02-10 13:03 ` [PATCH 2/6] net: ethernet: efct: Add datapath Harsh Jain
2023-02-10 13:03 ` [PATCH 3/6] net: ethernet: efct: Add devlink support Harsh Jain
2023-02-10 13:03 ` [PATCH 4/6] net: ethernet: efct: Add Hardware timestamp support Harsh Jain
2023-02-10 13:03 ` [PATCH 5/6] net: ethernet: efct: Add ethtool support Harsh Jain
2023-02-11 17:05 ` Andrew Lunn
2023-02-10 13:03 ` Harsh Jain [this message]
2023-02-11 3:32 ` [PATCH 6/6] net: ethernet: efct: Add maintainer, kconfig, makefile kernel test robot
2023-02-11 6:36 ` kernel test robot
2023-02-11 13:55 ` kernel test robot
2023-02-13 17:02 ` kernel test robot
2023-02-14 12:25 ` kernel test robot
2023-02-10 19:22 ` [PATCH 0/6] net: ethernet: efct Add x3 ethernet driver Jakub Kicinski
2023-05-09 5:30 ` Jain, Harsh (DCG-ENG)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230210130321.2898-7-h.jain@amd.com \
--to=h.jain@amd.com \
--cc=Raju.Rangoju@amd.com \
--cc=Shyam-sundar.S-k@amd.com \
--cc=abhijit.gangurde@amd.com \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=harshjain.prof@gmail.com \
--cc=kuba@kernel.org \
--cc=netdev@vger.kernel.org \
--cc=nikhil.agarwal@amd.com \
--cc=pabeni@redhat.com \
--cc=puneet.gupta@amd.com \
--cc=tarak.reddy@amd.com \
--cc=thomas.lendacky@amd.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).