hw/i2c: Add a QTest for NPCM7XX SMBus Device
commitd986bf729c3cfc8672cfc6f3ab99c2d5c2eb11f1
authorHao Wu <wuhaotsh@google.com>
Wed, 10 Feb 2021 22:04:25 +0000 (10 14:04 -0800)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 16 Feb 2021 14:12:54 +0000 (16 14:12 +0000)
tree56a45ff48c0feedbb140b50c54df6a1cf73ef5d6
parent2ef1e0d7dc4bf1bede368807dd9ea4038262a2b1
hw/i2c: Add a QTest for NPCM7XX SMBus Device

This patch adds a QTest for NPCM7XX SMBus's single byte mode. It sends a
byte to a device in the evaluation board, and verify the retrieved value
is equivalent to the sent value.

Reviewed-by: Doug Evans<dje@google.com>
Reviewed-by: Tyrong Ting<kfting@nuvoton.com>
Signed-off-by: Hao Wu <wuhaotsh@google.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Message-id: 20210210220426.3577804-5-wuhaotsh@google.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
tests/qtest/meson.build
tests/qtest/npcm7xx_smbus-test.c [new file with mode: 0644]