OSDN Git Service

hw/i2c: Implement NPCM7XX SMBus Module FIFO Mode
authorHao Wu <wuhaotsh@google.com>
Wed, 10 Feb 2021 22:04:26 +0000 (14:04 -0800)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 16 Feb 2021 14:12:54 +0000 (14:12 +0000)
commit6b6e7570d6ebc8bc6d9bc1356ae46708f02d3eeb
tree004d6c0c3d9aa9b5ee5835608fe7b5f467b2fc73
parentd986bf729c3cfc8672cfc6f3ab99c2d5c2eb11f1
hw/i2c: Implement NPCM7XX SMBus Module FIFO Mode

This patch implements the FIFO mode of the SMBus module. In FIFO, the
user transmits or receives at most 16 bytes at a time. The FIFO mode
allows the module to transmit large amount of data faster than single
byte mode.

Since we only added the device in a patch that is only a few commits
away in the same patch set. We do not increase the VMstate version
number in this special case.

Reviewed-by: Doug Evans<dje@google.com>
Reviewed-by: Tyrong Ting<kfting@nuvoton.com>
Signed-off-by: Hao Wu <wuhaotsh@google.com>
Reviewed-by: Corey Minyard <cminyard@mvista.com>
Message-id: 20210210220426.3577804-6-wuhaotsh@google.com
Acked-by: Corey Minyard <cminyard@mvista.com>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/i2c/npcm7xx_smbus.c
hw/i2c/trace-events
include/hw/i2c/npcm7xx_smbus.h
tests/qtest/npcm7xx_smbus-test.c