mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
aspeed_soc: Propagate silicon-rev to watchdog
This is required to configure differences in behaviour between the AST2400 and AST2500 watchdog IPs. Signed-off-by: Andrew Jeffery <andrew@aj.id.au> Reviewed-by: Cédric Le Goater <clg@kaod.org> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
f55d613bc9
commit
429789cc77
1 changed files with 2 additions and 0 deletions
|
@ -183,6 +183,8 @@ static void aspeed_soc_init(Object *obj)
|
||||||
object_initialize(&s->wdt[i], sizeof(s->wdt[i]), TYPE_ASPEED_WDT);
|
object_initialize(&s->wdt[i], sizeof(s->wdt[i]), TYPE_ASPEED_WDT);
|
||||||
object_property_add_child(obj, "wdt[*]", OBJECT(&s->wdt[i]), NULL);
|
object_property_add_child(obj, "wdt[*]", OBJECT(&s->wdt[i]), NULL);
|
||||||
qdev_set_parent_bus(DEVICE(&s->wdt[i]), sysbus_get_default());
|
qdev_set_parent_bus(DEVICE(&s->wdt[i]), sysbus_get_default());
|
||||||
|
qdev_prop_set_uint32(DEVICE(&s->wdt[i]), "silicon-rev",
|
||||||
|
sc->info->silicon_rev);
|
||||||
}
|
}
|
||||||
|
|
||||||
object_initialize(&s->ftgmac100, sizeof(s->ftgmac100), TYPE_FTGMAC100);
|
object_initialize(&s->ftgmac100, sizeof(s->ftgmac100), TYPE_FTGMAC100);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue