From patchwork Fri Feb 26 01:38:29 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Edgar E. Iglesias" X-Patchwork-Id: 8430431 Return-Path: X-Original-To: patchwork-xen-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id BAFA7C0553 for ; Fri, 26 Feb 2016 01:41:12 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id D63922037E for ; Fri, 26 Feb 2016 01:41:11 +0000 (UTC) Received: from lists.xen.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 0C6F520394 for ; Fri, 26 Feb 2016 01:41:11 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xen.org) by lists.xen.org with esmtp (Exim 4.84) (envelope-from ) id 1aZ7MZ-00008w-06; Fri, 26 Feb 2016 01:38:35 +0000 Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.84) (envelope-from ) id 1aZ7MY-00008j-6L for xen-devel@lists.xen.org; Fri, 26 Feb 2016 01:38:34 +0000 Received: from [193.109.254.147] by server-12.bemta-14.messagelabs.com id 0F/C3-02979-99CAFC65; Fri, 26 Feb 2016 01:38:33 +0000 X-Env-Sender: edgar.iglesias@gmail.com X-Msg-Ref: server-2.tower-27.messagelabs.com!1456450712!24858727!1 X-Originating-IP: [74.125.82.67] X-SpamReason: No, hits=0.0 required=7.0 tests=SUBJECT_RANDOMQ X-StarScan-Received: X-StarScan-Version: 7.35.1; banners=-,-,- X-VirusChecked: Checked Received: (qmail 48385 invoked from network); 26 Feb 2016 01:38:32 -0000 Received: from mail-wm0-f67.google.com (HELO mail-wm0-f67.google.com) (74.125.82.67) by server-2.tower-27.messagelabs.com with AES128-GCM-SHA256 encrypted SMTP; 26 Feb 2016 01:38:32 -0000 Received: by mail-wm0-f67.google.com with SMTP id g62so6617624wme.2 for ; Thu, 25 Feb 2016 17:38:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=iIJpLEbrK527RFv0Z4wKPDow8ziOJhPmjy74imnSWQU=; b=qy7zjsv0GwNOyUcPkCKYFBPhdGTDB/zlkvSAXs4Eln84EdonRVsATaylbMRxh2pUYd DkrDBF+Ne6/2GmdC3q7KiLTxM6plj9xh53VImOuHQfJGJcGd64ehnCLHV76o4k2zDg/Q nSIL3olUCY5dXlyCKRL869cKhVopd91aSqhPKlBg6sttLXUlXik6zC2YaMIfKlBkPmn0 UYmQUJMWTfamlwilAo6lB80acTkUojcjfrslQEkH/QIPb1XUaYKrQek4CyYkuUIvgEbv srw4ORQ8RFtsvjTMA24H4xjc5QYm8bncANEn/rxS7STeoeXIVpOKN9Xbwcgj6K9I18en aXKQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=iIJpLEbrK527RFv0Z4wKPDow8ziOJhPmjy74imnSWQU=; b=b+8abYvTAAXSUGV/A/c6sqmc3qfXVCVSp4DPP4JWD4MJqnKYAnkeF2oDtEld6wpmaz rLg83iRK/Enw+G4PVnTOYGoDbYKFE5Sc+kqmF7Z3xH2SEzm6yDPYKl8hO+wE89DjMfDg HNnCTbZJovaOGJCl/1dqkqGe8LWt/1uQV88qpts+KG0yWJpGwrQfZL5oPj/P3cyrCBPr uwILxVt/8U/kzFCsQv0ZjLOpPhcuRrXEYD6M+IQ0FMt3rpahtgbTlQ1VeQF7WKPBpA3q f44HDQo6yK39V9pqqoxrskvzHm+6ycDqKzmCjPCv4BABMQeprdqIbyFj96O4HS+ks04c Mm8w== X-Gm-Message-State: AD7BkJJ3VTPJ1UQ4kqHobR31IXo6GWUq4qXH1BEsjB+C8aEj6dOSN1W8yIMagWmZXll1Rw== X-Received: by 10.28.102.69 with SMTP id a66mr323096wmc.8.1456450712413; Thu, 25 Feb 2016 17:38:32 -0800 (PST) Received: from localhost (81-231-233-234-no56.tbcn.telia.com. [81.231.233.234]) by smtp.gmail.com with ESMTPSA id i5sm10294491wjx.15.2016.02.25.17.38.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 25 Feb 2016 17:38:31 -0800 (PST) From: "Edgar E. Iglesias" To: xen-devel@lists.xen.org Date: Fri, 26 Feb 2016 02:38:29 +0100 Message-Id: <1456450709-14820-2-git-send-email-edgar.iglesias@gmail.com> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1456450709-14820-1-git-send-email-edgar.iglesias@gmail.com> References: <1456450709-14820-1-git-send-email-edgar.iglesias@gmail.com> Cc: edgar.iglesias@xilinx.com, julien.grall@linaro.org, stefano.stabellini@citrix.com, ian.campbell@citrix.com Subject: [Xen-devel] [PATCH v1 1/1] xen/arm: Re-add the Xilinx ZynqMP platform X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, UNPARSEABLE_RELAY autolearn=no version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: "Edgar E. Iglesias" Re-add the Xilinx ZynqMP platform. This time include a blacklisted zynqmp-pm (Power Management) device that does not yet play nicely with Xen. Signed-off-by: Edgar E. Iglesias Acked-by: Stefano Stabellini --- xen/arch/arm/platforms/Makefile | 1 + xen/arch/arm/platforms/xilinx-zynqmp.c | 47 ++++++++++++++++++++++++++++++++++ 2 files changed, 48 insertions(+) create mode 100644 xen/arch/arm/platforms/xilinx-zynqmp.c diff --git a/xen/arch/arm/platforms/Makefile b/xen/arch/arm/platforms/Makefile index e173fec..3689eec 100644 --- a/xen/arch/arm/platforms/Makefile +++ b/xen/arch/arm/platforms/Makefile @@ -7,3 +7,4 @@ obj-$(CONFIG_ARM_32) += sunxi.o obj-$(CONFIG_ARM_32) += rcar2.o obj-$(CONFIG_ARM_64) += seattle.o obj-$(CONFIG_ARM_64) += xgene-storm.o +obj-$(CONFIG_ARM_64) += xilinx-zynqmp.o diff --git a/xen/arch/arm/platforms/xilinx-zynqmp.c b/xen/arch/arm/platforms/xilinx-zynqmp.c new file mode 100644 index 0000000..2adee91 --- /dev/null +++ b/xen/arch/arm/platforms/xilinx-zynqmp.c @@ -0,0 +1,47 @@ +/* + * xen/arch/arm/platforms/xilinx-zynqmp.c + * + * Xilinx ZynqMP setup + * + * Copyright (c) 2016 Xilinx Inc. + * Written by Edgar E. Iglesias + * + * 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 + +static const char * const zynqmp_dt_compat[] __initconst = +{ + "xlnx,zynqmp", + NULL +}; + +static const struct dt_device_match zynqmp_blacklist_dev[] __initconst = +{ + /* Power management is not yet supported. */ + DT_MATCH_COMPATIBLE("xlnx,zynqmp-pm"), + { /* sentinel */ }, +}; + +PLATFORM_START(xgene_storm, "Xilinx ZynqMP") + .compatible = zynqmp_dt_compat, + .blacklist_dev = zynqmp_blacklist_dev, +PLATFORM_END + +/* + * Local variables: + * mode: C + * c-file-style: "BSD" + * c-basic-offset: 4 + * indent-tabs-mode: nil + * End: + */