Changeset 44221


Ignore:
Timestamp:
2015-01-30T09:06:40+01:00 (3 years ago)
Author:
blogic
Message:

ar71xx: add Netgear WNR1000v2/WNR1000v2-VC support (#18633)

The board is already supported by OpenWrt. WNR1000v2/WNR1000v2-VC are
pretty much the same as WNR2000v3/WNR612v2, therefore the same
initialization code and flash layout is used.

Signed-off-by: Ștefan Rusu <saltwaterc@…>
Tested-by: Douglas Fraser <1dsfraser@…>

Location:
trunk/target/linux
Files:
1 added
10 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/ar71xx/base-files/etc/diag.sh

    r44077 r44221  
    282282        wnr2000 | \ 
    283283        wnr2200 |\ 
    284         wnr612-v2) 
     284        wnr612-v2 |\ 
     285        wnr1000-v2) 
    285286                status_led="netgear:green:power" 
    286287                ;; 
  • trunk/target/linux/ar71xx/base-files/etc/uci-defaults/02_network

    r44063 r44221  
    224224wnr2000-v4 |\ 
    225225wnr2200 |\ 
    226 wnr612-v2) 
     226wnr612-v2 |\ 
     227wnr1000-v2) 
    227228        ucidef_set_interfaces_lan_wan "eth1" "eth0" 
    228229        ucidef_add_switch "switch0" "1" "1" 
  • trunk/target/linux/ar71xx/base-files/etc/uci-defaults/04_led_migration

    r43307 r44221  
    7878        ;; 
    7979 
     80wnr1000-v2) 
     81        migrate_leds "wnr1000v2:=netgear:" 
     82        ;; 
     83 
    8084*) 
    8185        ;; 
  • trunk/target/linux/ar71xx/base-files/lib/ar71xx.sh

    r44085 r44221  
    781781                name="wnr612-v2" 
    782782                ;; 
     783        *"WNR1000 V2") 
     784                name="wnr1000-v2" 
     785                ;; 
    783786        *WRT160NL) 
    784787                name="wrt160nl" 
  • trunk/target/linux/ar71xx/base-files/lib/preinit/05_set_preinit_iface_ar71xx

    r42130 r44221  
    3939        wnr2200 |\ 
    4040        wnr612-v2 |\ 
     41        wnr1000-v2 |\ 
    4142        wpe72) 
    4243                ifname=eth1 
  • trunk/target/linux/ar71xx/base-files/lib/upgrade/platform.sh

    r44077 r44221  
    380380        wndr3700 | \ 
    381381        wnr2000-v3 | \ 
    382         wnr612-v2) 
     382        wnr612-v2 | \ 
     383        wnr1000-v2) 
    383384                local hw_magic 
    384385 
  • trunk/target/linux/ar71xx/files/arch/mips/ath79/mach-wnr2000-v3.c

    r38101 r44221  
    11/* 
    2  *  NETGEAR WNR2000v3 board support 
     2 *  NETGEAR WNR2000v3/WNR612v2/WNR1000v2 board support 
    33 * 
    44 *  Copytight (C) 2013 Mathieu Olivari <mathieu.olivari@gmail.com> 
     
    3232#define WNR612V2_GPIO_LED_PWR_GREEN     11 
    3333 
     34#define WNR1000V2_GPIO_LED_PWR_AMBER    1 
     35#define WNR1000V2_GPIO_LED_PWR_GREEN    11 
     36 
    3437#define WNR2000V3_KEYS_POLL_INTERVAL    20      /* msecs */ 
    3538#define WNR2000V3_KEYS_DEBOUNCE_INTERVAL        (3 * WNR2000V3_KEYS_POLL_INTERVAL) 
     
    5558                .name           = "netgear:green:power", 
    5659                .gpio           = WNR612V2_GPIO_LED_PWR_GREEN, 
     60                .active_low     = 1, 
     61        } 
     62}; 
     63 
     64static struct gpio_led wnr1000v2_leds_gpio[] __initdata = { 
     65        { 
     66                .name           = "netgear:green:power", 
     67                .gpio           = WNR1000V2_GPIO_LED_PWR_GREEN, 
     68                .active_low     = 1, 
     69        }, { 
     70                .name           = "netgear:amber:power", 
     71                .gpio           = WNR1000V2_GPIO_LED_PWR_AMBER, 
    5772                .active_low     = 1, 
    5873        } 
     
    114129 
    115130MIPS_MACHINE(ATH79_MACH_WNR612_V2, "WNR612V2", "NETGEAR WNR612 V2", wnr612v2_setup); 
     131 
     132static void __init wnr1000v2_setup(void) 
     133{ 
     134        wnr_common_setup(); 
     135 
     136        ath79_register_leds_gpio(-1, ARRAY_SIZE(wnr1000v2_leds_gpio), 
     137                                 wnr1000v2_leds_gpio); 
     138} 
     139 
     140MIPS_MACHINE(ATH79_MACH_WNR1000_V2, "WNR1000V2", "NETGEAR WNR1000 V2", wnr1000v2_setup); 
  • trunk/target/linux/ar71xx/generic/profiles/netgear.mk

    r43173 r44221  
    6363 
    6464 
     65define Profile/WNR1000V2 
     66        NAME:=NETGEAR WNR1000V2 
     67endef 
     68 
     69define Profile/WNR1000V2/Description 
     70        Package set optimized for the NETGEAR WNR1000V2 
     71endef 
     72 
     73$(eval $(call Profile,WNR1000V2)) 
     74 
     75 
    6576define Profile/WNR2200 
    6677        NAME:=NETGEAR WNR2200 
  • trunk/target/linux/ar71xx/image/Makefile

    r44085 r44221  
    13241324$(eval $(call SingleProfile,Netgear,64kraw,REALWNR612V2,wnr612v2,WNR612V2,ttyS0,115200,$$(wnr2000v3_mtdlayout),0x32303631,WNR612V2,"",)) 
    13251325$(eval $(call SingleProfile,Netgear,64kraw,N150R,n150r,WNR612V2,ttyS0,115200,$$(wnr2000v3_mtdlayout),0x32303631,N150R,"",)) 
     1326$(eval $(call SingleProfile,Netgear,64kraw,REALWNR1000V2,wnr1000v2,WNR1000V2,ttyS0,115200,$$(wnr2000v3_mtdlayout),0x31303031,WNR1000V2,"",)) 
     1327$(eval $(call SingleProfile,Netgear,64kraw,WNR1000V2_VC,wnr1000v2-vc,WNR1000V2,ttyS0,115200,$$(wnr2000v3_mtdlayout),0x31303030,WNR1000V2-VC,"",)) 
    13261328 
    13271329$(eval $(call SingleProfile,OpenMesh,squashfs-only,OM2P,om2p,,,,OM2P)) 
     
    14951497$(eval $(call MultiProfile,UBNT,UBNTAIRROUTER UBNTRS UBNTRSPRO UBNTLSSR71 UBNTBULLETM UBNTROCKETM UBNTNANOM UBNTNANOMXW UBNTLOCOXW UBNTUNIFI UBNTUNIFIOUTDOOR UBNTUNIFIOUTDOORPLUS UAPPRO UBNTAIRGW)) 
    14961498$(eval $(call MultiProfile,WNR612V2,REALWNR612V2 N150R)) 
     1499$(eval $(call MultiProfile,WNR1000V2,REALWNR1000V2 WNR1000V2_VC)) 
    14971500$(eval $(call MultiProfile,WP543,WP543_2M WP543_4M WP543_8M WP543_16M)) 
    14981501$(eval $(call MultiProfile,WPE72,WPE72_4M WPE72_8M WPE72_16M)) 
  • trunk/target/linux/generic/files/drivers/mtd/mtdsplit/mtdsplit_uimage.c

    r43805 r44221  
    234234#define FW_MAGIC_WNR2200        0x32323030 
    235235#define FW_MAGIC_WNR612V2       0x32303631 
     236#define FW_MAGIC_WNR1000V2      0x31303031 
     237#define FW_MAGIC_WNR1000V2_VC   0x31303030 
    236238#define FW_MAGIC_WNDR3700       0x33373030 
    237239#define FW_MAGIC_WNDR3700V2     0x33373031 
     
    242244        switch be32_to_cpu(header->ih_magic) { 
    243245        case FW_MAGIC_WNR612V2: 
     246        case FW_MAGIC_WNR1000V2: 
     247        case FW_MAGIC_WNR1000V2_VC: 
    244248        case FW_MAGIC_WNR2000V3: 
    245249        case FW_MAGIC_WNR2200: 
Note: See TracChangeset for help on using the changeset viewer.