exynos5420: update I2C code, add HSI2C/USI support
This updates the low-level I2C code to handle the new high-speed
HSI2C/USI inteface. It also outputs a bit more error information
when things go wrong. Also adds some more error prints. Timeouts
really need to be noted.
In hsi2c_wait_for_irq, order the delay so that we do an initial
sleep first to avoid an early-test that was kicking us out of the
test too soon. We got to the test before the hardware was ready
for us. Finally, test clearing the interrupt status register every time
we wait for it on the write. Works.
Signed-off-by: Ronald G. Minnich <firstname.lastname@example.org>
Commit-Queue: David Hendricks <email@example.com>
Reviewed-by: David Hendricks <firstname.lastname@example.org>
Tested-by: David Hendricks <email@example.com>
2 files changed