diff options
| -rw-r--r-- | arch/arm/mach-davinci/da850.c | 2 | ||||
| -rw-r--r-- | arch/arm/mach-davinci/include/mach/cpufreq.h | 26 | ||||
| -rw-r--r-- | drivers/cpufreq/davinci-cpufreq.c | 5 | ||||
| -rw-r--r-- | include/linux/platform_data/davinci-cpufreq.h | 19 |
4 files changed, 21 insertions, 31 deletions
diff --git a/arch/arm/mach-davinci/da850.c b/arch/arm/mach-davinci/da850.c index e7b78df2bfef..a02ff431ba47 100644 --- a/arch/arm/mach-davinci/da850.c +++ b/arch/arm/mach-davinci/da850.c | |||
| @@ -21,6 +21,7 @@ | |||
| 21 | #include <linux/mfd/da8xx-cfgchip.h> | 21 | #include <linux/mfd/da8xx-cfgchip.h> |
| 22 | #include <linux/platform_data/clk-da8xx-cfgchip.h> | 22 | #include <linux/platform_data/clk-da8xx-cfgchip.h> |
| 23 | #include <linux/platform_data/clk-davinci-pll.h> | 23 | #include <linux/platform_data/clk-davinci-pll.h> |
| 24 | #include <linux/platform_data/davinci-cpufreq.h> | ||
| 24 | #include <linux/platform_data/gpio-davinci.h> | 25 | #include <linux/platform_data/gpio-davinci.h> |
| 25 | #include <linux/platform_device.h> | 26 | #include <linux/platform_device.h> |
| 26 | #include <linux/regmap.h> | 27 | #include <linux/regmap.h> |
| @@ -29,7 +30,6 @@ | |||
| 29 | #include <asm/mach/map.h> | 30 | #include <asm/mach/map.h> |
| 30 | 31 | ||
| 31 | #include <mach/common.h> | 32 | #include <mach/common.h> |
| 32 | #include <mach/cpufreq.h> | ||
| 33 | #include <mach/cputype.h> | 33 | #include <mach/cputype.h> |
| 34 | #include <mach/da8xx.h> | 34 | #include <mach/da8xx.h> |
| 35 | #include <mach/irqs.h> | 35 | #include <mach/irqs.h> |
diff --git a/arch/arm/mach-davinci/include/mach/cpufreq.h b/arch/arm/mach-davinci/include/mach/cpufreq.h deleted file mode 100644 index 3c089cfb6cd6..000000000000 --- a/arch/arm/mach-davinci/include/mach/cpufreq.h +++ /dev/null | |||
| @@ -1,26 +0,0 @@ | |||
| 1 | /* | ||
| 2 | * TI DaVinci CPUFreq platform support. | ||
| 3 | * | ||
| 4 | * Copyright (C) 2009 Texas Instruments, Inc. http://www.ti.com/ | ||
| 5 | * | ||
| 6 | * This program is free software; you can redistribute it and/or | ||
| 7 | * modify it under the terms of the GNU General Public License as | ||
| 8 | * published by the Free Software Foundation version 2. | ||
| 9 | * | ||
| 10 | * This program is distributed "as is" WITHOUT ANY WARRANTY of any | ||
| 11 | * kind, whether express or implied; without even the implied warranty | ||
| 12 | * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 13 | * GNU General Public License for more details. | ||
| 14 | */ | ||
| 15 | #ifndef _MACH_DAVINCI_CPUFREQ_H | ||
| 16 | #define _MACH_DAVINCI_CPUFREQ_H | ||
| 17 | |||
| 18 | #include <linux/cpufreq.h> | ||
| 19 | |||
| 20 | struct davinci_cpufreq_config { | ||
| 21 | struct cpufreq_frequency_table *freq_table; | ||
| 22 | int (*set_voltage) (unsigned int index); | ||
| 23 | int (*init) (void); | ||
| 24 | }; | ||
| 25 | |||
| 26 | #endif | ||
diff --git a/drivers/cpufreq/davinci-cpufreq.c b/drivers/cpufreq/davinci-cpufreq.c index d54a27c99121..940fe85db97a 100644 --- a/drivers/cpufreq/davinci-cpufreq.c +++ b/drivers/cpufreq/davinci-cpufreq.c | |||
| @@ -23,13 +23,10 @@ | |||
| 23 | #include <linux/init.h> | 23 | #include <linux/init.h> |
| 24 | #include <linux/err.h> | 24 | #include <linux/err.h> |
| 25 | #include <linux/clk.h> | 25 | #include <linux/clk.h> |
| 26 | #include <linux/platform_data/davinci-cpufreq.h> | ||
| 26 | #include <linux/platform_device.h> | 27 | #include <linux/platform_device.h> |
| 27 | #include <linux/export.h> | 28 | #include <linux/export.h> |
| 28 | 29 | ||
| 29 | #include <mach/hardware.h> | ||
| 30 | #include <mach/cpufreq.h> | ||
| 31 | #include <mach/common.h> | ||
| 32 | |||
| 33 | struct davinci_cpufreq { | 30 | struct davinci_cpufreq { |
| 34 | struct device *dev; | 31 | struct device *dev; |
| 35 | struct clk *armclk; | 32 | struct clk *armclk; |
diff --git a/include/linux/platform_data/davinci-cpufreq.h b/include/linux/platform_data/davinci-cpufreq.h new file mode 100644 index 000000000000..3fbf9f2793b5 --- /dev/null +++ b/include/linux/platform_data/davinci-cpufreq.h | |||
| @@ -0,0 +1,19 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 2 | /* | ||
| 3 | * TI DaVinci CPUFreq platform support. | ||
| 4 | * | ||
| 5 | * Copyright (C) 2009 Texas Instruments, Inc. http://www.ti.com/ | ||
| 6 | */ | ||
| 7 | |||
| 8 | #ifndef _MACH_DAVINCI_CPUFREQ_H | ||
| 9 | #define _MACH_DAVINCI_CPUFREQ_H | ||
| 10 | |||
| 11 | #include <linux/cpufreq.h> | ||
| 12 | |||
| 13 | struct davinci_cpufreq_config { | ||
| 14 | struct cpufreq_frequency_table *freq_table; | ||
| 15 | int (*set_voltage)(unsigned int index); | ||
| 16 | int (*init)(void); | ||
| 17 | }; | ||
| 18 | |||
| 19 | #endif /* _MACH_DAVINCI_CPUFREQ_H */ | ||
