summaryrefslogtreecommitdiff
path: root/include/ec_commands.h
diff options
context:
space:
mode:
authorBill Richardson <wfrichar@chromium.org>2012-06-22 14:15:26 -0700
committerGerrit <chrome-bot@google.com>2012-06-22 15:56:57 -0700
commit80c635ecabdd398c20441cfd4dadb00c7eb76720 (patch)
tree604ec5789631b4f4514449c858d017f23e72fe73 /include/ec_commands.h
parente61af38f55525177393a1e915fca45ef1c983411 (diff)
downloadchrome-ec-80c635ecabdd398c20441cfd4dadb00c7eb76720.tar.gz
Add 'fanduty' command both EC console and ectool.
This forces the fan PWM duty cycle to a fixed percentage (0-100). It's only used for airflow testing. BUG=chrome-os-partner:10747 TEST=manual Using this ectool, try ectool fanduty 0 ectool pwmgetfanrpm ectool fanduty 50 ectool pwmgetfanrpm ectool fanduty 100 ectool pwmgetfanrpm You should see (and hear) the fan speed up. If you have an EC console, you can run faninfo and it should show that the 'Target:' is unrelated to the 'Actual:' value. Change-Id: Iac332fb3ba63f96726cf7f64061b3ce22d2e76fd Signed-off-by: Bill Richardson <wfrichar@chromium.org> Reviewed-on: https://gerrit.chromium.org/gerrit/25965 Reviewed-by: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'include/ec_commands.h')
-rw-r--r--include/ec_commands.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/ec_commands.h b/include/ec_commands.h
index 02ad07eb20..3c8b8cb11c 100644
--- a/include/ec_commands.h
+++ b/include/ec_commands.h
@@ -381,6 +381,12 @@ struct ec_params_pwm_set_keyboard_backlight {
uint8_t percent;
} __attribute__ ((packed));
+/* Set target fan PWM duty cycle */
+#define EC_CMD_PWM_SET_FAN_DUTY 0x24
+struct ec_params_pwm_set_fan_duty {
+ uint32_t percent;
+} __attribute__ ((packed));
+
/*****************************************************************************/
/* Lightbar commands. This looks worse than it is. Since we only use one LPC
* command to say "talk to the lightbar", we put the "and tell it to do X"