diff options
author | xuxinxiong <xuxinxiong@huaqin.corp-partner.google.com> | 2021-08-18 17:02:30 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-08-25 03:05:36 +0000 |
commit | 5180bf06996a5e4cba957b85a66da1491ddc9fcc (patch) | |
tree | d5122cbbcb3bc17ea3bb5f2a54f8653d3692b8c3 /board | |
parent | dd057f600a4dd52a398a059e01bfaa67ac424e60 (diff) | |
download | chrome-ec-5180bf06996a5e4cba957b85a66da1491ddc9fcc.tar.gz |
Homestar: Distinguish PS8755 with hidden register
When TCPC PS8755 is upgraded to PS8805 firmware, the product id cannot
distinguish whether the chip is PS8755 or PS8805. Only the hidden
register value of PS8755 is 0x80, so use this hidden register to
distinguish whether it is PS8755.
BRANCH=trogdor
BUG=b:196889096
TEST=emerge-strongbad chromeos-ec
Change-Id: I99b50dfb2f5ae47c3d4dbb3334dcdae20c281478
Signed-off-by: xuxinxiong <xuxinxiong@huaqin.corp-partner.google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3113261
Reviewed-by: Wai-Hong Tam <waihong@google.com>
Reviewed-by: wen zhang <zhangwen6@huaqin.corp-partner.google.com>
Commit-Queue: Wai-Hong Tam <waihong@google.com>
Diffstat (limited to 'board')
-rw-r--r-- | board/homestar/board.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/board/homestar/board.c b/board/homestar/board.c index 8d277c4793..8292a697ce 100644 --- a/board/homestar/board.c +++ b/board/homestar/board.c @@ -450,6 +450,10 @@ 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)) + return PS8755_PRODUCT_ID; + return PS8805_PRODUCT_ID; } |