Gabor Juhos
72599f0c61
ramips: don't read RAMIPS_RX_CALC_IDX0 register in the loop
...
SVN-Revision: 30733
13 years ago
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
13 years ago
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
13 years ago
Gabor Juhos
30143b715c
ramips: raeth: don't process disabled interrupts
...
Also rename the 'fe_int' variable.
SVN-Revision: 30713
13 years ago
Gabor Juhos
a18a821733
ramips: raeth: show interrupt statistics in debugfs
...
SVN-Revision: 30681
13 years ago
Gabor Juhos
214216c04d
ramips: raeth: add debugfs support
...
SVN-Revision: 30680
13 years ago
Gabor Juhos
c1e4d709fa
ramips: raeth: rename main source file
...
SVN-Revision: 30679
13 years ago
Gabor Juhos
5e6bc97d0c
ramips: raeth: add missing Kconfig and Makefile
...
SVN-Revision: 30671
13 years ago
Gabor Juhos
3ba0f4e1ca
ramips: move the ethernet driver into a separate directory
...
Also clean up the Kconfig symbols.
SVN-Revision: 30670
13 years ago
Gabor Juhos
a6d904b1d6
ramips: rename the spi driver
...
SVN-Revision: 30669
13 years ago
Gabor Juhos
62f213eab9
ramips: merge 3.2 fixes
...
SVN-Revision: 30652
13 years ago
Gabor Juhos
f8a56dc8df
ramips: raeth: separate ring allocation and setup
...
SVN-Revision: 30573
13 years ago
Gabor Juhos
8b8d9a8336
ramips: raeth: add a helper function for skb allocation
...
SVN-Revision: 30555
13 years ago
Gabor Juhos
e57546de83
ramips: raeth: use netdev_alloc_skb
...
SVN-Revision: 30554
13 years ago
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
13 years ago
Gabor Juhos
8c95385d78
ramips: raeth: use 're' instead of 'priv' everywhere
...
SVN-Revision: 30552
13 years ago
Gabor Juhos
b3b79365f3
ramips: raeth: force link down in ramips_phy_stop
...
SVN-Revision: 30550
13 years ago
Gabor Juhos
3e7b461431
ramips: raeth: serialize ramips_link_adjust calls
...
SVN-Revision: 30549
13 years ago
Gabor Juhos
dcb13d4098
ramips: raeth: add PHYLIB support
...
SVN-Revision: 30547
13 years ago
Gabor Juhos
97e641a0e6
ramips: raeth: enable MDIO code for RT3883
...
SVN-Revision: 30497
13 years ago
Gabor Juhos
e532fa5fd4
ramips: add preliminary support for the RT3662/RT3883 SoCs
...
SVN-Revision: 30495
13 years ago
Gabor Juhos
388013b0ce
ramips: include 'linux/module.h' in the ramips_spi driver
...
SVN-Revision: 30475
13 years ago
Gabor Juhos
4e1b870f3e
ramips: add MDIO bus support for RT288X
...
SVN-Revision: 30455
13 years ago
Gabor Juhos
8916c02b47
ramips: raeth: make debugging messages configurable
...
SVN-Revision: 30450
13 years ago
Gabor Juhos
aac3ad4c0e
ramips: raeth: use device pointer in DMA API calls
...
SVN-Revision: 30449
13 years ago
Gabor Juhos
1fd8724e94
ramips: raeth: add netdev pointer to private structure
...
SVN-Revision: 30448
13 years ago
Gabor Juhos
c6fa11d00f
ramips: raeth: cleanup DMA API usage in ramips_eth_hard_start_xmit
...
SVN-Revision: 30447
13 years ago
Gabor Juhos
2d055f130e
ramips: raeth: unmap rx DMA address in ramips_cleanup_dma
...
SVN-Revision: 30446
13 years ago
Gabor Juhos
7bd7ddcf4e
ramips: raeth: add rx_dma array to store the DMA address of the rx packets
...
SVN-Revision: 30445
13 years ago
Gabor Juhos
647af823d9
ramips: raeth: use dma_addr_t for the descriptors
...
SVN-Revision: 30444
13 years ago
Gabor Juhos
df5892d1f1
ramips: raeth: unmap DMA memory when a packet is received
...
SVN-Revision: 30443
13 years ago
Gabor Juhos
617954ca5d
ramips: raeth: add a temporary pktlen variable
...
SVN-Revision: 30442
13 years ago
Gabor Juhos
d1d492eaf9
ramips: raeth: protect macro parameters
...
SVN-Revision: 30441
13 years ago
Gabor Juhos
8250692359
ramips: raeth: indicate dropped packets in stats
...
SVN-Revision: 30440
13 years ago
Gabor Juhos
c67adbbddb
ramips: raeth: use the NUM_TX_DESC for the tx_skb array
...
SVN-Revision: 30439
13 years ago
John Crispin
a2708d11e8
ramips: Rework ramips_eth to not require irqsave locking anymore
...
Previously the tx housekeeping was done in a spin_lock_irqsave critical
section which causes irqs to be disabled during that time. Since the
housekeeping is already prepared to be scheduled as a tasklet process
the housekeeping only in softirq context and revise the locking between
the tx path and the housekeeping tasklet by using a normal spin_lock
which in most situations will be a NOP anyway.
This makes sure that interrupts are only disabled for a short time
since in the worst case the housekeeping might have to free up to 256
skbs.
Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com>
SVN-Revision: 29762
13 years ago
Gabor Juhos
7b1e525b56
ramips: initial support for Sitecom WL-351 v1 002
...
This add support for the Sitecom WL-351 v1 002.
In principle the Engenius ESR9850 should also work with this, but I
don't have the hardware to test it.
Since an external gigabit switch (RTL8366RB) is used,
I had to modify the ramips_esw driver to add a 'bypass' mode, which
just configures it to not filter the vlan tags.
Also two initialization words (FCT2 and FPA2) are set to different
values by u-boot than what the driver is using and it only seems to
work correctly when they not overridden by the driver, so I
added them to the platform specific data as reg_initval_fct2 and
reg_initval_fpa2.
With this wired lan works as expected, however I'm still having some
trouble with the wireless lan:
It only works after I rmmod & re-insmod rt2800pci and then
reconfigure it in the webinterface, but not directly after
rebooting.
The symptom of this is wpad saying:
Dec 20 15:45:09 OpenWrt daemon.info hostapd: wlan1: STA <notebookmac> IEEE 802.11: associated (aid 1)
Dec 20 15:45:09 OpenWrt daemon.info hostapd: wlan1: STA <notebookmac> WPA: pairwise key handshake completed (RSN)
Dec 20 15:45:22 OpenWrt daemon.info hostapd: wlan1: STA <notebookmac> IEEE 802.11: authenticated
But wpa_supplicant on the client saying:
Authentication with <wl351mac> timed out.
Signed-off-by: Tobias Diedrich <ranma+openwrt@tdiedrich.de>
SVN-Revision: 29604
13 years ago
Gabor Juhos
2cb946f5b4
ramips: add support for the Senao/EnGenius ESR-9753 board
...
Signed-off-by: Artur Wronowski <arteqw@gmail.com>
SVN-Revision: 29603
13 years ago
Gabor Juhos
169d68c98c
ramips: rt305x: add dwc_otg driver
...
Based on a patch by Layne Edwards <ledwards@astrumtech.net>
SVN-Revision: 27997
13 years ago
Gabor Juhos
1ebcf03789
ramips: allow to specify port layout for the switch of the RT305x/RT3350
...
Based on a patch by Roman Yeryomin <roman@advem.lv>
SVN-Revision: 27990
13 years ago
Gabor Juhos
57122e7ccc
ramips: add SPI controller driver
...
Based on a patch by Sergiy <piratfm@gmail.com>
SVN-Revision: 27809
13 years ago
Gabor Juhos
381d7f05af
ramips: fix a section mismatch warning
...
SVN-Revision: 27382
14 years ago
Gabor Juhos
16366feafb
ramips: add watchdog driver
...
SVN-Revision: 25126
14 years ago
Gabor Juhos
b99a637795
ramips: ramips_esw: fix typos
...
Patch from #8577 .
SVN-Revision: 24898
14 years ago
Gabor Juhos
502d21dc2a
ramips: ramips_esw: add more definitions
...
SVN-Revision: 24340
14 years ago
Gabor Juhos
bf58ef7c6d
ramips: ramips_esw: add helper function to set pvid
...
SVN-Revision: 24339
14 years ago
Gabor Juhos
692d379b50
ramips: ramips_esw: add helper function to set vlan members
...
SVN-Revision: 24338
14 years ago
Gabor Juhos
f7c3f91074
ramips: ramips_esw: add helper function to set VLAN id
...
SVN-Revision: 24337
14 years ago
Gabor Juhos
0d2ad7a816
ramips: ramips_esw: introduce rt305x_esw_rmw{,_raw} function
...
SVN-Revision: 24336
14 years ago
Gabor Juhos
7b878dde4b
ramips: ramips_esw: use rt305x_esw prefix in function names
...
SVN-Revision: 24335
14 years ago