summaryrefslogtreecommitdiff
path: root/board/eve
diff options
context:
space:
mode:
authorMulin Chao <mlchao@nuvoton.com>2017-04-10 13:31:29 +0800
committerchrome-bot <chrome-bot@chromium.org>2017-04-18 23:33:20 -0700
commit2a6d939e10b2449a16d627821ce6568ce05c1573 (patch)
treefadb0ec53d3a0ab165d1d68deeba96cadb4f7d1d /board/eve
parent9b710e13cd2ef714ef656eb94383666f337f211e (diff)
downloadchrome-ec-2a6d939e10b2449a16d627821ce6568ce05c1573.tar.gz
npcx: gpio: Change second tachometer source from TB2 to TA2.
In npcx's fan driver, ec selected mode 5 and capturer A as tachometer's input. Choosing TB2 as the second tachometer source is not correct since we didn't initialize the registers for TB2. This patch modified the second tachometer's input from TB2 to TA2 and passed the verification by following changes. 1. Add the second fan settings in pwm_channels, fans, and mft_channels arraies. 2. Modified ALTERNATE marco for pwm-type fans. 3. Set CONFIG_FAN from 1 to 2. 4. Set NPCX_TACH_SEL2 to 1 to test tachometer input 2. (ie.GPIO73/A6) BRANCH=none BUG=none TEST=test dual fans with fanset command on npcx_evb and use faninfo for verifying. Measure the actual rpm by scope. Change-Id: Ia1af2732d9a64e24285d12371223eb0e77e53357 Signed-off-by: Mulin Chao <mlchao@nuvoton.com> Reviewed-on: https://chromium-review.googlesource.com/472310 Reviewed-by: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'board/eve')
-rw-r--r--board/eve/board.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/board/eve/board.h b/board/eve/board.h
index 39c29957de..e9949f91e7 100644
--- a/board/eve/board.h
+++ b/board/eve/board.h
@@ -171,7 +171,7 @@
/* Optional feature to configure npcx chip */
#define NPCX_UART_MODULE2 1 /* 1:GPIO64/65 as UART */
#define NPCX_JTAG_MODULE2 0 /* 0:GPIO21/17/16/20 as JTAG */
-#define NPCX_TACH_SEL2 0 /* 0:GPIO40/A4 as TACH */
+#define NPCX_TACH_SEL2 0 /* 0:GPIO40/73 as TACH */
/* I2C ports */
#define I2C_PORT_TCPC0 NPCX_I2C_PORT0_0