Split TP-Link TL-WA801NDv2 and TL-WA830REv2 profiles, build separate images for them
authorPiotr Dymacz <pepe2k@gmail.com>
Fri, 23 Sep 2016 16:40:20 +0000 (18:40 +0200)
committerPiotr Dymacz <pepe2k@gmail.com>
Fri, 23 Sep 2016 16:40:20 +0000 (18:40 +0200)
Makefile
u-boot/Makefile
u-boot/include/configs/db12x.h

index 4a23ceb553078b7e78200c44d7b76dad5c01d074..679f65b44758c29d682ec333931c7fc105049d81 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -204,7 +204,8 @@ $(COMMON_AR933X_TARGETS):
 
 COMMON_ETHS27_TARGETS = \
        tp-link_tl-mr3420_v2 \
-       tp-link_tl-wa830re_v2_tl-wa801nd_v2 \
+       tp-link_tl-wa801nd_v2 \
+       tp-link_tl-wa830re_v2 \
        tp-link_tl-wdr3500 \
        tp-link_tl-wr802n \
        tp-link_tl-wr820n_CN \
index 458c3112c5b5cb7920384809f97c1524bf1245ba..cbc9f0d1b58c36b59a34f2ab2100b14b82712839 100644 (file)
@@ -463,9 +463,16 @@ tp-link_tl-mr3420_v2: ar934x_common
        @$(call define_add,CFG_AG7240_NMACS,2)
        @$(MKCONFIG) -a db12x mips mips db12x ar7240 ar7240
 
-tp-link_tl-wa830re_v2_tl-wa801nd_v2: ar934x_common
-       @$(call config_init,TP-Link TL-WA830RE/TL-WA801ND v2,tl-wa830re-801nd-v2,4,17,1,QCA_AR9341_SOC)
-       @$(call define_add,CONFIG_FOR_TPLINK_WA830RE_V2_WA801ND_V2,1)
+tp-link_tl-wa801nd_v2: ar934x_common
+       @$(call config_init,TP-Link TL-WA801ND v2,tl-wa801nd-v2,4,17,1,QCA_AR9341_SOC)
+       @$(call define_add,CONFIG_FOR_TPLINK_WA801ND_V2,1)
+       @$(call define_add,CFG_ATHRS27_PHY,1)
+       @$(call define_add,CFG_AG7240_NMACS,2)
+       @$(MKCONFIG) -a db12x mips mips db12x ar7240 ar7240
+
+tp-link_tl-wa830re_v2: ar934x_common
+       @$(call config_init,TP-Link TL-WA830RE v2,tl-wa830re-v2,4,17,1,QCA_AR9341_SOC)
+       @$(call define_add,CONFIG_FOR_TPLINK_WA830RE_V2,1)
        @$(call define_add,CFG_ATHRS27_PHY,1)
        @$(call define_add,CFG_AG7240_NMACS,2)
        @$(MKCONFIG) -a db12x mips mips db12x ar7240 ar7240
index 59846e68edf0122e250a69bc22e088c1fa21c2a8..f65f443fdf7c72db86eb60cc3d894a0cd12979f4 100644 (file)
@@ -63,7 +63,8 @@
        #define CONFIG_QCA_GPIO_MASK_IN         GPIO16 | GPIO17
        #define CONFIG_QCA_GPIO_MASK_OUT_INIT_H CONFIG_QCA_GPIO_MASK_LED_ACT_L
 
-#elif defined(CONFIG_FOR_TPLINK_WA830RE_V2_WA801ND_V2)
+#elif defined(CONFIG_FOR_TPLINK_WA801ND_V2) ||\
+      defined(CONFIG_FOR_TPLINK_WA830RE_V2)
 
        #define CONFIG_QCA_GPIO_MASK_LED_ACT_L  GPIO13 | GPIO14 | GPIO15 |\
                                                GPIO18
  */
 #define CONFIG_QCA_PLL QCA_PLL_PRESET_550_400_200
 
-#if defined(CONFIG_FOR_TPLINK_MR3420_V2)             ||\
-    defined(CONFIG_FOR_TPLINK_WA830RE_V2_WA801ND_V2) ||\
-    defined(CONFIG_FOR_TPLINK_WDR3600_V1)            ||\
-    defined(CONFIG_FOR_TPLINK_WDR43X0_V1)            ||\
-    defined(CONFIG_FOR_TPLINK_WDR3500_V1)            ||\
+#if defined(CONFIG_FOR_TPLINK_MR3420_V2)  ||\
+    defined(CONFIG_FOR_TPLINK_WA801ND_V2) ||\
+    defined(CONFIG_FOR_TPLINK_WA830RE_V2) ||\
+    defined(CONFIG_FOR_TPLINK_WDR3600_V1) ||\
+    defined(CONFIG_FOR_TPLINK_WDR43X0_V1) ||\
+    defined(CONFIG_FOR_TPLINK_WDR3500_V1) ||\
     defined(CONFIG_FOR_TPLINK_WR841N_V8)
 
        #define CONFIG_QCA_PLL_IN_FLASH_BLOCK_OFFSET    0x10000