From mboxrd@z Thu Jan 1 00:00:00 1970 From: Julien Grall Subject: Re: [PATCH v2 02/15] xen: arm64: Add Basic Platform support for APM X-Gene Storm. Date: Fri, 22 Nov 2013 16:35:52 +0000 Message-ID: <528F87E8.4070705@linaro.org> References: <1385137474-31245-2-git-send-email-ian.campbell@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1385137474-31245-2-git-send-email-ian.campbell@citrix.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: Ian Campbell , xen-devel@lists.xen.org Cc: pranavkumar@linaro.org, tim@xen.org, Anup Patel , stefano.stabellini@eu.citrix.com List-Id: xen-devel@lists.xenproject.org On 11/22/2013 04:24 PM, Ian Campbell wrote: > From: Pranavkumar Sawargaonkar > > This patch adds initial platform stubs for APM X-Gene. > > Signed-off-by: Anup Patel > Signed-off-by: Pranavkumar Sawargaonkar > > Drop earlyprintk (split into earlier patch). Only build on ARM64. > > Drop empty init and reset hooks and enable 1:1 workaround. > > Signed-off-by: Ian Campbell > Acked-by: Stefano Stabellini > --- > v2: Drop empty hooks, merge the 1:1 workaround patch, drop early_printk.h > --- [..] > diff --git a/xen/arch/arm/platforms/xgene-storm.c b/xen/arch/arm/platforms/xgene-storm.c > new file mode 100644 > index 0000000..727ac2b > --- /dev/null > +++ b/xen/arch/arm/platforms/xgene-storm.c > @@ -0,0 +1,52 @@ > +/* > + * xen/arch/arm/platforms/xgene-storm.c > + * > + * Applied Micro's X-Gene specific settings > + * > + * Pranavkumar Sawargaonkar > + * Anup Patel > + * Copyright (c) 2013 Applied Micro. > + * > + * 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 > +#include > +#include > +#include > +#include Do we really need these 4 includes? > +#include > + > +static uint32_t xgene_storm_quirks(void) > +{ > + return PLATFORM_QUIRK_DOM0_MAPPING_11; > +} > + > + > +static const char const *xgene_storm_dt_compat[] __initdata = const char * const ... __initconst Except that: Acked-by: Julien Grall > +{ > + "apm,xgene-storm", > + NULL > +}; > + > +PLATFORM_START(xgene_storm, "APM X-GENE STORM") > + .compatible = xgene_storm_dt_compat, > + .quirks = xgene_storm_quirks, > +PLATFORM_END > + > +/* > + * Local variables: > + * mode: C > + * c-file-style: "BSD" > + * c-basic-offset: 4 > + * indent-tabs-mode: nil > + * End: > + */ > -- Julien Grall