1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-12-25 20:05:31 +02:00
openwrt-xburst/target/linux/ramips/files/arch/mips/ralink/rt305x
juhosg 06add57343 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@starox.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31450 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-04-23 16:56:05 +00:00
..
clock.c ramips: rt305x: fix CPU clock detection on RT3352 2012-04-21 12:30:47 +00:00
common.h ramips: implement clock API for RT305X 2011-01-26 20:48:35 +00:00
devices.c ramips: rt305x: add OHCI/EHCI registration code for RT3352 2012-04-21 12:30:48 +00:00
devices.h ramips: rt305x: remove per-board physmap_flash_data instances 2012-02-12 12:52:10 +00:00
early_printk.c [ramips] initial support for RT288x/RT305x 2009-08-30 19:15:51 +00:00
irq.c ramips: set cp0_perfcount_irq for RT305X 2011-07-03 15:01:40 +00:00
Kconfig ramips: rt305x: add support for the Asus WL-330N3G board 2012-04-23 16:56:05 +00:00
mach-all0256n.c ramips: rt305x: nuke built-in MTD partition maps 2012-02-19 17:52:15 +00:00
mach-argus-atp52b.c ramips: rt305x: nuke built-in MTD partition maps 2012-02-19 17:52:15 +00:00
mach-bc2.c ramips: rt305x: nuke built-in MTD partition maps 2012-02-19 17:52:15 +00:00
mach-dir-300-revb.c ramips: rt305x: build image for the DIR-615 rev D boards 2012-03-27 19:29:59 +00:00
mach-esr-9753.c ramips: rt305x: nuke built-in MTD partition maps 2012-02-19 17:52:15 +00:00
mach-f5d8235-v2.c ramips: rt305x: nuke built-in MTD partition maps 2012-02-19 17:52:15 +00:00
mach-fonera20n.c ramips: rt305x: nuke built-in MTD partition maps 2012-02-19 17:52:15 +00:00
mach-freestation5.c ramips: add support for the ARC FreeStation5 board, also fix WCR-150GN network setup while we're at it - thanks Pau Escrich <p4u@dabax.net> for the implementation 2012-03-29 16:03:04 +00:00
mach-hw550-3g.c ramips: rt305x: nuke built-in MTD partition maps 2012-02-19 17:52:15 +00:00
mach-mofi3500-3gn.c ramips: rt305x: nuke built-in MTD partition maps 2012-02-19 17:52:15 +00:00
mach-nbg-419n.c ramips: rt305x: nuke built-in MTD partition maps 2012-02-19 17:52:15 +00:00
mach-nw718.c ramips: rt305x: nuke built-in MTD partition maps 2012-02-19 17:52:15 +00:00
mach-omni-emb.c ramips: rt305x: nuke built-in MTD partition maps 2012-02-19 17:52:15 +00:00
mach-pwh2004.c ramips: rt305x: nuke built-in MTD partition maps 2012-02-19 17:52:15 +00:00
mach-rt-g32-revb.c ramips: rt305x: nuke built-in MTD partition maps 2012-02-19 17:52:15 +00:00
mach-rt-n10-plus.c ramips: board support for Asus RT-N10+ 2012-03-04 16:09:11 +00:00
mach-sl-r7205.c ramips: rt305x: nuke built-in MTD partition maps 2012-02-19 17:52:15 +00:00
mach-v22rw-2x2.c ramips: rt305x: nuke built-in MTD partition maps 2012-02-19 17:52:15 +00:00
mach-w306r-v20.c ramips: rt305x: add initial support for Tenda W306R V2.0 2012-04-21 12:30:40 +00:00
mach-w502u.c ramips: rt305x: nuke built-in MTD partition maps 2012-02-19 17:52:15 +00:00
mach-wcr150gn.c ramips: rt305x: nuke built-in MTD partition maps 2012-02-19 17:52:15 +00:00
mach-whr-g300n.c ramips: rt305x: nuke built-in MTD partition maps 2012-02-19 17:52:15 +00:00
mach-wl341v3.c ramips: rt305x: nuke built-in MTD partition maps 2012-02-19 17:52:15 +00:00
mach-wl351.c ramips: rt305x: nuke built-in MTD partition maps 2012-02-19 17:52:15 +00:00
mach-wl-330n3g.c ramips: rt305x: add support for the Asus WL-330N3G board 2012-04-23 16:56:05 +00:00
mach-wl-330n.c ramips: rt305x: add add support for the Asus WL-330N board 2012-03-27 19:29:57 +00:00
mach-wr512-3gn.c ramips: rt305x: nuke built-in MTD partition maps 2012-02-19 17:52:15 +00:00
mach-wr6202.c ramips: rt305x: nuke built-in MTD partition maps 2012-02-19 17:52:15 +00:00
mach-xdx-rn502j.c ramips: add support for unbranded XDX-RN502J board 2012-03-04 16:09:13 +00:00
Makefile ramips: rt305x: add support for the Asus WL-330N3G board 2012-04-23 16:56:05 +00:00
rt305x.c ramips: rt305x: use different memory size setup for RT3352 2012-04-21 12:30:45 +00:00
setup.c ramips: introduce ramips_soc_prom_init and move SoC detection into that 2012-03-11 19:05:53 +00:00