Add support for TP-Link TL-WR810N (QCA9531 based)
authorPiotr Dymacz <pepe2k@gmail.com>
Tue, 22 Nov 2016 20:17:30 +0000 (21:17 +0100)
committerPiotr Dymacz <pepe2k@gmail.com>
Tue, 22 Nov 2016 20:17:30 +0000 (21:17 +0100)
Makefile
README.md
READMEPL.md
u-boot/Makefile
u-boot/include/configs/ap143.h

index ce60c29abd5eec13cf241b5ec6f399b4b49ac10f..c894b803116a32984d2b3d6e2060ea31c522a680 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -208,6 +208,7 @@ COMMON_ETHS27_TARGETS = \
        tp-link_tl-wa830re_v2 \
        tp-link_tl-wdr3500 \
        tp-link_tl-wr802n \
+       tp-link_tl-wr810n \
        tp-link_tl-wr820n_CN \
        tp-link_tl-wr841n_v10 \
        tp-link_tl-wr841n_v11 \
index 7f2a2d504ed8d9d5027237bb3c8047e8302b3092..405854b6ce796fc65c3163d96b62a12787c3b869 100644 (file)
--- a/README.md
+++ b/README.md
@@ -99,6 +99,7 @@ Currently supported devices:
 
 - **Qualcomm Atheros QCA953x**:
   - TP-Link TL-WR841N/D v9, v10, v11
+  - TP-Link TL-WR810N
   - TP-Link TL-WR820N (version for Chinese market)
   - TP-Link TL-WR802N
   - Wallys DR531
