hw/i2c/aspeed: add slave device in old register mode
commita8d48f59cd021b25359cc48cb8a897de7802f422
authorKlaus Jensen <k.jensen@samsung.com>
Thu, 30 Jun 2022 07:21:14 +0000 (30 09:21 +0200)
committerCédric Le Goater <clg@kaod.org>
Thu, 30 Jun 2022 07:21:14 +0000 (30 09:21 +0200)
treee1c48ca91207284a299fe895c5879fe6d8ecf341
parenta78e9839ae5eb0b95d9db8dd672e2977d2831605
hw/i2c/aspeed: add slave device in old register mode

Add slave mode functionality for the Aspeed I2C controller in old
register mode. This is implemented by realizing an I2C slave device
owned by the I2C controller and attached to its own bus.

The I2C slave device only implements asynchronous sends on the bus, so
slaves not supporting that will not be able to communicate with it.

Signed-off-by: Klaus Jensen <k.jensen@samsung.com>
[ clg: checkpatch fixes ]
Message-Id: <20220601210831.67259-6-its@irrelevant.dk>
Signed-off-by: Cédric Le Goater <clg@kaod.org>
Message-Id: <20220630045133.32251-7-me@pjd.dev>
Signed-off-by: Cédric Le Goater <clg@kaod.org>
hw/i2c/aspeed_i2c.c
include/hw/i2c/aspeed_i2c.h