From mboxrd@z Thu Jan 1 00:00:00 1970 From: Julien Grall Subject: Re: [PATCH 06/10] xen/arm: handle GICH register changes for hip04-d01 platform Date: Mon, 03 Nov 2014 14:12:07 +0000 Message-ID: <54578D37.3090806@linaro.org> References: <1415009522-6344-1-git-send-email-frediano.ziglio@huawei.com> <1415009522-6344-7-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-7-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, On 11/03/2014 10:11 AM, Frediano Ziglio wrote: > static void gicv2_irq_enable(struct irq_desc *desc) > @@ -731,6 +733,8 @@ static int __init gicv2_init(struct dt_device_node *node, const void *data) > { > nr_gic_cpu_if = 16; > gic_cpu_mask = 0xffff; > + gich_apr = HIP04_GICH_APR; > + gich_lr = HIP04_GICH_LR; > } > > res = dt_device_get_address(node, 0, &gicv2.dbase, NULL); > diff --git a/xen/include/asm-arm/gic.h b/xen/include/asm-arm/gic.h > index 3d2b3db..804bf24 100644 > --- a/xen/include/asm-arm/gic.h > +++ b/xen/include/asm-arm/gic.h > @@ -88,6 +88,8 @@ > #define GICH_ELSR1 (0x34) > #define GICH_APR (0xF0) > #define GICH_LR (0x100) > +#define HIP04_GICH_APR (0x70) > +#define HIP04_GICH_LR (0x80) Please move thoses define in gic-v2.c. The header gic.h should only contains value that needs to be shared with the vgic and/or the other GIC drivers. Regards, -- Julien Grall