From: Ping-Ke Shih <pkshih@realtek.com>
To: <kvalo@codeaurora.org>
Cc: <linux-wireless@vger.kernel.org>
Subject: [PATCH v3 18/18] rtw89: add Kconfig and Makefile
Date: Fri, 29 Jan 2021 10:21:17 +0800 [thread overview]
Message-ID: <20210129022117.28463-19-pkshih@realtek.com> (raw)
In-Reply-To: <20210129022117.28463-1-pkshih@realtek.com>
With Kconfig and Makefile, we can build rtw89 and support 8852AE chip.
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
---
drivers/net/wireless/realtek/Kconfig | 1 +
drivers/net/wireless/realtek/Makefile | 1 +
drivers/net/wireless/realtek/rtw89/Kconfig | 50 +++++++++++++++++++++
drivers/net/wireless/realtek/rtw89/Makefile | 23 ++++++++++
4 files changed, 75 insertions(+)
create mode 100644 drivers/net/wireless/realtek/rtw89/Kconfig
create mode 100644 drivers/net/wireless/realtek/rtw89/Makefile
diff --git a/drivers/net/wireless/realtek/Kconfig b/drivers/net/wireless/realtek/Kconfig
index 474843277fa1..4a1f0e64df03 100644
--- a/drivers/net/wireless/realtek/Kconfig
+++ b/drivers/net/wireless/realtek/Kconfig
@@ -16,5 +16,6 @@ source "drivers/net/wireless/realtek/rtl818x/Kconfig"
source "drivers/net/wireless/realtek/rtlwifi/Kconfig"
source "drivers/net/wireless/realtek/rtl8xxxu/Kconfig"
source "drivers/net/wireless/realtek/rtw88/Kconfig"
+source "drivers/net/wireless/realtek/rtw89/Kconfig"
endif # WLAN_VENDOR_REALTEK
diff --git a/drivers/net/wireless/realtek/Makefile b/drivers/net/wireless/realtek/Makefile
index 888b5d594e79..ab25419f56c6 100644
--- a/drivers/net/wireless/realtek/Makefile
+++ b/drivers/net/wireless/realtek/Makefile
@@ -8,4 +8,5 @@ obj-$(CONFIG_RTL8187) += rtl818x/
obj-$(CONFIG_RTLWIFI) += rtlwifi/
obj-$(CONFIG_RTL8XXXU) += rtl8xxxu/
obj-$(CONFIG_RTW88) += rtw88/
+obj-$(CONFIG_RTW89) += rtw89/
diff --git a/drivers/net/wireless/realtek/rtw89/Kconfig b/drivers/net/wireless/realtek/rtw89/Kconfig
new file mode 100644
index 000000000000..055d45103a4b
--- /dev/null
+++ b/drivers/net/wireless/realtek/rtw89/Kconfig
@@ -0,0 +1,50 @@
+# SPDX-License-Identifier: GPL-2.0-only
+menuconfig RTW89
+ tristate "Realtek 802.11ax wireless chips support"
+ depends on MAC80211
+ help
+ This module adds support for mac80211-based wireless drivers that
+ enables Realtek IEEE 802.11ax wireless chipsets.
+
+ If you choose to build a module, it'll be called rtw89.
+
+if RTW89
+
+config RTW89_CORE
+ tristate
+
+config RTW89_PCI
+ tristate
+
+config RTW89_8852AE
+ tristate "Realtek 8852AE PCI wireless network adapter"
+ depends on PCI
+ select RTW89_CORE
+ select RTW89_PCI
+ help
+ Select this option will enable support for 8852AE chipset
+
+ 802.11ax PCIe wireless network adapter
+
+config RTW89_DEBUG
+ bool
+
+config RTW89_DEBUGMSG
+ bool "Realtek rtw89 debug message support"
+ depends on RTW89_CORE
+ select RTW89_DEBUG
+ help
+ Enable debug message support
+
+ If unsure, say Y to simplify debug problems
+
+config RTW89_DEBUGFS
+ bool "Realtek rtw89 debugfs support"
+ depends on RTW89_CORE
+ select RTW89_DEBUG
+ help
+ Enable debugfs support
+
+ If unsure, say Y to simplify debug problems
+
+endif
diff --git a/drivers/net/wireless/realtek/rtw89/Makefile b/drivers/net/wireless/realtek/rtw89/Makefile
new file mode 100644
index 000000000000..6752f0c64727
--- /dev/null
+++ b/drivers/net/wireless/realtek/rtw89/Makefile
@@ -0,0 +1,23 @@
+# SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause
+
+obj-$(CONFIG_RTW89_CORE) += rtw89_core.o
+rtw89_core-y += core.o \
+ mac80211.o \
+ mac.o \
+ phy.o \
+ fw.o \
+ rtw8852a.o \
+ rtw8852a_table.o \
+ rtw8852a_rfk.o \
+ rtw8852a_rfk_table.o \
+ cam.o \
+ efuse.o \
+ regd.o \
+ coex.o \
+ ser.o
+
+rtw89_core-$(CONFIG_RTW89_DEBUG) += debug.o
+
+obj-$(CONFIG_RTW89_PCI) += rtw89_pci.o
+rtw89_pci-y := pci.o
+
--
2.21.0
prev parent reply other threads:[~2021-01-29 2:24 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-01-29 2:20 [PATCH v3 00/18] rtw89: add Realtek 802.11ax driver Ping-Ke Shih
2021-01-29 2:21 ` [PATCH v3 01/18] rtw89: add CAM files Ping-Ke Shih
2021-01-29 2:21 ` [PATCH v3 02/18] rtw89: add BT coexistence files Ping-Ke Shih
2021-01-29 2:21 ` [PATCH v3 03/18] rtw89: add core and trx files Ping-Ke Shih
2021-01-29 2:21 ` [PATCH v3 04/18] rtw89: add debug files Ping-Ke Shih
2021-01-29 2:21 ` [PATCH v3 05/18] rtw89: add efuse files Ping-Ke Shih
2021-01-29 2:21 ` [PATCH v3 06/18] rtw89: add files to download and communicate with firmware Ping-Ke Shih
2021-01-29 2:21 ` [PATCH v3 07/18] rtw89: add MAC files Ping-Ke Shih
2021-01-29 2:21 ` [PATCH v3 08/18] rtw89: implement mac80211 ops Ping-Ke Shih
2021-01-29 2:21 ` [PATCH v3 09/18] rtw89: add pci files Ping-Ke Shih
2021-01-29 2:21 ` [PATCH v3 10/18] rtw89: add phy files Ping-Ke Shih
2021-01-29 2:21 ` [PATCH v3 11/18] rtw89: define register names Ping-Ke Shih
2021-01-29 2:21 ` [PATCH v3 12/18] rtw89: add regulatory support Ping-Ke Shih
2021-01-29 2:21 ` [PATCH v3 13/18] rtw89: 8852a: add 8852a specific files Ping-Ke Shih
2021-01-29 2:21 ` [PATCH v3 14/18] rtw89: 8852a: add 8852a RFK files Ping-Ke Shih
2021-01-29 2:21 ` [PATCH v3 15/18] rtw89: 8852a: add 8852a RFK tables Ping-Ke Shih
2021-01-29 2:21 ` [PATCH v3 16/18] rtw89: 8852a: add 8852a tables Ping-Ke Shih
2021-01-29 2:21 ` [PATCH v3 17/18] rtw89: add ser to recover error reported by firmware Ping-Ke Shih
2021-01-29 2:21 ` Ping-Ke Shih [this message]
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=20210129022117.28463-19-pkshih@realtek.com \
--to=pkshih@realtek.com \
--cc=kvalo@codeaurora.org \
--cc=linux-wireless@vger.kernel.org \
/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).