summaryrefslogtreecommitdiff
path: root/driver/tcpm/ps8xxx.h
diff options
context:
space:
mode:
authorCaveh Jalali <caveh@chromium.org>2020-06-17 19:08:00 -0700
committerCommit Bot <commit-bot@chromium.org>2020-06-29 03:55:46 +0000
commitdb3de77a474e2a0ffddcfc78822e5a74c5ae39f3 (patch)
treec54070918b2d69f17e1f7df06f8d3db5b78227ef /driver/tcpm/ps8xxx.h
parentea103fe804e831443d4e192301084ce9112349a9 (diff)
downloadchrome-ec-db3de77a474e2a0ffddcfc78822e5a74c5ae39f3.tar.gz
ps8xxx: patch ps8815 A1 chip Device ID
this adds a config option for the ps8815 to override the TCPCI Device ID field based on the chip hardware revision reported in vendor defined registers. early ps8815 A1 firmware still reports the same Device ID value as the A0 chip which makes the two chips indistinguishable using standard methods. so, we check a vendor defined register to distinguish the two parts and "patch" the Device ID. newer ps8815 firmware will correct this, so after we have flushed out early firmware, we can disable this override feature. BRANCH=none BUG=b:158857815,b:159289062 TEST=reflashed FW on ps8815 A0 and A1 Change-Id: I2db3150740c15a77836dea0e9db72e5d99fdc050 Signed-off-by: Caveh Jalali <caveh@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2254992 Tested-by: Keith Short <keithshort@chromium.org> Reviewed-by: Keith Short <keithshort@chromium.org> Commit-Queue: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'driver/tcpm/ps8xxx.h')
-rw-r--r--driver/tcpm/ps8xxx.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/driver/tcpm/ps8xxx.h b/driver/tcpm/ps8xxx.h
index 68d985fbf2..cfcf45b1a3 100644
--- a/driver/tcpm/ps8xxx.h
+++ b/driver/tcpm/ps8xxx.h
@@ -102,6 +102,7 @@
#define PS8XXX_PRODUCT_ID 0x8815
#define FW_VER_REG 0x82
+#define PS8815_P1_REG_HW_REVISION 0xF0
#endif