From mboxrd@z Thu Jan 1 00:00:00 1970 From: Julien Grall Subject: Re: [PATCH 02/10] xen/arm: Implement hip04-d01 board reboot Date: Mon, 03 Nov 2014 13:40:03 +0000 Message-ID: <545785B3.2020502@linaro.org> References: <1415009522-6344-1-git-send-email-frediano.ziglio@huawei.com> <1415009522-6344-3-git-send-email-frediano.ziglio@huawei.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1415009522-6344-3-git-send-email-frediano.ziglio@huawei.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: Frediano Ziglio , Ian Campbell , Stefano Stabellini , Tim Deegan Cc: zoltan.kiss@huawei.com, xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org Hi Frediano, I would fold this patch in #1. Regards, On 11/03/2014 10:11 AM, Frediano Ziglio wrote: > Signed-off-by: Frediano Ziglio > --- > xen/arch/arm/platforms/hip04.c | 18 ++++++++++++++++-- > 1 file changed, 16 insertions(+), 2 deletions(-) > > diff --git a/xen/arch/arm/platforms/hip04.c b/xen/arch/arm/platforms/hip04.c > index bf38c23..62d2034 100644 > --- a/xen/arch/arm/platforms/hip04.c > +++ b/xen/arch/arm/platforms/hip04.c > @@ -27,6 +27,7 @@ > #include > #include > #include > +#include > > #define CORE_RESET_BIT(x) (1 << x) > #define NEON_RESET_BIT(x) (1 << (x + 4)) > @@ -53,13 +54,21 @@ struct hip04_secondary_cpu_data { > u32 relocation_size; > }; > > -static void __iomem *relocation, *sysctrl, *fabric; > +static void __iomem *relocation, *sysctrl, *fabric, *gb2; > static int hip04_cpu_table[HIP04_MAX_CLUSTERS][HIP04_MAX_CPUS_PER_CLUSTER]; > static struct hip04_secondary_cpu_data hip04_boot; > > static void hip04_reset(void) > { > - /* TODO */ > + unsigned long data; > + > + if ( !gb2 ) > + return; > + > + data = readl_relaxed(gb2); > + writel_relaxed(data & ~0x4000000u, gb2); > + > + mdelay(10); > } > > static void hip04_set_snoop_filter(unsigned int cluster, unsigned int on) > @@ -186,6 +195,11 @@ static int __init hip04_smp_init(void) > if ( !fabric ) > goto err; > > + msg = "Error mapping GB2\n"; > + gb2 = ioremap_nocache(0xe4002000, 0x1000); > + if ( !gb2 ) > + goto err; > + > msg = "Error initializing SMP table\n"; > if ( !hip04_cpu_table_init() ) > goto err; > -- Julien Grall