Commit graph

290 commits

Author SHA1 Message Date
Gabor Juhos
b0449ccf04 ramips: W306R V2.0 - GPIO and Network fixes
Fixed: GPIO typos and confirmed GPIO_BUTTON_RESET
Fixed: Lan & Wan reversed: swaped "eth0.2" with "eth0.1" by
       removing a line(default is correct), and reversed the
       Lan/wan layout LLLLW to WLLLL.

Added: image/Makefile now builds -factory.bin files. I am
       unsure of the accepted way to change the makefile but
       the name of the image needs to be 'linkn Kernel Image'
       in order to be accepted by the OEM firmware.

Known issue: eth0 (internal switch i think has mac address:
       00:11:22:33:44:55  but i think it should be same as
       the lan).
Known issue: Pressing the reset button has no noticable effect,
       i would expect the router to boot failsafe if being
       pressed on boot, reboot if short press and reset all
       to default if long press.

[juhosg: remove mtdlayout_W306R and use mtdlayout_4M instead]

Signed-off-by: David Pearce <david_18051985@hotmail.com>

SVN-Revision: 31557
2012-05-02 19:17:59 +00:00
Gabor Juhos
1ab80c7817 ramips: rt305x: add support for the UR-336UN board
Patch-by: Lebedev Dmitry <lebedev@trendnet.ru>

SVN-Revision: 31451
2012-04-23 16:56:06 +00:00
Gabor Juhos
3626444c6d 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>

SVN-Revision: 31450
2012-04-23 16:56:05 +00:00
Gabor Juhos
7f902c962b ramips: rt305x: add OHCI/EHCI registration code for RT3352
SVN-Revision: 31402
2012-04-21 12:30:48 +00:00
Gabor Juhos
1645928135 ramips: rt305x: fix CPU clock detection on RT3352
SVN-Revision: 31401
2012-04-21 12:30:47 +00:00
Gabor Juhos
fb69e28eaf ramips: rt305x: use different memory size setup for RT3352
SVN-Revision: 31400
2012-04-21 12:30:45 +00:00
Gabor Juhos
fc88a363c0 ramips: rt305x: add initial support for Tenda W306R V2.0
More device info at: http://wiki.openwrt.org/toh/tenda/w306r

Signed-off-by: David Pearce <David_18051985@hotmail.com.au>
[juhosg: fix checkpatch errors, remove kmod-phy and luci-ssl packages
from the profile, change broken GPIO number]

SVN-Revision: 31396
2012-04-21 12:30:40 +00:00
Jo-Philipp Wich
e9c4d3d1f2 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
SVN-Revision: 31144
2012-03-29 16:03:04 +00:00
Gabor Juhos
d495277d9f ramips: rt305x: build image for the DIR-615 rev D boards
Patch from #10105.

SVN-Revision: 31101
2012-03-27 19:29:59 +00:00
Gabor Juhos
e4e24c5512 ramips: rt305x: add add support for the Asus WL-330N board
[juhosg: reorder several lines in order to keep things sorted
alphabetically]

Signed-off-by: Frédéric Leroy <fredo@starox.org>

SVN-Revision: 31100
2012-03-27 19:29:57 +00:00
Gabor Juhos
0f77d0b2ba ramips: add RT3350 detection
SVN-Revision: 30900
2012-03-12 16:12:13 +00:00
Gabor Juhos
05d3f559f5 ramips: rt305x: rewrite SoC detection
SVN-Revision: 30890
2012-03-11 19:05:59 +00:00
Gabor Juhos
8cf8ee8f9d ramips: rt305x: rename SYSTEM_CONFIG_* defines to RT305X_SYSCFG_*
SVN-Revision: 30889
2012-03-11 19:05:57 +00:00
Gabor Juhos
acb4ad86e5 ramips: replace RALINK_SOC_* macros with global variables
SVN-Revision: 30888
2012-03-11 19:05:56 +00:00
Gabor Juhos
8cff770eb3 ramips: introduce ramips_soc_prom_init and move SoC detection into that
SVN-Revision: 30887
2012-03-11 19:05:53 +00:00
Gabor Juhos
4e15457e0e ramips: allow to use DSP ASE on RT3xxx
SVN-Revision: 30879
2012-03-11 16:39:26 +00:00
Gabor Juhos
0e486d2fd2 ramips: add support for unbranded XDX-RN502J board
This patch adds support for routers using a PCB marked XDX-RN502J
V2.0, such as some unbranded routers like this:

http://www.mediafire.com/?8acv87h6snn9fj6
http://www.mediafire.com/?do7xonw7scor4kn
http://www.mediafire.com/?1ad49zvx3e7jyix
http://www.mediafire.com/?i46cqiq66maa197

http://www.aliexpress.com/product-fm/516397994-Free-Shipping-300M-3G-WAN-Wireless-N-WiFi-USB-AP-Router-2-Antennas-wholesalers.html

some reports also state the Aceex 22Y uses the same board.

more information can be found in the following openwrt forum post
https://forum.openwrt.org/viewtopic.php?id=34878

[juhosg: fix checkpatch warnings, use the GENERIC_4M template]

Signed-off-by: bruno schwander <bruno@tinkerbox.org>

SVN-Revision: 30809
2012-03-04 16:09:13 +00:00
Gabor Juhos
44c8b396f9 ramips: board support for Asus RT-N10+
[juhosg: fix indentation in platform scripts, and remove debug
messages from 06_set_iface_mac]

Signed-off-by: Patrick van Staveren <trick@vanstaveren.us>

SVN-Revision: 30808
2012-03-04 16:09:11 +00:00
Gabor Juhos
72599f0c61 ramips: don't read RAMIPS_RX_CALC_IDX0 register in the loop
SVN-Revision: 30733
2012-02-26 10:54:13 +00:00
Gabor Juhos
100f76a010 ramips: raeth: add rx_info structure
This helps to reduce code size on RX path:

add/remove: 0/0 grow/shrink: 3/1 up/down: 68/-56 (12)
function                                     old     new   delta
ramips_eth_open                             1104    1144     +40
ramips_ring_free                             212     232     +20
ramips_eth_stop                              400     408      +8
ramips_eth_rx_hw                             648     592     -56

SVN-Revision: 30732
2012-02-26 10:54:12 +00:00
Gabor Juhos
32e7b1c7d9 ramips: raeth: add tx_info structure
This helps to reduce code size on TX path:

add/remove: 0/0 grow/shrink: 1/4 up/down: 56/-92 (-36)
function                                     old     new   delta
ramips_eth_open                             1048    1104     +56
ramips_eth_tx_housekeeping                   156     148      -8
ramips_ring_free                             224     212     -12
ramips_eth_stop                              420     400     -20
ramips_eth_hard_start_xmit                   480     428     -52

SVN-Revision: 30731
2012-02-26 10:54:10 +00:00
Gabor Juhos
30143b715c ramips: raeth: don't process disabled interrupts
Also rename the 'fe_int' variable.

SVN-Revision: 30713
2012-02-25 11:59:19 +00:00
Gabor Juhos
a18a821733 ramips: raeth: show interrupt statistics in debugfs
SVN-Revision: 30681
2012-02-22 13:06:44 +00:00
Gabor Juhos
214216c04d ramips: raeth: add debugfs support
SVN-Revision: 30680
2012-02-22 13:06:42 +00:00
Gabor Juhos
c1e4d709fa ramips: raeth: rename main source file
SVN-Revision: 30679
2012-02-22 13:06:41 +00:00
Gabor Juhos
5e6bc97d0c ramips: raeth: add missing Kconfig and Makefile
SVN-Revision: 30671
2012-02-21 09:44:30 +00:00
Gabor Juhos
3ba0f4e1ca ramips: move the ethernet driver into a separate directory
Also clean up the Kconfig symbols.

