diff options
author | Stefan Adolfsson <sadolfsson@google.com> | 2018-04-27 14:16:54 +0200 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2018-05-11 09:30:31 -0700 |
commit | e89486c9b6751b375fe823a2555c64760dcf832d (patch) | |
tree | 67a3b67af122cf61431445ff3fd922393cf82802 /chip/npcx/fan.c | |
parent | 802337c26daaa07b42127bdf6de62f9b0afd306a (diff) | |
download | chrome-ec-e89486c9b6751b375fe823a2555c64760dcf832d.tar.gz |
npcx: CEC: Write messages on the CEC bus
Add hooks that ectool or AP will use to send CEC messages.
Messages are sent by setting a timer and flipping
a GPIO in the timer interrupt. The timer is then
recharged in inside that interrupt depending on
where it is in the CEC state-machine.
Signed-off-by: Stefan Adolfsson <sadolfsson@chromium.org>
BUG=b:76467407
BRANCH=none
TEST=Switched on and off a TV:
ectool cecwrite 0x40 0x04
ectool cecwrite 0x40 0x36
CQ-DEPEND=CL:1030220
Change-Id: Ia640d0d035bcee9be88863046e88402c7a63c19f
Reviewed-on: https://chromium-review.googlesource.com/1030221
Commit-Ready: Stefan Adolfsson <sadolfsson@chromium.org>
Tested-by: Stefan Adolfsson <sadolfsson@chromium.org>
Reviewed-by: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'chip/npcx/fan.c')
-rw-r--r-- | chip/npcx/fan.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/chip/npcx/fan.c b/chip/npcx/fan.c index 4f0e555426..c8d6a6949d 100644 --- a/chip/npcx/fan.c +++ b/chip/npcx/fan.c @@ -28,17 +28,6 @@ #define CPRINTS(format, args...) cprints(CC_PWM, format, ## args) #endif -/* MFT model select */ -enum npcx_mft_mdsel { - NPCX_MFT_MDSEL_1, - NPCX_MFT_MDSEL_2, - NPCX_MFT_MDSEL_3, - NPCX_MFT_MDSEL_4, - NPCX_MFT_MDSEL_5, - /* Number of MFT modes */ - NPCX_MFT_MDSEL_COUNT -}; - /* Tacho measurement state */ enum tacho_measure_state { /* Tacho normal state */ |