diff options
author | David Huang <David.Huang@quantatw.com> | 2015-07-21 08:50:15 +0800 |
---|---|---|
committer | ChromeOS Commit Bot <chromeos-commit-bot@chromium.org> | 2015-07-23 17:51:09 +0000 |
commit | 855130e6274e72ecd1f2d14a6f7d55a55cec566c (patch) | |
tree | 5494cf67517dc8803dd488704040cf56addb6e8c | |
parent | 1ad699b307e32c3b8d96bb5962f9758a470ef935 (diff) | |
download | chrome-ec-855130e6274e72ecd1f2d14a6f7d55a55cec566c.tar.gz |
Gandof: Add fan start up RPM from thermal table level one.
If enter S3/S4/S5, fan will change to RPM 0.
And after resume, EC give a start up RPM(Thermal table level one) to
start fan from RPM 0.
BRANCH=gandof
BUG=chrome-os-partner:41633
TEST=1.Enter OS and run heavy loading.
2.Wait fan in high speed RPM then close LID.
3.When fan stop, open LID immediately.
4.Check can hear fan load noise.
Change-Id: I75cba16ddece59c5d2cb5303246b1ea7ab53670b
Signed-off-by: David Huang <David.Huang@quantatw.com>
Reviewed-on: https://chromium-review.googlesource.com/286970
Reviewed-by: Mohammed Habibulla <moch@google.com>
-rw-r--r-- | board/gandof/board.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/board/gandof/board.c b/board/gandof/board.c index ea1f0905bf..811d8dc393 100644 --- a/board/gandof/board.c +++ b/board/gandof/board.c @@ -92,9 +92,17 @@ int fan_percent_to_rpm(int fan, int pct) previous_pct = pct; - if (fan_table[index].rpm != fan_get_rpm_target(fans[fan].ch)) - cprintf(CC_THERMAL, "[%T Setting fan RPM to %d]\n", + if (fan_table[index].rpm != fan_get_rpm_target(fans[fan].ch)) { + if (fan_get_rpm_target(fans[fan].ch) == 0) { + index = 1; + cprintf(CC_THERMAL, + "[%T Start fan RPM to %d from RPM 0]\n", fan_table[index].rpm); + } else { + cprintf(CC_THERMAL, "[%T Setting fan RPM to %d]\n", + fan_table[index].rpm); + } + } return fan_table[index].rpm; } |