summaryrefslogtreecommitdiff
path: root/include/pwm.h
diff options
context:
space:
mode:
authorVic Yang <victoryang@chromium.org>2012-02-27 14:08:02 -0800
committerVic Yang <victoryang@chromium.org>2012-02-27 15:11:42 -0800
commit44140b3c57b0df88b60c618c10a829cebec45712 (patch)
tree688aac6e034e231800b8efae4d9416faa58c531b /include/pwm.h
parentf40df60a9a963d43f1a3a0309f2c2f98f28dd1aa (diff)
downloadchrome-ec-44140b3c57b0df88b60c618c10a829cebec45712.tar.gz
EC_LPC_COMMAND_PWM_GET_FAN_RPM return target RPM
Actual RPM is now read from LPC mapped space. Modify this command to return target RPM so we can verify EC receives target RPM. Signed-off-by: Vic Yang <victoryang@chromium.org> BUG=chrome-os-partner:8238 TEST=Get the same value after setting target RPM. Change-Id: I9bcc9edd327cec1311b51fd0fcbc4a43b353daff
Diffstat (limited to 'include/pwm.h')
-rw-r--r--include/pwm.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/pwm.h b/include/pwm.h
index cbf11c5e95..022a21399b 100644
--- a/include/pwm.h
+++ b/include/pwm.h
@@ -20,6 +20,9 @@ int pwm_enable_fan(int enable);
/* Gets the current fan RPM. */
int pwm_get_fan_rpm(void);
+/* Get the target fan RPM. */
+int pwm_get_fan_target_rpm(void);
+
/* Sets the target fan RPM. Pass -1 to set fan to maximum. */
int pwm_set_fan_target_rpm(int rpm);