e18c80bcb6
Every revision of twsi after the A20 have a bug where we need to write again the control register after each interrupts. We also need to add some delay before writing to this register, a simple read of the same register does the job so do that. Also fix the case when we have finish sending all the bytes, it only worked for 1 byte transfer (the same kind that we do for talking to the PMIC on A20 boards). While here add more debug messages and rework some of them. This was tested by talking to a AT23C32 eeprom and a DS3231 RTC from an H3 and A20 board. PR: 247576 Reported by: Manuel Stühn (freebsd@justmail.de) MFC after: 1 week |
||
---|---|---|
.. | ||
a10_twsi.c | ||
mv_twsi.c | ||
twsi.c | ||
twsi.h |