[LEDE-DEV] [PATCH 1/2] ipq806x: Add support for ipq806x as subtarget

Ram Chandra Jangir rjangir at codeaurora.org
Thu Apr 13 08:09:52 PDT 2017


Currently IPQ has IPQ806x and IPQ40xx SoC's available,
So we can add both of them as subtargets.

Signed-off-by: Ram Chandra Jangir <rjangir at codeaurora.org>
---
 target/linux/ipq806x/Makefile               | 1 +
 target/linux/ipq806x/config-4.9             | 8 ++++----
 target/linux/ipq806x/image/Makefile         | 2 ++
 target/linux/ipq806x/ipq806x/config-default | 4 ++++
 target/linux/ipq806x/ipq806x/target.mk      | 7 +++++++
 5 files changed, 18 insertions(+), 4 deletions(-)
 create mode 100644 target/linux/ipq806x/ipq806x/config-default
 create mode 100644 target/linux/ipq806x/ipq806x/target.mk

diff --git a/target/linux/ipq806x/Makefile b/target/linux/ipq806x/Makefile
index e78273c..5a5551c 100644
--- a/target/linux/ipq806x/Makefile
+++ b/target/linux/ipq806x/Makefile
@@ -8,6 +8,7 @@ BOARDNAME:=Qualcomm Atheros IPQ806X
 FEATURES:=squashfs nand ubifs fpu
 CPU_TYPE:=cortex-a15
 CPU_SUBTYPE:=neon-vfpv4
+SUBTARGETS:=ipq806x
 MAINTAINER:=John Crispin <john at phrozen.org>
 
 KERNEL_PATCHVER:=4.9
diff --git a/target/linux/ipq806x/config-4.9 b/target/linux/ipq806x/config-4.9
index 072ab6a..bb1f141 100644
--- a/target/linux/ipq806x/config-4.9
+++ b/target/linux/ipq806x/config-4.9
@@ -159,7 +159,7 @@ CONFIG_DMA_VIRTUAL_CHANNELS=y
 CONFIG_DTC=y
 CONFIG_DT_IDLE_STATES=y
 # CONFIG_DWMAC_GENERIC is not set
-CONFIG_DWMAC_IPQ806X=y
+# CONFIG_DWMAC_IPQ806X is not set
 CONFIG_DYNAMIC_DEBUG=y
 CONFIG_EARLY_PRINTK=y
 CONFIG_EDAC_ATOMIC_SCRUB=y
@@ -256,7 +256,7 @@ CONFIG_IOMMU_HELPER=y
 # CONFIG_IOMMU_IO_PGTABLE_LPAE is not set
 CONFIG_IOMMU_SUPPORT=y
 CONFIG_IPQ_GCC_4019=y
-CONFIG_IPQ_GCC_806X=y
+# CONFIG_IPQ_GCC_806X is not set
 # CONFIG_IPQ_LCC_806X is not set
 CONFIG_IRQCHIP=y
 CONFIG_IRQ_DOMAIN=y
@@ -371,13 +371,13 @@ CONFIG_PERF_USE_VMALLOC=y
 CONFIG_PGTABLE_LEVELS=2
 CONFIG_PHYLIB=y
 # CONFIG_PHY_QCOM_APQ8064_SATA is not set
-CONFIG_PHY_QCOM_IPQ806X_SATA=y
+# CONFIG_PHY_QCOM_IPQ806X_SATA is not set
 # CONFIG_PHY_QCOM_UFS is not set
 CONFIG_PINCTRL=y
 CONFIG_PINCTRL_APQ8064=y
 # CONFIG_PINCTRL_APQ8084 is not set
 CONFIG_PINCTRL_IPQ4019=y
-CONFIG_PINCTRL_IPQ8064=y
+# CONFIG_PINCTRL_IPQ8064 is not set
 # CONFIG_PINCTRL_MDM9615 is not set
 CONFIG_PINCTRL_MSM=y
 # CONFIG_PINCTRL_MSM8660 is not set
diff --git a/target/linux/ipq806x/image/Makefile b/target/linux/ipq806x/image/Makefile
index de6ddb6..9af2e5a 100644
--- a/target/linux/ipq806x/image/Makefile
+++ b/target/linux/ipq806x/image/Makefile
@@ -250,7 +250,9 @@ define Device/VR2600v
 	IMAGE/sysupgrade.bin := pad-extra 512 | append-kernel | pad-to $$$${KERNEL_SIZE} | append-rootfs | pad-rootfs | append-metadata
 endef
 
+ifeq ($(SUBTARGET),ipq806x)
 TARGET_DEVICES += AP148 AP148-legacy C2600 D7800 DB149 EA8500 FRITZ4040 R7500 \
 		  R7500v2 R7800 NBG6817 VR2600v
+endif
 
 $(eval $(call BuildImage))
diff --git a/target/linux/ipq806x/ipq806x/config-default b/target/linux/ipq806x/ipq806x/config-default
new file mode 100644
index 0000000..424c2c6
--- /dev/null
+++ b/target/linux/ipq806x/ipq806x/config-default
@@ -0,0 +1,4 @@
+CONFIG_DWMAC_IPQ806X=y
+CONFIG_IPQ_GCC_806X=y
+CONFIG_PHY_QCOM_IPQ806X_SATA=y
+CONFIG_PINCTRL_IPQ8064=y
diff --git a/target/linux/ipq806x/ipq806x/target.mk b/target/linux/ipq806x/ipq806x/target.mk
new file mode 100644
index 0000000..837d27d
--- /dev/null
+++ b/target/linux/ipq806x/ipq806x/target.mk
@@ -0,0 +1,7 @@
+
+SUBTARGET:=ipq806x
+BOARDNAME:=QCA IPQ806x based boards
+
+define Target/Description
+	Build firmware image for IPQ806x SoC devices.
+endef
-- 
2.7.2




More information about the Lede-dev mailing list