Changeset 32682


Ignore:
Timestamp:
2012-07-12T15:29:46+02:00 (6 years ago)
Author:
juhosg
Message:

ramips: rt305x: add support for Edimax 3G-6200N

Support for Edimax 3G-6200N router with USB.

Signed-off-by: Lukasz Golebiowski <lgolebio@…>

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

Legend:

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

    r32450 r32682  
    3131get_status_led() { 
    3232        case $(ramips_board_name) in 
     33        3g-6200n) 
     34                status_led="edimax:green:power" 
     35                ;; 
    3336        argus-atp52b) 
    3437                status_led="argus-atp52b:green:run" 
  • trunk/target/linux/ramips/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom

    r32450 r32682  
    4949                ;; 
    5050 
     51        3g-6200n | \ 
    5152        all0256n | \ 
    5253        argus-atp52b | \ 
  • trunk/target/linux/ramips/base-files/etc/uci-defaults/leds

    r31993 r32682  
    1515 
    1616case $board in 
     17        3g-6200n) 
     18                set_wifi_led "edimax:amber:wlan" 
     19                set_usb_led "edimax:blue:3g" 
     20                ;; 
    1721        all0256n) 
    1822                set_wifi_led "rt2800pci-phy0::radio" 
  • trunk/target/linux/ramips/base-files/etc/uci-defaults/network

    r32490 r32682  
    2222                ;; 
    2323 
     24        3g-6200n | \ 
    2425        argus-atp52b | \ 
    2526        b2c | \ 
     
    9091                lan_mac=$(ramips_get_mac_binary factory 40) 
    9192                ;; 
    92  
     93        3g-6200n | \ 
    9394        argus-atp52b | \ 
    9495        b2c | \ 
  • trunk/target/linux/ramips/base-files/lib/preinit/06_set_iface_mac

    r32490 r32682  
    99 
    1010        case $(ramips_board_name) in 
     11        3g-6200n) 
     12                mac=$(ramips_get_mac_binary factory 4) 
     13                ifconfig eth0 hw ether $mac 2>/dev/null 
     14                ;; 
    1115        bc2 |\ 
    1216        esr-9753 |\ 
  • trunk/target/linux/ramips/base-files/lib/ramips.sh

    r32450 r32682  
    4848 
    4949        case "$machine" in 
     50        *"Edimax 3g-6200n") 
     51                name="3g-6200n" 
     52                ;; 
    5053        *"Allnet ALL0256N") 
    5154                name="all0256n" 
  • trunk/target/linux/ramips/base-files/lib/upgrade/platform.sh

    r32450 r32682  
    1515 
    1616        case "$board" in 
     17        3g-6200n | \ 
    1718        all0256n | \ 
    1819        bc2 | \ 
  • trunk/target/linux/ramips/files/arch/mips/include/asm/mach-ralink/machine.h

    r32450 r32682  
    2222 
    2323        /* RT3050 based machines */ 
     24        RAMIPS_MACH_3G_6200N,           /* Edimax 3G-6200N */ 
    2425        RAMIPS_MACH_ALL0256N,           /* Allnet ALL0256N */ 
    2526        RAMIPS_MACH_DIR_300_B1,         /* D-Link DIR-300 B1 */ 
  • trunk/target/linux/ramips/files/arch/mips/ralink/rt305x/Kconfig

    r32450 r32682  
    22 
    33menu "Ralink RT350x machine selection" 
     4 
     5config RT305X_MACH_3G_6200N 
     6        bool "Edimax 3G-6200N board support" 
     7        select RALINK_DEV_GPIO_BUTTONS 
     8        select RALINK_DEV_GPIO_LEDS 
    49 
    510config RT305X_MACH_WR6202 
  • trunk/target/linux/ramips/files/arch/mips/ralink/rt305x/Makefile

    r32450 r32682  
    1212obj-$(CONFIG_EARLY_PRINTK)              += early_printk.o 
    1313 
     14obj-$(CONFIG_RT305X_MACH_3G_6200N)      += mach-3g-6200n.o 
    1415obj-$(CONFIG_RT305X_MACH_ARGUS_ATP52B)  += mach-argus-atp52b.o 
    1516obj-$(CONFIG_RT305X_MACH_BC2)           += mach-bc2.o 
  • trunk/target/linux/ramips/image/Makefile

    r32450 r32682  
    123123define BuildFirmware/GENERIC_8M/initramfs 
    124124        $(call BuildFirmware/Generic/initramfs,$(1),$(2),$(call mkcmdline,$(3),$(4),$(5)) $(call mkmtd/$(6),$(mtdlayout_8M))) 
     125endef 
     126 
     127mtdlayout_edimax_3g6200n=192k(u-boot)ro,64k(u-boot-env)ro,64k(factory)ro,896k(kernel),2752k(rootfs),128k@0x3e0000(cimage)ro,3648k@0x50000(firmware) 
     128define BuildFirmware/3G6200N 
     129        $(call BuildFirmware/Generic,$(1),$(2),$(call mkcmdline,$(3),$(4),$(5)) $(call mkmtd/$(6),$(mtdlayout_edimax_3g6200n)),917504,2818048) 
    125130endef 
    126131 
     
    313318# RT305X Profiles 
    314319# 
     320define Image/Build/Profile/3G6200N 
     321        $(call Image/Build/Template/$(fs_squash)/$(1),3G6200N,3g-6200n,3G-6200N,ttyS1,57600,phys) 
     322endef 
     323 
    315324define Image/Build/Profile/ALL0256N 
    316325        $(call Image/Build/Template/$(fs_squash)/$(1),GENERIC_4M,all0256n,ALL0256N,ttyS1,57600,spi) 
     
    445454ifeq ($(CONFIG_RALINK_RT305X),y) 
    446455define Image/Build/Profile/Default 
     456        $(call Image/Build/Profile/3G6200N,$(1)) 
    447457        $(call Image/Build/Profile/ALL0256N,$(1)) 
    448458        $(call Image/Build/Profile/ARGUS_ATP52B,$(1)) 
  • trunk/target/linux/ramips/rt305x/config-3.3

    r32450 r32682  
    8888# CONFIG_RALINK_RT3883 is not set 
    8989CONFIG_RAMIPS_WDT=y 
     90CONFIG_RT305X_MACH_3G_6200N=y 
    9091CONFIG_RT305X_MACH_ALL0256N=y 
    9192CONFIG_RT305X_MACH_ARGUS_ATP52B=y 
Note: See TracChangeset for help on using the changeset viewer.