summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWealian Liao <whliao@nuvoton.corp-partner.google.com>2021-01-26 10:17:02 +0800
committerCommit Bot <commit-bot@chromium.org>2021-01-26 18:26:52 +0000
commite21734eeef64b74eca8497965a5b76e7b5dbdc37 (patch)
tree1b59e2f2c80189e509480d95d9bd0dd4fafe38af
parent4ad071cebdae5a9acf2c0c9ca21d56b94e04c24c (diff)
downloadchrome-ec-e21734eeef64b74eca8497965a5b76e7b5dbdc37.tar.gz
npcx: fan: fix the enumeration of the tachometer clock
NPCX chip uses MFT as a tachometer module. The counter clock select is not synced with the datasheet. For the LFCLK, the value of clock select should be set to 4. This CL fix the LFCLK clock enumeration. BUG=b:178376892 BRANCH=None TEST=pass buildall TEST=use PWM to generate the waveform to the tachometer. Check that the tachometer gets the correct value by 'faninfo'. Signed-off-by: Wealian Liao <whliao@nuvoton.corp-partner.google.com> Change-Id: I22f47e0de403b144a8604e818db8f230764b4fc0 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2649292 Reviewed-by: Keith Short <keithshort@chromium.org> Commit-Queue: Keith Short <keithshort@chromium.org>
-rw-r--r--chip/npcx/fan_chip.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/chip/npcx/fan_chip.h b/chip/npcx/fan_chip.h
index bc97011895..6fc228ec84 100644
--- a/chip/npcx/fan_chip.h
+++ b/chip/npcx/fan_chip.h
@@ -32,7 +32,7 @@ enum npcx_mft_module {
enum npcx_mft_clk_src {
TCKC_NOCLK = 0,
TCKC_PRESCALE_APB1_CLK = 1,
- TCKC_LFCLK = 5,
+ TCKC_LFCLK = 4,
};
/* Data structure to define MFT channels. */