Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp218700pxb; Wed, 20 Jan 2021 05:31:01 -0800 (PST) X-Google-Smtp-Source: ABdhPJx3fJPkAWSN++oX3FRg8NLdWz3xTsbuTI6y2rLvfLeowatY0F41Qy54eh9a1wePkFyqwq+9 X-Received: by 2002:a17:906:7156:: with SMTP id z22mr6062369ejj.441.1611149461008; Wed, 20 Jan 2021 05:31:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611149461; cv=none; d=google.com; s=arc-20160816; b=jd9pbonFQU1P7fGIsR5a18Az+Ym8YA170PkRiaq+eFpN+kKYOXFqoVoTIeAQ58njfC e36GfW0Hc6XlpA3nOEbVFu10GxfZoUbD9T3BWlTzHolrU6Faj/Z+rVszPLqaKzQRSbEW J0N6xf0q4Ekbic1gK/iS3gW/tEGZ9rGxBTDoXlF9LWrKhNzeyPS0+w4DpHC7fCyGOuDZ zpYY3y40av2hTxgWg/Oh7h559XZNb023hEjrzEeEeaqC/c06ZuJtkZ5wxTYAL6mtmtub iO2oS2L/EDcQxzn3OI2a0PgRSZ/ezlBqxC3PlFrJZeKJfej4gwk8pOgtrXfJ4/1OGlpu NFoA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=jL1zJe9CogFkMGhoCP+nmvCqaCWyYAxYvrjWyf57n28=; b=wSZvCEUziy+r/0R17r+b6fRjCueILCKafJcUVI2KA1ve5SYn9sOrdsUvFRPkJ4N4Tp Qg3MKqnt8F1ZWK96YiMul2Wwu8YgUW0wW8BrblfGOKBceYNjjjVEOuUMjGW3eReGkcKl EbZjiGliUXmZ7jhlt+ugnXkDLvXjHlp55RPBvGEV9IeH3c9jPuq4hHtAjnEZIQS/ZkBx Ki72rHh193SguKWUA02Aa+jXOp53iaoNq6l2bMpaGzG7cgZzpuOyCdkZRhqehrP1YZoA XFK8AYpml0DNuOyw6OM6aCmFG22hz912Eu58Kt1by6cqSL9jDrvp9USgCUJYLHUmGuzg 7T+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Jwcp0Hb4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bm19si793560edb.525.2021.01.20.05.30.36; Wed, 20 Jan 2021 05:31:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Jwcp0Hb4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388001AbhATNZR (ORCPT + 99 others); Wed, 20 Jan 2021 08:25:17 -0500 Received: from mail.kernel.org ([198.145.29.99]:53918 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730131AbhATNRT (ORCPT ); Wed, 20 Jan 2021 08:17:19 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 2FD462339D; Wed, 20 Jan 2021 13:16:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1611148573; bh=Jdpl5KFdkR/9KAmD8YJewd6d0wpTmXMLG20c3vcQFS4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Jwcp0Hb4rOaEuoH1DbiiZumYE5REdhKjaKlKh3CfpWQfj0OHGQfi8ETodBpnVVxWY SGUELJ99ARv08b0PVvRfP/TcsJKZl0+RWewofOtXey/EWkPrlmNMVsgjI7KeMW2iW+ jRAJeEoslxjvHZm7YCbM2CTYPIh5W032kwuwk1y8PwTqHYve00fZrT27B1b3jMSt84 llmufNMxMdgLrv41BOFbV2/OgPivJJgCSnQcJWxbNFzdI23JDkQBx31kQa15TjdP/b dqYSLfIKvYvdbz1T6ffognTkQWhi7RMzAmN3VJ8ohGG5M4C1Lx3HXao2uwVIpobh2g 7PjDqccPAhVHQ== From: Arnd Bergmann To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Daniel Lezcano , Thomas Gleixner Cc: Arnd Bergmann , Marc Gonzalez , Mans Rullgard Subject: [PATCH 2/4] timer: remove tango driver Date: Wed, 20 Jan 2021 14:15:57 +0100 Message-Id: <20210120131559.1971359-3-arnd@kernel.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210120131559.1971359-1-arnd@kernel.org> References: <20210120131559.1971359-1-arnd@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Arnd Bergmann The tango platform is getting removed, so the driver is no longer needed. Cc: Marc Gonzalez Cc: Mans Rullgard Signed-off-by: Arnd Bergmann --- drivers/clocksource/Kconfig | 8 ---- drivers/clocksource/Makefile | 1 - drivers/clocksource/timer-tango-xtal.c | 57 -------------------------- 3 files changed, 66 deletions(-) delete mode 100644 drivers/clocksource/timer-tango-xtal.c diff --git a/drivers/clocksource/Kconfig b/drivers/clocksource/Kconfig index 824a0f6b77d4..1feadd067677 100644 --- a/drivers/clocksource/Kconfig +++ b/drivers/clocksource/Kconfig @@ -560,14 +560,6 @@ config CLKSRC_MIPS_GIC select CLOCKSOURCE_WATCHDOG select TIMER_OF -config CLKSRC_TANGO_XTAL - bool "Clocksource for Tango SoC" if COMPILE_TEST - depends on ARM - select TIMER_OF - select CLKSRC_MMIO - help - This enables the clocksource for Tango SoC. - config CLKSRC_PXA bool "Clocksource for PXA or SA-11x0 platform" if COMPILE_TEST depends on HAS_IOMEM diff --git a/drivers/clocksource/Makefile b/drivers/clocksource/Makefile index 41c154478a1a..1089f2ed8560 100644 --- a/drivers/clocksource/Makefile +++ b/drivers/clocksource/Makefile @@ -72,7 +72,6 @@ obj-$(CONFIG_KEYSTONE_TIMER) += timer-keystone.o obj-$(CONFIG_INTEGRATOR_AP_TIMER) += timer-integrator-ap.o obj-$(CONFIG_CLKSRC_VERSATILE) += timer-versatile.o obj-$(CONFIG_CLKSRC_MIPS_GIC) += mips-gic-timer.o -obj-$(CONFIG_CLKSRC_TANGO_XTAL) += timer-tango-xtal.o obj-$(CONFIG_CLKSRC_IMX_GPT) += timer-imx-gpt.o obj-$(CONFIG_CLKSRC_IMX_TPM) += timer-imx-tpm.o obj-$(CONFIG_TIMER_IMX_SYS_CTR) += timer-imx-sysctr.o diff --git a/drivers/clocksource/timer-tango-xtal.c b/drivers/clocksource/timer-tango-xtal.c deleted file mode 100644 index 3f94e454ef99..000000000000 --- a/drivers/clocksource/timer-tango-xtal.c +++ /dev/null @@ -1,57 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0 -#include -#include -#include -#include -#include -#include -#include - -static void __iomem *xtal_in_cnt; -static struct delay_timer delay_timer; - -static unsigned long notrace read_xtal_counter(void) -{ - return readl_relaxed(xtal_in_cnt); -} - -static u64 notrace read_sched_clock(void) -{ - return read_xtal_counter(); -} - -static int __init tango_clocksource_init(struct device_node *np) -{ - struct clk *clk; - int xtal_freq, ret; - - xtal_in_cnt = of_iomap(np, 0); - if (xtal_in_cnt == NULL) { - pr_err("%pOF: invalid address\n", np); - return -ENXIO; - } - - clk = of_clk_get(np, 0); - if (IS_ERR(clk)) { - pr_err("%pOF: invalid clock\n", np); - return PTR_ERR(clk); - } - - xtal_freq = clk_get_rate(clk); - delay_timer.freq = xtal_freq; - delay_timer.read_current_timer = read_xtal_counter; - - ret = clocksource_mmio_init(xtal_in_cnt, "tango-xtal", xtal_freq, 350, - 32, clocksource_mmio_readl_up); - if (ret) { - pr_err("%pOF: registration failed\n", np); - return ret; - } - - sched_clock_register(read_sched_clock, 32, xtal_freq); - register_current_timer_delay(&delay_timer); - - return 0; -} - -TIMER_OF_DECLARE(tango, "sigma,tick-counter", tango_clocksource_init); -- 2.29.2