2009/1/10 Nick Kossifidis <mickfl...@gmail.com>: > 2009/1/9 Bob Copeland <m...@bobcopeland.com>: >> On Wed, Jan 7, 2009 at 10:39 AM, Bob Copeland <m...@bobcopeland.com> wrote: >>> We're setting gpios for LEDs (and eventually rfkill) mostly by trial >>> and error. Does Atheros happen to know which laptops/chipsets use which >>> pins, or is it completely up to the OEM? Should this just be configurable >>> via sysfs or modparam? >> >> It seems there would be two things at play - which chipset gpios are wired >> to which pins on the interface card, and which pins on the interface socket >> in the laptop are wired to the case (for minipci at least there are a few >> pins reserved for wlan leds, pci cards might have LEDs on the card itself). >> >> So, I'll add a modparam for now, we can phase out the older IBM check at >> some point perhaps. >> > > Well there are 2 kinds of LEDs > > a) LED wired on LED pins (controled via ledstate code -under devel) > b) LED wired on GPIO pins (controled by software using gpio controls) > > We don't worry about a because it's standard and it's controled by the > card itself, b is our problem. If we consider that we know where > rfkill switch is connected from eeprom, we can try and guess where led > is connected. Most of the times eg. rf-kill switch is connected on pin > 0 but in Tobias's case there is no rfkill switch on his card so led is > connected on pin 0 instead. This makes sense, we can try and check > rfkill pin and set the other one as the led pin, i don't think that > vendors will use gpio pins above 1 (if they do we can handle it as we > do right now). > > Luis, Atheros have an ndis driver for windows that supports cards from > various vendors, is it possible to get any vendor specific infos such > as the led's pin from this driver ?
and polarity of course (which we can't guess but it makes sense to be default to 1) -- GPG ID: 0xD21DB2DB As you read this post global entropy rises. Have Fun ;-) Nick _______________________________________________ ath5k-devel mailing list ath5k-devel@lists.ath5k.org https://lists.ath5k.org/mailman/listinfo/ath5k-devel