SVN-Revision: 30670
2012-02-21 09:26:43 +00:00
Gabor Juhos
a6d904b1d6 ramips: rename the spi driver
SVN-Revision: 30669
2012-02-21 09:26:41 +00:00
Gabor Juhos
dd001a4b0f ramips: rt3883: make rt3883_nand_data visible
SVN-Revision: 30655
2012-02-19 19:40:37 +00:00
Gabor Juhos
62f213eab9 ramips: merge 3.2 fixes
SVN-Revision: 30652
2012-02-19 17:52:23 +00:00
Gabor Juhos
e2ea72515f ramips: rt305x: nuke built-in MTD partition maps
SVN-Revision: 30650
2012-02-19 17:52:15 +00:00
Gabor Juhos
de6405c898 ramips: rt288x: nuke built-in MTD partition maps
SVN-Revision: 30649
2012-02-19 17:52:11 +00:00
Gabor Juhos
3489515a7e ramips: rt305x: add support for the Skyline SL-R7205 Wireless 3G router
[juhosg:
- don't switch back to 2.6.39
- update config-3.2
- change machine id to SL-R7205
- reorder case entries in platform scripts
- remove button hotplug script]

Signed-off-by: Haipoh Teoh <hpteoh@ceedtec.com>

SVN-Revision: 30645
2012-02-19 16:44:49 +00:00
Gabor Juhos
990ed96a2a ralink: rt3883: disable the 2GHz band on the RT-N56U
SVN-Revision: 30632
2012-02-18 17:36:21 +00:00
Gabor Juhos
5710530c41 ramips: rt3883: make rt3883_wlan_data visible
SVN-Revision: 30631
2012-02-18 17:36:16 +00:00
Gabor Juhos
dabca24361 ramips: rt3883: change eeprom file name
SVN-Revision: 30603
2012-02-16 20:06:21 +00:00
Gabor Juhos
00d963999d ramips: select HW_HAS_PCI on per-board basis
SVN-Revision: 30576
2012-02-16 08:17:54 +00:00
Gabor Juhos
fc967295ec ramips: rt3883: remove a stray character from rt3883.h
SVN-Revision: 30575
2012-02-16 08:17:53 +00:00
Gabor Juhos
b4af07d5c0 ramips: rt288x: don't register the PCI controller on each board
SVN-Revision: 30574
2012-02-16 08:17:52 +00:00
Gabor Juhos
f8a56dc8df ramips: raeth: separate ring allocation and setup
SVN-Revision: 30573
2012-02-16 08:17:50 +00:00
Gabor Juhos
49fc54be3d ramips: rt288x: fix PCI resource conflict
SVN-Revision: 30563
2012-02-15 21:19:02 +00:00
Florian Fainelli
37f8c19028 correct PCI IO/Mem resource swapping
SVN-Revision: 30562
2012-02-15 21:13:21 +00:00
Florian Fainelli
3ceebbba14 add Ralink V11ST-FE board support
This board is equipped with:
- 4MB of NOR Flash
- 32MB of SDRAM
- IC+ IP175C switch
- one Mini-PCI slot

SVN-Revision: 30561
2012-02-15 21:13:11 +00:00
Gabor Juhos
8b8d9a8336 ramips: raeth: add a helper function for skb allocation
SVN-Revision: 30555
2012-02-15 18:33:42 +00:00
Gabor Juhos
e57546de83 ramips: raeth: use netdev_alloc_skb
SVN-Revision: 30554
2012-02-15 18:33:41 +00:00
Gabor Juhos
064855314b ramips: raeth: add '__packed __aligned(4)' annotation to dma descritor structures
This helps GCC to generare more efficient code.

SVN-Revision: 30553
2012-02-15 18:33:40 +00:00
Gabor Juhos
8c95385d78 ramips: raeth: use 're' instead of 'priv' everywhere
SVN-Revision: 30552
2012-02-15 18:33:38 +00:00
Gabor Juhos
b3b79365f3 ramips: raeth: force link down in ramips_phy_stop
SVN-Revision: 30550
2012-02-15 13:47:52 +00:00
Gabor Juhos
3e7b461431 ramips: raeth: serialize ramips_link_adjust calls
SVN-Revision: 30549
2012-02-15 13:47:50 +00:00
Gabor Juhos
dcb13d4098 ramips: raeth: add PHYLIB support
SVN-Revision: 30547
2012-02-15 06:47:12 +00:00