adrian 41ae7c33b3 Flesh out configurable hardware based LED blinking.
The hardware (MAC) LED blinking involves a few things:

* Selecting which GPIO pins map to the MAC "power" and "network" lines;
* Configuring the MAC LED state (associated, scanning, idle);
* Configuring the MAC LED blinking type and speed.

The AR5416 HAL configures the normal blinking setup - ie, blink rate based
on TX/RX throughput.  The default AR5212 HAL doesn't program in any
specific blinking type, but the default of 0 is the same.

This code introduces a few things:

* The hardware led override is configured via sysctl 'hardled';
* The MAC network and power LED GPIO lines can be set, or left at -1
  if needed.  This is intended to allow only one of the hardware MUX
  entries to be configured (eg for PCIe cards which only have one LED
  exposed.)

TODO:

* For AR2417, the software LED blinking involves software blinking the
  Network LED.  For the AR5416 and later, this can just be configured
  as a GPIO output line.  I'll chase that up with a subsequent commit.

* Add another software LED blink for "Link", separate from "activity",
  which blinks based on the association state.  This would make my
  D-Link DWA-552 have consistent and useful LED behaviour (as they're
  marked "Link" and "Activity."

* Don't expose the hardware LED override unless it's an AR5416 or later,
  as the previous generation hardware doesn't have this multiplexing
  setup.
2011-12-26 07:47:05 +00:00
..
2011-12-17 10:23:17 +00:00
2011-10-13 20:06:19 +00:00
2011-12-17 10:23:17 +00:00
2011-12-17 10:23:17 +00:00
2011-12-15 06:29:13 +00:00
2010-10-13 17:38:23 +00:00
2010-10-13 17:38:23 +00:00
2011-02-21 09:01:34 +00:00
2011-12-23 01:39:10 +00:00
2011-12-16 02:09:51 +00:00
2011-11-23 20:27:26 +00:00
2011-06-28 08:36:48 +00:00
2011-02-21 09:01:34 +00:00
2011-12-15 06:29:13 +00:00
MFC
2011-05-16 16:34:03 +00:00
2011-12-17 10:23:17 +00:00
2011-12-17 10:23:17 +00:00
2011-12-17 10:23:17 +00:00
2011-12-17 10:23:17 +00:00
2011-02-21 09:01:34 +00:00
2011-10-18 08:09:44 +00:00
2011-03-24 08:56:12 +00:00
2011-12-17 10:23:17 +00:00
2011-05-15 13:17:08 +00:00
2011-12-17 10:23:17 +00:00
2011-06-28 08:36:48 +00:00
MFC
2011-05-13 20:58:48 +00:00
2011-02-21 09:01:34 +00:00
2011-12-17 10:23:17 +00:00
2011-10-07 08:59:54 +00:00
2011-12-15 05:07:16 +00:00
2011-12-15 06:29:13 +00:00
2011-12-24 00:22:21 +00:00
2011-12-22 15:13:32 +00:00
2011-10-18 08:09:44 +00:00
2011-11-23 05:34:01 +00:00
2011-02-21 09:01:34 +00:00
2011-12-17 10:23:17 +00:00
2011-12-17 10:23:17 +00:00
2011-11-23 20:27:26 +00:00