[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-arm] [PATCH for 2.11 v2 2/2] ARM: aspeed_soc: Propagate silico
From: |
Cédric Le Goater |
Subject: |
Re: [Qemu-arm] [PATCH for 2.11 v2 2/2] ARM: aspeed_soc: Propagate silicon-rev to watchdog |
Date: |
Wed, 9 Aug 2017 10:58:54 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 |
On 08/09/2017 08:28 AM, Andrew Jeffery wrote:
> This is required to configure differences in behaviour between the
> AST2400 and AST2500 watchdog IPs.
>
> Signed-off-by: Andrew Jeffery <address@hidden>
Reviewed-by: Cédric Le Goater <address@hidden>
> ---
> hw/arm/aspeed_soc.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/hw/arm/aspeed_soc.c b/hw/arm/aspeed_soc.c
> index 3034849c80bf..79804e1ee652 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);
>