summaryrefslogtreecommitdiff
path: root/chip/lm4/build.mk
diff options
context:
space:
mode:
authorBill Richardson <wfrichar@chromium.org>2013-10-29 09:49:19 -0700
committerchrome-internal-fetch <chrome-internal-fetch@google.com>2013-10-30 01:03:43 +0000
commit497e29254286a8bf8858e3a5e5495cc098f119a4 (patch)
tree0c0aeaaef32e75e2c7237131333e819fdb9003d9 /chip/lm4/build.mk
parent7e78087a91ff5c00a695ee769edd20fb62c04bc9 (diff)
downloadchrome-ec-497e29254286a8bf8858e3a5e5495cc098f119a4.tar.gz
Start separating LM4 pwm logic from fan logic.
On the LM4, all pwm functions are implemented through hardware "fan" modules. This change abstracts the hardware fan stuff from the higher level pwm and fan control logic. Those are still chip-specific at the moment, but may be moved into common with a future CL. BUG=chrome-os-partner:23530 BRANCH=none TEST=manual Code refactoring only, no new behavior. All tests build and pass, and I tested on Link with some manual pwm and fan commands on the EC console. > fanduty 30 > faninfo Should report ~4500 RPM > fanset 7000 > faninfo Should report ~48% duty cycle. > fanauto Back to automatic control. > kblight 0 > kblight 10 > kblight 50 > kblight 100 Keyboard backlight should glow appropriately. Change-Id: I7558f36b2626e555fc8dabdd12660fa484a93b7f Signed-off-by: Bill Richardson <wfrichar@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/174991 Reviewed-by: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'chip/lm4/build.mk')
-rw-r--r--chip/lm4/build.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/chip/lm4/build.mk b/chip/lm4/build.mk
index 74ecd64d02..551df6e2ac 100644
--- a/chip/lm4/build.mk
+++ b/chip/lm4/build.mk
@@ -15,12 +15,12 @@ chip-y=clock.o gpio.o hwtimer.o jtag.o system.o uart.o
# Optional chip modules
chip-$(CONFIG_ADC)+=adc.o chip_temp_sensor.o
chip-$(CONFIG_EEPROM)+=eeprom.o
-chip-$(CONFIG_FAN)+=fan.o
+chip-$(CONFIG_FAN)+=fan.o fan_chip.o
chip-$(CONFIG_FLASH)+=flash.o
chip-$(CONFIG_I2C)+=i2c.o
chip-$(CONFIG_LPC)+=lpc.o
chip-$(CONFIG_PECI)+=peci.o
-chip-$(CONFIG_PWM)+=pwm.o
+chip-$(CONFIG_PWM)+=pwm.o fan_chip.o
chip-$(CONFIG_SPI)+=spi.o
chip-$(CONFIG_WATCHDOG)+=watchdog.o
chip-$(HAS_TASK_KEYSCAN)+=keyboard_raw.o