Files
OpenCellular/test
Bill Richardson 88503ab4ec Provide multiple fan support within the EC itself
This adds explicit "int fan" args to the exported functions from
common/fan.c: fan_set_percent_needed() and fan_percent_to_rpm(). Within that
file, multiple fans are handled independently.

This is not complete, though. Host commands and sysjump support still only
handle a single fan, so at the moment multiple fans are treated identically
in those cases.

BUG=chrome-os-partner:23530
BRANCH=none
TEST=manual

All boards build, "make runtests" passes.

On a multi-fan system, the EC command "faninfo" displays multiple results:

  > faninfo
  Fan 0 Actual:    0 rpm
  Fan 0 Target:    0 rpm
  Fan 0 Duty:   0%
  Fan 0 Status: 0 (not spinning)
  Fan 0 Mode:   rpm
  Fan 0 Auto:   yes
  Fan 0 Enable: yes

  Fan 1 Actual:    0 rpm
  Fan 1 Target:    0 rpm
  Fan 1 Duty:   0%
  Fan 1 Status: 0 (not spinning)
  Fan 1 Mode:   rpm
  Fan 1 Auto:   no
  Fan 1 Enable: no
  >

and the "fanduty", "fanset", and "fanauto" all require the fan number as the
first arg:

  > fanduty 0 30
  Setting fan 0 duty cycle to 30%
  > fanset 1 2000
  Setting fan 1 rpm target to 2000
  > fanauto 0
  > fanauto 1

On single-fan systems, there is no visible change.

Change-Id: Idb8b818122e157960d56779b2a86e5ba433bee1b
Signed-off-by: Bill Richardson <wfrichar@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/175368
Reviewed-by: Randall Spangler <rspangler@chromium.org>
2013-11-02 01:07:16 +00:00
..
2013-10-01 08:16:34 +00:00
2013-10-29 03:55:35 +00:00
2013-09-05 07:20:46 +00:00
2013-09-05 07:20:56 +00:00
2013-05-14 09:25:03 -07:00
2013-09-04 20:32:52 +00:00
2013-10-01 08:16:34 +00:00
2013-07-11 22:32:52 -07:00
2013-05-08 18:11:01 -07:00
2013-09-05 07:20:56 +00:00
2013-09-05 07:20:56 +00:00
2013-10-01 08:16:34 +00:00
2013-04-11 11:29:32 -07:00
2013-04-11 11:29:31 -07:00
2013-04-10 09:35:06 -07:00
2012-10-29 16:52:49 -07:00
2013-04-10 09:35:06 -07:00
2013-06-13 18:13:19 -07:00
2013-11-01 20:07:24 +00:00
2013-04-19 10:41:33 -07:00
2013-07-22 16:09:47 -07:00
2013-07-22 16:09:47 -07:00
2013-10-30 23:10:13 +00:00
2012-06-07 20:01:49 -07:00
2013-04-15 20:40:03 -07:00
2013-05-08 18:11:01 -07:00
2013-11-01 20:07:24 +00:00
2013-04-10 09:35:06 -07:00
2012-07-13 02:10:46 -07:00
2013-04-10 09:35:06 -07:00