Skip to content
Commit f6f9a016 authored by Raul E Rangel's avatar Raul E Rangel Committed by Heiko Schocher
Browse files

i2c: designware_i2c: Check if the device is powered



If the device doesn't return a version that means the device is
non-functional.

The dw_i2c_regs had invalid offsets for the version field. I got the
correct value from the DesignWare databook. It also matches what the
Picasso PPR says.

Signed-off-by: default avatarRaul E Rangel <rrangel@chromium.org>
Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
Reviewed-by: default avatarFurquan Shaikh <furquan@chromium.org>
Tested on chromebook_coral:
Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
parent bcf08503
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment