summaryrefslogtreecommitdiff
path: root/driver/tcpm/anx7447.h
diff options
context:
space:
mode:
authorXin Ji <xji@analogixsemi.com>2020-03-19 15:33:41 +0800
committerCommit Bot <commit-bot@chromium.org>2020-04-02 23:44:08 +0000
commit32e49e5e3b7724fa302f13893e7154ef319c9daf (patch)
treee05591970a523c93482f91e68b7c40be26e39a63 /driver/tcpm/anx7447.h
parent697b49ae69ae35e1df9188e2c6f4df07b0cdc2cc (diff)
downloadchrome-ec-32e49e5e3b7724fa302f13893e7154ef319c9daf.tar.gz
tcpm/anx7447.c: use chip internal timer to generate HPD IRQstabilize-sylas-13019.B-master
Anx7447 has 2 ways to generate HPD IRQ: 1): internal timer delay ~750ms. 2): outside timer delay(configured by EC anx7447.c). Some board didn't have accurate timer cause method #2 cannot be used, this patch change the default policy to method #1. BRANCH=none BUG=b:151696902 TEST=tested on STM32 board Change-Id: Ifcccacc484f82e4ed047d4caa7d86318f60d0192 Signed-off-by: Xin Ji <xji@analogixsemi.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2112312 Tested-by: Devin Lu <Devin.Lu@quantatw.com> Reviewed-by: Jett Rink <jettrink@chromium.org> Commit-Queue: Jett Rink <jettrink@chromium.org>
Diffstat (limited to 'driver/tcpm/anx7447.h')
-rw-r--r--driver/tcpm/anx7447.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/driver/tcpm/anx7447.h b/driver/tcpm/anx7447.h
index 049b82d4bb..b1d571c7c8 100644
--- a/driver/tcpm/anx7447.h
+++ b/driver/tcpm/anx7447.h
@@ -27,6 +27,9 @@
#define ANX7447_REG_HPD_CTRL_0 0x7E
#define ANX7447_REG_HPD_MODE 0x01
#define ANX7447_REG_HPD_OUT 0x02
+#define ANX7447_REG_HPD_IRQ0 0x04
+#define ANX7447_REG_HPD_PLUG 0x08
+#define ANX7447_REG_HPD_UNPLUG 0x10
#define ANX7447_REG_HPD_DEGLITCH_H 0x80
#define ANX7447_REG_HPD_OEN 0x40