aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/generic/files/drivers
Commit message (Collapse)AuthorAgeFilesLines
* generic: rtl8366s: allow initial register values to be passed via platform_dataGabor Juhos2011-01-261-0/+11
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25120 3c298f89-4303-0410-b956-a3cf2f4a3e73
* generic: rtl8366: fix build errorGabor Juhos2011-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 portsGabor Juhos2011-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 doneGabor Juhos2011-01-084-8/+30
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@24938 3c298f89-4303-0410-b956-a3cf2f4a3e73
* generic: rtl8366: add enable_port helperGabor Juhos2011-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 initializationGabor Juhos2011-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 checksGabor Juhos2011-01-081-4/+4
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@24935 3c298f89-4303-0410-b956-a3cf2f4a3e73
* generic: rtl8366s: add vlan fid supportGabor Juhos2011-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 tableGabor Juhos2011-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 checksGabor Juhos2011-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/activityGabor Juhos2010-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 supportGabor Juhos2010-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 driverGabor Juhos2010-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)Florian Fainelli2010-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 ↵Felix Fietkau2010-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.Jo-Philipp Wich2010-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.Gabor Juhos2010-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 supportGabor Juhos2010-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 PSB6970Florian Fainelli2010-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 ↵Felix Fietkau2010-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 enabledGabor Juhos2010-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 VLANsGabor Juhos2010-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_opsGabor Juhos2010-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 switchesGabor Juhos2010-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 ↵Felix Fietkau2010-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 interfaceFelix Fietkau2010-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 ↵Jo-Philipp Wich2010-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 moduleClaudio Mignanti2010-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 PVIDsGabor Juhos2010-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 staticGabor Juhos2010-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 functionsGabor Juhos2010-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_infoGabor Juhos2010-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_4kGabor Juhos2010-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_opsGabor Juhos2010-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 functionGabor Juhos2010-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 functionsGabor Juhos2010-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 staticGabor Juhos2010-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 functionsGabor Juhos2010-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 structGabor Juhos2010-07-154-8/+11
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22196 3c298f89-4303-0410-b956-a3cf2f4a3e73
* generic: rtl8366: introduce rtl8366_smi_allocGabor Juhos2010-07-154-9/+20
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22195 3c298f89-4303-0410-b956-a3cf2f4a3e73
* generic: rtl8366: get rid of private rtl8366{s,rb} structsGabor Juhos2010-07-152-84/+42
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22194 3c298f89-4303-0410-b956-a3cf2f4a3e73
* generic: rtl8366: move switch device to the rtl8366_smi structGabor Juhos2010-07-153-22/+15
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22193 3c298f89-4303-0410-b956-a3cf2f4a3e73
* generic: rtl8366: get rid of private vlan_{mc,4k} structsGabor Juhos2010-07-152-277/+148
| | | | | | | | | The usage of bitfields causes problems in Little-Endian mode. Remove them and manipulate the bits directly in the appropriate functions. This change also reduces the size of the binary a bit. git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22192 3c298f89-4303-0410-b956-a3cf2f4a3e73
* generic: rtl8366: use SWITCH_TYPE_NOVAL for reset_mib attributesGabor Juhos2010-07-152-23/+7
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22191 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [kernel] pwm: use coherent naming to avoid conflictsClaudio Mignanti2010-07-122-1/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22142 3c298f89-4303-0410-b956-a3cf2f4a3e73
* generic: rtl8366: enable VLAN ingress filteringGabor Juhos2010-07-022-0/+15
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22044 3c298f89-4303-0410-b956-a3cf2f4a3e73
* generic: rtl8366: minor cleanupGabor Juhos2010-06-282-22/+16
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21985 3c298f89-4303-0410-b956-a3cf2f4a3e73
* generic: rtl8366: add common read_debugfs_mibs functionGabor Juhos2010-06-283-144/+56
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21984 3c298f89-4303-0410-b956-a3cf2f4a3e73
* generic: rtl8366: standardize read_debugfs_mibs functionsGabor Juhos2010-06-283-22/+44
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21983 3c298f89-4303-0410-b956-a3cf2f4a3e73
* generic: rtl8366: use common rtl8366_mib_counter structureGabor Juhos2010-06-283-48/+42
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21982 3c298f89-4303-0410-b956-a3cf2f4a3e73