OSDN Git Service

hw/i2c: Implement NPCM7XX SMBus Module Single Mode
authorHao Wu <wuhaotsh@google.com>
Wed, 10 Feb 2021 22:04:22 +0000 (14:04 -0800)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 16 Feb 2021 13:49:28 +0000 (13:49 +0000)
commit94e778793954afc6ed47ef8e161044c79488e446
treeb00da3b67b101fffd0a438a50d063f7c6a698a69
parent36cd5fbdbf4e1cb540d479e9b1708cdd81dac298
hw/i2c: Implement NPCM7XX SMBus Module Single Mode

This commit implements the single-byte mode of the SMBus.

Each Nuvoton SoC has 16 System Management Bus (SMBus). These buses
compliant with SMBus and I2C protocol.

This patch implements the single-byte mode of the SMBus. In this mode,
the user sends or receives a byte each time. The SMBus device transmits
it to the underlying i2c device and sends an interrupt back to the QEMU
guest.

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-2-wuhaotsh@google.com
Acked-by: Corey Minyard <cminyard@mvista.com>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
docs/system/arm/nuvoton.rst
hw/arm/npcm7xx.c
hw/i2c/meson.build
hw/i2c/npcm7xx_smbus.c [new file with mode: 0644]
hw/i2c/trace-events
include/hw/arm/npcm7xx.h
include/hw/i2c/npcm7xx_smbus.h [new file with mode: 0644]