Files
OpenCellular/include
Randall Spangler ff8c8fee79 rambi: Control LEDs using PWM
Rambi has a pair of LEDs which are attached to the PWM fan controller.
Add support for them.  Also add a generic 'pwmduty' command which can
be used to get/set the duty cycle for any PWM channel.

Also fix rounding errors in pwm module, so that set/get duty doesn't
keep rounding down.

BUG=chrome-os-partner:22895
BRANCH=none
TEST=Boot rambi. LEDs are off.
     pwmduty -> both are 0%
     pwmduty 0 10 -> green LED on dimly
     pwmduty 1 10 -> red LED on dimly
     pwmduty 0 99 -> green LED on brightly
     pwmduty 1 100 -> red LED on brightly
     pwmduty 1 0 -> red LED off
     pwmduty 1 -1 -> red LED turns back on because fan controller is disabled
     pwmduty -> channel 0 at 99%, channel 1 disabled
     Build all platforms.  Pass all unit tests.

Change-Id: Ib0a6289a757554e696a9a0153a85bdc34e2ee2ae
Signed-off-by: Randall Spangler <rspangler@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/172094
2013-10-08 20:41:32 +00:00
..
2013-04-30 10:38:43 -07:00
2013-04-05 14:28:42 -07:00
2013-08-30 15:39:31 +00:00
2013-09-05 03:10:09 +00:00
2013-08-07 17:24:09 -07:00
2013-09-14 18:30:43 +00:00
2013-09-10 23:46:07 +00:00
2011-12-07 19:10:02 +00:00
2012-10-26 09:49:38 -07:00
2013-04-24 00:06:00 -07:00
2013-10-08 20:41:32 +00:00
2013-07-24 15:50:19 -07:00
2013-06-26 09:08:23 -07:00
2012-10-30 12:42:46 -07:00
2013-06-18 10:31:09 -07:00
2013-08-07 12:43:48 -07:00
2012-11-04 20:27:57 -08:00
2011-12-07 19:10:02 +00:00
2012-10-25 14:12:11 -07:00
2013-07-10 11:16:18 -07:00
2011-12-07 19:10:02 +00:00
2012-10-25 14:12:10 -07:00
2013-08-27 23:20:33 +00:00
2012-10-25 17:03:44 -07:00
2012-08-09 17:40:37 -07:00
2013-07-16 12:06:30 -07:00
2013-07-24 14:05:17 -07:00
2012-10-29 16:52:49 -07:00
2013-09-16 23:31:07 +00:00