mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 02:03:56 -06:00
hw/isa/vt82c686: Instantiate PM function in host device
The PM controller has activity bits which monitor activity of other built-in devices in the host device. Signed-off-by: Bernhard Beschow <shentey@gmail.com> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Acked-by: Daniel Henrique Barboza <danielhb413@gmail.com> Message-Id: <20220901114127.53914-10-shentey@gmail.com> Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
This commit is contained in:
parent
1a99ddbe35
commit
d105377264
4 changed files with 15 additions and 5 deletions
|
@ -168,8 +168,7 @@ static void pegasos2_init(MachineState *machine)
|
|||
dev = PCI_DEVICE(object_resolve_path_component(OBJECT(via), "ide"));
|
||||
pci_ide_create_devs(dev);
|
||||
|
||||
/* VT8231 function 4: Power Management Controller */
|
||||
dev = pci_create_simple(pci_bus, PCI_DEVFN(12, 4), TYPE_VT8231_PM);
|
||||
dev = PCI_DEVICE(object_resolve_path_component(OBJECT(via), "pm"));
|
||||
i2c_bus = I2C_BUS(qdev_get_child_bus(DEVICE(dev), "i2c"));
|
||||
spd_data = spd_data_generate(DDR, machine->ram_size);
|
||||
smbus_eeprom_init_one(i2c_bus, 0x57, spd_data);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue