OpenNuvoton / NUC970_U-Boot_v2016.11

U-Boot v2016.11 for NUC970, N9H30, and NUC980
29 stars 45 forks source link

I2C read/write with 1-byte address #33

Open enginlee opened 2 years ago

enginlee commented 2 years ago

Hi,

I would like to control I/O expander (e.g. TCA9534) via I2C0 on NUC980. It work perfectly in Linux, but not working in U-boot. I found the read/write function in I2C driver force address to be 2-byte (see drivers/i2c/nuc980_i2c.c). Is there any way to support 1-byte address?

Reference: TCA9534 Datasheet

Thanks, -Engin

enginlee commented 2 years ago

I tried to copy source code from soft_i2c.c (implemented by GPIOs), it worked now. So it is not an urgent topic, just for your information. Thanks

yachen commented 2 years ago

Hi,

Can you pull 478ee91 and test again? Thanks.

Sincerely,

Yi-An Chen