From: Andrew Jeffery Date: Mon, 4 Sep 2017 14:21:54 +0000 (+0100) Subject: aspeed_soc: Propagate silicon-rev to watchdog X-Git-Tag: v2.11.0-rc0~138^2~9 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=429789cc772514971e3d1190d1553f514054dd5c;p=thirdparty%2Fqemu.git 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 Reviewed-by: Cédric Le Goater Reviewed-by: Peter Maydell Signed-off-by: Peter Maydell --- diff --git a/hw/arm/aspeed_soc.c b/hw/arm/aspeed_soc.c index 5529024edf0..22dcac9a3b4 100644 --- a/hw/arm/aspeed_soc.c +++ b/hw/arm/aspeed_soc.c @@ -183,6 +183,8 @@ static void aspeed_soc_init(Object *obj) object_initialize(&s->wdt[i], sizeof(s->wdt[i]), TYPE_ASPEED_WDT); object_property_add_child(obj, "wdt[*]", OBJECT(&s->wdt[i]), NULL); 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);