From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Campbell Subject: [PATCH 3/4] xen/arm: support "arm, armv8-timer" DTS compatibility. Date: Mon, 13 May 2013 17:23:01 +0100 Message-ID: <1368462182-10317-3-git-send-email-ian.campbell@citrix.com> References: <1368462160.537.125.camel@zakaz.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1368462160.537.125.camel@zakaz.uk.xensource.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: xen-devel@lists.xen.org Cc: julien.grall@citrix.com, tim@xen.org, Ian Campbell , stefano.stabellini@eu.citrix.com List-Id: xen-devel@lists.xenproject.org On v8 the compatibility name differs but the node is otherwise specified the same. See linux/Documentation/devicetree/bindings/arm/arch_timer.txt Signed-off-by: Ian Campbell --- xen/arch/arm/time.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/xen/arch/arm/time.c b/xen/arch/arm/time.c index db849cf..4ed7882 100644 --- a/xen/arch/arm/time.c +++ b/xen/arch/arm/time.c @@ -107,6 +107,8 @@ int __init init_xen_time(void) dev = dt_find_compatible_node(NULL, NULL, "arm,armv7-timer"); if ( !dev ) + dev = dt_find_compatible_node(NULL, NULL, "arm,armv8-timer"); + if ( !dev ) panic("Unable to find a compatible timer in the device tree\n"); dt_device_set_used_by(dev, DOMID_XEN); -- 1.7.2.5