summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSiyu Qin <qinsiyu@huaqin.corp-partner.google.com>2022-02-15 14:20:36 +0800
committerCommit Bot <commit-bot@chromium.org>2022-02-16 22:41:32 +0000
commit069f0fe23aa86f56d861d519f1db4365cb8103ed (patch)
tree89956723be3c08675bd3686a1809626393a7aa86
parentb0a42e9ac9c4568806a07baa71b8b86444f084ea (diff)
downloadchrome-ec-069f0fe23aa86f56d861d519f1db4365cb8103ed.tar.gz
homestar/mrbland/wormdingler: Add support PS8755
Import PS8755 as the 2rd source for TCPC chip. BUG=b:218786366 BRANCH=trogdor TEST=make BOARD=homestar/mrbland/wormdingler -j Signed-off-by: Siyu Qin <qinsiyu@huaqin.corp-partner.google.com> Change-Id: I01185737e55bff93cea65fe0667344841231d30b Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3463103 Reviewed-by: wen zhang <zhangwen6@huaqin.corp-partner.google.com> Reviewed-by: Bob Moragues <moragues@chromium.org> Reviewed-by: Wai-Hong Tam <waihong@google.com> Commit-Queue: Wai-Hong Tam <waihong@google.com>
-rw-r--r--board/homestar/board.c3
-rw-r--r--board/mrbland/board.c3
-rw-r--r--board/wormdingler/board.c3
3 files changed, 7 insertions, 2 deletions
diff --git a/board/homestar/board.c b/board/homestar/board.c
index 496508fa5a..bf7636aadb 100644
--- a/board/homestar/board.c
+++ b/board/homestar/board.c
@@ -475,8 +475,7 @@ DECLARE_HOOK(HOOK_INIT, board_init, HOOK_PRIO_DEFAULT);
__overridable uint16_t board_get_ps8xxx_product_id(int port)
{
- /* Check if the chip is PS8755 for rev-0, rev-1 and rev-2 */
- if (system_get_board_version() < 3 && check_ps8755_chip(port))
+ if (check_ps8755_chip(port))
return PS8755_PRODUCT_ID;
return PS8805_PRODUCT_ID;
diff --git a/board/mrbland/board.c b/board/mrbland/board.c
index fc791a3a3c..f7fbcf4f97 100644
--- a/board/mrbland/board.c
+++ b/board/mrbland/board.c
@@ -432,6 +432,9 @@ DECLARE_HOOK(HOOK_INIT, board_init, HOOK_PRIO_DEFAULT);
__overridable uint16_t board_get_ps8xxx_product_id(int port)
{
+ if (check_ps8755_chip(port))
+ return PS8755_PRODUCT_ID;
+
return PS8805_PRODUCT_ID;
}
diff --git a/board/wormdingler/board.c b/board/wormdingler/board.c
index cf5b550204..3f44200e44 100644
--- a/board/wormdingler/board.c
+++ b/board/wormdingler/board.c
@@ -474,6 +474,9 @@ DECLARE_HOOK(HOOK_INIT, board_init, HOOK_PRIO_DEFAULT);
__overridable uint16_t board_get_ps8xxx_product_id(int port)
{
+ if (check_ps8755_chip(port))
+ return PS8755_PRODUCT_ID;
+
return PS8805_PRODUCT_ID;
}