ps8740: Make revision check a minimum instead of explicit value

With a new PS8740 chip revision 0xb the explicit check for 0xa
is failing.  Change this to allow revisions >= 0xa to pass.

BUG=chrome-os-partner:46728
BRANCH=none
TEST=boot on chell and confirm lack of mux init errors

Change-Id: I0847bb9953920569922183ed4c83da2370ef40e4
Signed-off-by: Duncan Laurie <dlaurie@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/307932
Reviewed-by: Shawn N <shawnn@chromium.org>
This commit is contained in:
Duncan Laurie
2015-10-21 13:28:51 -07:00
committed by chrome-bot
parent 695026da7a
commit 5ef8956169

View File

@@ -53,7 +53,7 @@ static int ps8740_init(int i2c_addr)
res = ps8740_read(i2c_addr, PS8740_REG_REVISION_ID2, &val);
if (res)
return res;
if (val != PS8740_REVISION_ID2)
if (val < PS8740_REVISION_ID2)
return EC_ERROR_UNKNOWN;
res = ps8740_read(i2c_addr, PS8740_REG_CHIP_ID1, &val);