9Tripod / Added initial wifi support

- Modified kernel Makefile to ignore warnings generated from Rockchip wifi code
- Modified DTS to add chipset and other information to the device tree
- Added rockchip,grf property to wireless-wlan
- Modified Kconfig and Makefiles to include the rtl8821cs driver into the build process.

Signed-off-by: Steve Hay <me@stevenhay.com>
This commit is contained in:
Steve Hay
2023-02-16 19:38:25 +01:00
committed by Jianfeng Liu
parent 108c02c5bc
commit 549c0430cf
6 changed files with 14 additions and 8 deletions

View File

@@ -20,6 +20,7 @@ properties:
oneOf:
- const: "realtek,rtl8723bs-bt"
- const: "realtek,rtl8723cs-bt"
- const: "realtek,rtl8821cs-bt"
- const: "realtek,rtl8822cs-bt"
device-wake-gpios:

View File

@@ -1018,6 +1018,9 @@ KBUILD_CFLAGS += $(call cc-disable-warning, restrict)
# Enabled with W=2, disabled by default as noisy
KBUILD_CFLAGS += $(call cc-disable-warning, maybe-uninitialized)
# Added because of Rockchip wireless lan drivers
KBUILD_CFLAGS += $(call cc-disable-warning, implicit-fallthrough)
# disable invalid "can't wrap" optimizations for signed / pointers
KBUILD_CFLAGS += -fno-strict-overflow

View File

@@ -40,5 +40,6 @@ source "drivers/net/wireless/rockchip_wlan/cywdhd/Kconfig"
source "drivers/net/wireless/rockchip_wlan/infineon/Kconfig"
source "drivers/net/wireless/rockchip_wlan/rtl8852be/Kconfig"
source "drivers/net/wireless/rockchip_wlan/rtl8852bu/Kconfig"
source "drivers/net/wireless/rockchip_wlan/rtl8821cs/Kconfig"
endif # WL_ROCKCHIP

View File

@@ -4,4 +4,5 @@ obj-$(CONFIG_CYW_BCMDHD) += cywdhd/
obj-$(CONFIG_INFINEON_DHD) += infineon/
obj-$(CONFIG_RTL8852BE) += rtl8852be/
obj-$(CONFIG_RTL8852BU) += rtl8852bu/
obj-$(CONFIG_RTL8852BU) += rtl8852bu/
obj-$(CONFIG_RTL8821CS) += rtl8821cs/

View File

@@ -1,4 +1,4 @@
config RTL8821CS
tristate "Realtek 8821C SDIO WiFi"
tristate "Realtek 8821CS SDIO WiFi"
help
Help message of RTL8821CS

View File

@@ -1431,13 +1431,13 @@ EXTRA_CFLAGS += -DCONFIG_LITTLE_ENDIAN
EXTRA_CFLAGS += -DCONFIG_PLATFORM_ARM_SUN50IW1P1
EXTRA_CFLAGS += -DCONFIG_TRAFFIC_PROTECT
# default setting for Android 4.1, 4.2
EXTRA_CFLAGS += -DCONFIG_CONCURRENT_MODE
EXTRA_CFLAGS += -DCONFIG_IOCTL_CFG80211 -DRTW_USE_CFG80211_STA_EVENT
EXTRA_CFLAGS += -DCONFIG_RESUME_IN_WORKQUEUE
EXTRA_CFLAGS += -DCONFIG_PLATFORM_OPS
# EXTRA_CFLAGS += -DCONFIG_CONCURRENT_MODE
# EXTRA_CFLAGS += -DCONFIG_IOCTL_CFG80211 -DRTW_USE_CFG80211_STA_EVENT
# EXTRA_CFLAGS += -DCONFIG_RESUME_IN_WORKQUEUE
# EXTRA_CFLAGS += -DCONFIG_PLATFORM_OPS
# Enable this for Android 5.0
EXTRA_CFLAGS += -DCONFIG_RADIO_WORK
# EXTRA_CFLAGS += -DCONFIG_RADIO_WORK
ifeq ($(CONFIG_USB_HCI), y)
EXTRA_CFLAGS += -DCONFIG_USE_USB_BUFFER_ALLOC_TX
@@ -1500,7 +1500,7 @@ EXTRA_CFLAGS += -DCONFIG_CONCURRENT_MODE
EXTRA_CFLAGS += -DCONFIG_IOCTL_CFG80211 -DRTW_USE_CFG80211_STA_EVENT
EXTRA_CFLAGS += -DCONFIG_SKIP_SIGNAL_SCALE_MAPPING
ifeq ($(CONFIG_SDIO_HCI), y)
EXTRA_CFLAGS += -DCONFIG_RESUME_IN_WORKQUEUE
# EXTRA_CFLAGS += -DCONFIG_RESUME_IN_WORKQUEUE
endif
endif