Signed-off-by: Zhiqiang Wang <[email protected]>
---
--- target/linux/ar71xx/base-files/lib/upgrade/platform.sh (revision 37128)
+++ target/linux/ar71xx/base-files/lib/upgrade/platform.sh (working copy)
@@ -157,6 +157,7 @@

  archer-c7 | \
  tl-mr11u | \
+ tl-mr13u | \
  tl-mr3020 | \
  tl-mr3040 | \
  tl-mr3220 | \
--- target/linux/ar71xx/base-files/lib/ar71xx.sh (revision 37128)
+++ target/linux/ar71xx/base-files/lib/ar71xx.sh (working copy)
@@ -138,6 +138,9 @@
  "001101"*)
  model="TP-Link TL-MR11U"
  ;;
+ "001301"*)
+ model="TP-Link TL-MR13U"
+ ;;
  "302000"*)
  model="TP-Link TL-MR3020"
  ;;
@@ -453,6 +456,9 @@
  *"TL-MR11U")
  name="tl-mr11u"
  ;;
+ *"TL-MR13U")
+ name="tl-mr13u"
+ ;;
  *UniFi)
  name="unifi"
  ;;
--- target/linux/ar71xx/base-files/etc/uci-defaults/01_leds (revision 37128)
+++ target/linux/ar71xx/base-files/etc/uci-defaults/01_leds (working copy)
@@ -105,6 +105,7 @@
  ;;

 tl-mr11u | \
+tl-mr13u | \
 tl-mr3020 | \
 tl-mr3040)
  ucidef_set_led_usbdev "usb" "USB" "tp-link:green:3g" "1-1"
--- target/linux/ar71xx/base-files/etc/uci-defaults/02_network (revision
37128)
+++ target/linux/ar71xx/base-files/etc/uci-defaults/02_network (working
copy)
@@ -204,6 +204,7 @@
 mr600v2 |\
 rb-411 |\
 tl-mr11u |\
+tl-mr13u |\
 tl-mr3020 |\
 tl-mr3040 |\
 tl-wa901nd |\
--- target/linux/ar71xx/generic/profiles/tp-link.mk (revision 37128)
+++ target/linux/ar71xx/generic/profiles/tp-link.mk (working copy)
@@ -27,6 +27,16 @@
 $(eval $(call Profile,TLMR11U))


+define Profile/TLMR13U
+ NAME:=TP-LINK TL-MR13U
+ PACKAGES:=kmod-usb-core kmod-usb2 kmod-ledtrig-usbdev
+endef
+
+define Profile/TLMR13U/Description
+ Package set optimized for the TP-LINK TL-MR13U.
+endef
+$(eval $(call Profile,TLMR13U))
+
 define Profile/TLMR3020
  NAME:=TP-LINK TL-MR3020
  PACKAGES:=kmod-usb-core kmod-usb2 kmod-ledtrig-usbdev
--- target/linux/ar71xx/patches-3.8/610-MIPS-ath79-openwrt-machines.patch
(revision
37128)
+++ target/linux/ar71xx/patches-3.8/610-MIPS-ath79-openwrt-machines.patch
(working
copy)
@@ -1,6 +1,6 @@
 --- a/arch/mips/ath79/machtypes.h
 +++ b/arch/mips/ath79/machtypes.h
