From: Viresh Kumar <viresh.kumar@linaro.org> To: rjw@sisk.pl, swarren@nvidia.com Cc: linaro-kernel@lists.linaro.org, patches@linaro.org, cpufreq@vger.kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, mturquette@linaro.org, linux-arm-kernel@lists.infradead.org, Viresh Kumar <viresh.kumar@linaro.org> Subject: [PATCH 5/6] ARM: Tegra: start using cpufreq-cpu0 driver Date: Wed, 7 Aug 2013 20:16:47 +0530 [thread overview] Message-ID: <6610c86618b781b00eba446ca19035e077d99691.1375886595.git.viresh.kumar@linaro.org> (raw) In-Reply-To: <cover.1375886595.git.viresh.kumar@linaro.org> In-Reply-To: <cover.1375886595.git.viresh.kumar@linaro.org> cpufreq-cpu0 driver can be probed over DT only if a corresponding device node is created for the SoC which wants to use it. Lets create a platform device for cpufreq-cpu0 driver for Tegra. Also it removes the Kconfig entry responsible to compiling tegra-cpufreq driver and hence there will not be any conflicts between two cpufreq drivers. Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> --- arch/arm/mach-tegra/tegra.c | 2 ++ drivers/cpufreq/Kconfig.arm | 8 -------- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/arch/arm/mach-tegra/tegra.c b/arch/arm/mach-tegra/tegra.c index 0d1e412..6ab3f69 100644 --- a/arch/arm/mach-tegra/tegra.c +++ b/arch/arm/mach-tegra/tegra.c @@ -82,11 +82,13 @@ static struct of_dev_auxdata tegra20_auxdata_lookup[] __initdata = { static void __init tegra_dt_init(void) { + struct platform_device_info devinfo = { .name = "cpufreq-cpu0", }; struct soc_device_attribute *soc_dev_attr; struct soc_device *soc_dev; struct device *parent = NULL; tegra_clocks_apply_init_table(); + platform_device_register_full(&devinfo); soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL); if (!soc_dev_attr) diff --git a/drivers/cpufreq/Kconfig.arm b/drivers/cpufreq/Kconfig.arm index de4d5d9..9472160 100644 --- a/drivers/cpufreq/Kconfig.arm +++ b/drivers/cpufreq/Kconfig.arm @@ -215,11 +215,3 @@ config ARM_SPEAR_CPUFREQ default y help This adds the CPUFreq driver support for SPEAr SOCs. - -config ARM_TEGRA_CPUFREQ - bool "TEGRA CPUFreq support" - depends on ARCH_TEGRA - select CPU_FREQ_TABLE - default y - help - This adds the CPUFreq driver support for TEGRA SOCs. -- 1.7.12.rc2.18.g61b472e
WARNING: multiple messages have this Message-ID (diff)
From: viresh.kumar@linaro.org (Viresh Kumar) To: linux-arm-kernel@lists.infradead.org Subject: [PATCH 5/6] ARM: Tegra: start using cpufreq-cpu0 driver Date: Wed, 7 Aug 2013 20:16:47 +0530 [thread overview] Message-ID: <6610c86618b781b00eba446ca19035e077d99691.1375886595.git.viresh.kumar@linaro.org> (raw) In-Reply-To: <cover.1375886595.git.viresh.kumar@linaro.org> cpufreq-cpu0 driver can be probed over DT only if a corresponding device node is created for the SoC which wants to use it. Lets create a platform device for cpufreq-cpu0 driver for Tegra. Also it removes the Kconfig entry responsible to compiling tegra-cpufreq driver and hence there will not be any conflicts between two cpufreq drivers. Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> --- arch/arm/mach-tegra/tegra.c | 2 ++ drivers/cpufreq/Kconfig.arm | 8 -------- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/arch/arm/mach-tegra/tegra.c b/arch/arm/mach-tegra/tegra.c index 0d1e412..6ab3f69 100644 --- a/arch/arm/mach-tegra/tegra.c +++ b/arch/arm/mach-tegra/tegra.c @@ -82,11 +82,13 @@ static struct of_dev_auxdata tegra20_auxdata_lookup[] __initdata = { static void __init tegra_dt_init(void) { + struct platform_device_info devinfo = { .name = "cpufreq-cpu0", }; struct soc_device_attribute *soc_dev_attr; struct soc_device *soc_dev; struct device *parent = NULL; tegra_clocks_apply_init_table(); + platform_device_register_full(&devinfo); soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL); if (!soc_dev_attr) diff --git a/drivers/cpufreq/Kconfig.arm b/drivers/cpufreq/Kconfig.arm index de4d5d9..9472160 100644 --- a/drivers/cpufreq/Kconfig.arm +++ b/drivers/cpufreq/Kconfig.arm @@ -215,11 +215,3 @@ config ARM_SPEAR_CPUFREQ default y help This adds the CPUFreq driver support for SPEAr SOCs. - -config ARM_TEGRA_CPUFREQ - bool "TEGRA CPUFreq support" - depends on ARCH_TEGRA - select CPU_FREQ_TABLE - default y - help - This adds the CPUFreq driver support for TEGRA SOCs. -- 1.7.12.rc2.18.g61b472e
next prev parent reply other threads:[~2013-08-07 14:47 UTC|newest] Thread overview: 75+ messages / expand[flat|nested] mbox.gz Atom feed top 2013-08-07 14:46 [PATCH 0/6] Tegra: Use cpufreq-cpu0 driver Viresh Kumar 2013-08-07 14:46 ` Viresh Kumar 2013-08-07 14:46 ` [PATCH 1/6] clk: Tegra: Add CPU0 clock driver Viresh Kumar 2013-08-07 14:46 ` Viresh Kumar 2013-08-07 16:44 ` Mike Turquette 2013-08-07 16:44 ` Mike Turquette 2013-08-07 16:44 ` Mike Turquette 2013-08-07 17:38 ` Stephen Warren 2013-08-07 17:38 ` Stephen Warren 2013-08-07 17:45 ` Viresh Kumar 2013-08-07 17:45 ` Viresh Kumar 2013-08-07 17:48 ` Stephen Warren 2013-08-07 17:48 ` Stephen Warren 2013-08-07 17:54 ` Viresh Kumar 2013-08-07 17:54 ` Viresh Kumar 2013-08-07 18:50 ` Stephen Warren 2013-08-07 18:50 ` Stephen Warren 2013-08-08 2:42 ` Viresh Kumar 2013-08-08 2:42 ` Viresh Kumar 2013-08-08 18:50 ` Stephen Warren 2013-08-08 18:50 ` Stephen Warren 2013-08-09 3:19 ` Viresh Kumar 2013-08-09 3:19 ` Viresh Kumar 2013-08-07 14:46 ` [PATCH 2/6] ARM: Tegra: Add CPU's OPPs for using cpufreq-cpu0 driver Viresh Kumar 2013-08-07 14:46 ` Viresh Kumar 2013-08-07 17:42 ` Stephen Warren 2013-08-07 17:42 ` Stephen Warren 2013-08-07 18:06 ` Viresh Kumar 2013-08-07 18:06 ` Viresh Kumar 2013-08-07 18:55 ` Stephen Warren 2013-08-07 18:55 ` Stephen Warren 2013-08-08 2:57 ` Viresh Kumar 2013-08-08 2:57 ` Viresh Kumar 2013-08-08 18:55 ` Stephen Warren 2013-08-08 18:55 ` Stephen Warren 2013-08-08 13:58 ` Lucas Stach 2013-08-08 13:58 ` Lucas Stach 2013-08-08 13:58 ` Lucas Stach 2013-08-08 14:11 ` Viresh Kumar 2013-08-08 14:11 ` Viresh Kumar 2013-08-08 14:22 ` Lucas Stach 2013-08-08 14:22 ` Lucas Stach 2013-08-08 14:37 ` Viresh Kumar 2013-08-08 14:37 ` Viresh Kumar 2013-08-08 15:52 ` Nishanth Menon 2013-08-08 15:52 ` Nishanth Menon 2013-08-08 15:52 ` Nishanth Menon 2013-08-07 14:46 ` [PATCH 3/6] ARM: Tegra: Enable OPP library Viresh Kumar 2013-08-07 14:46 ` Viresh Kumar 2013-08-07 17:43 ` Stephen Warren 2013-08-07 17:43 ` Stephen Warren 2013-08-07 18:08 ` Viresh Kumar 2013-08-07 18:08 ` Viresh Kumar 2013-08-07 14:46 ` [PATCH 4/6] ARM: Tegra: defconfig: select cpufreq-cpu0 driver Viresh Kumar 2013-08-07 14:46 ` Viresh Kumar 2013-08-07 14:46 ` Viresh Kumar [this message] 2013-08-07 14:46 ` [PATCH 5/6] ARM: Tegra: start using " Viresh Kumar 2013-08-07 17:46 ` Stephen Warren 2013-08-07 17:46 ` Stephen Warren 2013-08-07 17:49 ` Viresh Kumar 2013-08-07 17:49 ` Viresh Kumar 2013-08-07 17:53 ` Stephen Warren 2013-08-07 17:53 ` Stephen Warren 2013-08-07 17:59 ` Viresh Kumar 2013-08-07 17:59 ` Viresh Kumar 2013-08-07 18:51 ` Stephen Warren 2013-08-07 18:51 ` Stephen Warren 2013-08-08 2:48 ` Viresh Kumar 2013-08-08 2:48 ` Viresh Kumar 2013-08-07 14:46 ` [PATCH 6/6] cpufreq: Tegra: Remove tegra-cpufreq driver Viresh Kumar 2013-08-07 14:46 ` Viresh Kumar 2013-08-08 8:31 ` [PATCH 0/6] Tegra: Use cpufreq-cpu0 driver Richard Zhao 2013-08-08 8:31 ` Richard Zhao 2013-08-08 8:33 ` Viresh Kumar 2013-08-08 8:33 ` Viresh Kumar
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=6610c86618b781b00eba446ca19035e077d99691.1375886595.git.viresh.kumar@linaro.org \ --to=viresh.kumar@linaro.org \ --cc=cpufreq@vger.kernel.org \ --cc=linaro-kernel@lists.linaro.org \ --cc=linux-arm-kernel@lists.infradead.org \ --cc=linux-kernel@vger.kernel.org \ --cc=linux-pm@vger.kernel.org \ --cc=mturquette@linaro.org \ --cc=patches@linaro.org \ --cc=rjw@sisk.pl \ --cc=swarren@nvidia.com \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.