From mboxrd@z Thu Jan 1 00:00:00 1970 From: Julien Grall Subject: Re: [PATCH v2 3/7] xen/arm: Make gic-v2 code handle hip04-d01 platform Date: Tue, 04 Nov 2014 13:35:54 +0000 Message-ID: <5458D63A.7050407@linaro.org> References: <1415033196-30529-1-git-send-email-frediano.ziglio@huawei.com> <1415033196-30529-4-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: <1415033196-30529-4-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 On 11/03/2014 04:46 PM, Frediano Ziglio wrote: > /* Set up the GIC */ > -static int __init gicv2_init(struct dt_device_node *node, const void *data) > +static int __init gicv2_init_common(struct dt_device_node *node, const void *data, bool hip04) > { > int res; > > dt_device_set_used_by(node, DOMID_XEN); > > + if ( hip04 ) > + { > + nr_gic_cpu_if = 16; > + gicd_sgi_target_shift = 8; > + gic_cpu_mask = 0xffff; > + } > + And this could be moved in hip04_gicv2_init. So there is no need of adding a boolean to the arguments. -- Julien Grall