summaryrefslogtreecommitdiffstats
path: root/target/linux/generic/files/drivers
Commit message (Collapse)AuthorAgeFilesLines
* rtl8366_smi: implement a function for detecting whether the attached switch ↵nbd2011-07-241-11/+69
| | | | | | is RTL8366S or RTL8366RB git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27755 3c298f89-4303-0410-b956-a3cf2f4a3e73
* rtl8366: unify rtl8366s and rtl8366rb platform datanbd2011-07-242-5/+5
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27754 3c298f89-4303-0410-b956-a3cf2f4a3e73
* fix the gpio_dev driver: remove existing forward port patches, use ↵nbd2011-07-011-3/+3
| | | | | | unlocked_ioctl on all platforms and fix the arguments to the ioctl handler (based on patch from #9198) git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27322 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [ledtrig-netdev]blogic2011-06-091-2/+2
| | | | | | | | we dont need 1024 bytes buffer. 128 bytes is enough. git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27143 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [PATCH v3] (respin) 802.1Q VLAN support for ADM6996M/ADM6996FCblogic2011-05-092-30/+653
| | | | | | | | | | | | | | | | | | | | | This patch adds 802.1Q VLAN support for the ADM6996M chip. The driver is loaded for both the FC and M model. It will detect which of the two chips is connected. The FC model is initialised, but no further functionality is offered. The PHY driver will always report "100 Mbit/s, link up", for both the M and FC models. This reflects the fact that the link between switch chip and Ethernet MAC is always on[1]. Further documentation can be found in the kernel's Documentation/networking/adm6996.txt Signed-of-By: Peter Lebbing <peter@digitalbrains.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26865 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ar8316: automatically detect whether port4 is used as PHY or as a switch portnbd2011-04-281-32/+61
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26778 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ar8216: support AR8316 rev 0 devicesnbd2011-04-281-0/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26776 3c298f89-4303-0410-b956-a3cf2f4a3e73
* swconfig: Replace SPIN_LOCK_UNLOCKED with DEFINE_SPINLOCKnbd2011-04-261-1/+1
| | | | | | | | | SPIN_LOCK_UNLOCKED has been deprecated since 2.6.19 and will get removed in 2.6.39, so replace it with DEFINE_SPINLOCK(). Signed-off-by: Jonas Gorski <jonas.gorski+openwrt@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26770 3c298f89-4303-0410-b956-a3cf2f4a3e73
* generic: rtl8366{s,rb}: remove the PHY driver.juhosg2011-04-122-104/+2
| | | | | | | | | | Since the PHY driver is only used for the WAN port and there is virtually no difference between it and the generic PHY driver, we can sefely remove it. Signed-off-by: Jonas Gorski <jonas.gorski+openwrt@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26600 3c298f89-4303-0410-b956-a3cf2f4a3e73
* rtl8306: do not overwrite registers in the phy fixup, it could mess up other ↵nbd2011-04-021-0/+6
| | | | | | switches (fixes #8911) git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26410 3c298f89-4303-0410-b956-a3cf2f4a3e73
* generic: rtl8366s: allow initial register values to be passed via platform_datajuhosg2011-01-261-0/+11
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25120 3c298f89-4303-0410-b956-a3cf2f4a3e73
* generic: rtl8366: fix build errorjuhosg2011-01-091-2/+2
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@24943 3c298f89-4303-0410-b956-a3cf2f4a3e73
* generic: rtl8366: enable vlans before enabling the portsjuhosg2011-01-084-1/+11
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@24939 3c298f89-4303-0410-b956-a3cf2f4a3e73
* generic: rtl8366: enable ports only after VLAN configuration is donejuhosg2011-01-084-8/+30
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@24938 3c298f89-4303-0410-b956-a3cf2f4a3e73
* generic: rtl8366: add enable_port helperjuhosg2011-01-083-0/+15
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@24937 3c298f89-4303-0410-b956-a3cf2f4a3e73
* generic: rtl8366_smi: init VLANs only in first switch initializationjuhosg2011-01-081-10/+30
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@24936 3c298f89-4303-0410-b956-a3cf2f4a3e73
* generic: rtl8366s: use correct bitmasks in sanity checksjuhosg2011-01-081-4/+4
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@24935 3c298f89-4303-0410-b956-a3cf2f4a3e73
* generic: rtl8366s: add vlan fid supportjuhosg2011-01-081-0/+7
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@24934 3c298f89-4303-0410-b956-a3cf2f4a3e73
* generic: rtl8366: add debugfs file for VLAN4K tablejuhosg2011-01-082-0/+60
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@24933 3c298f89-4303-0410-b956-a3cf2f4a3e73
* generic: rtl8366rb: use correct bitmasks in sanity checksjuhosg2011-01-081-4/+4
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@24930 3c298f89-4303-0410-b956-a3cf2f4a3e73
* generic: add LED trigger for USB device presence/activityjuhosg2010-12-171-0/+348
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@24646 3c298f89-4303-0410-b956-a3cf2f4a3e73
* generic: add rtl8366rb switch vlan fid supportjuhosg2010-11-243-7/+66
| | | | | | | | | | | Allows to use fids 0 to 7. Default is 0. Those who will use this don't forget to `set vlan fid` every time after `set vlan ports` if you want non default behavior. Minor changes. Version bump. Signed-off-by: Roman Yeryomin <roman@advem.lv> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@24125 3c298f89-4303-0410-b956-a3cf2f4a3e73
* generic: update gpio_buttons driverjuhosg2010-11-121-39/+55
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23984 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [kernel] fix mvswitch PHY polling setting (#8133)florian2010-11-041-1/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23862 3c298f89-4303-0410-b956-a3cf2f4a3e73
* rt8366*: use __devinit instead of __init for the probe function to fix a ↵nbd2010-10-212-2/+2
| | | | | | section mismatch git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23573 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [generic] unify extended vlan id swconfig attributes.jow2010-10-124-7/+7
| | | | | | | | AR8216 and PSB6970 used "pvid", IP17xx used "tag" and RTL8306 called it "vid". Change all to "vid" and annotate the description with the valid ID range. git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23419 3c298f89-4303-0410-b956-a3cf2f4a3e73
* generic: RTL8366S/RB: Fix autonegotiation for the WAN port.juhosg2010-09-272-0/+10
| | | | | | | | | | | | The RTL8366S/RB support connecting a second mac to it and using the 5th port as an independent phy. Therefore we need to handle autonegotiation changes for phy 4 like on a single phy device. This fixes #7980, verified on a WNDR3700. Signed-off-by: Jonas Gorski <jonas.gorski+openwrt@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23127 3c298f89-4303-0410-b956-a3cf2f4a3e73
* generic: add rtl8366rb switch port rate, port and qos enable/disable supportjuhosg2010-09-271-0/+210
| | | | | | Patch-by: Roman Yeryomin <roman@advem.lv> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23126 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [kernel] add switch driver for Lantiq PSB6970florian2010-09-041-0/+438
| | | | | | | | Tested on ifxmips based board. The PSB6970 is also known as the Infineon Tantos switch. Signed-off-by: Ithamar R. Adema <ithamar.adema@team-embedded.nl> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22914 3c298f89-4303-0410-b956-a3cf2f4a3e73
* rtl8366_smi: when setting VLAN ports, always initialize the PVID to ensure ↵nbd2010-08-311-0/+9
| | | | | | that the VLAN MC entry gets allocated. Fixes problems with tagged-only ports (#7795) git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22856 3c298f89-4303-0410-b956-a3cf2f4a3e73
* generic: rtl8366: allow use of VIDs 16-4095 if vlan4k is enabledjuhosg2010-08-182-4/+14
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22704 3c298f89-4303-0410-b956-a3cf2f4a3e73
* generic: rtl8366: add generic code to enable VLANsjuhosg2010-08-184-84/+95
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22703 3c298f89-4303-0410-b956-a3cf2f4a3e73
* generic: rtl8366: add enable_vlan{,4k} to smi_opsjuhosg2010-08-183-8/+14
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22702 3c298f89-4303-0410-b956-a3cf2f4a3e73
* generic: fix LED control on the RTL8366 switchesjuhosg2010-08-152-2/+2
| | | | | | * patch from #7713 git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22656 3c298f89-4303-0410-b956-a3cf2f4a3e73
* rtl8366: re-enable learning by default, disabling it broke switching ↵nbd2010-08-082-8/+92
| | | | | | | | | functionality. add a configuration option for dynamically enabling/disabling this feature. based on patch from #7637 git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22545 3c298f89-4303-0410-b956-a3cf2f4a3e73
* swconfig: cleanup of kernel drivers and interfacenbd2010-08-046-177/+183
| | | | | | | | - add some comments to a few data structures - add a switch_dev_ops data structure for attributes and callback to replace the stupid template memcpy - get rid of the switch_dev.priv pointer - using container_of() is better git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22476 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ip17xx: r21709 broke VLAN functionality on the IP175C switch, add back ↵jow2010-08-031-0/+1
| | | | | | mdelay() to wait before reading back the phy state, fixes ethernet on the DIR-300 and possibly others git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22468 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [kernel] pwm: export the generic pwm api as moduleclaudio2010-07-191-1/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22297 3c298f89-4303-0410-b956-a3cf2f4a3e73
* generic: rtl8366: add debugfs file to show PVIDsjuhosg2010-07-151-0/+42
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22206 3c298f89-4303-0410-b956-a3cf2f4a3e73
* generic: rtl8366: make rtl8366_set_vlan staticjuhosg2010-07-152-5/+2
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22205 3c298f89-4303-0410-b956-a3cf2f4a3e73
* generic: rtl8366: add common rtl8366_sw_{get,set}_vlan_ports functionsjuhosg2010-07-154-106/+57
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22204 3c298f89-4303-0410-b956-a3cf2f4a3e73
* generic: rtl8366: add common rtl8366_sw_get_vlan_infojuhosg2010-07-154-84/+47
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22203 3c298f89-4303-0410-b956-a3cf2f4a3e73
* generic: rtl8366: use smi->num_ports and smi->ops->get_vlan_4kjuhosg2010-07-152-8/+8
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22202 3c298f89-4303-0410-b956-a3cf2f4a3e73
* generic: rtl8366: add is_vlan_valid function to smi_opsjuhosg2010-07-153-6/+25
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22201 3c298f89-4303-0410-b956-a3cf2f4a3e73
* generic: rtl8366: add common rtl8366_sw_get_port_mib functionjuhosg2010-07-154-68/+39
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22200 3c298f89-4303-0410-b956-a3cf2f4a3e73
* generic: rtl8366: generealize rtl8366{s,rb}_sw_get_port_mib functionsjuhosg2010-07-152-8/+10
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22199 3c298f89-4303-0410-b956-a3cf2f4a3e73
* generic: rtl8366: make rtl8366_{g,s}et_pvid staticjuhosg2010-07-152-44/+41
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22198 3c298f89-4303-0410-b956-a3cf2f4a3e73
* generic: rtl8366: add common rtl8366_sw_{get,set}_port_pvid functionsjuhosg2010-07-154-28/+21
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22197 3c298f89-4303-0410-b956-a3cf2f4a3e73
* generic: rtl8366: add setup to rtl8366_smi_ops structjuhosg2010-07-154-8/+11
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22196 3c298f89-4303-0410-b956-a3cf2f4a3e73
* generic: rtl8366: introduce rtl8366_smi_allocjuhosg2010-07-154-9/+20
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22195 3c298f89-4303-0410-b956-a3cf2f4a3e73