diff options
author | David Huang <david.huang@quanta.corp-partner.google.com> | 2021-06-11 10:15:56 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-06-11 21:21:33 +0000 |
commit | 4860dccf9a0ea7c5ecba92d984491bd7151a31f0 (patch) | |
tree | e084809a180a57d508d4c59dbe04141366ddfafe | |
parent | 729439bf4615ab668647029cde157dc175838a5a (diff) | |
download | chrome-ec-4860dccf9a0ea7c5ecba92d984491bd7151a31f0.tar.gz |
limozeen: Refine the BRD_ID check
Limozeen's BRD_ID is not monotonically increasing.
The earliest revision is 4. The next BRD_ID after 7 is 0.
Not support PPC workaround when BRD_ID 0 on limozeen.
BUG=b:190250108
BRANCH=trogdor
TEST=make buildall success.
Signed-off-by: David Huang <david.huang@quanta.corp-partner.google.com>
Change-Id: I16d7ff081306812c14aa31ce2b19af8e2d50ff76
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2952802
Reviewed-by: Wai-Hong Tam <waihong@google.com>
Commit-Queue: Wai-Hong Tam <waihong@google.com>
-rw-r--r-- | board/lazor/hibernate.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/board/lazor/hibernate.c b/board/lazor/hibernate.c index 1187348e31..79d936c833 100644 --- a/board/lazor/hibernate.c +++ b/board/lazor/hibernate.c @@ -25,9 +25,11 @@ void board_hibernate(void) /* * Board rev 5+ has the hardware fix. Don't need the following - * workaround. + * workaround. Limozeen's BRD_ID is not monotonically increasing. + * 4 is the earliest revision. */ - if (system_get_board_version() >= 5) + if ((system_get_board_version() >= 5) || + (board_is_clamshell() && ((system_get_board_version() != 4)))) return; /* |