From patchwork Wed Jan 20 13:16:44 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 367024 Delivered-To: patch@linaro.org Received: by 2002:a02:a60d:0:0:0:0:0 with SMTP id c13csp464656jam; Wed, 20 Jan 2021 05:26:17 -0800 (PST) X-Google-Smtp-Source: ABdhPJxzs+7wurJUvRH9XB9vsqIXSaaZPnqG8YdIHc4IxBmpuA/ySNmcTRfVZ9bLHK2+FpgO2HKO X-Received: by 2002:a05:6402:378:: with SMTP id s24mr7613564edw.376.1611149177510; Wed, 20 Jan 2021 05:26:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611149177; cv=none; d=google.com; s=arc-20160816; b=EBz+q0DExjmCVnHE4QE1urH8vprYuyjW75w72yoX1DVAcoOIY/jDUnO2QSrBkwZR3N aT/hb9nSuh2QTbMaxTz3xZaJjnsIV1Qiyx68PqfvQPZuROlatUsb+A2iIeNndVowWeU+ gVG/0uc6hTsXHw0Q5isrVtNwtCo7rCDO0sAJpX838i8KBcbHSyFdCmDcMbuwWRzKBCr1 DRYpSsEPNvR1/X26kp9GBg0ptywi8nAjNiDWG2JVfY5EJik1zmVwDoIWxgGsOdZRbSLN idAFypWyMn72On+P24Y5jWGIJ5H2h7UTtq5EESnXO6eCaBRmvWv3bO1tv+NZUVRAJ4eN LGgw== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=rM1CZyK+GYxmv026M/VYKskQEmvyUL6AiAYQpAeKuaw=; b=QtCkNcvNIIZbhpGRuEYejajLGVY8O92tkgbePAAxn60ULWkslYoZzydrwiqC2WIC0W pDbDbU/487wAQYfaxsZe8pZw6gYUe92weEEvNXnA1ikRNDBjOC171WyQ+VruyyJcZiZJ ThFmBTqJhrMK8XGx8rO1rSppglRfHigjB7iwR8GrLZEro1M0wVp5YzRWPRufYcuVDmKK yEUlYX5tbA5OKc+3SPRnkFLT+Fj4R5aLlFzZidvQD9wiM0CcKcs6UogrXcHSLWxkjgee EiUpOu0W2uxxJg7P6MMHHGts9rhf6oIoKBvkREIaZn23a8yg9t9fv0dn2UvFcAvEm8vg QZkg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=euNDx1Af; spf=pass (google.com: domain of linux-pm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-pm-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 oq12si685059ejb.335.2021.01.20.05.26.17; Wed, 20 Jan 2021 05:26:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-pm-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=euNDx1Af; spf=pass (google.com: domain of linux-pm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-pm-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 S1731603AbhATNZd (ORCPT + 7 others); Wed, 20 Jan 2021 08:25:33 -0500 Received: from mail.kernel.org ([198.145.29.99]:54156 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729591AbhATNR6 (ORCPT ); Wed, 20 Jan 2021 08:17:58 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 711AF2245C; Wed, 20 Jan 2021 13:17:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1611148637; bh=seFF8AEbY7EFiGT41bEhA6Q4dwI7EdirV4FStnKMPAI=; h=From:To:Cc:Subject:Date:From; b=euNDx1AfrSK3cxkoVZdvr3ri3eVidaV67iWi97T8WJppoKT81vEpWhGGL/7D8izQl E5n+WuyAKViUPjnV1XdZZq7IqxFDjbToHx1LJExzt4y6maiG5mx07fj3p+l3kVwOAc si5xwWiMv3WvhgHyozCFDfLGQnu7aJC+o6mzsYrp+TxereHdapR+ZW4ElcURK48tKO GUGGG2/k9zxD1qhiAfs60slO9nVk7mdND4eCsx+aXT/VvOYtsG8Va49mGCaFlkZiPq QMFaPd1BXEOUZrD0B7yqSA76RkEGIXr7U8BpA+8aR+aVZkq6zAQOMQy4NeA3a+/KdC Avc8OWbS/e8gw== From: Arnd Bergmann To: "Rafael J. Wysocki" , Viresh Kumar , Marc Gonzalez , Mans Rullgard Cc: Arnd Bergmann , linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH] cpufreq: remove tango driver Date: Wed, 20 Jan 2021 14:16:44 +0100 Message-Id: <20210120131709.1996711-1-arnd@kernel.org> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-pm@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/cpufreq/Kconfig.arm | 5 ----- drivers/cpufreq/Makefile | 1 - drivers/cpufreq/tango-cpufreq.c | 38 --------------------------------- 3 files changed, 44 deletions(-) delete mode 100644 drivers/cpufreq/tango-cpufreq.c -- 2.29.2 diff --git a/drivers/cpufreq/Kconfig.arm b/drivers/cpufreq/Kconfig.arm index 1f73fa75b1a0..e65e0a43be64 100644 --- a/drivers/cpufreq/Kconfig.arm +++ b/drivers/cpufreq/Kconfig.arm @@ -289,11 +289,6 @@ config ARM_STI_CPUFREQ this config option if you wish to add CPUFreq support for STi based SoCs. -config ARM_TANGO_CPUFREQ - bool - depends on CPUFREQ_DT && ARCH_TANGO - default y - config ARM_TEGRA20_CPUFREQ tristate "Tegra20/30 CPUFreq support" depends on ARCH_TEGRA && CPUFREQ_DT diff --git a/drivers/cpufreq/Makefile b/drivers/cpufreq/Makefile index f1b7e3dd6e5d..1ab9b1536304 100644 --- a/drivers/cpufreq/Makefile +++ b/drivers/cpufreq/Makefile @@ -79,7 +79,6 @@ obj-$(CONFIG_ARM_SCPI_CPUFREQ) += scpi-cpufreq.o obj-$(CONFIG_ARM_SPEAR_CPUFREQ) += spear-cpufreq.o obj-$(CONFIG_ARM_STI_CPUFREQ) += sti-cpufreq.o obj-$(CONFIG_ARM_ALLWINNER_SUN50I_CPUFREQ_NVMEM) += sun50i-cpufreq-nvmem.o -obj-$(CONFIG_ARM_TANGO_CPUFREQ) += tango-cpufreq.o obj-$(CONFIG_ARM_TEGRA20_CPUFREQ) += tegra20-cpufreq.o obj-$(CONFIG_ARM_TEGRA124_CPUFREQ) += tegra124-cpufreq.o obj-$(CONFIG_ARM_TEGRA186_CPUFREQ) += tegra186-cpufreq.o diff --git a/drivers/cpufreq/tango-cpufreq.c b/drivers/cpufreq/tango-cpufreq.c deleted file mode 100644 index 89a7f860bfe8..000000000000 --- a/drivers/cpufreq/tango-cpufreq.c +++ /dev/null @@ -1,38 +0,0 @@ -#include -#include -#include -#include -#include - -static const struct of_device_id machines[] __initconst = { - { .compatible = "sigma,tango4" }, - { /* sentinel */ } -}; - -static int __init tango_cpufreq_init(void) -{ - struct device *cpu_dev = get_cpu_device(0); - unsigned long max_freq; - struct clk *cpu_clk; - void *res; - - if (!of_match_node(machines, of_root)) - return -ENODEV; - - cpu_clk = clk_get(cpu_dev, NULL); - if (IS_ERR(cpu_clk)) - return -ENODEV; - - max_freq = clk_get_rate(cpu_clk); - - dev_pm_opp_add(cpu_dev, max_freq / 1, 0); - dev_pm_opp_add(cpu_dev, max_freq / 2, 0); - dev_pm_opp_add(cpu_dev, max_freq / 3, 0); - dev_pm_opp_add(cpu_dev, max_freq / 5, 0); - dev_pm_opp_add(cpu_dev, max_freq / 9, 0); - - res = platform_device_register_data(NULL, "cpufreq-dt", -1, NULL, 0); - - return PTR_ERR_OR_ZERO(res); -} -device_initcall(tango_cpufreq_init);