hw: arm: allwinner-r40: Add i2c0 device
commit44814e210acb589bfdab073b3bed3a6d9a306ca3
authorqianfan Zhao <qianfanguijin@163.com>
Tue, 6 Jun 2023 09:19:32 +0000 (6 10:19 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 6 Jun 2023 09:19:32 +0000 (6 10:19 +0100)
tree9530bb72945632d443c1c655cb69a94386438935
parentd1e409c5831b2f48b285a4d00f84fbc6a3a927bb
hw: arm: allwinner-r40: Add i2c0 device

TWI(i2c) is designed to be used as an interface between CPU host and the
serial 2-Wire bus. It can support all standard 2-Wire transfer, can be
operated in standard mode(100kbit/s) or fast-mode, supporting data rate
up to 400kbit/s.

Signed-off-by: qianfan Zhao <qianfanguijin@163.com>
Reviewed-by: Niek Linnenbank <nieklinnenbank@gmail.com>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/arm/allwinner-r40.c
include/hw/arm/allwinner-r40.h