summaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/files/drivers
Commit message (Collapse)AuthorAgeFilesLines
* ralink: add xhci driverJohn Crispin2014-01-1911-0/+4853
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 39328
* move files to files-3.7John Crispin2013-04-0327-28152/+0
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 36161
* ramips: remove __dev_{init,exit} annotationsGabor Juhos2013-02-252-5/+5
| | | | | | Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 35798
* fix for non-blinking LAN LEDsJohn Crispin2013-01-281-0/+4
| | | | | | https://dev.openwrt.org/ticket/12830 SVN-Revision: 35359
* ramips: convert to use {e,o}hci-platform driverGabor Juhos2012-12-222-323/+0
| | | | | | Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 34843
* ramips: ramips_eth: use Kconfig definition to enable debugGabor Juhos2012-11-251-1/+1
| | | | | | | | | | The Kconfig identifier to enable debugging in the driver was different from the actually used one. Fix that. Signed-off-by: Paul Fertser <fercerpav@gmail.com> Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 34332
* move ethernet hw init to init/uninit functionsJohn Crispin2012-11-121-17/+29
| | | | | | | | | This should fix the stalled irq problem seen by several people. This is not the real fix, but rather moves the bug to the un/init patch of the driver. The real bug still needs to be fixed, but this workaround should be suffcient to make the ethernet stable. SVN-Revision: 34177
* add ethernet support for rt5350John Crispin2012-09-252-18/+106
| | | | SVN-Revision: 33548
* make ramips ethernet use a register mapping tableJohn Crispin2012-09-251-29/+79
| | | | SVN-Revision: 33547
* ramips: Add missing andmask to ramips_esw register read for recv_good value.Gabor Juhos2012-09-051-1/+3
| | | | | | | | | | | | | Add missing andmask to ramips_esw register read for recv_good value. Without the mask, recv_bad leaks into the recv_good packet count. Didn't notice the bug before since you don't usually get bad packets, so I only saw it when I was playing with overlength packets earlier... Signed-off-by: Tobias Diedrich <ranma+openwrt@tdiedrich.de> SVN-Revision: 33322
* ramips: Use doubletagging to disable ramips_esw vlan by default, it seems ↵Gabor Juhos2012-09-051-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | more reliable. Use doubletagging to disable ramips_esw vlan by default, it seems more reliable. Daniel Golle found an issue where sometimes (possibly only for RT3352) the default vlan disable method (clearing en_vlan, untag, doubletag and putting all ports into vlan 0) doesn't work and the packets get sent out vlan-tagged with vlan 0. Instead switch to using the doubletagging method (allow doubletagged packets, put all ports into vlan 0 with untag enabled) by default. Unless someone figures out a way to really globally disable vlan for this switch, this seems like the best (most reliable) option. I did some tests regarding maximum packet size and did not see any difference between the two methods, both allow for slightly bigger packets than the ramips_main.c ethernet driver (ping stops going through above "ping -s 1472" (1514 bytes), on the switch packets are recv_good until "ping -s 1490", or about 1532 bytes). Signed-off-by: Tobias Diedrich <ranma+openwrt@tdiedrich.de> SVN-Revision: 33321
* ramips: Power down phy on disabled switch portsGabor Juhos2012-08-291-5/+67
| | | | | | | | | | | | | | Power down phy on disabled switch ports. Haven't measured this myself yet, but according to this http://www.8devices.com/community/viewtopic.php?f=6&t=156 it can save about 300mW of power. [juhosg: fix checkpatch warning] Signed-off-by: Tobias Diedrich <ranma+openwrt@tdiedrich.de> SVN-Revision: 33304
* ramips: Rename POC registersGabor Juhos2012-08-291-31/+31
| | | | | | | | | | | | | | | | | | Rename POC registers. The current code uses POC1-POC3. The datasheet uses: POC1: Port Control 0 POC1: Port Control 1 POC2: Port Control 2 So the first POC1 is a typo that should have been POC0, rename the registers to POC0-POC2 accordingly. Signed-off-by: Tobias Diedrich <ranma+openwrt@tdiedrich.de> SVN-Revision: 33302
* ramips: Minor ramips_esw.c cleanupGabor Juhos2012-08-291-59/+3
| | | | | | | | | | | | Stop handling VLAN setup in the kernel. Removes the obsolete RT305X_ESW_VLAN_CONFIG_BYPASS option I added for WL-351 and add some extra comments. Also removes the en_vlan per-port flag that isn't very useful really, it now is only controlled by the global enable_vlan flag. Signed-off-by: Tobias Diedrich <ranma+openwrt@tdiedrich.de> SVN-Revision: 33301
* ramips: Add swconfig support to ramips_esw.cGabor Juhos2012-08-292-35/+755
| | | | | | | | | | | | | | | | | | | Add swconfig support to ramips_esw.c This patch adds swconfig support for ramips_esw: Tested on both D-LINK DIR-300 B1 and Sitecom WL-351 (external rtl8366rb on internal port 5). I've made sure that in the enable_vlan=0 case it behaves like a dumb switch, so external switches should work fine with vlans and verified this on the WL-351. The current state shown by swconfig is always read directly from HW registers, new settings only show after 'swconfig dev rt305x set apply'. Signed-off-by: Tobias Diedrich <ranma+openwrt@tdiedrich.de> SVN-Revision: 33299
* ramips: ramips_esw.c indentation cleanupGabor Juhos2012-08-291-11/+11
| | | | | | | | | | Minor indentation cleanup. Prepare for the main swconfig patch by cleaning up indentation a bit. Signed-off-by: Tobias Diedrich <ranma+openwrt@tdiedrich.de> SVN-Revision: 33298
* ramips: watchdog: use maximum possible timeout by defaultGabor Juhos2012-08-121-6/+6
| | | | | | | | | | | | | As the userspace has no means to determine the maximum possible timeout, use that as the default and let the userspace lower it when necessary. As the result the usual OpenWrt install (with busybox's watchdog trying to set the timeout to 60s on start) is using a 33s timeout on an RT3052 clocked at 384MHz instead of the current 20s default. Signed-off-by: Paul Fertser <fercerpav@gmail.com> SVN-Revision: 33144
* DWC otg usb: compilation fixes and trivial bugfix in slave modeJohn Crispin2012-07-245-5/+45
| | | | | | Signed-of-by: Nikolai Zhubr <n-a-zhubr@yandex.ru> SVN-Revision: 32823
* ramips: Add byte queue limits support to net/ethernet/ramips_main.cGabor Juhos2012-05-231-0/+8
| | | | | | | | | | | | | | Add byte queue limits support to net/ethernet/ramips_main.c "Byte queue limits are a mechanism to limit the size of the transmit hardware queue on a NIC by number of bytes. The goal of these byte limits is too reduce latency (HOL blocking) caused by excessive queuing in hardware (aka buffer bloat) without sacrificing throughput." Signed-off-by: Tobias Diedrich <ranma+openwrt@tdiedrich.de> SVN-Revision: 31844
* ramips: don't read RAMIPS_RX_CALC_IDX0 register in the loopGabor Juhos2012-02-261-1/+3
| | | | SVN-Revision: 30733
* ramips: raeth: add rx_info structureGabor Juhos2012-02-262-24/+57
| | | | | | | | | | | | | 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
* ramips: raeth: add tx_info structureGabor Juhos2012-02-262-19/+55
| | | | | | | | | | | | | | 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
* ramips: raeth: don't process disabled interruptsGabor Juhos2012-02-251-5/+11
| | | | | | Also rename the 'fe_int' variable. SVN-Revision: 30713
* ramips: raeth: show interrupt statistics in debugfsGabor Juhos2012-02-223-0/+105
| | | | SVN-Revision: 30681
* ramips: raeth: add debugfs supportGabor Juhos2012-02-225-1/+91
| | | | SVN-Revision: 30680
* ramips: raeth: rename main source fileGabor Juhos2012-02-222-0/+2
| | | | SVN-Revision: 30679
* ramips: raeth: add missing Kconfig and MakefileGabor Juhos2012-02-212-0/+18
| | | | SVN-Revision: 30671
* ramips: move the ethernet driver into a separate directoryGabor Juhos2012-02-213-0/+0
| | | | | | Also clean up the Kconfig symbols. SVN-Revision: 30670
* ramips: rename the spi driverGabor Juhos2012-02-211-0/+0
| | | | SVN-Revision: 30669
* ramips: merge 3.2 fixesGabor Juhos2012-02-191-1/+1
| | | | SVN-Revision: 30652
* ramips: raeth: separate ring allocation and setupGabor Juhos2012-02-161-44/+90
| | | | SVN-Revision: 30573
* ramips: raeth: add a helper function for skb allocationGabor Juhos2012-02-151-6/+16
| | | | SVN-Revision: 30555
* ramips: raeth: use netdev_alloc_skbGabor Juhos2012-02-151-2/+3
| | | | SVN-Revision: 30554
* ramips: raeth: add '__packed __aligned(4)' annotation to dma descritor ↵Gabor Juhos2012-02-151-2/+2
| | | | | | | | structures This helps GCC to generare more efficient code. SVN-Revision: 30553
* ramips: raeth: use 're' instead of 'priv' everywhereGabor Juhos2012-02-151-73/+73
| | | | SVN-Revision: 30552
* ramips: raeth: force link down in ramips_phy_stopGabor Juhos2012-02-151-7/+6
| | | | SVN-Revision: 30550
* ramips: raeth: serialize ramips_link_adjust callsGabor Juhos2012-02-151-0/+8
| | | | SVN-Revision: 30549
* ramips: raeth: add PHYLIB supportGabor Juhos2012-02-152-8/+220
| | | | SVN-Revision: 30547
* ramips: raeth: enable MDIO code for RT3883Gabor Juhos2012-02-131-2/+2
| | | | SVN-Revision: 30497
* ramips: add preliminary support for the RT3662/RT3883 SoCsGabor Juhos2012-02-132-0/+323
| | | | SVN-Revision: 30495
* ramips: include 'linux/module.h' in the ramips_spi driverGabor Juhos2012-02-121-0/+1
| | | | SVN-Revision: 30475
* ramips: add MDIO bus support for RT288XGabor Juhos2012-02-112-2/+154
| | | | SVN-Revision: 30455
* ramips: raeth: make debugging messages configurableGabor Juhos2012-02-111-3/+9
| | | | SVN-Revision: 30450
* ramips: raeth: use device pointer in DMA API callsGabor Juhos2012-02-111-11/+12
| | | | SVN-Revision: 30449
* ramips: raeth: add netdev pointer to private structureGabor Juhos2012-02-112-0/+2
| | | | SVN-Revision: 30448
* ramips: raeth: cleanup DMA API usage in ramips_eth_hard_start_xmitGabor Juhos2012-02-111-5/+4
| | | | SVN-Revision: 30447
* ramips: raeth: unmap rx DMA address in ramips_cleanup_dmaGabor Juhos2012-02-111-1/+4
| | | | SVN-Revision: 30446
* ramips: raeth: add rx_dma array to store the DMA address of the rx packetsGabor Juhos2012-02-112-10/+17
| | | | SVN-Revision: 30445
* ramips: raeth: use dma_addr_t for the descriptorsGabor Juhos2012-02-112-9/+10
| | | | SVN-Revision: 30444
* ramips: raeth: unmap DMA memory when a packet is receivedGabor Juhos2012-02-111-0/+4
| | | | SVN-Revision: 30443