From: Piotr Dymacz Date: Tue, 22 Nov 2016 20:17:30 +0000 (+0100) Subject: Add support for TP-Link TL-WR810N (QCA9531 based) X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=9fc3ad6135ecae94c12e81719852a8b51d7dd4f9;p=oweals%2Fu-boot_mod.git Add support for TP-Link TL-WR810N (QCA9531 based) --- diff --git a/Makefile b/Makefile index ce60c29..c894b80 100644 --- 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 \ diff --git a/README.md b/README.md index 7f2a2d5..405854b 100644 --- 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 | diff --git a/READMEPL.md b/READMEPL.md index c75981a..fb8360c 100644 --- a/READMEPL.md +++ b/READMEPL.md @@ -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 | diff --git a/u-boot/Makefile b/u-boot/Makefile index e30c740..6a2ae20 100644 --- a/u-boot/Makefile +++ b/u-boot/Makefile @@ -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) diff --git a/u-boot/include/configs/ap143.h b/u-boot/include/configs/ap143.h index 84e60c4..b17f273 100644 --- a/u-boot/include/configs/ap143.h +++ b/u-boot/include/configs/ap143.h @@ -48,6 +48,15 @@ #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) @@ -129,6 +138,12 @@ "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 "\ @@ -170,6 +185,7 @@ 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) ||\ @@ -203,6 +219,7 @@ #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) ||\ @@ -244,6 +261,7 @@ #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) ||\ @@ -304,6 +322,7 @@ 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) ||\ @@ -334,6 +353,7 @@ 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) ||\