From patchwork Wed Jun 22 20:24:04 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alistair Francis X-Patchwork-Id: 639403 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 3rZc160dLRz9sBM for ; Thu, 23 Jun 2016 06:40:26 +1000 (AEST) Received: from localhost ([::1]:60740 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bFowh-0008KL-Nv for incoming@patchwork.ozlabs.org; Wed, 22 Jun 2016 16:40:23 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60905) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bFohF-0008TE-Qe for qemu-devel@nongnu.org; Wed, 22 Jun 2016 16:24:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bFohB-0003xX-LO for qemu-devel@nongnu.org; Wed, 22 Jun 2016 16:24:25 -0400 Received: from mail-bl2nam02on0086.outbound.protection.outlook.com ([104.47.38.86]:28105 helo=NAM02-BL2-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bFohB-0003xP-GN for qemu-devel@nongnu.org; Wed, 22 Jun 2016 16:24:21 -0400 Received: from BL2NAM02FT017.eop-nam02.prod.protection.outlook.com (10.152.76.56) by BL2NAM02HT053.eop-nam02.prod.protection.outlook.com (10.152.76.87) with Microsoft SMTP Server (TLS) id 15.1.523.9; Wed, 22 Jun 2016 20:24:20 +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 BL2NAM02FT017.mail.protection.outlook.com (10.152.77.174) with Microsoft SMTP Server (TLS) id 15.1.523.9 via Frontend Transport; Wed, 22 Jun 2016 20:24:19 +0000 Received: from 172-16-1-203.xilinx.com ([172.16.1.203]:56807 helo=xsj-tvapsmtp02.xilinx.com) by xsj-tvapsmtpgw01 with esmtp (Exim 4.63) (envelope-from ) id 1bFoh9-00077D-3p; Wed, 22 Jun 2016 13:24:19 -0700 Received: from [127.0.0.1] (port=37415 helo=tsj-smtp-dlp1.xlnx.xilinx.com) by xsj-tvapsmtp02.xilinx.com with esmtp (Exim 4.63) (envelope-from ) id 1bFoh8-0004hY-Ve; Wed, 22 Jun 2016 13:24:19 -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 u5MKHlxO002087; Wed, 22 Jun 2016 13:17:47 -0700 Received: from [172.19.74.182] (port=37790 helo=xsjalistai50.xilinx.com) by xsj-tvapsmtp02 with esmtp (Exim 4.63) (envelope-from ) id 1bFoh7-0004hV-W8; Wed, 22 Jun 2016 13:24:18 -0700 From: Alistair Francis To: , Date: Wed, 22 Jun 2016 13:24:04 -0700 Message-ID: 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-22406.005 X-TM-AS-Result: No--7.844-7.0-31-10 X-imss-scan-details: No--7.844-7.0-31-10 X-TMASE-MatchedRID: TvMV+tiAEoG1DfGM6db7X1z+axQLnAVBJYPMVkPEqCll3M0JaJAkWflY oV6p/cSxMHS3CqzUECS3zLG/fDxwMPxrs+NFHdyk8YGKGucXIE/NXgP7liZ5IhS11FlOYRohGNI HzzYFSvTi8zVgXoAltsIJ+4gwXrEtIAcCikR3vq/i1UKbzWDuiuXcx8DyixPXbaDsWXoQqJ74eC gZlRT9xNeM0xIt+Tz3 X-EOPAttributedMessage: 0 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)(189002)(199003)(2950100001)(50466002)(305945005)(5001770100001)(92566002)(77096005)(189998001)(50226002)(81156014)(81166006)(33646002)(2906002)(76176999)(50986999)(8676002)(8936002)(4326007)(105606002)(229853001)(106466001)(71366001)(85426001)(6806005)(87936001)(5003940100001)(86362001)(9786002)(36756003)(48376002)(7696003)(5003600100003)(356003)(11100500001)(118296001)(64026002)(586003)(19580405001)(19580395003)(7846002)(47776003)(107986001); DIR:OUT; SFP:1101; SCL:1; SRVR:BL2NAM02HT053; H:xsj-tvapsmtpgw01; FPR:; SPF:Fail; PTR:unknown-60-96.xilinx.com; MX:1; A:1; CAT:NONE; LANG:en; CAT:NONE; MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: 8962e494-681b-4e4d-e337-08d39adb30f1 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BL2NAM02HT053; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(192813158149592)(21532816269658); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(13024025)(13023025)(13018025)(13017025)(13015025)(8121501046)(5005006)(3002001)(10201501046)(6055026); SRVR:BL2NAM02HT053; BCL:0; PCL:0; RULEID:; SRVR:BL2NAM02HT053; X-Forefront-PRVS: 0981815F2F X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Jun 2016 20:24:19.7170 (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: BL2NAM02HT053 X-detected-operating-system: by eggs.gnu.org: Windows 7 or 8 [fuzzy] X-Received-From: 104.47.38.86 Subject: [Qemu-devel] [PATCH v7 08/12] 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;