lib: utils/i2c: Add minimal StarFive jh7110 I2C driver
authorMinda Chen <minda.chen@starfivetech.com>
Thu, 9 Mar 2023 06:19:58 +0000 (14:19 +0800)
committerAnup Patel <anup@brainfault.org>
Thu, 9 Mar 2023 15:30:57 +0000 (21:00 +0530)
commite9d08bd99cc702fcec1c5b59b593781da668e2bc
tree8b1b2cf40e976b79274f85860d8aced45836726e
parent4b28afc98bbe406e3ad6f4a97d0fe96a882e83a1
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>
include/sbi_utils/i2c/dw_i2c.h [new file with mode: 0644]
lib/utils/i2c/Kconfig
lib/utils/i2c/dw_i2c.c [new file with mode: 0644]
lib/utils/i2c/fdt_i2c_dw.c [new file with mode: 0644]
lib/utils/i2c/objects.mk