From: "Edgar E. Iglesias" Subject: [PATCH v4 1/3] xen/arm: Add Xilinx ZynqMP platform support Date: Wed, 11 Mar 2015 11:19:32 +1000 Message-ID: <1426036774-6702-2-git-send-email-edgar.iglesias@gmail.com> References: <1426036774-6702-1-git-send-email-edgar.iglesias@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1426036774-6702-1-git-send-email-edgar.iglesias@gmail.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xen.org Cc: tim@xen.org, julien.grall@linaro.org, stefano.stabellini@citrix.com, ian.campbell@citrix.com List-Id: xen-devel@lists.xenproject.org From: "Edgar E. Iglesias" Signed-off-by: Edgar E. Iglesias --- xen/arch/arm/platforms/Makefile | 1 + xen/arch/arm/platforms/xilinx-zynqmp.c | 41 ++++++++++++++++++++++++++++++++++ 2 files changed, 42 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 d9f98f9..315f3e8 100644 --- a/xen/arch/arm/platforms/Makefile +++ b/xen/arch/arm/platforms/Makefile @@ -8,3 +8,4 @@ obj-$(CONFIG_ARM_32) += rcar2.o obj-$(CONFIG_ARM_64) += seattle.o obj-$(CONFIG_ARM_64) += xgene-storm.o obj-$(CONFIG_ARM_64) += thunderx.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..d03fb36 --- /dev/null +++ b/xen/arch/arm/platforms/xilinx-zynqmp.c @@ -0,0 +1,41 @@ +/* + * xen/arch/arm/platforms/xilinx-zynqmp.c + * + * Xilinx ZynqMP setup + * + * Copyright (c) 2015 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 +}; + +PLATFORM_START(xgene_storm, "Xilinx ZynqMP") + .compatible = zynqmp_dt_compat, + .dom0_gnttab_start = 0xf0000000, + .dom0_gnttab_size = 0x20000, +PLATFORM_END + +/* + * Local variables: + * mode: C + * c-file-style: "BSD" + * c-basic-offset: 4 + * indent-tabs-mode: nil + * End: + */ -- 1.9.1