diff --git a/vendor/rockchip/common/wifi/firmware/mt7601u.bin b/vendor/rockchip/common/wifi/firmware/mt7601u.bin new file mode 100644 index 00000000000..62b3894310d Binary files /dev/null and b/vendor/rockchip/common/wifi/firmware/mt7601u.bin differ diff --git a/vendor/rockchip/common/wifi/firmware/mt7662.bin b/vendor/rockchip/common/wifi/firmware/mt7662.bin new file mode 100644 index 00000000000..26c6fbb278b Binary files /dev/null and b/vendor/rockchip/common/wifi/firmware/mt7662.bin differ diff --git a/vendor/rockchip/common/wifi/firmware/mt7662_rom_patch.bin b/vendor/rockchip/common/wifi/firmware/mt7662_rom_patch.bin new file mode 100644 index 00000000000..10b245e9c17 Binary files /dev/null and b/vendor/rockchip/common/wifi/firmware/mt7662_rom_patch.bin differ diff --git a/vendor/rockchip/common/wifi/modules/mt76-usb.ko b/vendor/rockchip/common/wifi/modules/mt76-usb.ko new file mode 100644 index 00000000000..cba12ee4057 Binary files /dev/null and b/vendor/rockchip/common/wifi/modules/mt76-usb.ko differ diff --git a/vendor/rockchip/common/wifi/modules/mt76.ko b/vendor/rockchip/common/wifi/modules/mt76.ko new file mode 100644 index 00000000000..897a1b3057d Binary files /dev/null and b/vendor/rockchip/common/wifi/modules/mt76.ko differ diff --git a/vendor/rockchip/common/wifi/modules/mt7601u.ko b/vendor/rockchip/common/wifi/modules/mt7601u.ko new file mode 100644 index 00000000000..ade426834ef Binary files /dev/null and b/vendor/rockchip/common/wifi/modules/mt7601u.ko differ diff --git a/vendor/rockchip/common/wifi/modules/mt76x02-lib.ko b/vendor/rockchip/common/wifi/modules/mt76x02-lib.ko new file mode 100644 index 00000000000..a1bdb189ca2 Binary files /dev/null and b/vendor/rockchip/common/wifi/modules/mt76x02-lib.ko differ diff --git a/vendor/rockchip/common/wifi/modules/mt76x02-usb.ko b/vendor/rockchip/common/wifi/modules/mt76x02-usb.ko new file mode 100644 index 00000000000..855cd822f17 Binary files /dev/null and b/vendor/rockchip/common/wifi/modules/mt76x02-usb.ko differ diff --git a/vendor/rockchip/common/wifi/modules/mt76x2-common.ko b/vendor/rockchip/common/wifi/modules/mt76x2-common.ko new file mode 100644 index 00000000000..c1ecfe37f05 Binary files /dev/null and b/vendor/rockchip/common/wifi/modules/mt76x2-common.ko differ diff --git a/vendor/rockchip/common/wifi/modules/mt76x2u.ko b/vendor/rockchip/common/wifi/modules/mt76x2u.ko new file mode 100644 index 00000000000..391c6f3dd9b Binary files /dev/null and b/vendor/rockchip/common/wifi/modules/mt76x2u.ko differ diff --git a/vendor/rockchip/common/wifi/modules/rtl8812au.ko b/vendor/rockchip/common/wifi/modules/rtl8812au.ko new file mode 100644 index 00000000000..f02d2aace66 Binary files /dev/null and b/vendor/rockchip/common/wifi/modules/rtl8812au.ko differ diff --git a/vendor/rockchip/common/wifi/modules/rtl8821CU.ko b/vendor/rockchip/common/wifi/modules/rtl8821CU.ko new file mode 100644 index 00000000000..3c32df17ec9 Binary files /dev/null and b/vendor/rockchip/common/wifi/modules/rtl8821CU.ko differ diff --git a/vendor/rockchip/common/wifi/modules/rtw88_8723du.ko b/vendor/rockchip/common/wifi/modules/rtw88_8723du.ko new file mode 100644 index 00000000000..8448e8b9445 Binary files /dev/null and b/vendor/rockchip/common/wifi/modules/rtw88_8723du.ko differ diff --git a/vendor/rockchip/common/wifi/modules/rtw88_8821cu.ko b/vendor/rockchip/common/wifi/modules/rtw88_8821cu.ko new file mode 100644 index 00000000000..1d9fd7c7ce5 Binary files /dev/null and b/vendor/rockchip/common/wifi/modules/rtw88_8821cu.ko differ diff --git a/vendor/rockchip/common/wifi/modules/rtw88_8822bu.ko b/vendor/rockchip/common/wifi/modules/rtw88_8822bu.ko new file mode 100644 index 00000000000..ba152d7cf62 Binary files /dev/null and b/vendor/rockchip/common/wifi/modules/rtw88_8822bu.ko differ diff --git a/vendor/rockchip/common/wifi/modules/rtw88_8822cu.ko b/vendor/rockchip/common/wifi/modules/rtw88_8822cu.ko new file mode 100644 index 00000000000..60d1a10f8fb Binary files /dev/null and b/vendor/rockchip/common/wifi/modules/rtw88_8822cu.ko differ diff --git a/vendor/rockchip/common/wifi/modules/rtw88_usb.ko b/vendor/rockchip/common/wifi/modules/rtw88_usb.ko new file mode 100644 index 00000000000..db8e5d36e2a Binary files /dev/null and b/vendor/rockchip/common/wifi/modules/rtw88_usb.ko differ diff --git a/vendor/rockchip/common/wifi/modules/rtw_8723d.ko b/vendor/rockchip/common/wifi/modules/rtw_8723d.ko new file mode 100644 index 00000000000..44adfe2e9ad Binary files /dev/null and b/vendor/rockchip/common/wifi/modules/rtw_8723d.ko differ diff --git a/vendor/rockchip/common/wifi/modules/rtw_8723de.ko b/vendor/rockchip/common/wifi/modules/rtw_8723de.ko new file mode 100644 index 00000000000..2943b706b78 Binary files /dev/null and b/vendor/rockchip/common/wifi/modules/rtw_8723de.ko differ diff --git a/vendor/rockchip/common/wifi/modules/rtw_8821c.ko b/vendor/rockchip/common/wifi/modules/rtw_8821c.ko new file mode 100644 index 00000000000..3321682a6c7 Binary files /dev/null and b/vendor/rockchip/common/wifi/modules/rtw_8821c.ko differ diff --git a/vendor/rockchip/common/wifi/modules/rtw_8821ce.ko b/vendor/rockchip/common/wifi/modules/rtw_8821ce.ko new file mode 100644 index 00000000000..e389c5c612f Binary files /dev/null and b/vendor/rockchip/common/wifi/modules/rtw_8821ce.ko differ diff --git a/vendor/rockchip/common/wifi/modules/rtw_8822b.ko b/vendor/rockchip/common/wifi/modules/rtw_8822b.ko new file mode 100644 index 00000000000..c54797e0402 Binary files /dev/null and b/vendor/rockchip/common/wifi/modules/rtw_8822b.ko differ diff --git a/vendor/rockchip/common/wifi/modules/rtw_8822be.ko b/vendor/rockchip/common/wifi/modules/rtw_8822be.ko new file mode 100644 index 00000000000..7de4df2d8c3 Binary files /dev/null and b/vendor/rockchip/common/wifi/modules/rtw_8822be.ko differ diff --git a/vendor/rockchip/common/wifi/modules/rtw_8822c.ko b/vendor/rockchip/common/wifi/modules/rtw_8822c.ko new file mode 100644 index 00000000000..df64b6bc940 Binary files /dev/null and b/vendor/rockchip/common/wifi/modules/rtw_8822c.ko differ diff --git a/vendor/rockchip/common/wifi/modules/rtw_8822ce.ko b/vendor/rockchip/common/wifi/modules/rtw_8822ce.ko new file mode 100644 index 00000000000..0a212d4fe2f Binary files /dev/null and b/vendor/rockchip/common/wifi/modules/rtw_8822ce.ko differ diff --git a/vendor/rockchip/common/wifi/modules/rtw_core.ko b/vendor/rockchip/common/wifi/modules/rtw_core.ko new file mode 100644 index 00000000000..74e7a59be6b Binary files /dev/null and b/vendor/rockchip/common/wifi/modules/rtw_core.ko differ diff --git a/vendor/rockchip/common/wifi/modules/rtw_pci.ko b/vendor/rockchip/common/wifi/modules/rtw_pci.ko new file mode 100644 index 00000000000..0e4565f284c Binary files /dev/null and b/vendor/rockchip/common/wifi/modules/rtw_pci.ko differ diff --git a/vendor/rockchip/common/wifi/rtw88/README b/vendor/rockchip/common/wifi/rtw88/README new file mode 100644 index 00000000000..01449ca72e4 --- /dev/null +++ b/vendor/rockchip/common/wifi/rtw88/README @@ -0,0 +1,34 @@ + + rtw88 firmware +================ + +This repository contains firmware images supported by Realtek's wireless +driver rtw88. And some of the devices run with more than one firmware +file. Basically, a "normal" firmware is necessary to be downloaded to +the device. +And another is called "wowlan" firmware, it should be loaded when a +device is going to suspend. Which means driver will "re-download/swap" +the firmware image. The wowlan firmware contains wake up functions that +can recognize specific events and send a wake up signal to device if +needed, and the system will resume to running state. During resume, +driver will then swap the normal firmware back, return to running state. + +If any distros or platforms do not require wowlan feature, they can +_only_ pick the normal firmware. And everything still works fine, +except that the device cannot be waken from the wireless NICs. + +Currently supported devices with corresponding firmwares: + +RTL8822BE + rtw8822b_fw.bin + +RTL8821CE + rtw8821c_fw.bin + +RTL8822CE + rtw8822c_fw.bin + rtw8822c_wow_fw.bin + +RTL8723DE + rtw8723d_fw.bin + diff --git a/vendor/rockchip/common/wifi/rtw88/rtw8723d_fw.bin b/vendor/rockchip/common/wifi/rtw88/rtw8723d_fw.bin new file mode 100644 index 00000000000..ac2b9250c39 Binary files /dev/null and b/vendor/rockchip/common/wifi/rtw88/rtw8723d_fw.bin differ diff --git a/vendor/rockchip/common/wifi/rtw88/rtw8821c_fw.bin b/vendor/rockchip/common/wifi/rtw88/rtw8821c_fw.bin new file mode 100644 index 00000000000..9beeb38c4bf Binary files /dev/null and b/vendor/rockchip/common/wifi/rtw88/rtw8821c_fw.bin differ diff --git a/vendor/rockchip/common/wifi/rtw88/rtw8822b_fw.bin b/vendor/rockchip/common/wifi/rtw88/rtw8822b_fw.bin new file mode 100644 index 00000000000..0934ffcc77a Binary files /dev/null and b/vendor/rockchip/common/wifi/rtw88/rtw8822b_fw.bin differ diff --git a/vendor/rockchip/common/wifi/rtw88/rtw8822c_fw.bin b/vendor/rockchip/common/wifi/rtw88/rtw8822c_fw.bin new file mode 100644 index 00000000000..919fcd8de59 Binary files /dev/null and b/vendor/rockchip/common/wifi/rtw88/rtw8822c_fw.bin differ diff --git a/vendor/rockchip/common/wifi/rtw88/rtw8822c_wow_fw.bin b/vendor/rockchip/common/wifi/rtw88/rtw8822c_wow_fw.bin new file mode 100644 index 00000000000..1ce74fda8bf Binary files /dev/null and b/vendor/rockchip/common/wifi/rtw88/rtw8822c_wow_fw.bin differ diff --git a/vendor/rockchip/common/wifi/wifi.mk b/vendor/rockchip/common/wifi/wifi.mk index 1681a4edf16..565f9bcd01d 100644 --- a/vendor/rockchip/common/wifi/wifi.mk +++ b/vendor/rockchip/common/wifi/wifi.mk @@ -1,4 +1,5 @@ WIFI_KO_FILES := $(shell find $(TOPDIR)$(PRODUCT_KERNEL_PATH)/drivers/net/wireless/rockchip_wlan -name "*.ko" -type f) +WIFI_KO_FILES += $(shell ls $(CUR_PATH)/wifi/modules/*.ko) BOARD_VENDOR_KERNEL_MODULES += \ $(foreach file, $(WIFI_KO_FILES), $(file)) @@ -6,3 +7,7 @@ BOARD_VENDOR_KERNEL_MODULES += \ WifiFirmwareFile := $(shell ls $(CUR_PATH)/wifi/firmware) PRODUCT_COPY_FILES += \ $(foreach file, $(WifiFirmwareFile), $(CUR_PATH)/wifi/firmware/$(file):$(TARGET_COPY_OUT_VENDOR)/etc/firmware/$(file)) + +Rtw88FirmwareFile := $(shell ls $(CUR_PATH)/wifi/rtw88) +PRODUCT_COPY_FILES += \ + $(foreach file, $(Rtw88FirmwareFile), $(CUR_PATH)/wifi/rtw88/$(file):$(TARGET_COPY_OUT_VENDOR)/etc/firmware/rtw88/$(file))