summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDaisuke Nojiri <dnojiri@chromium.org>2018-10-30 10:55:40 -0700
committerchrome-bot <chrome-bot@chromium.org>2018-11-19 19:13:54 -0800
commitd38c44b7fd4b0fa3ab742f456994f1a1ef188094 (patch)
tree1e2280470cd48ace5584cd1cbbc5bbf240c5c9a5 /include
parent65b8dcf6da612c774d372c3c29e16923d7f6f379 (diff)
downloadchrome-ec-d38c44b7fd4b0fa3ab742f456994f1a1ef188094.tar.gz
Fan: Allow fan count to be set dynamically
Currently, the fan count is statically set. This patch allows it to be set dynamically so that a single binary can support devices with a different number of fans (including fan-less). Signed-off-by: Daisuke Nojiri <dnojiri@chromium.org> BUG=b:116588924 BRANCH=none TEST=Boot Fizz with OEM=8. Verify fan spins with OEM=1. Change-Id: I77fc4e07ce2a1be2e288df145857a79c0003542f Reviewed-on: https://chromium-review.googlesource.com/1308257 Commit-Ready: Daisuke Nojiri <dnojiri@chromium.org> Tested-by: Daisuke Nojiri <dnojiri@chromium.org> Reviewed-by: Jett Rink <jettrink@chromium.org>
Diffstat (limited to 'include')
-rw-r--r--include/fan.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/fan.h b/include/fan.h
index 5a2e010e18..2facf83d9f 100644
--- a/include/fan.h
+++ b/include/fan.h
@@ -116,4 +116,8 @@ enum fan_status fan_get_status(int ch);
/* Initialize the HW according to the desired flags */
void fan_channel_setup(int ch, unsigned int flags);
+int fan_get_count(void);
+
+void fan_set_count(int count);
+
#endif /* __CROS_EC_FAN_H */