mirror of
https://github.com/Telecominfraproject/wlan-ap.git
synced 2025-10-29 09:32:34 +00:00
312 lines
10 KiB
Diff
312 lines
10 KiB
Diff
From 2ddf71fa87f4179c2e3f815f4442d971f1d0477e Mon Sep 17 00:00:00 2001
|
|
From: John Crispin <john@phrozen.org>
|
|
Date: Sun, 5 Sep 2021 11:46:09 +0200
|
|
Subject: [PATCH] ipq5018
|
|
|
|
---
|
|
target/linux/ipq807x/Makefile | 2 +-
|
|
.../ipq807x/base-files/etc/board.d/02_network | 1 +
|
|
.../etc/hotplug.d/firmware/10-ath11k-caldata | 11 +--
|
|
.../base-files/lib/upgrade/platform.sh | 4 +-
|
|
target/linux/ipq807x/image/ipq50xx.mk | 10 +++
|
|
target/linux/ipq807x/ipq50xx/config-default | 84 +++++++++++++++++++
|
|
target/linux/ipq807x/ipq50xx/config-lowmem | 73 ++++++++++++++++
|
|
target/linux/ipq807x/ipq50xx/target.mk | 10 +++
|
|
8 files changed, 188 insertions(+), 7 deletions(-)
|
|
create mode 100644 target/linux/ipq807x/image/ipq50xx.mk
|
|
create mode 100644 target/linux/ipq807x/ipq50xx/config-default
|
|
create mode 100644 target/linux/ipq807x/ipq50xx/config-lowmem
|
|
create mode 100644 target/linux/ipq807x/ipq50xx/target.mk
|
|
|
|
diff --git a/target/linux/ipq807x/Makefile b/target/linux/ipq807x/Makefile
|
|
index 97c770df4a..abdb82ec5d 100644
|
|
--- a/target/linux/ipq807x/Makefile
|
|
+++ b/target/linux/ipq807x/Makefile
|
|
@@ -3,7 +3,7 @@ include $(TOPDIR)/rules.mk
|
|
ARCH:=arm
|
|
BOARD:=ipq807x
|
|
BOARDNAME:=Qualcomm Atheros AX
|
|
-SUBTARGETS:=ipq807x ipq60xx
|
|
+SUBTARGETS:=ipq807x ipq60xx ipq50xx
|
|
FEATURES:=squashfs ramdisk nand pcie usb
|
|
KERNELNAME:=Image dtbs
|
|
CPU_TYPE:=cortex-a7
|
|
diff --git a/target/linux/ipq807x/base-files/etc/board.d/02_network b/target/linux/ipq807x/base-files/etc/board.d/02_network
|
|
index eaa440943b..e31258d875 100755
|
|
--- a/target/linux/ipq807x/base-files/etc/board.d/02_network
|
|
+++ b/target/linux/ipq807x/base-files/etc/board.d/02_network
|
|
@@ -24,6 +24,7 @@ qcom_setup_interfaces()
|
|
ucidef_set_interface_wan "eth5"
|
|
;;
|
|
cig,wf194c|\
|
|
+ qcom,ipq5018-mp03.3|\
|
|
sercomm,wallaby)
|
|
ucidef_set_interface_lan "eth0"
|
|
ucidef_set_interface_wan "eth1"
|
|
diff --git a/target/linux/ipq807x/base-files/etc/hotplug.d/firmware/10-ath11k-caldata b/target/linux/ipq807x/base-files/etc/hotplug.d/firmware/10-ath11k-caldata
|
|
index 536115a118..414343b13d 100755
|
|
--- a/target/linux/ipq807x/base-files/etc/hotplug.d/firmware/10-ath11k-caldata
|
|
+++ b/target/linux/ipq807x/base-files/etc/hotplug.d/firmware/10-ath11k-caldata
|
|
@@ -46,7 +46,7 @@ case "$FIRMWARE" in
|
|
tplink,ex227|\
|
|
tplink,ex447|\
|
|
sercomm,wallaby)
|
|
- caldata_extract "0:ART" 0x1000 0x20000
|
|
+ caldata_extract "0:ART" 0x1000 0x10000
|
|
;;
|
|
esac
|
|
;;
|
|
@@ -57,21 +57,22 @@ case "$FIRMWARE" in
|
|
edgecore,eap101|\
|
|
qcom,ipq6018-cp01|\
|
|
xiaomi,ax1800)
|
|
- caldata_extract "0:ART" 0x1000 0x20000
|
|
+ caldata_extract "0:ART" 0x1000 0x10000
|
|
;;
|
|
esac
|
|
;;
|
|
ath11k/QCN9074/hw1.0/caldata_1.bin)
|
|
case "$board" in
|
|
qcom,ipq807x-hk14)
|
|
- caldata_extract "0:ART" 0x26800 0x20000
|
|
+ caldata_extract "0:ART" 0x26800 0x10000
|
|
;;
|
|
esac
|
|
;;
|
|
ath11k/QCN9074/hw1.0/caldata_2.bin)
|
|
case "$board" in
|
|
- qcom,ipq807x-hk14)
|
|
- caldata_extract "0:ART" 0x4C000 0x20000
|
|
+ qcom,ipq807x-hk14|\
|
|
+ qcom,ipq5018-mp03.3)
|
|
+ caldata_extract "0:ART" 0x4C000 0x10000
|
|
;;
|
|
esac
|
|
;;
|
|
diff --git a/target/linux/ipq807x/base-files/lib/upgrade/platform.sh b/target/linux/ipq807x/base-files/lib/upgrade/platform.sh
|
|
index de64559bce..76de06d90e 100755
|
|
--- a/target/linux/ipq807x/base-files/lib/upgrade/platform.sh
|
|
+++ b/target/linux/ipq807x/base-files/lib/upgrade/platform.sh
|
|
@@ -29,7 +29,8 @@ platform_check_image() {
|
|
tplink,ex447|\
|
|
qcom,ipq6018-cp01|\
|
|
qcom,ipq807x-hk01|\
|
|
- qcom,ipq807x-hk14)
|
|
+ qcom,ipq807x-hk14|\
|
|
+ qcom,ipq5018-mp03.3)
|
|
[ "$magic_long" = "73797375" ] && return 0
|
|
;;
|
|
esac
|
|
@@ -51,6 +52,7 @@ platform_do_upgrade() {
|
|
qcom,ipq6018-cp01|\
|
|
qcom,ipq807x-hk01|\
|
|
qcom,ipq807x-hk14|\
|
|
+ qcom,ipq5018-mp03.3|\
|
|
tplink,ex447|\
|
|
tplink,ex227)
|
|
nand_upgrade_tar "$1"
|
|
diff --git a/target/linux/ipq807x/image/ipq50xx.mk b/target/linux/ipq807x/image/ipq50xx.mk
|
|
new file mode 100644
|
|
index 0000000000..f20d54190e
|
|
--- /dev/null
|
|
+++ b/target/linux/ipq807x/image/ipq50xx.mk
|
|
@@ -0,0 +1,10 @@
|
|
+KERNEL_LOADADDR := 0x41208000
|
|
+
|
|
+define Device/qcom_mp03_3
|
|
+ DEVICE_TITLE := Qualcomm Maple 03.3
|
|
+ DEVICE_DTS := qcom-ipq5018-mp03.3
|
|
+ SUPPORTED_DEVICES := qcom,ipq5018-mp03.3
|
|
+ DEVICE_PACKAGES := ath11k-wifi-qcom-ipq5018
|
|
+ DEVICE_DTS_CONFIG := config@mp03.3
|
|
+endef
|
|
+TARGET_DEVICES += qcom_mp03_3
|
|
diff --git a/target/linux/ipq807x/ipq50xx/config-default b/target/linux/ipq807x/ipq50xx/config-default
|
|
new file mode 100644
|
|
index 0000000000..b8e202c874
|
|
--- /dev/null
|
|
+++ b/target/linux/ipq807x/ipq50xx/config-default
|
|
@@ -0,0 +1,84 @@
|
|
+# CONFIG_AHCI_IPQ is not set
|
|
+CONFIG_ARCH_IPQ5018=y
|
|
+# CONFIG_DIAGFWD_BRIDGE_CODE is not set
|
|
+CONFIG_IPQ_ADSS_5018=y
|
|
+CONFIG_IPQ_APSS_5018=y
|
|
+CONFIG_IPQ_GCC_5018=y
|
|
+# CONFIG_NET_SWITCHDEV is not set
|
|
+CONFIG_NUM_ALT_PARTITION=16
|
|
+CONFIG_PINCTRL_IPQ5018=y
|
|
+# CONFIG_IPC_LOGGING is not set
|
|
+CONFIG_IPQ_SUBSYSTEM_DUMP=y
|
|
+CONFIG_SPS=y
|
|
+CONFIG_SPS_SUPPORT_NDP_BAM=y
|
|
+CONFIG_CORESIGHT=y
|
|
+CONFIG_CORESIGHT_CSR=y
|
|
+CONFIG_CORESIGHT_CTI=y
|
|
+CONFIG_CORESIGHT_EVENT=y
|
|
+CONFIG_CORESIGHT_HWEVENT=y
|
|
+CONFIG_CORESIGHT_LINKS_AND_SINKS=y
|
|
+CONFIG_CORESIGHT_LINK_AND_SINK_TMC=y
|
|
+CONFIG_CORESIGHT_QCOM_REPLICATOR=y
|
|
+# CONFIG_INPUT_PM8941_PWRKEY is not set
|
|
+CONFIG_MDIO_QCA=y
|
|
+# CONFIG_CRYPTO_ALL_CASES is not set
|
|
+CONFIG_CRYPTO_DEV_QCOM_ICE=y
|
|
+# CONFIG_CRYPTO_MANAGER_DISABLE_TESTS is not set
|
|
+CONFIG_CRYPTO_SHA512=y
|
|
+# CONFIG_CORESIGHT_QPDI is not set
|
|
+# CONFIG_CORESIGHT_SINK_ETBV10 is not set
|
|
+CONFIG_CORESIGHT_SINK_TPIU=y
|
|
+# CONFIG_CORESIGHT_SOURCE_DUMMY is not set
|
|
+CONFIG_CORESIGHT_SOURCE_ETM3X=y
|
|
+CONFIG_CORESIGHT_SOURCE_ETM4X=y
|
|
+# CONFIG_CORESIGHT_REMOTE_ETM is not set
|
|
+CONFIG_CORESIGHT_STM=y
|
|
+CONFIG_CORESIGHT_TPDA=y
|
|
+CONFIG_CORESIGHT_TPDM=y
|
|
+# CONFIG_CORESIGHT_TPDM_DEFAULT_ENABLE is not set
|
|
+CONFIG_IIO=y
|
|
+# CONFIG_IIO_BUFFER is not set
|
|
+# CONFIG_IIO_TRIGGER is not set
|
|
+CONFIG_PCIE_DW_PLAT=y
|
|
+CONFIG_PHY_IPQ_UNIPHY_PCIE=y
|
|
+CONFIG_VMSPLIT_2G=y
|
|
+# CONFIG_VMSPLIT_3G is not set
|
|
+CONFIG_PPS=y
|
|
+CONFIG_PTP_1588_CLOCK=y
|
|
+# CONFIG_DP83640_PHY is not set
|
|
+CONFIG_PWM_IPQ5018=y
|
|
+CONFIG_QCOM_APM=y
|
|
+CONFIG_QCOM_DCC=y
|
|
+# CONFIG_QCOM_SPMI_TEMP_ALARM is not set
|
|
+CONFIG_MMC_SDHCI_MSM_ICE=y
|
|
+CONFIG_USB_BAM=y
|
|
+CONFIG_MAILBOX=y
|
|
+# CONFIG_USB_QCOM_DIAG_BRIDGE is not set
|
|
+# CONFIG_USB_CONFIGFS_F_DIAG is not set
|
|
+# CONFIG_NF_IPV6_DUMMY_HEADER is not set
|
|
+CONFIG_RMNET_DATA=y
|
|
+CONFIG_RMNET_DATA_DEBUG_PKT=y
|
|
+CONFIG_MTD_NAND_SERIAL=y
|
|
+CONFIG_PAGE_SCOPE_MULTI_PAGE_READ=y
|
|
+# CONFIG_RMNET_DATA_FC is not set
|
|
+CONFIG_CRYPTO_NO_ZERO_LEN_HASH=y
|
|
+CONFIG_CRYPTO_DISABLE_AES192_TEST=y
|
|
+# CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE is not set
|
|
+# CONFIG_CPU_FREQ_GOV_PERFORMANCE is not set
|
|
+# CONFIG_CPU_FREQ_GOV_POWERSAVE is not set
|
|
+# CONFIG_CPU_FREQ_GOV_ONDEMAND is not set
|
|
+# CONFIG_CPU_FREQ_GOV_CONSERVATIVE is not set
|
|
+CONFIG_QTI_EUD=y
|
|
+CONFIG_USB_QCA_M31_PHY=y
|
|
+CONFIG_QGIC2_MSI=y
|
|
+CONFIG_MTD_SPI_NOR_USE_4K_SECTORS=y
|
|
+CONFIG_PWM_IPQ4019=y
|
|
+CONFIG_RMNET=y
|
|
+CONFIG_QCOM_QMI_RMNET=y
|
|
+CONFIG_QCOM_QMI_DFC=y
|
|
+CONFIG_QCOM_QMI_POWER_COLLAPSE=y
|
|
+CONFIG_RMNET_CTL=y
|
|
+CONFIG_RMNET_CTL_DEBUG=y
|
|
+CONFIG_SND_SOC_IPQ_LPASS=y
|
|
+CONFIG_SND_SOC_IPQ_LPASS_PCM_RAW=y
|
|
+# CONFIG_SND_SOC_IPQ_PCM_RAW is not set
|
|
diff --git a/target/linux/ipq807x/ipq50xx/config-lowmem b/target/linux/ipq807x/ipq50xx/config-lowmem
|
|
new file mode 100644
|
|
index 0000000000..b1b817ef6f
|
|
--- /dev/null
|
|
+++ b/target/linux/ipq807x/ipq50xx/config-lowmem
|
|
@@ -0,0 +1,73 @@
|
|
+# CONFIG_AHCI_IPQ is not set
|
|
+CONFIG_ARCH_IPQ5018=y
|
|
+# CONFIG_DIAGFWD_BRIDGE_CODE is not set
|
|
+CONFIG_IPQ_ADSS_5018=y
|
|
+CONFIG_IPQ_APSS_5018=y
|
|
+CONFIG_IPQ_GCC_5018=y
|
|
+# CONFIG_NET_SWITCHDEV is not set
|
|
+CONFIG_NUM_ALT_PARTITION=16
|
|
+CONFIG_PINCTRL_IPQ5018=y
|
|
+# CONFIG_IPC_LOGGING is not set
|
|
+CONFIG_IPQ_SUBSYSTEM_DUMP=y
|
|
+# CONFIG_SPS is not set
|
|
+# CONFIG_SPS_SUPPORT_NDP_BAM is not set
|
|
+# CONFIG_CORESIGHT is not set
|
|
+# CONFIG_INPUT_PM8941_PWRKEY is not set
|
|
+CONFIG_MDIO_QCA=y
|
|
+# CONFIG_CRYPTO_ALL_CASES is not set
|
|
+# CONFIG_CRYPTO_DEV_QCOM_ICE is not set
|
|
+# CONFIG_CRYPTO_MANAGER_DISABLE_TESTS is not set
|
|
+# CONFIG_CRYPTO_SHA512 is not set
|
|
+# CONFIG_IIO is not set
|
|
+# CONFIG_IIO_BUFFER is not set
|
|
+# CONFIG_IIO_TRIGGER is not set
|
|
+CONFIG_PCIE_DW_PLAT=y
|
|
+CONFIG_PHY_IPQ_UNIPHY_PCIE=y
|
|
+CONFIG_VMSPLIT_2G=y
|
|
+# CONFIG_VMSPLIT_3G is not set
|
|
+# CONFIG_PPS is not set
|
|
+# CONFIG_PTP_1588_CLOCK is not set
|
|
+# CONFIG_DP83640_PHY is not set
|
|
+CONFIG_PWM_IPQ5018=y
|
|
+CONFIG_QCOM_APM=y
|
|
+# CONFIG_QCOM_DCC is not set
|
|
+# CONFIG_QCOM_SPMI_TEMP_ALARM is not set
|
|
+CONFIG_MMC_SDHCI_MSM_ICE=y
|
|
+CONFIG_USB_BAM=y
|
|
+CONFIG_MAILBOX=y
|
|
+# CONFIG_USB_QCOM_DIAG_BRIDGE is not set
|
|
+# CONFIG_USB_CONFIGFS_F_DIAG is not set
|
|
+# CONFIG_NF_IPV6_DUMMY_HEADER is not set
|
|
+# CONFIG_RMNET_DATA is not set
|
|
+# CONFIG_RMNET_DATA_DEBUG_PKT is not set
|
|
+CONFIG_MTD_NAND_SERIAL=y
|
|
+CONFIG_PAGE_SCOPE_MULTI_PAGE_READ=y
|
|
+# CONFIG_RMNET_DATA_FC is not set
|
|
+# CONFIG_CRYPTO_NO_ZERO_LEN_HASH is not set
|
|
+# CONFIG_CRYPTO_DISABLE_AES192_TEST is not set
|
|
+# CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE is not set
|
|
+# CONFIG_CPU_FREQ_GOV_PERFORMANCE is not set
|
|
+# CONFIG_CPU_FREQ_GOV_POWERSAVE is not set
|
|
+# CONFIG_CPU_FREQ_GOV_ONDEMAND is not set
|
|
+# CONFIG_CPU_FREQ_GOV_CONSERVATIVE is not set
|
|
+CONFIG_QTI_EUD=y
|
|
+CONFIG_USB_QCA_M31_PHY=y
|
|
+CONFIG_SQUASHFS_XZ=y
|
|
+# CONFIG_SQUASHFS_ZLIB is not set
|
|
+# CONFIG_JFFS2_LZMA is not set
|
|
+CONFIG_JFFS2_ZLIB=y
|
|
+# CONFIG_LZO_COMPRESS is not set
|
|
+# CONFIG_LZO_DECOMPRESS is not set
|
|
+CONFIG_XZ_DEC=y
|
|
+# CONFIG_XZ_DEC_X86 is not set
|
|
+# CONFIG_XZ_DEC_POWERPC is not set
|
|
+# CONFIG_XZ_DEC_IA64 is not set
|
|
+CONFIG_XZ_DEC_ARM=y
|
|
+# CONFIG_XZ_DEC_ARMTHUMB is not set
|
|
+# CONFIG_XZ_DEC_SPARC is not set
|
|
+CONFIG_XZ_DEC_BCJ=y
|
|
+# CONFIG_LZO_COMPRESS is not set
|
|
+# CONFIG_LZO_DECOMPRESS is not set
|
|
+# CONFIG_CRYPTO is not set
|
|
+CONFIG_QGIC2_MSI=y
|
|
+CONFIG_MTD_SPI_NOR_USE_4K_SECTORS=y
|
|
diff --git a/target/linux/ipq807x/ipq50xx/target.mk b/target/linux/ipq807x/ipq50xx/target.mk
|
|
new file mode 100644
|
|
index 0000000000..649f398ba6
|
|
--- /dev/null
|
|
+++ b/target/linux/ipq807x/ipq50xx/target.mk
|
|
@@ -0,0 +1,10 @@
|
|
+
|
|
+SUBTARGET:=ipq50xx
|
|
+BOARDNAME:=IPQ50XX
|
|
+CPU_TYPE:=cortex-a7
|
|
+
|
|
+DEFAULT_PACKAGES += ath11k-firmware-ipq50xx qca-nss-fw-ipq50xx
|
|
+
|
|
+define Target/Description
|
|
+ Build firmware image for IPQ50xx SoC devices.
|
|
+endef
|
|
--
|
|
2.25.1
|
|
|