Changeset 31450 for trunk


Ignore:
Timestamp:
2012-04-23T18:56:05+02:00 (5 years ago)
Author:
juhosg
Message:

ramips: rt305x: add support for the Asus WL-330N3G board

This patch adds support for the ASUS WL-330N3G

Comparing to the WL-330N, It have 32MB ram, usb support and a bicolor led.

The bi-color led is driven by 2 gpio.
I don't know how to handle this, so I simply made 2 leds : one red, one blue.
But the red light takes precedence over the blue one according to the chart below.

r = led is red
b = led is blue
0 = led is off

xy= x->r for red, b for blue led, y->value of brightness in /sys/class/leds/x/brughtness

initial state action led gpio state

r0 b0 r0->r1 r r0 b0
r0 b0 b0->b1 b r0 b1

r1 b0 r1->r0 0 r0 b0
r1 b0 b0->b1 r r1 *b1*

r1 b1 r1->r0 b r0 b1
r1 b1 b1->b0 r r1 b0

r0 b1 r0->r1 r r1 *b1*
r0 b1 b1->b0 0 r0 r0

Signed-off-by: Frédéric Leroy <fredo@…>

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

Legend:

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

    r31396 r31450  
    7070                status_led="asus:green:wps" 
    7171                ;; 
    72         rt-n56u | wl-330n ) 
     72        rt-n56u | wl-330n | wl-330n3g) 
    7373                status_led="asus:blue:power" 
    7474                ;; 
  • trunk/target/linux/ramips/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom

    r31396 r31450  
    7171        whr-g300n | \ 
    7272        wl-330n | \ 
     73        wl-330n3g | \ 
    7374        wl-351 | \ 
    7475        wli-tx4-ag300n | \ 
  • trunk/target/linux/ramips/base-files/lib/preinit/06_set_iface_mac

    r31396 r31450  
    3232        w502u    |\ 
    3333        wl-330n |\ 
     34        wl-330n3g |\ 
    3435        wr6202 |\ 
    3536        xdxrn502j) 
  • trunk/target/linux/ramips/base-files/lib/ramips.sh

    r31396 r31450  
    5959        *"Asus WL-330N") 
    6060                name="wl-330n" 
     61                ;; 
     62        *"Asus WL-330N3G") 
     63                name="wl-330n3g" 
    6164                ;; 
    6265        *"Aztech HW550-3G") 
  • trunk/target/linux/ramips/files/arch/mips/include/asm/mach-ralink/machine.h

    r31396 r31450  
    3131        RAMIPS_MACH_NW718,              /* Netcore NW718 */ 
    3232        RAMIPS_MACH_WL_330N,            /* Asus WL-330N */ 
     33        RAMIPS_MACH_WL_330N3G,          /* Asus WL-330N3G */ 
    3334 
    3435        /* RT3052 based machines */ 
  • trunk/target/linux/ramips/files/arch/mips/ralink/rt305x/Kconfig

    r31396 r31450  
    3434config RT305X_MACH_WL_330N 
    3535        bool "Asus WL-330N board support" 
     36        select RALINK_DEV_GPIO_BUTTONS 
     37        select RALINK_DEV_GPIO_LEDS 
     38 
     39config RT305X_MACH_WL_330N3G 
     40        bool "Asus WL-330N3G board support" 
    3641        select RALINK_DEV_GPIO_BUTTONS 
    3742        select RALINK_DEV_GPIO_LEDS 
  • trunk/target/linux/ramips/files/arch/mips/ralink/rt305x/Makefile

    r31396 r31450  
    3636obj-$(CONFIG_RT305X_MACH_WR512_3GN)     += mach-wr512-3gn.o 
    3737obj-$(CONFIG_RT305X_MACH_WL_330N)       += mach-wl-330n.o 
     38obj-$(CONFIG_RT305X_MACH_WL_330N3G)     += mach-wl-330n3g.o 
    3839obj-$(CONFIG_RT305X_MACH_WL341V3)       += mach-wl341v3.o 
    3940obj-$(CONFIG_RT305X_MACH_WL351)         += mach-wl351.o 
  • trunk/target/linux/ramips/image/Makefile

    r31399 r31450  
    394394define Image/Build/Profile/WL_330N 
    395395        $(call Image/Build/Template/$(fs_squash)/$(1),GENERIC_4M,wl-330n,WL_330N,ttyS1,57600,spi) 
     396endef 
     397 
     398define Image/Build/Profile/WL_330N3G 
     399        $(call Image/Build/Template/$(fs_squash)/$(1),GENERIC_4M,wl-330n3g,WL_330N3G,ttyS1,57600,spi) 
    396400endef 
    397401 
     
    442446        $(call Image/Build/Profile/WHRG300N,$(1)) 
    443447        $(call Image/Build/Profile/WL_330N,$(1)) 
     448        $(call Image/Build/Profile/WL_330N3G,$(1)) 
    444449        $(call Image/Build/Profile/WL341V3,$(1)) 
    445450        $(call Image/Build/Profile/WL351,$(1)) 
  • trunk/target/linux/ramips/rt305x/config-3.3

    r31403 r31450  
    122122CONFIG_RT305X_MACH_WL351=y 
    123123CONFIG_RT305X_MACH_WL_330N=y 
     124CONFIG_RT305X_MACH_WL_330N3G=y 
    124125CONFIG_RT305X_MACH_WR512_3GN=y 
    125126CONFIG_RT305X_MACH_WR6202=y 
Note: See TracChangeset for help on using the changeset viewer.