mirror of
https://github.com/riscv-software-src/opensbi.git
synced 2026-05-23 22:31:32 +01:00
b10e18ec85
Add a simple SpacemiT I2C driver for basic byte transfers over the I2C bus, prioritizing simplicity over performance. The driver operates in PIO mode and does not use interrupts, FIFO, or DMA. The controller is reset at the start of each transaction to ensure a known initial state, regardless of prior configuration by the kernel. This also avoids the need for additional error recovery code. This will be used for communication with onboard PMIC to reset and power-off the board. Signed-off-by: Aurelien Jarno <aurelien@aurel32.net> Tested-by: Anand Moon <linux.amoon@gmail.com> Link: https://lore.kernel.org/r/20260419150857.2705843-2-aurelien@aurel32.net Signed-off-by: Anup Patel <anup@brainfault.org>