From 2ee14310410989741aa0fd3c10362e7d3fc53192 Mon Sep 17 00:00:00 2001 From: RISCi_ATOM Date: Wed, 14 Oct 2015 19:12:20 +0000 Subject: [PATCH] Removed luci binaries that made it in the tree, added iwinfo Makefile and added new board support. --- .../package/luci/modules/luci-base/src/po2lmo | Bin 19168 -> 0 bytes .../luci/modules/luci-base/src/po2lmo.o | Bin 6008 -> 0 bytes .../luci/modules/luci-base/src/template_lmo.o | Bin 6672 -> 0 bytes trunk/package/network/utils/iwinfo/Makefile | 121 +++++++++++++++++ .../base-files/etc/uci-defaults/01_leds | 8 ++ .../base-files/etc/uci-defaults/02_network | 7 + .../linux/ar71xx/base-files/lib/ar71xx.sh | 3 + .../ar71xx/base-files/lib/upgrade/platform.sh | 3 +- trunk/target/linux/ar71xx/config-3.18 | 2 + .../files/arch/mips/ath79/mach-tpe-r1100.c | 123 ++++++++++++++++++ .../files/arch/mips/ath79/mach-tpe-r3300.c | 111 ++++++++++++++++ .../ar71xx/generic/profiles/thinkpenguin.mk | 27 ++++ trunk/target/linux/ar71xx/image/Makefile | 17 +++ .../ar71xx/luci/profiles/thinkpenguin.mk | 29 +++++ .../911-MIPS-ath79-add-tpe-r1100.patch | 39 ++++++ .../912-MIPS-ath79-add-tpe-r3300.patch | 39 ++++++ 16 files changed, 528 insertions(+), 1 deletion(-) delete mode 100755 trunk/package/luci/modules/luci-base/src/po2lmo delete mode 100644 trunk/package/luci/modules/luci-base/src/po2lmo.o delete mode 100644 trunk/package/luci/modules/luci-base/src/template_lmo.o create mode 100644 trunk/package/network/utils/iwinfo/Makefile create mode 100644 trunk/target/linux/ar71xx/files/arch/mips/ath79/mach-tpe-r1100.c create mode 100644 trunk/target/linux/ar71xx/files/arch/mips/ath79/mach-tpe-r3300.c create mode 100644 trunk/target/linux/ar71xx/generic/profiles/thinkpenguin.mk create mode 100644 trunk/target/linux/ar71xx/luci/profiles/thinkpenguin.mk create mode 100644 trunk/target/linux/ar71xx/patches-3.18/911-MIPS-ath79-add-tpe-r1100.patch create mode 100644 trunk/target/linux/ar71xx/patches-3.18/912-MIPS-ath79-add-tpe-r3300.patch diff --git a/trunk/package/luci/modules/luci-base/src/po2lmo b/trunk/package/luci/modules/luci-base/src/po2lmo deleted file mode 100755 index 611ff7978280d0dbaa3eae26f127a188779fd0de..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 19168 zcmeHPeRP!7nZGlWK!lJ9pf-S&Ap*q@V)&2~Me76@e6c|zCf2RsFeDR5O=i-WcQClc zVux7AF`8|)wcWNy+g)q-^z6y@prsszAQaNAwZXM++I8FL((VisYpN8dEt>s3&%Jl% zeTSLW{bT>xs(k|R|3DH z1b(ap{$dII?h^PzCGc$}@J%J~Qzh^VOW@QF#pc(J zbpQ`!g<%jtv2tZg;1`#`?=69^D}jHv1m08v|5yopaS6Py1U|h4{(}|J;9KO znvqajcaLc63P*zk$3mDi?jo(Ou5g>^i0%rtiSF(|kLU=7J4DC!pcy5rE*N(QyQ4vq zIQ$nK>_c=*Lm+JdQ&1x0*6(jKcl8AQ+x+A;YPJU>5z!q(p5V9>&cdSO?ntK@6dgU0 z&XCz5J`)W`OgIghU9hGi`J-kaV*0xSogoo2!#lb}G^CU}BEcZEdZA&0Zto6( zk-c&&sqx%NbFB`#9qAcL^QaCr^;@$H`PMU40zButM@A}o54cp8G~5#~QnJPp0{5cBsCPeU#}$b5u&8fxh$nEy2K z<-`v#zm0erTIoH^e~Ngju5=Icn~0~Ol-|nxjl|OsN;fmVhIkq}X)p8F5KluUUC;b- z;%TU)Jgwqym_J24b@B87^KTGOT|2#p`Ck%GT{_*v{L92sS59wb{$Giw zE}U*={srQx>!!WTA0VE(Y`UKL?-Ng5HSJ;kpNOX}nyzO4Tf|e>Obh0}Mm%-N^u&8q z{x1^mA%2Yc2Z^UHm>yyN^TgK@KLmc+n;Q}*?lcl_81a)6%`F>_4-G8v3gh@;50m46 zp6L~-uOOk*9q#$-gxG&QI%=!2v;oA3XRD0FZ+6bx4{zK(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dLOs{cm? zF8#~B^ti%T{U29w)&DmX{Nw1$c)lxe>0ibdrNAN7P|cD2ts(fNf^SmzzZ5w6r>?9+ zA1M4g75?kuyvcYDKu2;(;ABQ?F5{^L_y&<73nBbFMQJ8KcjG7hJQRW(A^4!cWt?B4 zNg=}upK7x7|8jtTn6nxCO#mMe_#Z<2oDiFg;@_h9ej55WKA5pGJIg9bQ!M z&nWnUf@=!?M+N_^g8x;)yA(Vku1tzw#qUz^dlddX3a;`sa7f4x{iMkIT;g=!lc;rr zbZL$Az1^3C2%#v|0Yf=#qm>^Cx4JKeCnfGJkY;2G^cU`lxV0l76%L4208k?TLI|*gqkh ZcL1ZiJ2*eRX0!R%iT(E;^r{5s{||mi?a2TD diff --git a/trunk/package/luci/modules/luci-base/src/template_lmo.o b/trunk/package/luci/modules/luci-base/src/template_lmo.o deleted file mode 100644 index 1b2f55878c53ef6c4fd6b2c3b8072bf614982ecd..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6672 zcmbVQZEPGz8J_hyiLsrW?S|ALX>&yla+2n-8wza#=t8=55KU!Vjz*Ahtk37z?R}WL zwVR-t7Of9uwKy16ktijI@`E4zp?}h*fjVas#jX&@K|o!>j{}T!=^1(yOIe{4=6&a5 zJ-4}oib;2O=6OHo{g^rTS^d#ZH)$G?LnEIg8!L$tvb1Ak9%0i6*-BbTl-hr#_GHN( zUvcymTd!J^E9C22s5Mz4 zT5gkh%5nqdHp|t5Q+f352k`pe&Ts>Lo>$C;S@63HFwa=|^Y2kpo0RGV7t43cozE6v z$xO9!h8rab1f;|!i8M!z`NnFf1NLaYUV3MJ-M+K}Z)&jxF}FH- zTz_IcNXUf9)-K4_b^TU|PUkDg3prcRD=d-UhIa{P)ajs39u-0^XmGYbHTZ8S_$mp$ zTG&fMgyak6A;F3a(OXpejh|zDAMD(v)BPH?qwaMQDtD^@buMrVUFQ^Q=k!~aUeTz< z%xjKbIl}f3{MO()cq^QKNOvdtJo`@6rPkX}Y+c|A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^K|uQtG+Zh%iVz^5AEc->;gQ&g zksD!n+(>8Ad>MAin$5UfWtC=;@ISj{!Kb{ec7I_!qhy&ZL z9Uk@v9$Z&$-ki1R72NWFsDEI7+Dmd1I^yj>ScPjYL6ue8p z-)w+y7Dp!fbBDtJu!7?qEA7rJIR2QGxIAJ}5B@JBiMNYBL;Ow!Kc(O*|C0)?>Yq?> zRnHp=zFX11rr>ue_*QXLqd#gq?^kd&p1Qy>he9RH2zf%`zZ=$azfb!3McBzR4froA zINljj&%93$)*_DID*US5zbN=t;FEfGi1Q5h8&dE-1;0nZA5`$23jWy!_<(|cK;a*3 zfKMv8YIjD#)%^ZM!Bu}275syW-8U6n^`~E)mly}Np06pm%DA^nl}-Mv0s-giRH|NRMpB&rr|lgipHhFo97N=O)$?%8D{#IYat~1TN1D#Bfac>~fUrkaPUr2M_A> z%byeS{@)VPKFZ?gg9rUmYXWg8k9UbW{QG|hh=}#7OfdhRuz%2pOL_VI6wu{dWnFlW z`+q{n`~6=O@)4hM|NaL+zFz)Zyo6vZ^AExNp{$h0p2LA@_QxLa7IAPJxKM`Aow~6{ f_Aw!UMkvQ6Zpm*SkB55pOZZ~~#sQx}-;(?Xl#BSl diff --git a/trunk/package/network/utils/iwinfo/Makefile b/trunk/package/network/utils/iwinfo/Makefile new file mode 100644 index 00000000..9d7e321c --- /dev/null +++ b/trunk/package/network/utils/iwinfo/Makefile @@ -0,0 +1,121 @@ +# +# Copyright (C) 2010-2015 Jo-Philipp Wich +# +# This is free software, licensed under the GPL 2 license. +# + +include $(TOPDIR)/rules.mk + +PKG_NAME:=libiwinfo +PKG_VERSION:=2015-06-01 +PKG_RELEASE=$(PKG_SOURCE_VERSION) + +PKG_SOURCE_PROTO:=git +PKG_SOURCE_URL:=http://git.openwrt.org/project/iwinfo.git +PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION) +PKG_SOURCE_VERSION:=ade8b1b299cbd5748db1acf80dd3e9f567938371 +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz +PKG_MAINTAINER:=Jo-Philipp Wich +PKG_LICENSE:=GPL-2.0 + +PKG_CONFIG_DEPENDS := \ + CONFIG_PACKAGE_kmod-brcm-wl \ + CONFIG_PACKAGE_kmod-brcm-wl-mini \ + CONFIG_PACKAGE_kmod-brcm-wl-mimo \ + CONFIG_PACKAGE_kmod-madwifi \ + CONFIG_PACKAGE_kmod-cfg80211 + +include $(INCLUDE_DIR)/package.mk + + +define Package/libiwinfo + SECTION:=libs + CATEGORY:=Libraries + TITLE:=Generalized Wireless Information Library (iwinfo) + DEPENDS:=+PACKAGE_kmod-cfg80211:libnl-tiny +libuci + ABI_VERSION:=$(PKG_RELEASE) +endef + +define Package/libiwinfo/description + Wireless information library with consistent interface for proprietary Broadcom, + madwifi, nl80211 and wext driver interfaces. +endef + + +define Package/libiwinfo-lua + SUBMENU:=Lua + SECTION:=lang + CATEGORY:=Languages + TITLE:=libiwinfo Lua binding + DEPENDS:=+libiwinfo +liblua +endef + +define Package/libiwinfo-lua/description + This is the Lua binding for the iwinfo library. It provides access to all enabled + backends. +endef + + +define Package/iwinfo + SECTION:=utils + CATEGORY:=Utilities + TITLE:=Generalized Wireless Information utility + DEPENDS:=+libiwinfo +endef + +define Package/iwinfo/description + Command line frontend for the wireless information library. +endef + + +define Build/Configure +endef + +IWINFO_BACKENDS := \ + $(if $(CONFIG_PACKAGE_kmod-brcm-wl),wl) \ + $(if $(CONFIG_PACKAGE_kmod-brcm-wl-mini),wl) \ + $(if $(CONFIG_PACKAGE_kmod-brcm-wl-mimo),wl) \ + $(if $(CONFIG_PACKAGE_kmod-madwifi),madwifi) \ + $(if $(CONFIG_PACKAGE_kmod-cfg80211),nl80211) + +TARGET_CFLAGS += \ + -I$(STAGING_DIR)/usr/include/libnl-tiny \ + -I$(STAGING_DIR)/usr/include \ + -D_GNU_SOURCE + +MAKE_FLAGS += \ + FPIC="$(FPIC)" \ + CFLAGS="$(TARGET_CFLAGS)" \ + LDFLAGS="$(TARGET_LDFLAGS)" \ + BACKENDS="$(IWINFO_BACKENDS)" + +define Build/InstallDev + $(INSTALL_DIR) $(1)/usr/include/iwinfo + $(CP) $(PKG_BUILD_DIR)/include/iwinfo.h $(1)/usr/include/ + $(CP) $(PKG_BUILD_DIR)/include/iwinfo/* $(1)/usr/include/iwinfo/ + $(INSTALL_DIR) $(1)/usr/lib + $(INSTALL_BIN) $(PKG_BUILD_DIR)/libiwinfo.so $(1)/usr/lib/libiwinfo.so + $(INSTALL_DIR) $(1)/usr/lib/lua + $(INSTALL_BIN) $(PKG_BUILD_DIR)/iwinfo.so $(1)/usr/lib/lua/iwinfo.so +endef + +define Package/libiwinfo/install + $(INSTALL_DIR) $(1)/usr/lib + $(INSTALL_BIN) $(PKG_BUILD_DIR)/libiwinfo.so $(1)/usr/lib/libiwinfo.so + $(INSTALL_DIR) $(1)/usr/share/libiwinfo + $(INSTALL_DATA) $(PKG_BUILD_DIR)/hardware.txt $(1)/usr/share/libiwinfo/hardware.txt +endef + +define Package/libiwinfo-lua/install + $(INSTALL_DIR) $(1)/usr/lib/lua + $(INSTALL_BIN) $(PKG_BUILD_DIR)/iwinfo.so $(1)/usr/lib/lua/iwinfo.so +endef + +define Package/iwinfo/install + $(INSTALL_DIR) $(1)/usr/bin + $(INSTALL_BIN) $(PKG_BUILD_DIR)/iwinfo $(1)/usr/bin/iwinfo +endef + +$(eval $(call BuildPackage,libiwinfo)) +$(eval $(call BuildPackage,libiwinfo-lua)) +$(eval $(call BuildPackage,iwinfo)) diff --git a/trunk/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds b/trunk/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds index d628f1ab..e6c24456 100644 --- a/trunk/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds +++ b/trunk/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds @@ -497,6 +497,14 @@ tl-wr2543n) ucidef_set_led_usbdev "usb" "USB" "tp-link:green:usb" "1-1" ;; +tpe-r1100) + ucidef_set_led_wlan "wlan" "WLAN" "gl_ar150:wlan" "phy0tpt" + ;; + +tpe-r3300) + ucidef_set_led_wlan "wlan" "WLAN" "gl_ar300:wlan" "phy0tpt" + ;; + tube2h) ucidef_set_led_netdev "lan" "LAN" "alfa:blue:lan" "eth0" ucidef_set_rssimon "wlan0" "40000" "1" diff --git a/trunk/target/linux/ar71xx/base-files/etc/uci-defaults/02_network b/trunk/target/linux/ar71xx/base-files/etc/uci-defaults/02_network index 7e268865..ec5edef2 100644 --- a/trunk/target/linux/ar71xx/base-files/etc/uci-defaults/02_network +++ b/trunk/target/linux/ar71xx/base-files/etc/uci-defaults/02_network @@ -358,6 +358,13 @@ tl-wa901nd |\ tl-wa901nd-v2 |\ tl-wa901nd-v3 |\ tl-wr703n |\ +tpe-r1100 |\ +tpe-r3300) + ucidef_set_interfaces_lan_wan "eth1" "eth0" + ucidef_add_switch "switch0" "1" "1" + ucidef_add_switch_vlan "switch0" "1" "0 1 2 3 4" + ;; + tube2h |\ wndap360 |\ mynet-rext |\ diff --git a/trunk/target/linux/ar71xx/base-files/lib/ar71xx.sh b/trunk/target/linux/ar71xx/base-files/lib/ar71xx.sh index cacf3628..3bbf20c9 100755 --- a/trunk/target/linux/ar71xx/base-files/lib/ar71xx.sh +++ b/trunk/target/linux/ar71xx/base-files/lib/ar71xx.sh @@ -805,6 +805,9 @@ ar71xx_board_detect() { *"TL-MR13U v1") name="tl-mr13u" ;; + *"TPE-R3300") + name="tpe-r3300" + ;; *"Tube2H") name="tube2h" ;; diff --git a/trunk/target/linux/ar71xx/base-files/lib/upgrade/platform.sh b/trunk/target/linux/ar71xx/base-files/lib/upgrade/platform.sh index e5376ef8..aa158bda 100755 --- a/trunk/target/linux/ar71xx/base-files/lib/upgrade/platform.sh +++ b/trunk/target/linux/ar71xx/base-files/lib/upgrade/platform.sh @@ -381,7 +381,8 @@ platform_check_image() { return 0 ;; - + tpe-r3300 | \ + tpe-r1100 | \ tube2h) alfa_check_image "$1" && return 0 return 1 diff --git a/trunk/target/linux/ar71xx/config-3.18 b/trunk/target/linux/ar71xx/config-3.18 index d661aa74..f0456ba5 100644 --- a/trunk/target/linux/ar71xx/config-3.18 +++ b/trunk/target/linux/ar71xx/config-3.18 @@ -130,6 +130,8 @@ CONFIG_ATH79_MACH_TL_WR841N_V1=y CONFIG_ATH79_MACH_TL_WR841N_V8=y CONFIG_ATH79_MACH_TL_WR841N_V9=y CONFIG_ATH79_MACH_TL_WR941ND=y +CONFIG_ATH79_MACH_TPE_R1100=y +CONFIG_ATH79_MACH_TPE_R3300=y CONFIG_ATH79_MACH_TUBE2H=y CONFIG_ATH79_MACH_UBNT=y CONFIG_ATH79_MACH_UBNT_XM=y diff --git a/trunk/target/linux/ar71xx/files/arch/mips/ath79/mach-tpe-r1100.c b/trunk/target/linux/ar71xx/files/arch/mips/ath79/mach-tpe-r1100.c new file mode 100644 index 00000000..f437a843 --- /dev/null +++ b/trunk/target/linux/ar71xx/files/arch/mips/ath79/mach-tpe-r1100.c @@ -0,0 +1,123 @@ +/* + * TPE-R1100 board support + * + * Copyright (C) 2011 dongyuqi <729650915@qq.com> + * Copyright (C) 2011-2012 Gabor Juhos + * Copyright (C) 2013 alzhao + * Copyright (C) 2014 Michel Stempin + * Copyright (C) 2015 Robert Call + * + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License version 2 as published + * by the Free Software Foundation. +*/ + +#include + +#include + +#include "dev-eth.h" +#include "dev-gpio-buttons.h" +#include "dev-leds-gpio.h" +#include "dev-m25p80.h" +#include "dev-usb.h" +#include "dev-wmac.h" +#include "machtypes.h" + +#define TPE_R1100_GPIO_LED_WLAN 0 +#define TPE_R1100_GPIO_LED_LAN 13 +#define TPE_R1100_GPIO_LED_WAN 15 + +#define TPE_R1100_GPIO_BIN_USB 6 +#define TPE_R1100_GPIO_BTN_MANUAL 7 +#define TPE_R1100_GPIO_BTN_AUTO 8 +#define TPE_R1100_GPIO_BTN_RESET 11 + +#define TPE_R1100_KEYS_POLL_INTERVAL 20 /* msecs */ +#define TPE_R1100_KEYS_DEBOUNCE_INTERVAL (3 * TPE_R1100_KEYS_POLL_INTERVAL) + +#define TPE_R1100_MAC0_OFFSET 0x0000 +#define TPE_R1100_MAC1_OFFSET 0x0000 +#define TPE_R1100_CALDATA_OFFSET 0x1000 +#define TPE_R1100_WMAC_MAC_OFFSET 0x0000 + +static struct gpio_led tpe_r1100_leds_gpio[] __initdata = { + { + .name = "tpe_r1100:wlan", + .gpio = TPE_R1100_GPIO_LED_WLAN, + .active_low = 0, + }, + { + .name = "tpe_r1100:lan", + .gpio = TPE_R1100_GPIO_LED_LAN, + .active_low = 0, + }, + { + .name = "tpe_r1100:wan", + .gpio = TPE_R1100_GPIO_LED_WAN, + .active_low = 0, + .default_state = 1, + }, +}; + +static struct gpio_keys_button tpe_r1100_gpio_keys[] __initdata = { + { + .desc = "BTN_7", + .type = EV_KEY, + .code = BTN_7, + .debounce_interval = TPE_R1100_KEYS_DEBOUNCE_INTERVAL, + .gpio = TPE_R1100_GPIO_BTN_MANUAL, + .active_low = 0, + }, + { + .desc = "BTN_8", + .type = EV_KEY, + .code = BTN_8, + .debounce_interval = TPE_R1100_KEYS_DEBOUNCE_INTERVAL, + .gpio = TPE_R1100_GPIO_BTN_AUTO, + .active_low = 0, + }, + { + .desc = "reset", + .type = EV_KEY, + .code = KEY_RESTART, + .debounce_interval = TPE_R1100_KEYS_DEBOUNCE_INTERVAL, + .gpio = TPE_R1100_GPIO_BTN_RESET, + .active_low = 0, + }, +}; + +static void __init tpe_r1100_setup(void) +{ + + /* ART base address */ + u8 *art = (u8 *) KSEG1ADDR(0x1fff0000); + + /* disable PHY_SWAP and PHY_ADDR_SWAP bits */ + ath79_setup_ar933x_phy4_switch(false, false); + + /* register flash. */ + ath79_register_m25p80(NULL); + + /* register gpio LEDs and keys */ + ath79_register_leds_gpio(-1, ARRAY_SIZE(tpe_r1100_leds_gpio), + tpe_r1100_leds_gpio); + ath79_register_gpio_keys_polled(-1, TPE_R1100_KEYS_POLL_INTERVAL, + ARRAY_SIZE(tpe_r1100_gpio_keys), + tpe_r1100_gpio_keys); + + /* enable usb */ + ath79_register_usb(); + + /* register eth0 as WAN, eth1 as LAN */ + ath79_init_mac(ath79_eth0_data.mac_addr, art+TPE_R1100_MAC0_OFFSET, 0); + ath79_init_mac(ath79_eth1_data.mac_addr, art+TPE_R1100_MAC1_OFFSET, 0); + ath79_register_mdio(0, 0x0); + ath79_register_eth(0); + ath79_register_eth(1); + + /* register wireless mac with cal data */ + ath79_register_wmac(art + TPE_R1100_CALDATA_OFFSET, art + TPE_R1100_WMAC_MAC_OFFSET); +} + +MIPS_MACHINE(ATH79_MACH_TPE_R1100, "TPE_R1100", "tpe_r1100 board",tpe_r1100_setup); diff --git a/trunk/target/linux/ar71xx/files/arch/mips/ath79/mach-tpe-r3300.c b/trunk/target/linux/ar71xx/files/arch/mips/ath79/mach-tpe-r3300.c new file mode 100644 index 00000000..3d3922a0 --- /dev/null +++ b/trunk/target/linux/ar71xx/files/arch/mips/ath79/mach-tpe-r3300.c @@ -0,0 +1,111 @@ +/* + * TPE-R3300 board support + * + * Copyright (C) 2011 dongyuqi <729650915@qq.com> + * Copyright (C) 2011-2012 Gabor Juhos + * Copyright (C) 2013 alzhao + * Copyright (C) 2014 Michel Stempin + * Copyright (C) 2015 Robert Call + * + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License version 2 as published + * by the Free Software Foundation. +*/ + +#include +#include +#include +#include +#include +#include + +#include +#include + +#include "dev-eth.h" +#include "dev-gpio-buttons.h" +#include "dev-leds-gpio.h" +#include "dev-m25p80.h" +#include "dev-usb.h" +#include "dev-wmac.h" +#include "machtypes.h" + +#define TPE_R3300_GPIO_LED_WLAN 13 +#define TPE_R3300_GPIO_LED_WAN 14 +#define TPE_R3300_GPIO_BTN_RESET 16 + + +#define TPE_R3300_KEYS_POLL_INTERVAL 20 /* msecs */ +#define TPE_R3300_KEYS_DEBOUNCE_INTERVAL (3 * TPE_R3300_KEYS_POLL_INTERVAL) + +#define TPE_R3300_MAC0_OFFSET 0x0000 +#define TPE_R3300_MAC1_OFFSET 0x0000 +#define TPE_R3300_CALDATA_OFFSET 0x1000 +#define TPE_R3300_WMAC_MAC_OFFSET 0x0000 + +static struct gpio_led tpe_r3300_leds_gpio[] __initdata = { + { + .name = "tpe_r3300:wlan", + .gpio = TPE_R3300_GPIO_LED_WLAN, + .active_low = 1, + }, + { + .name = "tpe_r3300:wan", + .gpio = TPE_R3300_GPIO_LED_WAN, + .active_low = 1, + }, +}; + +static struct gpio_keys_button tpe_r3300_gpio_keys[] __initdata = { + { + .desc = "reset", + .type = EV_KEY, + .code = KEY_RESTART, + .debounce_interval = TPE_R3300_KEYS_DEBOUNCE_INTERVAL, + .gpio = TPE_R3300_GPIO_BTN_RESET, + .active_low = 1, + }, +}; + +static void __init tpe_r3300_setup(void) +{ + + /* ART base address */ + u8 *art = (u8 *) KSEG1ADDR(0x1fff0000); + + /* disable PHY_SWAP and PHY_ADDR_SWAP bits */ + //ath79_setup_ar933x_phy4_switch(false, false); + + /* register flash. */ + ath79_register_m25p80(NULL); + + /* register gpio LEDs and keys */ + ath79_register_leds_gpio(-1, ARRAY_SIZE(tpe_r3300_leds_gpio), + tpe_r3300_leds_gpio); + ath79_register_gpio_keys_polled(-1, TPE_R3300_KEYS_POLL_INTERVAL, + ARRAY_SIZE(tpe_r3300_gpio_keys), + tpe_r3300_gpio_keys); + + /* enable usb */ + ath79_register_usb(); + ath79_register_mdio(1, 0x0); + + /* register eth0 as WAN, eth1 as LAN */ + ath79_init_mac(ath79_eth0_data.mac_addr, art+TPE_R3300_MAC0_OFFSET, 0); + ath79_switch_data.phy4_mii_en = 1; + ath79_switch_data.phy_poll_mask = BIT(4); + ath79_eth0_data.phy_if_mode = PHY_INTERFACE_MODE_MII; + ath79_eth0_data.phy_mask = BIT(4); + ath79_eth0_data.mii_bus_dev = &ath79_mdio1_device.dev; + + ath79_register_eth(0); + + ath79_init_mac(ath79_eth1_data.mac_addr, art+TPE_R3300_MAC1_OFFSET, 0); + ath79_eth1_data.phy_if_mode = PHY_INTERFACE_MODE_GMII; + ath79_register_eth(1); + + /* register wireless mac with cal data */ + ath79_register_wmac(art + TPE_R3300_CALDATA_OFFSET, art + TPE_R3300_WMAC_MAC_OFFSET); +} + +MIPS_MACHINE(ATH79_MACH_TPE_R3300, "TPE-R3300", "TPE-R3300", tpe_r3300_setup); diff --git a/trunk/target/linux/ar71xx/generic/profiles/thinkpenguin.mk b/trunk/target/linux/ar71xx/generic/profiles/thinkpenguin.mk new file mode 100644 index 00000000..b8ab4a18 --- /dev/null +++ b/trunk/target/linux/ar71xx/generic/profiles/thinkpenguin.mk @@ -0,0 +1,27 @@ +# +# Copyright (C) 2013 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# +define Profile/TPE-R1100 + NAME:=TPE-R1100 + PACKAGES:=kmod-usb-core kmod-usb2 +endef + +define Profile/TPE-R1100/Description + Configuration for the ThinkPenguin mini Wireless N router.. +endef + +$(eval $(call Profile,TPE-R1100)) + +define Profile/TPE-R3300 + NAME:=TPE-R3300 + PACKAGES:=kmod-usb-core kmod-usb2 +endef + +define Profile/TPE-R3300/Description + Configuration for the ThinkPenguin Wireless N pro router.. +endef + +$(eval $(call Profile,TPE-R3300)) diff --git a/trunk/target/linux/ar71xx/image/Makefile b/trunk/target/linux/ar71xx/image/Makefile index a61a5f77..65dec367 100644 --- a/trunk/target/linux/ar71xx/image/Makefile +++ b/trunk/target/linux/ar71xx/image/Makefile @@ -661,6 +661,23 @@ define Device/oolite endef TARGET_DEVICES += oolite +define Device/tpe-r1100 + BOARDNAME = TPE-R1100 + IMAGE_SIZE = 16000k + CONSOLE = ttyATH0,115200 + MTDPARTS = spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,16000k(firmware),64k(art)ro +endef +TARGET_DEVICES += tpe-r1100 + +define Device/tpe-r3300 + BOARDNAME = TPE-R3300 + IMAGE_SIZE = 16000k + CONSOLE = ttyATH0,115200 + MTDPARTS = spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,16000k(firmware),64k(art)ro +endef +TARGET_DEVICES += tpe-r3300 + + rootfs_type=$(patsubst jffs2-%,jffs2,$(patsubst squashfs-%,squashfs,$(1))) # $(1): rootfs type. diff --git a/trunk/target/linux/ar71xx/luci/profiles/thinkpenguin.mk b/trunk/target/linux/ar71xx/luci/profiles/thinkpenguin.mk new file mode 100644 index 00000000..bb7099bd --- /dev/null +++ b/trunk/target/linux/ar71xx/luci/profiles/thinkpenguin.mk @@ -0,0 +1,29 @@ +# +# Copyright (C) 2013 OpenWrt.org +# Copyright (C) 2015 libreCMC.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +define Profile/TPE-R1100 + NAME:=TPE-R1100 + PACKAGES:=luci luci-ssl kmod-usb-core kmod-usb2 +endef + +define Profile/TPE-R1100/Description + Configuration for the ThinkPenguin mini Wireless N router.. +endef + +$(eval $(call Profile,TPE-R1100)) + +define Profile/TPE-R3300 + NAME:=TPE-R3300 + PACKAGES:=luci luci-ssl kmod-usb-core kmod-usb2 +endef + +define Profile/TPE-R3300/Description + Configuration for the ThinkPenguin Wireless N pro router.. +endef + +$(eval $(call Profile,TPE-R3300)) diff --git a/trunk/target/linux/ar71xx/patches-3.18/911-MIPS-ath79-add-tpe-r1100.patch b/trunk/target/linux/ar71xx/patches-3.18/911-MIPS-ath79-add-tpe-r1100.patch new file mode 100644 index 00000000..bbcb0405 --- /dev/null +++ b/trunk/target/linux/ar71xx/patches-3.18/911-MIPS-ath79-add-tpe-r1100.patch @@ -0,0 +1,39 @@ +--- a/arch/mips/ath79/Kconfig ++++ b/arch/mips/ath79/Kconfig +@@ -522,6 +522,16 @@ config ATH79_MACH_GL_INET + select ATH79_DEV_USB + select ATH79_DEV_WMAC + ++config ATH79_MACH_TPE_R1100 ++ bool "TPE-R1100 support" ++ select SOC_AR933X ++ select ATH79_DEV_ETH ++ select ATH79_DEV_GPIO_BUTTONS ++ select ATH79_DEV_LEDS_GPIO ++ select ATH79_DEV_M25P80 ++ select ATH79_DEV_USB ++ select ATH79_DEV_WMAC ++ + config ATH79_MACH_EAP300V2 + bool "EnGenius EAP300 v2 support" + select SOC_AR934X +--- a/arch/mips/ath79/Makefile ++++ b/arch/mips/ath79/Makefile +@@ -78,6 +78,7 @@ obj-$(CONFIG_ATH79_MACH_EPG5000) += mach + obj-$(CONFIG_ATH79_MACH_ESR1750) += mach-esr1750.o + obj-$(CONFIG_ATH79_MACH_F9K1115V2) += mach-f9k1115v2.o + obj-$(CONFIG_ATH79_MACH_GL_INET) += mach-gl-inet.o ++obj-$(CONFIG_ATH79_MACH_TPE_R1100) += mach-tpe-r1100.o + obj-$(CONFIG_ATH79_MACH_GS_OOLITE) += mach-gs-oolite.o + obj-$(CONFIG_ATH79_MACH_HIWIFI_HC6361) += mach-hiwifi-hc6361.o + obj-$(CONFIG_ATH79_MACH_JA76PF) += mach-ja76pf.o +--- a/arch/mips/ath79/machtypes.h ++++ b/arch/mips/ath79/machtypes.h +@@ -67,6 +67,7 @@ enum ath79_mach_type { + ATH79_MACH_EPG5000, /* EnGenius EPG5000 */ + ATH79_MACH_F9K1115V2, /* Belkin AC1750DB */ + ATH79_MACH_GL_INET, /* GL-CONNECT GL-INET */ ++ ATH79_MACH_TPE_R1100, /* TPE-R1100 support */ + ATH79_MACH_GS_OOLITE, /* GS OOLITE V1.0 */ + ATH79_MACH_HIWIFI_HC6361, /* HiWiFi HC6361 */ + ATH79_MACH_JA76PF, /* jjPlus JA76PF */ diff --git a/trunk/target/linux/ar71xx/patches-3.18/912-MIPS-ath79-add-tpe-r3300.patch b/trunk/target/linux/ar71xx/patches-3.18/912-MIPS-ath79-add-tpe-r3300.patch new file mode 100644 index 00000000..b1989eff --- /dev/null +++ b/trunk/target/linux/ar71xx/patches-3.18/912-MIPS-ath79-add-tpe-r3300.patch @@ -0,0 +1,39 @@ +--- a/arch/mips/ath79/Kconfig ++++ b/arch/mips/ath79/Kconfig +@@ -532,6 +532,16 @@ config ATH79_MACH_TPE_R1100 + select ATH79_DEV_USB + select ATH79_DEV_WMAC + ++config ATH79_MACH_TPE_R3300 ++ bool "TPE_R3300 support" ++ select SOC_AR933X ++ select ATH79_DEV_ETH ++ select ATH79_DEV_GPIO_BUTTONS ++ select ATH79_DEV_LEDS_GPIO ++ select ATH79_DEV_M25P80 ++ select ATH79_DEV_USB ++ select ATH79_DEV_WMAC ++ + config ATH79_MACH_EAP300V2 + bool "EnGenius EAP300 v2 support" + select SOC_AR934X +--- a/arch/mips/ath79/Makefile ++++ b/arch/mips/ath79/Makefile +@@ -79,6 +79,7 @@ obj-$(CONFIG_ATH79_MACH_ESR1750) += mach + obj-$(CONFIG_ATH79_MACH_F9K1115V2) += mach-f9k1115v2.o + obj-$(CONFIG_ATH79_MACH_GL_INET) += mach-gl-inet.o + obj-$(CONFIG_ATH79_MACH_TPE_R1100) += mach-tpe-r1100.o ++obj-$(CONFIG_ATH79_MACH_TPE_R3300) += mach-tpe-r3300.o + obj-$(CONFIG_ATH79_MACH_GS_OOLITE) += mach-gs-oolite.o + obj-$(CONFIG_ATH79_MACH_HIWIFI_HC6361) += mach-hiwifi-hc6361.o + obj-$(CONFIG_ATH79_MACH_JA76PF) += mach-ja76pf.o +--- a/arch/mips/ath79/machtypes.h ++++ b/arch/mips/ath79/machtypes.h +@@ -68,6 +68,7 @@ enum ath79_mach_type { + ATH79_MACH_F9K1115V2, /* Belkin AC1750DB */ + ATH79_MACH_GL_INET, /* GL-CONNECT GL-INET */ + ATH79_MACH_TPE_R1100, /* TPE-R1100 support */ ++ ATH79_MACH_TPE_R3300, /* TPE-R3300 */ + ATH79_MACH_GS_OOLITE, /* GS OOLITE V1.0 */ + ATH79_MACH_HIWIFI_HC6361, /* HiWiFi HC6361 */ + ATH79_MACH_JA76PF, /* jjPlus JA76PF */ -- 2.25.1