]> git.proxmox.com Git - mirror_qemu.git/commit - hw/arm/aspeed_ast2600.c
aspeed/i2c: QOMify AspeedI2CBus
authorCédric Le Goater <clg@kaod.org>
Tue, 12 Oct 2021 06:20:08 +0000 (08:20 +0200)
committerCédric Le Goater <clg@kaod.org>
Tue, 12 Oct 2021 06:20:08 +0000 (08:20 +0200)
commit602610383f1be927830b903275ee02fcd368d6e8
tree5963926690cf2bff33d5f9ae8cac6494979af197
parent33456a8870f761ae4aba223a65082985d870bfc7
aspeed/i2c: QOMify AspeedI2CBus

Introduce an AspeedI2CBus SysBusDevice model and attach the associated
memory region and IRQ to the newly instantiated objects.

Before this change, the I2C bus IRQs were all attached to the
SysBusDevice model of the I2C controller. Adapt the AST2600 SoC
realize routine to take into account this change.

Signed-off-by: Cédric Le Goater <clg@kaod.org>
hw/arm/aspeed_ast2600.c
hw/i2c/aspeed_i2c.c
include/hw/i2c/aspeed_i2c.h