HomeFreeBSD

MFC r363021 by manu: twsi: Fix for > Allwinner A20

Description

MFC r363021 by manu: twsi: Fix for > Allwinner A20

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

Details

Provenance
avgAuthored on
Parents
rS366644: Link efi programs with -pie rather than -shared
Branches
Unknown
Tags
Unknown