Add support for TP-Link TL-WR810N v2 (QCA9533 based)
[oweals/u-boot_mod.git] / u-boot / include / configs / ap143.h
index 390ae7157c8949ecaef4ccf9d0dcda5885867303..318e8213562d5fe05e52b9702befcda57498fd27 100644 (file)
 
        #define CONFIG_QCA_GPIO_MASK_LED_ACT_L  GPIO13
 
-#elif defined(CONFIG_FOR_TPLINK_WR810N_V1)
+#elif defined(CONFIG_FOR_TPLINK_WR810N_V1) ||\
+      defined(CONFIG_FOR_TPLINK_WR810N_V2)
 
        #define CONFIG_QCA_GPIO_MASK_LED_ACT_L  GPIO13
        #define CONFIG_QCA_GPIO_MASK_IN         GPIO0 | GPIO1
-       #define CONFIG_QCA_GPIO_MASK_OUT_INIT_H GPIO11
+
+       #if defined(CONFIG_FOR_TPLINK_WR810N_V1)
+               #define CONFIG_QCA_GPIO_MASK_OUT_INIT_H GPIO11
+       #endif
 
 #elif defined(CONFIG_FOR_TPLINK_WR841N_V10) ||\
       defined(CONFIG_FOR_TPLINK_WR841N_V9)
 
 #elif defined(CONFIG_FOR_TPLINK_MR22U_V1)    ||\
       defined(CONFIG_FOR_TPLINK_MR6400_V1V2) ||\
-      defined(CONFIG_FOR_TPLINK_WR810N_V1)
+      defined(CONFIG_FOR_TPLINK_WR810N_V1)   ||\
+      defined(CONFIG_FOR_TPLINK_WR810N_V2)
 
        #define CONFIG_BOOTARGS "console=ttyS0,115200 root=31:02 "\
                                "rootfstype=squashfs init=/sbin/init "\
     defined(CONFIG_FOR_TPLINK_WA850RE_V2)   ||\
     defined(CONFIG_FOR_TPLINK_WR802N_V1)    ||\
     defined(CONFIG_FOR_TPLINK_WR810N_V1)    ||\
+    defined(CONFIG_FOR_TPLINK_WR810N_V2)    ||\
     defined(CONFIG_FOR_TPLINK_WR820N_V1_CN) ||\
     defined(CONFIG_FOR_TPLINK_WR841N_V10)   ||\
     defined(CONFIG_FOR_TPLINK_WR841N_V11)   ||\
       defined(CONFIG_FOR_TPLINK_WA850RE_V2)   ||\
       defined(CONFIG_FOR_TPLINK_WR802N_V1)    ||\
       defined(CONFIG_FOR_TPLINK_WR810N_V1)    ||\
+      defined(CONFIG_FOR_TPLINK_WR810N_V2)    ||\
       defined(CONFIG_FOR_TPLINK_WR820N_V1_CN) ||\
       defined(CONFIG_FOR_TPLINK_WR841N_V10)   ||\
       defined(CONFIG_FOR_TPLINK_WR841N_V11)   ||\
       defined(CONFIG_FOR_TPLINK_MR6400_V1V2)  ||\
       defined(CONFIG_FOR_TPLINK_WR802N_V1)    ||\
       defined(CONFIG_FOR_TPLINK_WR810N_V1)    ||\
+      defined(CONFIG_FOR_TPLINK_WR810N_V2)    ||\
       defined(CONFIG_FOR_TPLINK_WR820N_V1_CN) ||\
       defined(CONFIG_FOR_TPLINK_WR841N_V10)   ||\
       defined(CONFIG_FOR_TPLINK_WR841N_V11)   ||\
     defined(CONFIG_FOR_TPLINK_MR6400_V1V2)  ||\
     defined(CONFIG_FOR_TPLINK_WR802N_V1)    ||\
     defined(CONFIG_FOR_TPLINK_WR810N_V1)    ||\
+    defined(CONFIG_FOR_TPLINK_WR810N_V2)    ||\
     defined(CONFIG_FOR_TPLINK_WR820N_V1_CN) ||\
     defined(CONFIG_FOR_TPLINK_WR841N_V10)   ||\
     defined(CONFIG_FOR_TPLINK_WR841N_V11)   ||\
     defined(CONFIG_FOR_TPLINK_WA850RE_V2)   ||\
     defined(CONFIG_FOR_TPLINK_WR802N_V1)    ||\
     defined(CONFIG_FOR_TPLINK_WR810N_V1)    ||\
+    defined(CONFIG_FOR_TPLINK_WR810N_V2)    ||\
     defined(CONFIG_FOR_TPLINK_WR820N_V1_CN) ||\
     defined(CONFIG_FOR_TPLINK_WR841N_V10)   ||\
     defined(CONFIG_FOR_TPLINK_WR841N_V11)   ||\