litex-hub / zephyr-on-litex-vexriscv

BSD 2-Clause "Simplified" License
12 stars 10 forks source link

I2C is currently bit-banged on Zephyr #15

Closed josuah closed 1 year ago

josuah commented 1 year ago

The current implementation of Zephyr driver is a bit-banged one: https://github.com/zephyrproject-rtos/zephyr/blob/main/drivers/i2c/i2c_litex.c#L11

Is this intentional? Should I2C support be removed from here, or should a Zephyr driver for I2C be added?

josuah commented 1 year ago

Apologies, I thought there was an i2c.py core in migen, but it is indeed bit-banged! This sounds reasonable enough for an I2C master.

My mistake!