Changeset 30434 for trunk


Ignore:
Timestamp:
2012-02-11T16:11:36+01:00 (4 years ago)
Author:
juhosg
Message:

ramips: rt305x: add support for Accton WR6202 / SMCWBR11S-3GN

This patch adds support for the Accton WR6202 Mini 3G broadband router.
Full details for this device are available at
http://www.awbnetworks.com/products03.php?Fullkey=19.

This device is identical to the SMCWBR11S-3GN:
http://www.smc-asia.com/products03.php?Fullkey=210

It's also worth noting that this board has a GPIO line to control the
power to the USB port.

[juhosg:

  • fix checkpatch warnings,
  • reorder Kconfig entry,
  • merge the sysupgrade patch,
  • add GPL header]

Signed-off-by: Johnathan Boyce <jon.boyce@…>

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

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/ramips/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom

    r29910 r30434  
    6565        wl-351 | \ 
    6666        wli-tx4-ag300n | \ 
    67         wr512-3gn) 
     67        wr512-3gn | \ 
     68        wr6202) 
    6869                rt2x00_eeprom_extract "factory" 0 272 
    6970                ;; 
  • trunk/target/linux/ramips/base-files/etc/uci-defaults/network

    r30433 r30434  
    2424        b2c | \ 
    2525        nw718 | \ 
    26         w502u) 
     26        w502u | \ 
     27        wr6202) 
    2728                ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2" 
    2829                ;; 
  • trunk/target/linux/ramips/base-files/lib/preinit/06_set_iface_mac

    r29910 r30434  
    2626        nbg-419n |\ 
    2727        omni-emb |\ 
    28         w502u) 
     28        w502u    |\ 
     29        wr6202) 
    2930                mac=$(ramips_get_mac_binary factory 40) 
    3031                ifconfig eth0 hw ether $mac 2>/dev/null 
  • trunk/target/linux/ramips/base-files/lib/ramips.sh

    r29910 r30434  
    129129                name="wr512-3gn" 
    130130                ;; 
     131        *"AWB WR6202") 
     132                name="wr6202" 
     133                ;; 
    131134        *) 
    132135                name="generic" 
  • trunk/target/linux/ramips/base-files/lib/upgrade/platform.sh

    r29910 r30434  
    3030        rt-n15 | \ 
    3131        w502u |\ 
     32        wr6202 |\ 
    3233        v22rw-2x2 | \ 
    3334        wl341v3 | \ 
  • trunk/target/linux/ramips/files/arch/mips/include/asm/mach-ralink/machine.h

    r29910 r30434  
    4646        RAMIPS_MACH_WL351,              /* Sitecom WL-351 v1 002 */ 
    4747        RAMIPS_MACH_WR512_3GN,          /* SH-WR512NU/WS-WR512N1-like 3GN*/ 
     48        RAMIPS_MACH_WR6202,             /* Accton WR6202 */ 
    4849}; 
  • trunk/target/linux/ramips/files/arch/mips/ralink/rt305x/Kconfig

    r29910 r30434  
    22 
    33menu "Ralink RT350x machine selection" 
     4 
     5config RT305X_MACH_WR6202 
     6        bool "Accton WR6202" 
     7        select RALINK_DEV_GPIO_BUTTONS 
     8        select RALINK_DEV_GPIO_LEDS 
    49 
    510config RT305X_MACH_ALL0256N 
  • trunk/target/linux/ramips/files/arch/mips/ralink/rt305x/Makefile

    r29910 r30434  
    3333obj-$(CONFIG_RT305X_MACH_WL341V3)       += mach-wl341v3.o 
    3434obj-$(CONFIG_RT305X_MACH_WL351)         += mach-wl351.o 
     35obj-$(CONFIG_RT305X_MACH_WR6202)        += mach-wr6202.o 
  • trunk/target/linux/ramips/image/Makefile

    r29910 r30434  
    166166        $(call BuildFirmware/Generic,$(1),$(2),board=$(3),mtdlayout_nw718,851968,2949120) 
    167167        $(call BuildFirmware/NW718,$(1),$(2),board=$(3),mtdlayout_nw718,851968,2949120) 
     168endef 
     169 
     170console_WR6202=ttyS1,115200 
     171mtdlayout_WR6202=mtdparts=physmap-flash.0:192k(u-boot)ro,64k(u-boot-env)ro,64k(factory)ro,1024k(kernel),6848k(rootfs),7872k@0x50000(firmware) 
     172define Image/Build/Template/WR6202 
     173        $(call BuildFirmware/Generic,$(1),$(2),board=$(3) console=$(console_WR6202),mtdlayout_WR6202,1048576,7012352) 
     174endef 
     175 
     176define Image/Build/Profile/WR6202 
     177        $(call Image/Build/Template/WR6202,$(1),wr6202,WR6202) 
    168178endef 
    169179 
     
    329339        $(call Image/Build/Profile/WL341V3,$(1)) 
    330340        $(call Image/Build/Profile/WL351,$(1)) 
     341        $(call Image/Build/Profile/WR6202,$(1)) 
    331342endef 
    332343endif 
  • trunk/target/linux/ramips/rt305x/config-2.6.39

    r29910 r30434  
    113113CONFIG_RT305X_MACH_WL351=y 
    114114CONFIG_RT305X_MACH_WR512_3GN=y 
     115CONFIG_RT305X_MACH_WR6202=y 
    115116# CONFIG_SCSI_DMA is not set 
    116117CONFIG_SERIAL_8250_NR_UARTS=4 
Note: See TracChangeset for help on using the changeset viewer.