]> git.proxmox.com Git - mirror_qemu.git/commit
ppc4xx_i2c: Implement directcntl register
authorBALATON Zoltan <balaton@eik.bme.hu>
Tue, 19 Jun 2018 08:52:15 +0000 (10:52 +0200)
committerDavid Gibson <david@gibson.dropbear.id.au>
Thu, 21 Jun 2018 11:22:53 +0000 (21:22 +1000)
commitef9173a5c086b5114343a86943f9b26a9c72d7d6
tree345b7ca3c115f2a6caad566f2af04be1439cbb48
parent39aeba6caa4b9de8b195fddddae5cc5835d19b04
ppc4xx_i2c: Implement directcntl register

As well as being able to generate its own i2c transactions, the ppc4xx
i2c controller has a DIRECTCNTL register which allows explicit control
of the i2c lines.

Using this register an OS can directly bitbang i2c operations. In
order to let emulated i2c devices respond to this, we need to wire up
the DIRECTCNTL register to qemu's bitbanged i2c handling code.

Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
default-configs/ppc-softmmu.mak
default-configs/ppcemb-softmmu.mak
hw/i2c/ppc4xx_i2c.c
include/hw/i2c/ppc4xx_i2c.h