aboutsummaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorBALATON Zoltan <balaton@eik.bme.hu>2018-06-29 00:38:33 +0200
committerDavid Gibson <david@gibson.dropbear.id.au>2018-07-03 09:56:52 +1000
commitd2179f70d396cf796151ebf56cc177d7c3e53749 (patch)
tree66313cd030d754172a4f2142ef903087812005e8 /hw
parentc6f2594c4b19db903cd76e89578cf501056b744d (diff)
downloadqemu-d2179f70d396cf796151ebf56cc177d7c3e53749.zip
qemu-d2179f70d396cf796151ebf56cc177d7c3e53749.tar.gz
qemu-d2179f70d396cf796151ebf56cc177d7c3e53749.tar.bz2
sam460ex: Add RTC device
The Sam460ex has an M41T80 serial RTC chip on I2C bus 0 at address 0x68. Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu> Reviewed-by: Cédric Le Goater <clg@kaod.org> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'hw')
-rw-r--r--hw/ppc/sam460ex.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/ppc/sam460ex.c b/hw/ppc/sam460ex.c
index 33ea518..a03d12d1 100644
--- a/hw/ppc/sam460ex.c
+++ b/hw/ppc/sam460ex.c
@@ -485,6 +485,7 @@ static void sam460ex_init(MachineState *machine)
object_property_set_bool(OBJECT(dev), true, "realized", NULL);
smbus_eeprom_init(i2c[0]->bus, 8, smbus_eeprom_buf, smbus_eeprom_size);
g_free(smbus_eeprom_buf);
+ i2c_create_slave(i2c[0]->bus, "m41t80", 0x68);
dev = sysbus_create_simple(TYPE_PPC4xx_I2C, 0x4ef600800, uic[0][3]);
i2c[1] = PPC4xx_I2C(dev);