From patchwork Wed Aug 9 06:28:27 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Andrew Jeffery X-Patchwork-Id: 9889555 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 D6C6360363 for ; Wed, 9 Aug 2017 06:30:28 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CAAA128A2C for ; Wed, 9 Aug 2017 06:30:28 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BF2D428A2F; Wed, 9 Aug 2017 06:30:28 +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 4E20928A2C for ; Wed, 9 Aug 2017 06:30:28 +0000 (UTC) Received: from localhost ([::1]:45877 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dfKVf-0006GU-DC for patchwork-qemu-devel@patchwork.kernel.org; Wed, 09 Aug 2017 02:30:27 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37084) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dfKUW-00065I-9W for qemu-devel@nongnu.org; Wed, 09 Aug 2017 02:29:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dfKUV-00077C-6T for qemu-devel@nongnu.org; Wed, 09 Aug 2017 02:29:16 -0400 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:49147) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dfKUS-00074M-Dz; Wed, 09 Aug 2017 02:29:12 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 207D021D8A; Wed, 9 Aug 2017 02:29:12 -0400 (EDT) Received: from frontend1 ([10.202.2.160]) by compute4.internal (MEProxy); Wed, 09 Aug 2017 02:29:12 -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=Z3fGJ84XiHQ9ztY+/5eKGK HLjluhtRR6G0dIyhaGPmqRz2fzHlAGtuH2ywgUZTftnSJvI3TLOFWhHAvbDEdRQ1 C7u1RUPXid4BL9qf+/0OAlEvSBJ34Hx4EKwpQQ1Cghkk6wXrM0UWupJeaxkbiyOM HIrK5x2ia5Dgb9UzOLlN4oPEVSiIdxxvAS9fhLbNiLpka/xQNkt7BPIYx8TRpcEh ECUF0Et91oXRIBouzxf+2nw+kD03vUToBA7446/ccHE7wixhrfITqdEXj5zr9Prm svQCuxYxz2fSHtZJEeeDXsAgoaYeJ60/HKiPrhVM9p1bESnyZwYCmIpGUP6op/Aw == 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=iJsVEs2rNkve9hzB53n83/540vLaOjuIIUJpievNU+ogWoVFnz2nrcZb6 pLSrhkKTgwt1ninRqinv/EocardHS9JkXyTkXoqlJQzZw1eZc2/D5RnYzcd6ngvv xwg7Yh/H21ZSDg1h7T2ksNLKOzTUJerkSsD8o32/Z0Mvo63dwJua1ZPkntnzsiIV WJPojo3cfjuQgE+bm5yWWLtohFfdbZqM1AyzpFQ7nSCk6OOIsdq5UbE3uaFz6dt4 ZTiND/XpehKk+/cqIWyuKYZjYR6TS0JPp/ptRTTRnEG+puPf2cT/sD/O6Xrch/Rl sWoS/68Tu/Z27DBm8/RfUwZ/F3e6A== X-ME-Sender: X-Sasl-enc: tTMzAZynhKDKbaPvkMIe+Qk0KQeNohPjhIulxVqiyMr+ 1502260150 Received: from keelia.au.ibm.com (unknown [203.0.153.9]) by mail.messagingengine.com (Postfix) with ESMTPA id 7A4BF7E4EA; Wed, 9 Aug 2017 02:29:08 -0400 (EDT) From: Andrew Jeffery To: qemu-arm@nongnu.org Date: Wed, 9 Aug 2017 15:58:27 +0930 Message-Id: <20170809062828.3673-3-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] ARM: 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, qemu-devel@nongnu.org, f4bug@amsat.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 Reviewed-by: Cédric Le Goater --- 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);