Commit 40b46b3b authored by Bartosz Golaszewski's avatar Bartosz Golaszewski Committed by Viresh Kumar

cpufreq: davinci: move configuration to include/linux/platform_data

The header containing the configuration structure for davinci cpufreq
driver lives in mach-davinci/include/mach/. This is fine for now but
if we want to make davinci part of the multi_v5 build, no code external
to mach-davinci should include machine-specific headers.

Move the configuration structure to include/linux/platform_data.

While we're at it: convert the GPL-2.0 boilerplate to a proper SPDX
license identifier.
Signed-off-by: default avatarBartosz Golaszewski <bgolaszewski@baylibre.com>
Acked-by: default avatarSekhar Nori <nsekhar@ti.com>
Signed-off-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
parent d6c8e086
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
#include <linux/mfd/da8xx-cfgchip.h> #include <linux/mfd/da8xx-cfgchip.h>
#include <linux/platform_data/clk-da8xx-cfgchip.h> #include <linux/platform_data/clk-da8xx-cfgchip.h>
#include <linux/platform_data/clk-davinci-pll.h> #include <linux/platform_data/clk-davinci-pll.h>
#include <linux/platform_data/davinci-cpufreq.h>
#include <linux/platform_data/gpio-davinci.h> #include <linux/platform_data/gpio-davinci.h>
#include <linux/platform_device.h> #include <linux/platform_device.h>
#include <linux/regmap.h> #include <linux/regmap.h>
...@@ -29,7 +30,6 @@ ...@@ -29,7 +30,6 @@
#include <asm/mach/map.h> #include <asm/mach/map.h>
#include <mach/common.h> #include <mach/common.h>
#include <mach/cpufreq.h>
#include <mach/cputype.h> #include <mach/cputype.h>
#include <mach/da8xx.h> #include <mach/da8xx.h>
#include <mach/irqs.h> #include <mach/irqs.h>
......
...@@ -23,13 +23,10 @@ ...@@ -23,13 +23,10 @@
#include <linux/init.h> #include <linux/init.h>
#include <linux/err.h> #include <linux/err.h>
#include <linux/clk.h> #include <linux/clk.h>
#include <linux/platform_data/davinci-cpufreq.h>
#include <linux/platform_device.h> #include <linux/platform_device.h>
#include <linux/export.h> #include <linux/export.h>
#include <mach/hardware.h>
#include <mach/cpufreq.h>
#include <mach/common.h>
struct davinci_cpufreq { struct davinci_cpufreq {
struct device *dev; struct device *dev;
struct clk *armclk; struct clk *armclk;
......
/* SPDX-License-Identifier: GPL-2.0 */
/* /*
* TI DaVinci CPUFreq platform support. * TI DaVinci CPUFreq platform support.
* *
* Copyright (C) 2009 Texas Instruments, Inc. http://www.ti.com/ * Copyright (C) 2009 Texas Instruments, Inc. http://www.ti.com/
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation version 2.
*
* This program is distributed "as is" WITHOUT ANY WARRANTY of any
* kind, whether express or implied; without even the implied warranty
* of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/ */
#ifndef _MACH_DAVINCI_CPUFREQ_H #ifndef _MACH_DAVINCI_CPUFREQ_H
#define _MACH_DAVINCI_CPUFREQ_H #define _MACH_DAVINCI_CPUFREQ_H
...@@ -19,8 +12,8 @@ ...@@ -19,8 +12,8 @@
struct davinci_cpufreq_config { struct davinci_cpufreq_config {
struct cpufreq_frequency_table *freq_table; struct cpufreq_frequency_table *freq_table;
int (*set_voltage) (unsigned int index); int (*set_voltage)(unsigned int index);
int (*init) (void); int (*init)(void);
}; };
#endif #endif /* _MACH_DAVINCI_CPUFREQ_H */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment