mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 18:23:57 -06:00
i2c: addresses are load/save as uint8_t values, change types to reflect this
Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
c7cc172d20
commit
5b7f53270a
6 changed files with 35 additions and 34 deletions
|
@ -931,7 +931,7 @@ void mips_malta_init (ram_addr_t ram_size,
|
|||
/* TODO: Populate SPD eeprom data. */
|
||||
DeviceState *eeprom;
|
||||
eeprom = qdev_create((BusState *)smbus, "smbus-eeprom");
|
||||
qdev_prop_set_uint32(eeprom, "address", 0x50 + i);
|
||||
qdev_prop_set_uint8(eeprom, "address", 0x50 + i);
|
||||
qdev_prop_set_ptr(eeprom, "data", eeprom_buf + (i * 256));
|
||||
qdev_init(eeprom);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue