Netgear WNR612 v2: - cpu Atheros AR7240 (Python) @400MHz - flash 4MB - ram 32MB - ethernet 10/100: 1xwan + 2xlan (only two) - radio AR9285
Signed-off-by: Cezary Jackiewicz <cezary.jackiew...@gmail.com> --- Index: target/linux/ar71xx/files/arch/mips/ath79/mach-wnr2000-v3.c =================================================================== --- target/linux/ar71xx/files/arch/mips/ath79/mach-wnr2000-v3.c (revision 37568) +++ target/linux/ar71xx/files/arch/mips/ath79/mach-wnr2000-v3.c (working copy) @@ -29,6 +29,8 @@ #define WNR2000V3_GPIO_LED_PWR_GREEN 14 #define WNR2000V3_GPIO_BTN_WPS 11 +#define WNR612V2_GPIO_LED_PWR_GREEN 11 + #define WNR2000V3_KEYS_POLL_INTERVAL 20 /* msecs */ #define WNR2000V3_KEYS_DEBOUNCE_INTERVAL (3 * WNR2000V3_KEYS_POLL_INTERVAL) @@ -48,6 +50,14 @@ } }; +static struct gpio_led wnr612v2_leds_gpio[] __initdata = { + { + .name = "wnr612v2:green:power", + .gpio = WNR612V2_GPIO_LED_PWR_GREEN, + .active_low = 1, + } +}; + static struct gpio_keys_button wnr2000v3_gpio_keys[] __initdata = { { .desc = "wps", @@ -58,7 +68,7 @@ } }; -static void __init wnr2000v3_setup(void) +static void __init wnr_common_setup(void) { u8 *art = (u8 *) KSEG1ADDR(0x1fff0000); @@ -77,15 +87,29 @@ ath79_register_eth(1); ath79_register_m25p80(NULL); + ap91_pci_init(art + WNR2000V3_PCIE_CALDATA_OFFSET, NULL); +} +static void __init wnr2000v3_setup(void) +{ + wnr_common_setup(); + ath79_register_leds_gpio(-1, ARRAY_SIZE(wnr2000v3_leds_gpio), wnr2000v3_leds_gpio); ath79_register_gpio_keys_polled(-1, WNR2000V3_KEYS_POLL_INTERVAL, ARRAY_SIZE(wnr2000v3_gpio_keys), wnr2000v3_gpio_keys); +} - ap91_pci_init(art + WNR2000V3_PCIE_CALDATA_OFFSET, NULL); +MIPS_MACHINE(ATH79_MACH_WNR2000_V3, "WNR2000V3", "NETGEAR WNR2000 V3", wnr2000v3_setup); + +static void __init wnr612v2_setup(void) +{ + wnr_common_setup(); + + ath79_register_leds_gpio(-1, ARRAY_SIZE(wnr612v2_leds_gpio), + wnr612v2_leds_gpio); } -MIPS_MACHINE(ATH79_MACH_WNR2000_V3, "WNR2000V3", "NETGEAR WNR2000 V3", wnr2000v3_setup); +MIPS_MACHINE(ATH79_MACH_WNR612_V2, "WNR612V2", "NETGEAR WNR612 V2", wnr612v2_setup); Index: target/linux/ar71xx/patches-3.10/610-MIPS-ath79-openwrt-machines.patch =================================================================== --- target/linux/ar71xx/patches-3.10/610-MIPS-ath79-openwrt-machines.patch (revision 37568) +++ target/linux/ar71xx/patches-3.10/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,125 @@ +@@ -16,22 +16,126 @@ enum ath79_mach_type { ATH79_MACH_GENERIC = 0, @@ -113,6 +113,7 @@ + ATH79_MACH_WNDR4300, /* NETGEAR WNDR4300 */ + ATH79_MACH_WNR2000, /* NETGEAR WNR2000 */ + ATH79_MACH_WNR2000_V3, /* NETGEAR WNR2000 v3 */ ++ ATH79_MACH_WNR612_V2, /* NETGEAR WNR612 v2 */ + ATH79_MACH_WP543, /* Compex WP543 */ + ATH79_MACH_WPE72, /* Compex WPE72 */ + ATH79_MACH_WRT160NL, /* Linksys WRT160NL */ Index: target/linux/ar71xx/base-files/lib/ar71xx.sh =================================================================== --- target/linux/ar71xx/base-files/lib/ar71xx.sh (revision 37568) +++ target/linux/ar71xx/base-files/lib/ar71xx.sh (working copy) @@ -495,6 +498,9 @@ *WNR2000) name="wnr2000" ;; + *"WNR612 V2") + name="wnr612-v2" + ;; *WRT160NL) name="wrt160nl" ;; Index: target/linux/ar71xx/base-files/lib/upgrade/platform.sh =================================================================== --- target/linux/ar71xx/base-files/lib/upgrade/platform.sh (revision 37568) +++ target/linux/ar71xx/base-files/lib/upgrade/platform.sh (working copy) @@ -214,7 +215,8 @@ } return 0 ;; - wndr3700) + wndr3700 | \ + wnr612-v2) local hw_magic hw_magic="$(ar71xx_get_mtd_part_magic firmware)" Index: target/linux/ar71xx/base-files/etc/diag.sh =================================================================== --- target/linux/ar71xx/base-files/etc/diag.sh (revision 37568) +++ target/linux/ar71xx/base-files/etc/diag.sh (working copy) @@ -173,6 +174,9 @@ wnr2000) status_led="wnr2000:green:power" ;; + wnr612-v2) + status_led="wnr612v2:green:power" + ;; wp543) status_led="wp543:green:diag" ;; Index: target/linux/ar71xx/base-files/etc/uci-defaults/02_network =================================================================== --- target/linux/ar71xx/base-files/etc/uci-defaults/02_network (revision 37568) +++ target/linux/ar71xx/base-files/etc/uci-defaults/02_network (working copy) @@ -168,7 +168,8 @@ tl-mr3420-v2 |\ tl-wr841n-v8 |\ -wnr2000-v3) +wnr2000-v3 |\ +wnr612-v2) ucidef_set_interfaces_lan_wan "eth1" "eth0" ucidef_add_switch "switch0" "1" "1" ucidef_add_switch_vlan "switch0" "1" "0 1 2 3 4" Index: target/linux/ar71xx/generic/profiles/netgear.mk =================================================================== --- target/linux/ar71xx/generic/profiles/netgear.mk (revision 37568) +++ target/linux/ar71xx/generic/profiles/netgear.mk (working copy) @@ -50,3 +50,13 @@ $(eval $(call Profile,WNR2000V3)) + +define Profile/WNR612V2 + NAME:=NETGEAR WNR612V2 +endef + +define Profile/WNR612V2/Description + Package set optimized for the NETGEAR WNR612V2 +endef + +$(eval $(call Profile,WNR612V2)) Index: target/linux/ar71xx/image/Makefile =================================================================== --- target/linux/ar71xx/image/Makefile (revision 37568) +++ target/linux/ar71xx/image/Makefile (working copy) @@ -922,6 +922,7 @@ # This is used with AthGzip profile for now $(eval $(call SingleProfile,AthGzip,$(fs_64k),WNDAP360,wndap360,WNDAP360,ttyS0,9600,$$(wndap360_mtdlayout),1769472,6160384,KRuImage)) $(eval $(call SingleProfile,Netgear,$(fs_64k),WNR2000V3,wnr2000v3,WNR2000V3,ttyS0,115200,$$(wnr2000v3_mtdlayout),2003,WNR2000V3,"" NA,)) +$(eval $(call SingleProfile,Netgear,$(fs_64k),WNR612V2,wnr612v2,WNR612V2,ttyS0,115200,$$(wnr2000v3_mtdlayout),2061,WNR612V2,"",)) $(eval $(call SingleProfile,Netgear,$(fs_64k),WNDR3700V1,wndr3700,WNDR3700,ttyS0,115200,$$(wndr3700_mtdlayout),3700,WNDR3700,"" NA,)) $(eval $(call SingleProfile,Netgear,$(fs_64k),WNDR3700V2,wndr3700v2,WNDR3700,ttyS0,115200,$$(wndr3700v2_mtdlayout),3701,WNDR3700v2,"",-H 29763654+16+64)) $(eval $(call SingleProfile,Netgear,$(fs_64k),WNDR3800,wndr3800,WNDR3700,ttyS0,115200,$$(wndr3700v2_mtdlayout),3701,WNDR3800,"",-H 29763654+16+128)) -- Pozdrawiam, Cezary Jackiewicz _______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel