From patchwork Fri Apr 24 19:31:29 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Crosthwaite X-Patchwork-Id: 464391 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 F3C031402DC for ; Sat, 25 Apr 2015 05:38:40 +1000 (AEST) Received: from localhost ([::1]:46235 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YljQs-0006SX-U6 for incoming@patchwork.ozlabs.org; Fri, 24 Apr 2015 15:38:38 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37754) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YljK5-0002Lv-80 for qemu-devel@nongnu.org; Fri, 24 Apr 2015 15:31:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YljK2-0007k4-0v for qemu-devel@nongnu.org; Fri, 24 Apr 2015 15:31:37 -0400 Received: from mail-bn1bon0082.outbound.protection.outlook.com ([157.56.111.82]:9696 helo=na01-bn1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YljK1-0007jc-Sx for qemu-devel@nongnu.org; Fri, 24 Apr 2015 15:31:33 -0400 Received: from BN1BFFO11FD045.protection.gbl (10.58.144.31) by BN1BFFO11HUB002.protection.gbl (10.58.144.149) with Microsoft SMTP Server (TLS) id 15.1.154.14; Fri, 24 Apr 2015 19:31:31 +0000 Authentication-Results: spf=fail (sender IP is 149.199.60.96) smtp.mailfrom=xilinx.com; gmail.com; dkim=none (message not signed) header.d=none; 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 BN1BFFO11FD045.mail.protection.outlook.com (10.58.145.0) with Microsoft SMTP Server (TLS) id 15.1.154.14 via Frontend Transport; Fri, 24 Apr 2015 19:31:31 +0000 Received: from 172-16-1-203.xilinx.com ([172.16.1.203]:51899 helo=xsj-tvapsmtp02.xilinx.com) by xsj-tvapsmtpgw01 with esmtp (Exim 4.63) (envelope-from ) id 1YljFF-0001mx-FM; Fri, 24 Apr 2015 12:26:37 -0700 Received: from [127.0.0.1] (port=33522 helo=tsj-smtp-dlp1.xlnx.xilinx.com) by xsj-tvapsmtp02.xilinx.com with esmtp (Exim 4.63) (envelope-from ) id 1YljJy-0001Gm-D0; Fri, 24 Apr 2015 12:31:30 -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 t3OJRQdN005377; Fri, 24 Apr 2015 12:27:26 -0700 Received: from [172.19.74.49] (port=38255 helo=xsjsorenbubuntu.xilinx.com) by xsj-tvapsmtp02 with esmtp (Exim 4.63) (envelope-from ) id 1YljJx-0001GY-4e; Fri, 24 Apr 2015 12:31:29 -0700 From: Peter Crosthwaite To: Date: Fri, 24 Apr 2015 12:31:29 -0700 Message-ID: <4d246bb6642001ec76a3635e375cb66f50dc1ecc.1429903602.git.peter.crosthwaite@xilinx.com> X-Mailer: git-send-email 2.3.6.3.g2cc70ee In-Reply-To: References: X-RCIS-Action: ALLOW X-TM-AS-MML: disable X-TM-AS-Product-Ver: IMSS-7.1.0.1679-7.5.0.1018-21500.005 X-TM-AS-Result: No--3.343-7.0-31-10 X-imss-scan-details: No--3.343-7.0-31-10 X-TMASE-MatchedRID: mSPDr4jZDFGGeJygPEVoVgzi9ePw0R3QnF8rflXuiRX/evmlVf9xZhl5 McgO0IVkXxLz+0jSyE3H5DPULyc4Tp4dOTBCL+zXA9lly13c/gHDHSNFHFxB85e6URBiqLEnaMv zMbGvEKvC+tSZjRp5PAJnEQZnzKHQnJra0Su7THud4hCa7xSZoZ20dShmm+V5QtAmhdC/04uiQ0 QxVRsW5kIr/OXnA2Du9g1tUd67Cdaqqydsj0Rs6brbxxduc6FPPZmbnY2qDImbKItl61J/yZ+in TK0bC9eKrauXd3MZDV4pbUbGV6PtwiF5oIyYcXKraXJdevDRSrMoDJFW508C8lgVZjNOLNIxdFa t0peesWM4dOCFW2zkVOobQd1LtHIv0YcvixOWF6qBBhtzPlTslPJnXL2yNYdkuo847l05tDEzMy Amsz+FHoWLWlXcsZv X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:149.199.60.96; CTRY:US; IPV:NLI; EFV:NLI; BMV:1; SFV:NSPM; SFS:(10009020)(6009001)(339900001)(199003)(189002)(50226001)(2950100001)(62966003)(77156002)(71366001)(92566002)(64026002)(86362001)(77096005)(118296001)(36756003)(110136001)(50466002)(19580395003)(33646002)(19580405001)(105606002)(47776003)(106466001)(76176999)(87936001)(6806004)(46102003)(48376002)(2351001)(85426001)(50986999)(229853001)(107986001)(4001430100001); DIR:OUT; SFP:1101; SCL:1; SRVR:BN1BFFO11HUB002; H:xsj-tvapsmtpgw01; FPR:; SPF:Fail; MLV:sfv; A:1; MX:1; LANG:en; MIME-Version: 1.0 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BN1BFFO11HUB002; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(5002010)(5005006)(3002001); SRVR:BN1BFFO11HUB002; BCL:0; PCL:0; RULEID:; SRVR:BN1BFFO11HUB002; X-Forefront-PRVS: 05568D1FF7 X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Apr 2015 19:31:31.3247 (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: BN1BFFO11HUB002 X-detected-operating-system: by eggs.gnu.org: Windows 7 or 8 X-Received-From: 157.56.111.82 Cc: edgar.iglesias@xilinx.com, peter.maydell@linaro.org, zach.pfeffer@xilinx.com, jues@xilinx.com, ozaki.ryota@gmail.com, Alistair Francis , michals@xilinx.com Subject: [Qemu-devel] [PATCH target-arm v5 12/14] arm: Add xlnx-ep108 machine X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Add a machine model for the Xilinx ZynqMP SoC EP108 board. Reviewed-by: Alistair Francis Reviewed-by: Peter Maydell Tested-by: Alistair Francis Signed-off-by: Peter Crosthwaite --- Chaned since v1: Change board name to ep108 hw/arm/Makefile.objs | 2 +- hw/arm/xlnx-ep108.c | 53 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 54 insertions(+), 1 deletion(-) create mode 100644 hw/arm/xlnx-ep108.c diff --git a/hw/arm/Makefile.objs b/hw/arm/Makefile.objs index d7cd5f4..a75a182 100644 --- a/hw/arm/Makefile.objs +++ b/hw/arm/Makefile.objs @@ -10,4 +10,4 @@ obj-$(CONFIG_DIGIC) += digic.o obj-y += omap1.o omap2.o strongarm.o obj-$(CONFIG_ALLWINNER_A10) += allwinner-a10.o cubieboard.o obj-$(CONFIG_STM32F205_SOC) += stm32f205_soc.o -obj-$(CONFIG_XLNX_ZYNQMP) += xlnx-zynqmp.o +obj-$(CONFIG_XLNX_ZYNQMP) += xlnx-zynqmp.o xlnx-ep108.o diff --git a/hw/arm/xlnx-ep108.c b/hw/arm/xlnx-ep108.c new file mode 100644 index 0000000..81704bb --- /dev/null +++ b/hw/arm/xlnx-ep108.c @@ -0,0 +1,53 @@ +/* + * Xilinx ZynqMP EP108 board + * + * Copyright (C) 2015 Xilinx Inc + * Written by Peter Crosthwaite + * + * 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 "hw/arm/xlnx-zynqmp.h" +#include "hw/boards.h" +#include "qemu/error-report.h" + +typedef struct XlnxEP108 { + XlnxZynqMPState soc; +} XlnxEP108; + +static void xlnx_ep108_init(MachineState *machine) +{ + XlnxEP108 *s = g_new0(XlnxEP108, 1); + Error *err = NULL; + + object_initialize(&s->soc, sizeof(s->soc), TYPE_XLNX_ZYNQMP); + object_property_add_child(OBJECT(machine), "soc", OBJECT(&s->soc), + &error_abort); + + object_property_set_bool(OBJECT(&s->soc), true, "realized", &err); + if (err) { + error_report("%s", error_get_pretty(err)); + exit(1); + } +} + +static QEMUMachine xlnx_ep108_machine = { + .name = "xlnx-ep108", + .desc = "Xilinx ZynqMP EP108 board", + .init = xlnx_ep108_init, +}; + +static void xlnx_ep108_machine_init(void) +{ + qemu_register_machine(&xlnx_ep108_machine); +} + +machine_init(xlnx_ep108_machine_init);