Received: by 10.223.176.46 with SMTP id f43csp153402wra; Fri, 19 Jan 2018 15:20:19 -0800 (PST) X-Google-Smtp-Source: AH8x227OBf3LUWzUK/xcP3POA3915DGx0RejyUMKPapECQmUmhaNsKohIrtKecrJL2Cf9T7f+NuM X-Received: by 10.101.78.12 with SMTP id r12mr106132pgt.33.1516404019280; Fri, 19 Jan 2018 15:20:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516404019; cv=none; d=google.com; s=arc-20160816; b=KVklJxHtEO84aFGDh85H8GzxsTyvoVJgMBnugvHYTJviPO3iQZCMabvq+jA66n8QQl ukJx99R0Lgew3JWgKFO88RS0OdAyGCOMLDNHH2Uq0VJ298rKuPoTCFLM/452C/7cEXMC D7Y5hymvURdgpMO3PwwSvDRaPfIGTqSNpUTmVvp1zS/kPHTZ8peOm6ad0FgG7LwbtCFG 5vtZjXlI/cxzCF+lDB/+E26whLVKltD7PJbm4Y5a8zYmz+nNzukjuvTkP5PknoAZECkF wJeAw3KAIEVqsOPIT9E4CngEZiB1wGtTcyyjDRa0lblpyMnVF3qdWV3irq4eROHNOwDO Pq3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=yCqp14G6D34McnylbMZDueLfX8snHxJptgM4XcfLw3w=; b=MWphsi3WOzvk2PKyVutC9hCI2KBpaX+rgM5FE37nIHyvVPRjZEiip3p4YNAGm6U4j5 L6QPBLWfHCTIe7f8dn6AUpL2gS3A069H0pdwGrTFnNR4rRYJFRayrgRxIU+UL+K8joRc kWpo7CaYhK8GzXYYo1q1/JKZcbu0T4orzlHXg4PGQ0txtZ4XdhnXqFjeSa6hWic/QaA0 99hSYPidX3uffPwXbUMexH4p6FaR5wKFpuujU+1oENpuD7ppZ7RprrPCS679ccG/aZUM WlEVA3ySDi79YLmTADuApoX2xxBN59J9RY7fgOAOi7JQ8tn4uNV6FNSi+v30HsX6LXcv t/DA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 69-v6si1182633plc.814.2018.01.19.15.19.59; Fri, 19 Jan 2018 15:20:19 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932781AbeASXTD (ORCPT + 99 others); Fri, 19 Jan 2018 18:19:03 -0500 Received: from hermes.aosc.io ([199.195.250.187]:48387 "EHLO hermes.aosc.io" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932644AbeASXSj (ORCPT ); Fri, 19 Jan 2018 18:18:39 -0500 Received: from localhost (localhost [127.0.0.1]) (Authenticated sender: icenowy@aosc.io) by hermes.aosc.io (Postfix) with ESMTPSA id D71F35606B; Fri, 19 Jan 2018 23:18:34 +0000 (UTC) From: Icenowy Zheng To: Maxime Ripard , Chen-Yu Tsai , Russell King , Daniel Lezcano , Marc Zyngier , Linus Walleij Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, linux-gpio@vger.kernel.org, linux-sunxi@googlegroups.com, Icenowy Zheng Subject: [RFC PATCH 5/9] clocksource/drivers/sun4i: register as sched_clock on suniv Date: Sat, 20 Jan 2018 07:17:31 +0800 Message-Id: <20180119231735.61504-6-icenowy@aosc.io> In-Reply-To: <20180119231735.61504-1-icenowy@aosc.io> References: <20180119231735.61504-1-icenowy@aosc.io> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The suniv chip (newer F-series Allwinner SoCs) is based on ARM926EJ-S CPU, thus it has no architecture timer. Register sun4i_timer as sched_clock on it. Signed-off-by: Icenowy Zheng --- drivers/clocksource/sun4i_timer.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/clocksource/sun4i_timer.c b/drivers/clocksource/sun4i_timer.c index 88e09554ce7a..16dedf5ff0ca 100644 --- a/drivers/clocksource/sun4i_timer.c +++ b/drivers/clocksource/sun4i_timer.c @@ -186,7 +186,8 @@ static int __init sun4i_timer_init(struct device_node *node) */ if (of_machine_is_compatible("allwinner,sun4i-a10") || of_machine_is_compatible("allwinner,sun5i-a13") || - of_machine_is_compatible("allwinner,sun5i-a10s")) + of_machine_is_compatible("allwinner,sun5i-a10s") || + of_machine_is_compatible("allwinner,suniv")) sched_clock_register(sun4i_timer_sched_read, 32, timer_of_rate(&to)); -- 2.14.2