From patchwork Wed Aug 9 06:28:28 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Jeffery X-Patchwork-Id: 9889565 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id AD27B60363 for ; Wed, 9 Aug 2017 06:33:29 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A1AF928978 for ; Wed, 9 Aug 2017 06:33:29 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9615728A09; Wed, 9 Aug 2017 06:33:29 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id F359428978 for ; Wed, 9 Aug 2017 06:33:28 +0000 (UTC) Received: from localhost ([::1]:45891 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dfKYa-0008RU-27 for patchwork-qemu-devel@patchwork.kernel.org; Wed, 09 Aug 2017 02:33:28 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37137) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dfKUb-0006AU-Vx for qemu-devel@nongnu.org; Wed, 09 Aug 2017 02:29:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dfKUb-0007C2-1E for qemu-devel@nongnu.org; Wed, 09 Aug 2017 02:29:22 -0400 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:37551) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dfKUW-00078O-Hi; Wed, 09 Aug 2017 02:29:16 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 33E8021D94; Wed, 9 Aug 2017 02:29:16 -0400 (EDT) Received: from frontend1 ([10.202.2.160]) by compute4.internal (MEProxy); Wed, 09 Aug 2017 02:29:16 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aj.id.au; h=cc :date:from:in-reply-to:message-id:references:subject:to :x-me-sender:x-me-sender:x-sasl-enc:x-sasl-enc; s=fm1; bh=uzkJPq WJqx0LJSLGO2T7w8trESySPWwGjTeWE+nE2Eg=; b=Xb6mpwXIPKUtOUan33+fYL L/SDOpXbz/zkzMyv5CW17cRox7fvXWCGgw54ZF9BYcwiZmq+VVhp7Y0sK901pUDq DjNZfccf0n8N+EyR0rP1QxDd/B+iXd3DKpIbHSOQxWCK5EqtuIhLB9xbmRDE2fzz FI+s75/vFu0TH30ruJWXQcR8WKwH3Dl9KnWtxj+WcrS2qm72c1NxB9hm94F1TK2l vp6yJVYzyhUEYd+yyBAjtQNKUXhv6/LwO4pRLVrLUJm8vmXPDPcSJSglIqjSy74G aAp5QNmwsWC1QXKYhI+iZuG/yJHIryVRYjSeg8YC0F2RKAXe62sOYKX7PAgBGuLA == DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:date:from:in-reply-to:message-id :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc :x-sasl-enc; s=fm1; bh=uzkJPqWJqx0LJSLGO2T7w8trESySPWwGjTeWE+nE2 Eg=; b=o+NmTluxJduFUK2GS50lpjwEg3qbwsvUd2YUCfeBFK49wZjo3kgmY0M6e y/zQocURtsJVYiDV/D1TbOiRGAhcQvOi6NXP72dXckEgxHyEsf/F3pSxk31PzLtp dJf681C8GrmVj7WqMh4vMOZpTYVpA7WcGWRKXWB1yZxvYuVPdGkL6N28zB2Vwfd4 cNnfhZfbqH1BoybIphGp/qoGFxZdd4WR5nkqf6vwEUAryeO35hvAvxjp9WtMMERs SD0w9Af4f6Z9bDk7CMbzICWJLjYEkhVssCIxmXBeBolYdGyD4hoKicgx2YugzPhu +9HQYBPB2Kv9ewIKN3pzGTkxtbUTQ== X-ME-Sender: X-Sasl-enc: RVCtiwK1GOosjdI/Fu7vDvXKZ2dhAy+/pq7OHJNhdLpb 1502260155 Received: from keelia.au.ibm.com (unknown [203.0.153.9]) by mail.messagingengine.com (Postfix) with ESMTPA id 87B997E4EA; Wed, 9 Aug 2017 02:29:12 -0400 (EDT) From: Andrew Jeffery To: qemu-arm@nongnu.org Date: Wed, 9 Aug 2017 15:58:28 +0930 Message-Id: <20170809062828.3673-4-andrew@aj.id.au> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170809062828.3673-1-andrew@aj.id.au> References: <20170809062828.3673-1-andrew@aj.id.au> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 66.111.4.25 Subject: [Qemu-devel] [PATCH for 2.11 v2 2/2] aspeed_soc: Propagate silicon-rev to watchdog X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: peter.maydell@linaro.org, ryan_chen@aspeedtech.com, Andrew Jeffery , openbmc@lists.ozlabs.org, f4bug@amsat.org, qemu-devel@nongnu.org, joel@jms.id.au, clg@kaod.org Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP This is required to configure differences in behaviour between the AST2400 and AST2500 watchdog IPs. Signed-off-by: Andrew Jeffery --- 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);