@@ -141,6 +142,7 @@ More information about supported devices:
 | [TP-Link TL-WDR3500 v1](http://wiki.openwrt.org/toh/tp-link/tl-wdr3500) | AR9344 | 8 MiB | 128 MiB DDR2 | 64 KiB, LZMA | RO |
 | [D-Link DIR-505 H/W ver. A1](http://wiki.openwrt.org/toh/d-link/dir-505) | AR1311 | 8 MiB | 64 MiB DDR2 | 64 KiB, LZMA | RO |
 | [TP-Link TL-WR841N/D v9/10/11](https://wiki.openwrt.org/toh/tp-link/tl-wr841nd) | QCA9533 | 4 MiB | 32 MiB DDR1 | 64 KiB, LZMA | RO |
+| [TP-Link TL-WR810N](https://wiki.openwrt.org/toh/tp-link/tl-wr810n) | QCA9531 | 8 MiB | 64 MiB DDR2 | 64 KiB, LZMA | RO |
 | [TP-Link TL-WR820N](https://wiki.openwrt.org/toh/tp-link/tl-wr820n) | QCA9531 | 4 MiB | 64 MiB DDR2 | 64 KiB, LZMA | RO |
 | [TP-Link TL-WR802N](https://wikidevi.com/wiki/TP-LINK_TL-WR802N_v1.0) | QCA9533 | 4 MiB | 32 MiB DDR1 | 64 KiB, LZMA | RO |
 | Wallys DR531 | QCA9531 | 8 MiB | 64 MiB DDR2 | 192 KiB | R/W |
index c75981adcd5885482890189b1fe9236b6f4981fc..fb8360c2b398fc0151da11e6e347a5e2f2c7362d 100644 (file)
@@ -96,6 +96,7 @@ Lista obecnie wspieranych urządzeń:
 
 - **Qualcomm Atheros QCA953x**:
   - TP-Link TL-WR841N/D v9, v10, v11
+  - TP-Link TL-WR810N
   - TP-Link TL-WR820N (wersja przeznaczona na rynek chiński)
   - TP-Link TL-WR802N
   - Wallys DR531
@@ -138,6 +139,7 @@ Dodatkowe informacje o wspieranych urządzeniach:
 | [TP-Link TL-WDR3500 v1](http://wiki.openwrt.org/toh/tp-link/tl-wdr3500) | AR9344 | 8 MiB | 128 MiB DDR2 | 64 KiB, LZMA | RO |
 | [D-Link DIR-505 H/W ver. A1](http://wiki.openwrt.org/toh/d-link/dir-505) | AR1311 | 8 MiB | 64 MiB DDR2 | 64 KiB, LZMA | RO |
 | [TP-Link TL-WR841N/D v9/10/11](https://wiki.openwrt.org/toh/tp-link/tl-wr841nd) | QCA9533 | 4 MiB | 32 MiB DDR1 | 64 KiB, LZMA | RO |
+| [TP-Link TL-WR810N](https://wiki.openwrt.org/toh/tp-link/tl-wr810n) | QCA9531 | 8 MiB | 64 MiB DDR2 | 64 KiB, LZMA | RO |
 | [TP-Link TL-WR820N](https://wiki.openwrt.org/toh/tp-link/tl-wr820n) | QCA9531 | 4 MiB | 64 MiB DDR2 | 64 KiB, LZMA | RO |
 | [TP-Link TL-WR802N](https://wikidevi.com/wiki/TP-LINK_TL-WR802N_v1.0) | QCA9533 | 4 MiB | 32 MiB DDR1 | 64 KiB, LZMA | RO |
 | Wallys DR531 | QCA9531 | 8 MiB | 64 MiB DDR2 | 192 KiB | R/W |
index e30c740ebe6629d9a84256e38807ec15124fcaf1..6a2ae200eecdc0833e964100ab935d5b3de0afe4 100644 (file)
@@ -552,6 +552,13 @@ tp-link_tl-wr802n: qca953x_common
        @$(call define_add,CFG_ATH_GMAC_NMACS,2)
        @$(MKCONFIG) -a ap143 mips mips ap143 ar7240 ar7240
 
+tp-link_tl-wr810n: qca953x_common
+       @$(call config_init,TP-Link TL-WR810N,tl-wr810n,8,12,1,QCA_QCA953X_SOC)
+       @$(call define_add,CONFIG_FOR_TPLINK_WR810N,1)
+       @$(call define_add,CFG_ATHRS27_PHY,1)
+       @$(call define_add,CFG_ATH_GMAC_NMACS,2)
+       @$(MKCONFIG) -a ap143 mips mips ap143 ar7240 ar7240
+
 tp-link_tl-wr820n_CN: qca953x_common
        @$(call config_init,TP-Link TL-WR820N CN,tl-wr820n,4,12,1,QCA_QCA953X_SOC)
        @$(call define_add,CONFIG_FOR_TPLINK_WR820N_CN,1)
index 84e60c4510638a7adc343a0e75abaf035a19aed6..b17f273bbb9092fce7a8b898a5827a8611f8340b 100644 (file)
        #define CONFIG_QCA_GPIO_MASK_IN         GPIO17
        #define CONFIG_QCA_GPIO_MASK_OUT_INIT_H CONFIG_QCA_GPIO_MASK_LED_ACT_L
 
+#elif defined(CONFIG_FOR_TPLINK_WR810N)
+
+       #define CONFIG_QCA_GPIO_MASK_LED_ACT_L  GPIO13
+       #define CONFIG_QCA_GPIO_MASK_OUT        GPIO11 |\
+                                               CONFIG_QCA_GPIO_MASK_LED_ACT_L
+       #define CONFIG_QCA_GPIO_MASK_IN         GPIO0 | GPIO1 | GPIO12
+       #define CONFIG_QCA_GPIO_MASK_OUT_INIT_H GPIO11 |\
+                                               CONFIG_QCA_GPIO_MASK_LED_ACT_L
+
 #elif defined(CONFIG_FOR_TPLINK_WR820N_CN) ||\
       defined(CONFIG_FOR_TPLINK_WR802N)
 
                                "rootfstype=jffs2 init=/sbin/init "\
                                "mtdparts=ath-nor0:64k(u-boot),64k(art),1536k(uImage),6464k(rootfs),64k(mib0)"
 
+#elif defined(CONFIG_FOR_TPLINK_WR810N)
+
+       #define CONFIG_BOOTARGS "console=ttyS0,115200 root=31:02 "\
+                               "rootfstype=squashfs init=/sbin/init "\
+                               "mtdparts=ath-nor0:128k(u-boot),1024k(kernel),6912k(rootfs),64k(config),64k(art)"
+
 #elif defined(CONFIG_FOR_TPLINK_WR820N_CN)
 
        #define CONFIG_BOOTARGS "console=ttyS0,115200 root=31:02 "\
     defined(CONFIG_FOR_COMFAST_CF_E520N)    ||\
     defined(CONFIG_FOR_COMFAST_CF_E530N)    ||\
     defined(CONFIG_FOR_TPLINK_WR802N)       ||\
+    defined(CONFIG_FOR_TPLINK_WR810N)       ||\
     defined(CONFIG_FOR_TPLINK_WR820N_CN)    ||\
     defined(CONFIG_FOR_TPLINK_WR841N_V10)   ||\
     defined(CONFIG_FOR_TPLINK_WR841N_V11)   ||\
        #define CFG_ENV_SIZE            0x7C00
        #define CFG_ENV_SECT_SIZE       0x10000
 #elif defined(CONFIG_FOR_TPLINK_WR802N)     ||\
+      defined(CONFIG_FOR_TPLINK_WR810N)     ||\
       defined(CONFIG_FOR_TPLINK_WR820N_CN)  ||\
       defined(CONFIG_FOR_TPLINK_WR841N_V10) ||\
       defined(CONFIG_FOR_TPLINK_WR841N_V11) ||\
        #define OFFSET_MAC_DATA_BLOCK_LENGTH    0x10000
        #define OFFSET_MAC_ADDRESS              0x00000
 #elif defined(CONFIG_FOR_TPLINK_WR802N)     ||\
+      defined(CONFIG_FOR_TPLINK_WR810N)     ||\
       defined(CONFIG_FOR_TPLINK_WR820N_CN)  ||\
       defined(CONFIG_FOR_TPLINK_WR841N_V10) ||\
       defined(CONFIG_FOR_TPLINK_WR841N_V11) ||\
     defined(CONFIG_FOR_COMFAST_CF_E520N)    ||\
     defined(CONFIG_FOR_COMFAST_CF_E530N)    ||\
     defined(CONFIG_FOR_TPLINK_WR802N)       ||\
+    defined(CONFIG_FOR_TPLINK_WR810N)       ||\
     defined(CONFIG_FOR_TPLINK_WR820N_CN)    ||\
     defined(CONFIG_FOR_TPLINK_WR841N_V10)   ||\
     defined(CONFIG_FOR_TPLINK_WR841N_V11)   ||\
     defined(CONFIG_FOR_COMFAST_CF_E520N)    ||\
     defined(CONFIG_FOR_COMFAST_CF_E530N)    ||\
     defined(CONFIG_FOR_TPLINK_WR802N)       ||\
+    defined(CONFIG_FOR_TPLINK_WR810N)       ||\
     defined(CONFIG_FOR_TPLINK_WR820N_CN)    ||\
     defined(CONFIG_FOR_TPLINK_WR841N_V10)   ||\
     defined(CONFIG_FOR_TPLINK_WR841N_V11)   ||\