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:04 +0000 |
commit | a2b642c762758effc7e20bdd85bf5380cd465621 (patch) | |
tree | 5c2deab4336fbe221d88c451e06192655396ef2f | |
parent | a65317cd621b83af6759e59af78879f243c26d8e (diff) | |
download | chrome-ec-a2b642c762758effc7e20bdd85bf5380cd465621.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/287065
Commit-Queue: David Wu <david_wu@quantatw.com>
Tested-by: David Wu <david_wu@quantatw.com>
Reviewed-by: Mohammed Habibulla <moch@google.com>
-rw-r--r-- | board/gandof/board.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/board/gandof/board.c b/board/gandof/board.c index ea1f0905bf..5cdb59d9b6 100644 --- a/board/gandof/board.c +++ b/board/gandof/board.c @@ -92,7 +92,11 @@ int fan_percent_to_rpm(int fan, int pct) previous_pct = pct; - 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 if (fan_table[index].rpm != fan_get_rpm_target(fans[fan].ch)) cprintf(CC_THERMAL, "[%T Setting fan RPM to %d]\n", fan_table[index].rpm); |