From patchwork Mon Jun 27 18:53:33 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alistair Francis X-Patchwork-Id: 641192 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3rddY34DPcz9sCg for ; Tue, 28 Jun 2016 05:00:07 +1000 (AEST) Received: from localhost ([::1]:60481 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bHblN-0002Ti-IG for incoming@patchwork.ozlabs.org; Mon, 27 Jun 2016 15:00:05 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56582) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bHbfU-0003zr-Gj for qemu-devel@nongnu.org; Mon, 27 Jun 2016 14:54:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bHbfR-0006L6-BT for qemu-devel@nongnu.org; Mon, 27 Jun 2016 14:54:00 -0400 Received: from mail-cys01nam02on0041.outbound.protection.outlook.com ([104.47.37.41]:52512 helo=NAM02-CY1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bHbfR-0006L1-2m for qemu-devel@nongnu.org; Mon, 27 Jun 2016 14:53:57 -0400 Received: from CY1NAM02FT027.eop-nam02.prod.protection.outlook.com (10.152.74.60) by CY1NAM02HT032.eop-nam02.prod.protection.outlook.com (10.152.74.230) with Microsoft SMTP Server (TLS) id 15.1.523.9; Mon, 27 Jun 2016 18:53:55 +0000 Authentication-Results: spf=fail (sender IP is 149.199.60.96) smtp.mailfrom=xilinx.com; linaro.org; dkim=none (message not signed) header.d=none; linaro.org; dmarc=none action=none header.from=xilinx.com; Received-SPF: Fail (protection.outlook.com: domain of xilinx.com does not designate 149.199.60.96 as permitted sender) receiver=protection.outlook.com; client-ip=149.199.60.96; helo=xsj-tvapsmtpgw01; Received: from xsj-tvapsmtpgw01 (149.199.60.96) by CY1NAM02FT027.mail.protection.outlook.com (10.152.75.159) with Microsoft SMTP Server (TLS) id 15.1.523.9 via Frontend Transport; Mon, 27 Jun 2016 18:53:54 +0000 Received: from 172-16-1-203.xilinx.com ([172.16.1.203]:39853 helo=xsj-tvapsmtp02.xilinx.com) by xsj-tvapsmtpgw01 with esmtp (Exim 4.63) (envelope-from ) id 1bHbfO-0006IP-Dd; Mon, 27 Jun 2016 11:53:54 -0700 Received: from [127.0.0.1] (port=48693 helo=tsj-smtp-dlp1.xlnx.xilinx.com) by xsj-tvapsmtp02.xilinx.com with esmtp (Exim 4.63) (envelope-from ) id 1bHbfO-0006Xy-9w; Mon, 27 Jun 2016 11:53:54 -0700 Received: from xsj-tvapsmtp02 (xsj-tvapsmtp02.xilinx.com [172.16.1.203]) by tsj-smtp-dlp1.xlnx.xilinx.com (8.13.8/8.13.1) with ESMTP id u5RIlKqI022963; Mon, 27 Jun 2016 11:47:20 -0700 Received: from [172.19.74.182] (port=60382 helo=xsjalistai50.xilinx.com) by xsj-tvapsmtp02 with esmtp (Exim 4.63) (envelope-from ) id 1bHbfN-0006Xv-4h; Mon, 27 Jun 2016 11:53:53 -0700 From: Alistair Francis To: , Date: Mon, 27 Jun 2016 11:53:33 -0700 Message-ID: <85f39c9a13569b1113dacac3b952b0af54fc1260.1467053537.git.alistair.francis@xilinx.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: References: X-RCIS-Action: ALLOW X-TM-AS-MML: disable X-TM-AS-Product-Ver: IMSS-7.1.0.1679-8.0.0.1202-22416.006 X-TM-AS-Result: No--7.389-7.0-31-10 X-imss-scan-details: No--7.389-7.0-31-10 X-TMASE-MatchedRID: 1i0AMq9n9qPUbyut0lXeoBIRh9wkXSlFMZm0+sEE9mvTeMDmWfCXBnY3 TcMnBmkfThbvLLI8RvML1e7TPqB0BdUxnprpNPvVyeVujmXuYYW8k98SikuQ7IeUNQK7Qj5c/Py 9qOi5zpeE97yr4g+GPoAy6p60ZV62fJ5/bZ6npdg7AFczfjr/7BBHbnDRjjuDNADK2JP92Teb+V 0dOVP9SwReYXGU0LrN7C7MO1bEdt4= X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:149.199.60.96; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(7916002)(2980300002)(1109001)(1110001)(339900001)(199003)(189002)(7696003)(5003600100003)(77096005)(106466001)(48376002)(229853001)(8936002)(47776003)(33646002)(19580395003)(19580405001)(8676002)(7846002)(6806005)(64026002)(81156014)(2950100001)(50226002)(105606002)(305945005)(356003)(85426001)(118296001)(586003)(36756003)(92566002)(50466002)(5001770100001)(50986999)(4326007)(86362001)(5003940100001)(81166006)(189998001)(87936001)(2906002)(9786002)(76176999)(11100500001)(71366001)(107986001); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1NAM02HT032; H:xsj-tvapsmtpgw01; FPR:; SPF:Fail; PTR:unknown-60-96.xilinx.com; A:1; MX:1; CAT:NONE; LANG:en; CAT:NONE; MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: 7b4e39a0-f913-404e-6e75-08d39ebc63b6 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:CY1NAM02HT032; X-Microsoft-Antispam-PRVS: <269c050199a54eb89127af5965f06e6a@CY1NAM02HT032.eop-nam02.prod.protection.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(192813158149592)(21532816269658); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(13017025)(8121501046)(5005006)(13024025)(13023025)(13018025)(13015025)(10201501046)(3002001)(6055026); SRVR:CY1NAM02HT032; BCL:0; PCL:0; RULEID:; SRVR:CY1NAM02HT032; X-Forefront-PRVS: 09860C2161 X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Jun 2016 18:53:54.9093 (UTC) X-MS-Exchange-CrossTenant-Id: 657af505-d5df-48d0-8300-c31994686c5c X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=657af505-d5df-48d0-8300-c31994686c5c; Ip=[149.199.60.96]; Helo=[xsj-tvapsmtpgw01] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1NAM02HT032 X-detected-operating-system: by eggs.gnu.org: Windows 7 or 8 [fuzzy] X-Received-From: 104.47.37.41 Subject: [Qemu-devel] [PATCH v9 8/8] xilinx_zynq: Connect devcfg to the Zynq machine model 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: edgar.iglesias@xilinx.com, alistair.francis@xilinx.com, crosthwaitepeter@gmail.com, edgar.iglesias@gmail.com, alex.bennee@linaro.org, afaerber@suse.de, fred.konrad@greensocs.com Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" From: Peter Crosthwaite Signed-off-by: Peter Crosthwaite Signed-off-by: Alistair Francis Reviewed-by: Peter Maydell --- V7: - Remove unused property add V4: - Small corrections to the device model logic hw/arm/xilinx_zynq.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/hw/arm/xilinx_zynq.c b/hw/arm/xilinx_zynq.c index aefebcf..f26c273 100644 --- a/hw/arm/xilinx_zynq.c +++ b/hw/arm/xilinx_zynq.c @@ -294,6 +294,12 @@ static void zynq_init(MachineState *machine) sysbus_connect_irq(busdev, n + 1, pic[dma_irqs[n] - IRQ_OFFSET]); } + dev = qdev_create(NULL, "xlnx.ps7-dev-cfg"); + qdev_init_nofail(dev); + busdev = SYS_BUS_DEVICE(dev); + sysbus_connect_irq(busdev, 0, pic[40 - IRQ_OFFSET]); + sysbus_mmio_map(busdev, 0, 0xF8007000); + zynq_binfo.ram_size = ram_size; zynq_binfo.kernel_filename = kernel_filename; zynq_binfo.kernel_cmdline = kernel_cmdline;