From: Ian Campbell Subject: Re: [PATCH v4 1/2] xen: get GIC addresses from DT Date: Thu, 13 Dec 2012 11:47:14 +0000 Message-ID: <1355399234.10554.95.camel@zakaz.uk.xensource.com> References: <1354902355-10209-1-git-send-email-stefano.stabellini@eu.citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1354902355-10209-1-git-send-email-stefano.stabellini@eu.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: Stefano Stabellini Cc: "xen-devel@lists.xensource.com" , "Tim (Xen.org)" List-Id: xen-devel@lists.xenproject.org On Fri, 2012-12-07 at 17:45 +0000, Stefano Stabellini wrote: > Get the address of the GIC distributor, cpu, virtual and virtual cpu > interfaces registers from device tree. > > Note: I couldn't completely get rid of GIC_BASE_ADDRESS, GIC_DR_OFFSET > and friends because we are using them from mode_switch.S, that is > executed before device tree has been parsed. But at least mode_switch.S > is known to contain vexpress specific code anyway. > > Changes in v4: > - return ranges from device_tree_nr_reg_ranges; > - remove hard tab. > > Changes in v3: > - printk a message with the GIC interface addresses in gic_init; > - use strcmp in device_tree_node_compatible; > - rename device_tree_get_reg_ranges to device_tree_nr_reg_ranges; > - improve error message in process_gic_node. > > Changes in v2: > - remove 2 superflous lines from process_gic_node; > - introduce device_tree_get_reg_ranges; > - add a check for uninitialized GIC interface addresses; > - add a check for non-page aligned GIC interface addresses; > - remove the code to deal with non-page aligned addresses from GICC and > GICH. > > > Signed-off-by: Stefano Stabellini Acked + applied, thanks.