CVSROOT:        /cvs
Module name:    src
Changes by:     patr...@cvs.openbsd.org 2018/05/16 04:36:28

Modified files:
        sys/dev/fdt    : imxiic.c 

Log message:
Correct shortcomings in imxiic(4) that occurred during the initial
development in 2013.  Registers are to be accessed byte-wise.  The
command buffer, used to transfer the register index we want to access
on the chip, is not only used on write operations, but also on read
operations.  Thus it has to be pulled into the main i2c exec method.
Since these are two transfers, we have to set "repeat start" and wait
for busy to be set.  Some machines have a clock-frequency attribute on
the controller node which controls the speed (e.g. 400 kHz instead of
100 kHz).

ok kettenis@

Reply via email to