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>
36 lines
501 B
Plaintext
36 lines
501 B
Plaintext
# SPDX-License-Identifier: BSD-2-Clause
|
|
|
|
menu "I2C Support"
|
|
|
|
config FDT_I2C
|
|
bool "FDT based I2C drivers"
|
|
depends on FDT
|
|
select I2C
|
|
default n
|
|
|
|
if FDT_I2C
|
|
|
|
config FDT_I2C_SIFIVE
|
|
bool "SiFive I2C FDT driver"
|
|
default n
|
|
|
|
config FDT_I2C_SPACEMIT
|
|
bool "SpacemiT I2C FDT driver"
|
|
default n
|
|
|
|
config FDT_I2C_DW
|
|
bool "Synopsys Designware I2C FDT driver"
|
|
select I2C_DW
|
|
default n
|
|
endif
|
|
|
|
config I2C_DW
|
|
bool "Synopsys Designware I2C support"
|
|
default n
|
|
|
|
config I2C
|
|
bool "I2C support"
|
|
default n
|
|
|
|
endmenu
|