forked from coolsnowwolf/lede
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ipq807x: add Xiaomi AX3600 and ath11k support
- Loading branch information
1 parent
bb23907
commit 9d8a34c
Showing
48 changed files
with
6,176 additions
and
101 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
include $(TOPDIR)/rules.mk | ||
|
||
PKG_NAME:=ath11k-firmware | ||
PKG_SOURCE_DATE:=2020-06-26 | ||
PKG_SOURCE_VERSION:=ac35049edfa9e59fc0aa9988ba12ea91d28241f5 | ||
PKG_MIRROR_HASH:=a5bbe673c7714447df3197de2bc86a09b13d402b89f7f9a813c4b400d897eb9e | ||
PKG_RELEASE:=1 | ||
|
||
PKG_SOURCE_PROTO:=git | ||
PKG_SOURCE_URL:=https://github.com/kvalo/ath11k-firmware.git | ||
|
||
PKG_MAINTAINER:=Robert Marko <[email protected]> | ||
|
||
include $(INCLUDE_DIR)/package.mk | ||
|
||
define Package/ath11k-firmware-default | ||
SECTION:=firmware | ||
CATEGORY:=Firmware | ||
URL:=$(PKG_SOURCE_URL) | ||
DEPENDS:= | ||
endef | ||
|
||
define Package/ath11k-firmware-ipq6018 | ||
$(Package/ath11k-firmware-default) | ||
TITLE:=ath11k firmware for IPQ6018 devices | ||
SECTION:=firmware | ||
CATEGORY:=Firmware | ||
endef | ||
|
||
define Package/ath11k-firmware-ipq8074 | ||
$(Package/ath11k-firmware-default) | ||
TITLE:=ath11k firmware for IPQ8074 devices | ||
SECTION:=firmware | ||
CATEGORY:=Firmware | ||
endef | ||
|
||
define Package/ath11k-firmware-qca6390 | ||
$(Package/ath11k-firmware-default) | ||
TITLE:=ath11k firmware for QCA6390 devices | ||
SECTION:=firmware | ||
CATEGORY:=Firmware | ||
endef | ||
|
||
define Build/Compile | ||
|
||
endef | ||
|
||
define Package/ath11k-firmware-ipq6018/install | ||
$(INSTALL_DIR) $(1)/lib/firmware/IPQ6018 | ||
$(INSTALL_DATA) \ | ||
$(PKG_BUILD_DIR)/IPQ6018/hw1.0/board-2.bin \ | ||
$(1)/lib/firmware/IPQ6018/ | ||
$(INSTALL_DATA) \ | ||
$(PKG_BUILD_DIR)/IPQ6018/hw1.0/2.1.0.1/WLAN.HK.2.1.0.1-01238-QCAHKSWPL_SILICONZ-2/* \ | ||
$(1)/lib/firmware/IPQ6018 | ||
endef | ||
|
||
define Package/ath11k-firmware-ipq8074/install | ||
$(INSTALL_DIR) $(1)/lib/firmware/IPQ8074 | ||
$(INSTALL_DATA) \ | ||
$(PKG_BUILD_DIR)/IPQ8074/hw2.0/board-2.bin \ | ||
$(1)/lib/firmware/IPQ8074/ | ||
$(INSTALL_DATA) \ | ||
$(PKG_BUILD_DIR)/IPQ8074/hw2.0/2.1.0.1/WLAN.HK.2.1.0.1-01238-QCAHKSWPL_SILICONZ-2/* \ | ||
$(1)/lib/firmware/IPQ8074 | ||
endef | ||
|
||
define Package/ath11k-firmware-qca6390/install | ||
$(INSTALL_DIR) $(1)/lib/firmware/QCA6390 | ||
$(INSTALL_DATA) \ | ||
$(PKG_BUILD_DIR)/QCA6390/hw2.0/WLAN.HST.1.0.1-01740-QCAHSTSWPLZ_V2_TO_X86-1/* \ | ||
$(1)/lib/firmware/QCA6390 | ||
endef | ||
|
||
$(eval $(call BuildPackage,ath11k-firmware-ipq6018)) | ||
$(eval $(call BuildPackage,ath11k-firmware-ipq8074)) | ||
$(eval $(call BuildPackage,ath11k-firmware-qca6390)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,14 +2,18 @@ include $(TOPDIR)/rules.mk | |
|
||
ARCH:=aarch64 | ||
BOARD:=ipq807x | ||
BOARDNAME:=Qualcomm Atheros IPQ807x | ||
FEATURES:=squashfs ramdisk source-only | ||
MAINTAINER:=John Crispin <[email protected]> | ||
BOARDNAME:=Qualcomm Atheros IPQ807X | ||
FEATURES:=squashfs fpu ramdisk nand source-only | ||
KERNELNAME:=Image dtbs | ||
CPU_TYPE:=cortex-a53 | ||
SUBTARGETS:=generic | ||
|
||
KERNEL_PATCHVER:=5.4 | ||
|
||
include $(INCLUDE_DIR)/target.mk | ||
DEFAULT_PACKAGES += \ | ||
kmod-leds-gpio kmod-gpio-button-hotplug \ | ||
ath11k-firmware-ipq8074 kmod-ath11k \ | ||
wpad-basic-wolfssl | ||
|
||
$(eval $(call BuildTarget)) |
20 changes: 20 additions & 0 deletions
20
target/linux/ipq807x/base-files/etc/hotplug.d/firmware/11-ath11k-caldata
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/bin/sh -x | ||
|
||
[ -e /lib/firmware/$FIRMWARE ] && exit 0 | ||
|
||
. /lib/functions/caldata.sh | ||
|
||
board=$(board_name) | ||
|
||
case "$FIRMWARE" in | ||
"IPQ8074/caldata.bin") | ||
case "$board" in | ||
xiaomi,ax3600) | ||
caldata_extract "0:ART" 0x1000 0x20000 | ||
;; | ||
esac | ||
;; | ||
*) | ||
exit 1 | ||
;; | ||
esac |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Copyright (c) 2013 The Linux Foundation. All rights reserved. | ||
::sysinit:/etc/init.d/rcS S boot | ||
::shutdown:/etc/init.d/rcS K shutdown | ||
ttyMSM0::askfirst:/usr/libexec/login.sh | ||
ttyMSM1::askfirst:/usr/libexec/login.sh |
Oops, something went wrong.