summaryrefslogtreecommitdiff
path: root/chip/mec1322/build.mk
diff options
context:
space:
mode:
authorVic (Chun-Ju) Yang <victoryang@chromium.org>2013-11-29 12:20:22 +0800
committerchrome-internal-fetch <chrome-internal-fetch@google.com>2013-12-04 13:34:56 +0000
commit06e60734910d952830c2102cd2ab002ddc99029b (patch)
tree9d1f1ba042987e5d81e26bf8acedbe463c74d282 /chip/mec1322/build.mk
parent715ad86d43f0695363d3749f2c202f5e3f7e3bd2 (diff)
downloadchrome-ec-06e60734910d952830c2102cd2ab002ddc99029b.tar.gz
mec1322: Fan control driver
This adds the driver for PWM duty cycle based and RPM based fan control. BUG=chrome-os-partner:24107 TEST='fanset 5000' and fan spins up. 'fanset 8000' and fan spins faster. 'fanset 0' and fan stops. 'fanduty 30' and fan spins up. 'fanduty 50' and fan spins faster. 'fanduty 30' and fan slows down. 'fanset 6000' and fan goes to ~6000 RPM. Unplug fan power and see 'fan 0 stalled'. Plug power back and doesn't see stall warning anymore. BRANCH=None Change-Id: Ice3e5c03686cde57894e888e34ae2070c33b4e4d Signed-off-by: Vic (Chun-Ju) Yang <victoryang@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/178402
Diffstat (limited to 'chip/mec1322/build.mk')
-rw-r--r--chip/mec1322/build.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/chip/mec1322/build.mk b/chip/mec1322/build.mk
index 8ee67de6aa..0f7262b8f9 100644
--- a/chip/mec1322/build.mk
+++ b/chip/mec1322/build.mk
@@ -13,6 +13,7 @@ CFLAGS_CPU+=-march=armv7e-m -mcpu=cortex-m4
# Required chip modules
chip-y=clock.o gpio.o hwtimer.o system.o uart.o jtag.o
+chip-$(CONFIG_FANS)+=fan.o
chip-$(CONFIG_LPC)+=lpc.o
chip-$(CONFIG_PWM)+=pwm.o
chip-$(CONFIG_WATCHDOG)+=watchdog.o