-@@ -16,22 +16,112 @@
+@@ -16,22 +16,113 @@

  enum ath79_mach_type {
  ATH79_MACH_GENERIC = 0,
@@ -62,6 +62,7 @@
 + ATH79_MACH_TEW_673GRU, /* TRENDnet TEW-673GRU */
 + ATH79_MACH_TEW_712BR, /* TRENDnet TEW-712BR */
 + ATH79_MACH_TL_MR11U, /* TP-LINK TL-MR11U */
++ ATH79_MACH_TL_MR13U, /* TP-LINK TL-MR13U */
 + ATH79_MACH_TL_MR3020, /* TP-LINK TL-MR3020 */
 + ATH79_MACH_TL_MR3040, /* TP-LINK TL-MR3040 */
 + ATH79_MACH_TL_MR3220, /* TP-LINK TL-MR3220 */
@@ -516,7 +517,7 @@
 + select ATH79_DEV_M25P80
 +
 +config ATH79_MACH_TL_MR11U
-+ bool "TP-LINK TL-MR11U/TL-MR3040 support"
++ bool "TP-LINK TL-MR11U/TP-LINK TL-MR13U/TL-MR3040 support"
 + select SOC_AR933X
 + select ATH79_DEV_ETH
 + select ATH79_DEV_GPIO_BUTTONS
---
target/linux/ar71xx/patches-3.8/620-MIPS-ath79-add-Archer-C7-support.patch
(revision
37128)
+++
target/linux/ar71xx/patches-3.8/620-MIPS-ath79-add-Archer-C7-support.patch
(working
copy)
@@ -15,7 +15,7 @@
 + select ATH79_DEV_WMAC
 +
  config ATH79_MACH_TL_MR11U
- bool "TP-LINK TL-MR11U/TL-MR3040 support"
+ bool "TP-LINK TL-MR11U/TL-MR13U/TL-MR3040 support"
  select SOC_AR933X
 --- a/arch/mips/ath79/machtypes.h
 +++ b/arch/mips/ath79/machtypes.h
--- target/linux/ar71xx/files/arch/mips/ath79/mach-tl-mr11u.c (revision
37128)
+++ target/linux/ar71xx/files/arch/mips/ath79/mach-tl-mr11u.c (working copy)
@@ -1,5 +1,5 @@
 /*
- *  TP-LINK TL-MR11U/TL-MR3040 board support
+ *  TP-LINK TL-MR11U/TL-MR3040/TL-MR13U board support
  *
  *  Copyright (C) 2011 dongyuqi <[email protected]>
  *  Copyright (C) 2011-2012 Gabor Juhos <[email protected]>
@@ -32,6 +32,7 @@

 #define TL_MR11U_GPIO_USB_POWER 8
 #define TL_MR3040_GPIO_USB_POWER 18
+#define TL_MR13U_GPIO_USB_POWER 18

 #define TL_MR11U_KEYS_POLL_INTERVAL 20 /* msecs */
 #define TL_MR11U_KEYS_DEBOUNCE_INTERVAL (3 * TL_MR11U_KEYS_POLL_INTERVAL)
@@ -136,3 +137,18 @@

 MIPS_MACHINE(ATH79_MACH_TL_MR3040, "TL-MR3040", "TP-LINK TL-MR3040",
      tl_mr3040_setup);
+
+static void __init tl_mr13u_setup(void)
+{
+        common_setup();
+
+        ath79_register_gpio_keys_polled(-1, TL_MR11U_KEYS_POLL_INTERVAL,
+                                        1, tl_mr11u_gpio_keys);
+        gpio_request_one(TL_MR13U_GPIO_USB_POWER,
+                         GPIOF_OUT_INIT_HIGH | GPIOF_EXPORT_DIR_FIXED,
+                         "USB power");
+}
+
+MIPS_MACHINE(ATH79_MACH_TL_MR13U, "TL-MR13U", "TP-LINK TL-MR13U",
+             tl_mr13u_setup);
+
--- target/linux/ar71xx/image/Makefile (revision 37128)
+++ target/linux/ar71xx/image/Makefile (working copy)
@@ -948,6 +948,7 @@
 $(eval $(call
SingleProfile,TPLINK-LZMA,$(fs_64kraw),TLMR10UV1,tl-mr10u-v1,TL-MR3040,ttyATH0,115200,0x00100101,1,4Mlzma))
 $(eval $(call
SingleProfile,TPLINK-LZMA,$(fs_64kraw),TLMR11UV1,tl-mr11u-v1,TL-MR11U,ttyATH0,115200,0x00110101,1,4Mlzma))
 $(eval $(call
SingleProfile,TPLINK-LZMA,$(fs_64kraw),TLMR11UV2,tl-mr11u-v2,TL-MR11U,ttyATH0,115200,0x00110102,1,4Mlzma))
+$(eval $(call
SingleProfile,TPLINK-LZMA,$(fs_64kraw),TLMR13UV1,tl-mr13u-v1,TL-MR13U,ttyATH0,115200,0x00130101,1,4Mlzma))
 $(eval $(call
SingleProfile,TPLINK-LZMA,$(fs_64kraw),TLMR3020,tl-mr3020-v1,TL-MR3020,ttyATH0,115200,0x30200001,1,4Mlzma))
 $(eval $(call
SingleProfile,TPLINK-LZMA,$(fs_64kraw),TLMR3040,tl-mr3040-v1,TL-MR3040,ttyATH0,115200,0x30400001,1,4Mlzma))
 $(eval $(call
SingleProfile,TPLINK-LZMA,$(fs_64kraw),TLMR3220V2,tl-mr3220-v2,TL-MR3220-v2,ttyATH0,115200,0x32200002,1,4Mlzma))
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to