From: yoAeroA00 Date: Wed, 14 Jun 2017 15:43:08 +0000 (+0530) Subject: Add support for TP-Link TL-MR3420 v3 (QCA9531 based) X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=11e63c8e114d4c182835615661fa1324389f1a2f;p=oweals%2Fu-boot_mod.git Add support for TP-Link TL-MR3420 v3 (QCA9531 based) --- diff --git a/Makefile b/Makefile index 764b9fe..3225825 100644 --- a/Makefile +++ b/Makefile @@ -225,6 +225,7 @@ $(COMMON_AR933X_TARGETS): COMMON_ETHS27_TARGETS = \ tp-link_tl-mr3420_v2 \ + tp-link_tl-mr3420_v3 \ tp-link_tl-wa801nd_v2 \ tp-link_tl-wa850re_v2 \ tp-link_tl-wa830re_v2 \ diff --git a/README.md b/README.md index 6e27c72..146051f 100644 --- a/README.md +++ b/README.md @@ -103,6 +103,7 @@ Currently supported devices: - Comfast CF-E520N/CF-E530N - P&W CPE505N - P&W R602N + - TP-Link TL-MR3420 v3 - TP-Link TL-WA850RE v2 - TP-Link TL-WR802N - TP-Link TL-WR810N @@ -142,6 +143,7 @@ More information about supported devices: | [TP-Link TL-MR3040 v1/2](http://wiki.openwrt.org/toh/tp-link/tl-mr3040) | AR9331 | 4 MiB | 32 MiB DDR1 | 64 KiB, LZMA | RO | | [TP-Link TL-MR3220 v2](http://wiki.openwrt.org/toh/tp-link/tl-mr3420) | AR9331 | 4 MiB | 32 MiB DDR1 | 64 KiB, LZMA | RO | | [TP-Link TL-MR3420 v2](http://wikidevi.com/wiki/TP-LINK_TL-MR3420_v2) | AR9341 | 4 MiB | 32 MiB DDR1 | 64 KiB, LZMA | RO | +| [TP-Link TL-MR3420 v3](http://wikidevi.com/wiki/TP-LINK_TL-MR3420_v3) | QCA9531 | 4 MiB | 32 MiB DDR2 | 64 KiB, LZMA | RO | | [TP-Link TL-WA801ND v2](http://wikidevi.com/wiki/TP-LINK_TL-WA801ND_v2) | AR9341 | 4 MiB | 32 MiB DDR1 | 64 KiB, LZMA | RO | | [TP-Link TL-WA830RE v2](http://wikidevi.com/wiki/TP-LINK_TL-WA830RE_v2) | AR9341 | 4 MiB | 32 MiB DDR1 | 64 KiB, LZMA | RO | | TP-Link TL-WA850RE v2 | QCA9533 | 4 MiB | 32 MiB DDR1 | 64 KiB, LZMA | RO | diff --git a/original_u-boot_images/tp-link_tl-mr3420_v3_120617.bin b/original_u-boot_images/tp-link_tl-mr3420_v3_120617.bin new file mode 100644 index 0000000..d176f3c Binary files /dev/null and b/original_u-boot_images/tp-link_tl-mr3420_v3_120617.bin differ diff --git a/u-boot/Makefile b/u-boot/Makefile index b746e96..6e37f56 100644 --- a/u-boot/Makefile +++ b/u-boot/Makefile @@ -514,6 +514,13 @@ tp-link_tl-mr3420_v2: ar934x_common lsdk_kernel @$(call define_add,CFG_AG7240_NMACS,2) @$(MKCONFIG) -a db12x mips mips db12x ar7240 ar7240 +tp-link_tl-mr3420_v3: qca953x_common lsdk_kernel + @$(call config_init,TP-Link TL-MR3420 v3,tl-mr3420-v3,4,12,1,QCA_QCA953X_SOC) + @$(call define_add,CONFIG_FOR_TPLINK_MR3420_V3,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-wa801nd_v2: ar934x_common lsdk_kernel @$(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) diff --git a/u-boot/include/configs/ap143.h b/u-boot/include/configs/ap143.h index 8af3ec6..cb451aa 100644 --- a/u-boot/include/configs/ap143.h +++ b/u-boot/include/configs/ap143.h @@ -92,6 +92,15 @@ #define CONFIG_QCA_GPIO_MASK_IN GPIO12 #define CONFIG_QCA_GPIO_MASK_OUT_INIT_H CONFIG_QCA_GPIO_MASK_LED_ACT_L +#elif defined(CONFIG_FOR_TPLINK_MR3420_V3) + + #define CONFIG_QCA_GPIO_MASK_LED_ACT_L GPIO1 | GPIO3 | GPIO4 |\ + GPIO11 | GPIO13 | GPIO14 |\ + GPIO15 | GPIO16 + #define CONFIG_QCA_GPIO_MASK_OUT CONFIG_QCA_GPIO_MASK_LED_ACT_L + #define CONFIG_QCA_GPIO_MASK_IN GPIO12 | GPIO17 + #define CONFIG_QCA_GPIO_MASK_OUT_INIT_H CONFIG_QCA_GPIO_MASK_LED_ACT_L + #elif defined(CONFIG_FOR_TPLINK_WR841N_V10) ||\ defined(CONFIG_FOR_TPLINK_WR841N_V9) @@ -209,7 +218,8 @@ "rootfstype=squashfs init=/sbin/init "\ "mtdparts=ath-nor0:32k(u-boot1),32k(u-boot2),3008k(rootfs),896k(uImage),64k(mib0),64k(art)" -#elif defined(CONFIG_FOR_TPLINK_WA850RE_V2) ||\ +#elif defined(CONFIG_FOR_TPLINK_MR3420_V3) ||\ + defined(CONFIG_FOR_TPLINK_WA850RE_V2) ||\ defined(CONFIG_FOR_TPLINK_WR841N_V10) ||\ defined(CONFIG_FOR_TPLINK_WR841N_V11) ||\ defined(CONFIG_FOR_TPLINK_WR841N_V9) ||\ @@ -243,6 +253,7 @@ defined(CONFIG_FOR_COMFAST_CF_E320N_V2) ||\ defined(CONFIG_FOR_COMFAST_CF_E520N) ||\ defined(CONFIG_FOR_COMFAST_CF_E530N) ||\ + defined(CONFIG_FOR_TPLINK_MR3420_V3) ||\ defined(CONFIG_FOR_TPLINK_WA850RE_V2) ||\ defined(CONFIG_FOR_TPLINK_WR802N) ||\ defined(CONFIG_FOR_TPLINK_WR810N) ||\ @@ -292,7 +303,8 @@ #define CFG_ENV_ADDR 0x9F040000 #define CFG_ENV_SIZE 0xFC00 #define CFG_ENV_SECT_SIZE 0x10000 -#elif defined(CONFIG_FOR_TPLINK_WA850RE_V2) ||\ +#elif defined(CONFIG_FOR_TPLINK_MR3420_V3) ||\ + defined(CONFIG_FOR_TPLINK_WA850RE_V2) ||\ defined(CONFIG_FOR_TPLINK_WR802N) ||\ defined(CONFIG_FOR_TPLINK_WR810N) ||\ defined(CONFIG_FOR_TPLINK_WR820N_CN) ||\ @@ -343,7 +355,8 @@ #define OFFSET_MAC_DATA_BLOCK 0x3c0000 #define OFFSET_MAC_DATA_BLOCK_LENGTH 0x010000 #define OFFSET_MAC_ADDRESS 0x000008 -#elif defined(CONFIG_FOR_TPLINK_WR802N) ||\ +#elif defined(CONFIG_FOR_TPLINK_MR3420_V3) ||\ + defined(CONFIG_FOR_TPLINK_WR802N) ||\ defined(CONFIG_FOR_TPLINK_WR810N) ||\ defined(CONFIG_FOR_TPLINK_WR820N_CN) ||\ defined(CONFIG_FOR_TPLINK_WR841N_V10) ||\ @@ -404,6 +417,7 @@ defined(CONFIG_FOR_COMFAST_CF_E320N_V2) ||\ defined(CONFIG_FOR_COMFAST_CF_E520N) ||\ defined(CONFIG_FOR_COMFAST_CF_E530N) ||\ + defined(CONFIG_FOR_TPLINK_MR3420_V3) ||\ defined(CONFIG_FOR_TPLINK_WR802N) ||\ defined(CONFIG_FOR_TPLINK_WR810N) ||\ defined(CONFIG_FOR_TPLINK_WR820N_CN) ||\ @@ -444,6 +458,7 @@ defined(CONFIG_FOR_COMFAST_CF_E520N) ||\ defined(CONFIG_FOR_COMFAST_CF_E530N) ||\ defined(CONFIG_FOR_TPLINK_WA850RE_V2) ||\ + defined(CONFIG_FOR_TPLINK_MR3420_V3) ||\ defined(CONFIG_FOR_TPLINK_WR802N) ||\ defined(CONFIG_FOR_TPLINK_WR810N) ||\ defined(CONFIG_FOR_TPLINK_WR820N_CN) ||\