From a4175c650eaeb66a7537d25358744b5a36292416 Mon Sep 17 00:00:00 2001 From: Mulin Chao Date: Tue, 5 Jan 2016 18:13:40 +0800 Subject: nuc: Support rpm mode for fan control. In order to support rpm mode, we use a TICK function (fan_tick_func) to monitor tacho value and adjust PWM duty. In this version, fan driver always enables clock source of MFT to make sure it can present real-time tacho value. For better performance, the feedback value to adjust PWM duty is various. We also change fan & pwm settings for SUNUN 4-pins pwm-type fan. Modified drivers: 1. npcx_evb/board.h: Modified fan_t & pwm_t structures for SUNON fan spec. 2. npcx_evb_arm/board.h: Modified fan_t & pwm_t structures for SUNON fan spec. 3. fan_chip.h: Remove unnecessary default_count field of mft_t structure 4. fan.c: Add support for rpm mode BUG=chrome-os-partner:34346 TEST=make buildall -j; test nuvoton IC specific drivers BRANCH=none Change-Id: I25e7bd2f3f726b40fd4e0d9a1049a4d82bbd830d Signed-off-by: Mulin Chao Reviewed-on: https://chromium-review.googlesource.com/320510 Reviewed-by: Randall Spangler --- chip/npcx/fan_chip.h | 2 -- 1 file changed, 2 deletions(-) (limited to 'chip/npcx/fan_chip.h') diff --git a/chip/npcx/fan_chip.h b/chip/npcx/fan_chip.h index 3280cd1920..f81a50de36 100644 --- a/chip/npcx/fan_chip.h +++ b/chip/npcx/fan_chip.h @@ -28,8 +28,6 @@ enum npcx_mft_clk_src { struct mft_t { /* MFT module ID */ enum npcx_mft_module module; - /* MFT TCNT default count */ - uint32_t default_count; /* MFT clock source */ enum npcx_mft_clk_src clk_src; /* PWM id */ -- cgit v1.2.1