lib: utils/i2c: Add minimal StarFive jh7110 I2C driver

Starfive JH7110 I2C IP is synopsys designware.
Minimum StarFIve I2C driver to read/send bytes over I2C bus.

This allows querying information and perform operation of onboard PMIC,
as well as power-off and reset.

Signed-off-by: Minda Chen <minda.chen@starfivetech.com>
Reviewed-by: Anup Patel <anup@brainfault.org>
This commit is contained in:
Minda Chen
2023-03-09 14:19:58 +08:00
committed by Anup Patel
parent 4b28afc98b
commit e9d08bd99c
5 changed files with 286 additions and 0 deletions

View File

@@ -14,8 +14,16 @@ config FDT_I2C_SIFIVE
bool "SiFive 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