From patchwork Fri Sep 1 21:00:35 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alistair Francis X-Patchwork-Id: 9935271 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 1CDA96038C for ; Fri, 1 Sep 2017 21:12:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 06225283D1 for ; Fri, 1 Sep 2017 21:12:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EDA35283ED; Fri, 1 Sep 2017 21:12:09 +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=BAD_ENC_HEADER,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 5948E283FF for ; Fri, 1 Sep 2017 21:12:09 +0000 (UTC) Received: from localhost ([::1]:60824 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dntDY-0005rO-NS for patchwork-qemu-devel@patchwork.kernel.org; Fri, 01 Sep 2017 17:11:08 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52827) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dnt7D-0000Sj-Vc for qemu-devel@nongnu.org; Fri, 01 Sep 2017 17:04:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dnt79-0006pB-Nh for qemu-devel@nongnu.org; Fri, 01 Sep 2017 17:04:35 -0400 Received: from mail-by2nam03on0059.outbound.protection.outlook.com ([104.47.42.59]:61310 helo=NAM03-BY2-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dnt6z-0006hs-4w; Fri, 01 Sep 2017 17:04:21 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xilinx.onmicrosoft.com; s=selector1-xilinx-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=FNAzIUiukrqNoMRKfQ1Q6SiXhV7sOE9PEpQnRfqV1lc=; b=W/YCeZrW58wm4lxpwueEmf4m24iAM3gbVFEkEZN/ze4qWBjLYQUnNRiY05nGQTo9cYSC51S6wg+onvQ9PDtIDO8kscDCsUwWpMo8RHAkWNL/8JOF2/1VIwsev3Auwfr/ATCLFpahiyVNJ4f4O7QwCuw2pNmVToR+smu6vy+JKeY= Received: from MWHPR0201CA0036.namprd02.prod.outlook.com (10.167.160.177) by CY4PR02MB2696.namprd02.prod.outlook.com (10.175.59.18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.1.1385.9; Fri, 1 Sep 2017 21:04:18 +0000 Received: from BL2NAM02FT027.eop-nam02.prod.protection.outlook.com (2a01:111:f400:7e46::203) by MWHPR0201CA0036.outlook.office365.com (2603:10b6:301:74::49) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.13.10 via Frontend Transport; Fri, 1 Sep 2017 21:04:17 +0000 Authentication-Results: spf=pass (sender IP is 149.199.60.83) smtp.mailfrom=xilinx.com; nongnu.org; dkim=none (message not signed) header.d=none;nongnu.org; dmarc=bestguesspass action=none header.from=xilinx.com; Received-SPF: Pass (protection.outlook.com: domain of xilinx.com designates 149.199.60.83 as permitted sender) receiver=protection.outlook.com; client-ip=149.199.60.83; helo=xsj-pvapsmtpgw01; Received: from xsj-pvapsmtpgw01 (149.199.60.83) by BL2NAM02FT027.mail.protection.outlook.com (10.152.77.160) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1385.11 via Frontend Transport; Fri, 1 Sep 2017 21:04:17 +0000 Received: from unknown-38-66.xilinx.com ([149.199.38.66] helo=xsj-pvapsmtp01) by xsj-pvapsmtpgw01 with esmtp (Exim 4.63) (envelope-from ) id 1dnt6u-0004gE-LB; Fri, 01 Sep 2017 14:04:16 -0700 Received: from [127.0.0.1] (helo=localhost) by xsj-pvapsmtp01 with smtp (Exim 4.63) (envelope-from ) id 1dnt6u-0007fC-Hf; Fri, 01 Sep 2017 14:04:16 -0700 Received: from xsj-pvapsmtp01 (mailhub.xilinx.com [149.199.38.66]) by xsj-smtp-dlp2.xlnx.xilinx.com (8.13.8/8.13.1) with ESMTP id v81L4BaA021007; Fri, 1 Sep 2017 14:04:11 -0700 Received: from [172.19.2.220] (helo=localhost.localdomain) by xsj-pvapsmtp01 with esmtp (Exim 4.63) (envelope-from ) id 1dnt6o-0007eP-Ub; Fri, 01 Sep 2017 14:04:10 -0700 From: Alistair Francis To: , , Date: Fri, 1 Sep 2017 14:00:35 -0700 Message-ID: <15b2a02d1aae37b49a13a32c5af466e2b63c11ac.1504293917.git.alistair.francis@xilinx.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: References: X-RCIS-Action: ALLOW X-TM-AS-Product-Ver: IMSS-7.1.0.1224-8.1.0.1062-23296.003 X-TM-AS-User-Approved-Sender: Yes;Yes X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:149.199.60.83; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(39860400002)(2980300002)(438002)(199003)(189002)(2906002)(63266004)(9786002)(5660300001)(305945005)(77096006)(33646002)(81156014)(76176999)(50986999)(106466001)(81166006)(5003940100001)(8676002)(8936002)(47776003)(189998001)(2201001)(36756003)(478600001)(626005)(36386004)(39060400002)(118296001)(48376002)(50466002)(50226002)(2950100002)(356003)(6666003)(54906002)(230783001)(4326008)(2004002)(107986001)(2101003); DIR:OUT; SFP:1101; SCL:1; SRVR:CY4PR02MB2696; H:xsj-pvapsmtpgw01; FPR:; SPF:Pass; PTR:unknown-60-83.xilinx.com; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2NAM02FT027; 1:6l5TA89FYD+s3xGgT2uFw2PpebnSNPML5hOY7VQkEmyGVa+JsbfpeopenJEAA/QLzamk28lVMRXZIR7owySulnkPn/DyJJhmbGjNMUQYXb2jfqcOPF23wpk20huwnY4Q MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 25bd4ad4-bab5-45d1-fd45-08d4f17d0222 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(2017030254152)(8251501002)(300000503095)(300135400095)(2017052603199)(201703131423075)(201703031133081)(201702281549075)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:CY4PR02MB2696; X-Microsoft-Exchange-Diagnostics: 1; CY4PR02MB2696; 3:26w2OZN4AWOowXALJeilsNhrUwTWgK5R3NsVXbItYoMflqyct5pvVKcekRdIGeLSl7MONbaF8WgqI8oEeZFaLNRYvsE+qK3XCu/CIFHvEuj9VfpxBaz/5lbkAbEGo75D7vaSdjVAiHTiqG6jQbLIsz1Y8blSqvOaqJSipG9HRWslUiFrQcf2Fb94b9pHr8xEi+sqJjj1N3LbG+Bf09GDv8AF8f+gmymCouxP+puvogHcqysgTQwT00vy9HXNJXx+e14yMdW6FdOAPG7tsJ90NQB0EklhvSC1xmzZJyaBUCxLk4h/G07WEDN5OwL3D7mqObTFyl6SNIFCJRYFGVOfERq14c8sx5oi2YJuLMuAVZg=; 25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N4s8f37C+kdbcSCfltZ5n4OYSs0GXE7Hjjss5m1TNEjhSrl5athWFAv03zXckawSlHsB7/HCpoqvz4rVlXSEpOtNn3twS/zBtH9q3yi X-Exchange-Antispam-Report-Test: UriScan:(192813158149592)(21532816269658); X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(8121501046)(5005006)(13016025)(13018025)(100000703101)(100105400095)(93006095)(93004095)(3002001)(10201501046)(6055026)(6041248)(20161123562025)(20161123560025)(20161123555025)(20161123564025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123558100)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:CY4PR02MB2696; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:CY4PR02MB2696; X-Microsoft-Exchange-Diagnostics: 1; CY4PR02MB2696; 4:ELF7DAnt1j6lR88WTH/OqT47ZI+fkWBplTV5dANZ6DxbJHHBxtfvc3rSb1hrAd6l58kTJWg7YNJ+y6WulzdsX9IhZfjm082lvf5lv1UvDxWr1z8zZ3onuwybTEFNYT67L+zF97vmmGpxqzBcFMVcQiSw+rsgL8tur9OIkmQatHIN3u8ZDMSVDYvtE5yvBJIM5t8J4zSf0UyuQXojs8pTz1XigNvTZ3X3TyxqtMcr4uItKSkHOFHJP4gxhwZuWVFjTbqKe98f9F2cKD91d8LN6rwebO3rdvGTmh5ci9P7yrL+kSxEsDNp8y7tx5ZmjGZpOPnsvHxprASLEseleDOqJw== X-Forefront-PRVS: 0417A3FFD2 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY4PR02MB2696; 23:UDPdGnIBheo+3ZDLbirVegFzoDDU14Vvcc2uKNSH9?= =?us-ascii?Q?1iGrPqGhd1wKr0A24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ticMetadata: NSPM X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Sep 2017 21:04:17.1073 (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.83]; Helo=[xsj-pvapsmtpgw01] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR02MB2696 X-detected-operating-system: by eggs.gnu.org: Windows 7 or 8 [fuzzy] X-Received-From: 104.47.42.59 Subject: [Qemu-devel] [PATCH v2 1/6] xlnx-zynqmp-pmu: Initial commit of the ZynqMP PMU 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: alistair23@gmail.com, qemu-arm@nongnu.org, alistair.francis@xilinx.com Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP The Xilinx ZynqMP SoC has two main processing systems in it. The ARM processing system (which is already modeled in QEMU) and the MicroBlaze Power Management Unit (PMU). This is the inital work for adding support for the PMU. The PMU susbsystem runs along side the ARM system on hardware, but due to architecture limitations in QEMU the two instances are seperate for the time being. Let's follow the same setup we do with the ARM system, where there is an SoC device and a ZCU102 board. Although the PMU is less board specific we are still going to follow the same split as maybe in future we can connect the PMU device to the ARM ZCU102 board. As the machine will be fairly small let's keep them both together in one file. Signed-off-by: Alistair Francis --- hw/microblaze/Makefile.objs | 1 + hw/microblaze/xlnx-zynqmp-pmu.c | 83 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 84 insertions(+) create mode 100644 hw/microblaze/xlnx-zynqmp-pmu.c diff --git a/hw/microblaze/Makefile.objs b/hw/microblaze/Makefile.objs index b2517d87fe..ae9fd40de7 100644 --- a/hw/microblaze/Makefile.objs +++ b/hw/microblaze/Makefile.objs @@ -1,3 +1,4 @@ obj-y += petalogix_s3adsp1800_mmu.o obj-y += petalogix_ml605_mmu.o +obj-y += xlnx-zynqmp-pmu.o obj-y += boot.o diff --git a/hw/microblaze/xlnx-zynqmp-pmu.c b/hw/microblaze/xlnx-zynqmp-pmu.c new file mode 100644 index 0000000000..fc3c8b236f --- /dev/null +++ b/hw/microblaze/xlnx-zynqmp-pmu.c @@ -0,0 +1,83 @@ +/* + * Xilinx Zynq MPSoC PMU (Power Management Unit) emulation + * + * Copyright (C) 2017 Xilinx Inc + * Written by Alistair Francis + * + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the + * Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + * for more details. + */ + +#include "qemu/osdep.h" +#include "qapi/error.h" +#include "qemu-common.h" +#include "hw/boards.h" +#include "cpu.h" + +/* Define the PMU device */ + +#define TYPE_XLNX_ZYNQMP_PMU "xlnx,zynqmp-pmu" +#define XLNX_ZYNQMP_PMU(obj) OBJECT_CHECK(XlnxZynqMPPMUState, (obj), \ + TYPE_XLNX_ZYNQMP_PMU) + +typedef struct XlnxZynqMPPMUState { + /*< private >*/ + DeviceState parent_obj; + + /*< public >*/ +} XlnxZynqMPPMUState; + +static void xlnx_zynqmp_pmu_init(Object *obj) +{ + +} + +static void xlnx_zynqmp_pmu_realize(DeviceState *dev, Error **errp) +{ + +} + +static void xlnx_zynqmp_pmu_class_init(ObjectClass *oc, void *data) +{ + DeviceClass *dc = DEVICE_CLASS(oc); + + dc->realize = xlnx_zynqmp_pmu_realize; +} + +static const TypeInfo xlnx_zynqmp_pmu_type_info = { + .name = TYPE_XLNX_ZYNQMP_PMU, + .parent = TYPE_DEVICE, + .instance_size = sizeof(XlnxZynqMPPMUState), + .instance_init = xlnx_zynqmp_pmu_init, + .class_init = xlnx_zynqmp_pmu_class_init, +}; + +static void xlnx_zynqmp_pmu_register_types(void) +{ + type_register_static(&xlnx_zynqmp_pmu_type_info); +} + +type_init(xlnx_zynqmp_pmu_register_types) + +/* Define the PMU Machine */ + +static void xlnx_zcu102_pmu_init(MachineState *machine) +{ + +} + +static void xlnx_zcu102_pmu_machine_init(MachineClass *mc) +{ + mc->desc = "Xilinx ZynqMP ZCU102 PMU machine"; + mc->init = xlnx_zcu102_pmu_init; +} + +DEFINE_MACHINE("xlnx-zcu102-pmu", xlnx_zcu102_pmu_machine_init) +