From patchwork Mon Feb 10 19:07:54 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ezequiel Garcia X-Patchwork-Id: 3621951 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 3E1789F382 for ; Mon, 10 Feb 2014 19:14:52 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 68DE7201EF for ; Mon, 10 Feb 2014 19:14:51 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 83AB5201EC for ; Mon, 10 Feb 2014 19:14:50 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1WCwIe-0002GK-Q9; Mon, 10 Feb 2014 19:13:49 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1WCwDl-0000xw-OD; Mon, 10 Feb 2014 19:08:45 +0000 Received: from top.free-electrons.com ([176.31.233.9] helo=mail.free-electrons.com) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1WCwDX-0000vI-2Y for linux-arm-kernel@lists.infradead.org; Mon, 10 Feb 2014 19:08:32 +0000 Received: by mail.free-electrons.com (Postfix, from userid 106) id 3E5C7819; Mon, 10 Feb 2014 20:08:18 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Level: X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,KHOP_BIG_TO_CC, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=no version=3.3.1 Received: from localhost.localdomain (unknown [190.2.98.212]) by mail.free-electrons.com (Postfix) with ESMTPA id C65E47D8; Mon, 10 Feb 2014 20:08:14 +0100 (CET) From: Ezequiel Garcia To: Daniel Lezcano , tglx@linutronix.de, Subject: [PATCH 2/2] clocksource: armada-370-xp: Add support for Armada 38x Date: Mon, 10 Feb 2014 16:07:54 -0300 Message-Id: <1392059274-26965-3-git-send-email-ezequiel.garcia@free-electrons.com> X-Mailer: git-send-email 1.8.1.5 In-Reply-To: <1392059274-26965-1-git-send-email-ezequiel.garcia@free-electrons.com> References: <1392059274-26965-1-git-send-email-ezequiel.garcia@free-electrons.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140210_140831_275436_0A8A52DA X-CRM114-Status: UNSURE ( 8.26 ) X-CRM114-Notice: Please train this message. X-Spam-Score: 1.2 (+) Cc: Thomas Petazzoni , Lior Amsalem , Jason Cooper , Tawfik Bayouk , Andrew Lunn , Ezequiel Garcia , Gregory CLEMENT , Sebastian Hesselbarth X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Gregory CLEMENT The Armada 38x has a 25 Mhz fixed clock. Therefore, we can model it as compatible to the Armada XP timer for now. Nevertheless, we introduce a new compatible string to allow future changes. Reviewed-by: Thomas Petazzoni Signed-off-by: Gregory CLEMENT Signed-off-by: Ezequiel Garcia --- drivers/clocksource/time-armada-370-xp.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/drivers/clocksource/time-armada-370-xp.c b/drivers/clocksource/time-armada-370-xp.c index 87eda6d..9fd20b2 100644 --- a/drivers/clocksource/time-armada-370-xp.c +++ b/drivers/clocksource/time-armada-370-xp.c @@ -24,6 +24,8 @@ * * Armada 375 has a non-usable 25 Mhz fixed timer, due to hardware * issues. * + * * Armada 380 has a 25 Mhz fixed timer. + * * * Armada XP cannot work properly without such 25 MHz fixed timer as * doing otherwise leads to using a clocksource whose frequency varies * when doing cpufreq frequency changes. @@ -327,3 +329,11 @@ CLOCKSOURCE_OF_DECLARE(armada_370, "marvell,armada-370-timer", */ CLOCKSOURCE_OF_DECLARE(armada_375, "marvell,armada-375-timer", armada_370_timer_init); + +/* + * Support the Armada 38x timer as identical to the Armada XP, using the + * available 25 MHz clock. We maintain a SoC-specific compatible string to + * allow to change this in the future. + */ +CLOCKSOURCE_OF_DECLARE(armada_380, "marvell,armada-380-timer", + armada_xp_timer_init);