diff options
author | Jean Pihet <j-pihet@ti.com> | 2012-04-25 06:36:20 -0400 |
---|---|---|
committer | Kevin Hilman <khilman@ti.com> | 2012-05-31 19:03:43 -0400 |
commit | b86aeafc766b71f6d55e54ed2c77fdf7f56ec1ba (patch) | |
tree | 5d09f4538936eeba3cdf6755e1cd39bfb188954a | |
parent | cdd3a354a05b0c33fe33ab11a0fb0838396cad19 (diff) |
ARM: OMAP2+: SmartReflex: move the smartreflex header to include/linux/power
Move the smartreflex header file
(arch/arm/mach-omap2/smartreflex.h) in a new header file
include/linux/power/smartreflex.h.
This change makes the SmartReflex implementation ready for the move
to drivers/.
Signed-off-by: Jean Pihet <j-pihet@ti.com>
Signed-off-by: J Keerthy <j-keerthy@ti.com>
Reviewed-by: Kevin Hilman <khilman@ti.com>
Signed-off-by: Kevin Hilman <khilman@ti.com>
-rw-r--r-- | arch/arm/mach-omap2/omap_hwmod_3xxx_data.c | 4 | ||||
-rw-r--r-- | arch/arm/mach-omap2/omap_hwmod_44xx_data.c | 3 | ||||
-rw-r--r-- | arch/arm/mach-omap2/smartreflex-class3.c | 3 | ||||
-rw-r--r-- | arch/arm/mach-omap2/smartreflex.c | 3 | ||||
-rw-r--r-- | arch/arm/mach-omap2/sr_device.c | 2 | ||||
-rw-r--r-- | include/linux/power/smartreflex.h (renamed from arch/arm/mach-omap2/smartreflex.h) | 7 |
6 files changed, 11 insertions, 11 deletions
diff --git a/arch/arm/mach-omap2/omap_hwmod_3xxx_data.c b/arch/arm/mach-omap2/omap_hwmod_3xxx_data.c index fd48797fa95a..8c7241b7279c 100644 --- a/arch/arm/mach-omap2/omap_hwmod_3xxx_data.c +++ b/arch/arm/mach-omap2/omap_hwmod_3xxx_data.c | |||
@@ -14,6 +14,8 @@ | |||
14 | * | 14 | * |
15 | * XXX these should be marked initdata for multi-OMAP kernels | 15 | * XXX these should be marked initdata for multi-OMAP kernels |
16 | */ | 16 | */ |
17 | #include <linux/power/smartreflex.h> | ||
18 | |||
17 | #include <plat/omap_hwmod.h> | 19 | #include <plat/omap_hwmod.h> |
18 | #include <mach/irqs.h> | 20 | #include <mach/irqs.h> |
19 | #include <plat/cpu.h> | 21 | #include <plat/cpu.h> |
@@ -29,8 +31,6 @@ | |||
29 | #include <plat/dmtimer.h> | 31 | #include <plat/dmtimer.h> |
30 | 32 | ||
31 | #include "omap_hwmod_common_data.h" | 33 | #include "omap_hwmod_common_data.h" |
32 | |||
33 | #include "smartreflex.h" | ||
34 | #include "prm-regbits-34xx.h" | 34 | #include "prm-regbits-34xx.h" |
35 | #include "cm-regbits-34xx.h" | 35 | #include "cm-regbits-34xx.h" |
36 | #include "wd_timer.h" | 36 | #include "wd_timer.h" |
diff --git a/arch/arm/mach-omap2/omap_hwmod_44xx_data.c b/arch/arm/mach-omap2/omap_hwmod_44xx_data.c index 950454a3fa31..0b3af8233f21 100644 --- a/arch/arm/mach-omap2/omap_hwmod_44xx_data.c +++ b/arch/arm/mach-omap2/omap_hwmod_44xx_data.c | |||
@@ -19,6 +19,7 @@ | |||
19 | */ | 19 | */ |
20 | 20 | ||
21 | #include <linux/io.h> | 21 | #include <linux/io.h> |
22 | #include <linux/power/smartreflex.h> | ||
22 | 23 | ||
23 | #include <plat/omap_hwmod.h> | 24 | #include <plat/omap_hwmod.h> |
24 | #include <plat/cpu.h> | 25 | #include <plat/cpu.h> |
@@ -32,8 +33,6 @@ | |||
32 | #include <plat/common.h> | 33 | #include <plat/common.h> |
33 | 34 | ||
34 | #include "omap_hwmod_common_data.h" | 35 | #include "omap_hwmod_common_data.h" |
35 | |||
36 | #include "smartreflex.h" | ||
37 | #include "cm1_44xx.h" | 36 | #include "cm1_44xx.h" |
38 | #include "cm2_44xx.h" | 37 | #include "cm2_44xx.h" |
39 | #include "prm44xx.h" | 38 | #include "prm44xx.h" |
diff --git a/arch/arm/mach-omap2/smartreflex-class3.c b/arch/arm/mach-omap2/smartreflex-class3.c index 955566eefac4..ab8cf83e853e 100644 --- a/arch/arm/mach-omap2/smartreflex-class3.c +++ b/arch/arm/mach-omap2/smartreflex-class3.c | |||
@@ -11,7 +11,8 @@ | |||
11 | * published by the Free Software Foundation. | 11 | * published by the Free Software Foundation. |
12 | */ | 12 | */ |
13 | 13 | ||
14 | #include "smartreflex.h" | 14 | #include <linux/power/smartreflex.h> |
15 | #include "voltage.h" | ||
15 | 16 | ||
16 | static int sr_class3_enable(struct voltagedomain *voltdm) | 17 | static int sr_class3_enable(struct voltagedomain *voltdm) |
17 | { | 18 | { |
diff --git a/arch/arm/mach-omap2/smartreflex.c b/arch/arm/mach-omap2/smartreflex.c index 008fbd7b9352..98309d32ba98 100644 --- a/arch/arm/mach-omap2/smartreflex.c +++ b/arch/arm/mach-omap2/smartreflex.c | |||
@@ -25,11 +25,10 @@ | |||
25 | #include <linux/delay.h> | 25 | #include <linux/delay.h> |
26 | #include <linux/slab.h> | 26 | #include <linux/slab.h> |
27 | #include <linux/pm_runtime.h> | 27 | #include <linux/pm_runtime.h> |
28 | #include <linux/power/smartreflex.h> | ||
28 | 29 | ||
29 | #include "common.h" | 30 | #include "common.h" |
30 | |||
31 | #include "pm.h" | 31 | #include "pm.h" |
32 | #include "smartreflex.h" | ||
33 | 32 | ||
34 | #define SMARTREFLEX_NAME_LEN 16 | 33 | #define SMARTREFLEX_NAME_LEN 16 |
35 | #define NVALUE_NAME_LEN 40 | 34 | #define NVALUE_NAME_LEN 40 |
diff --git a/arch/arm/mach-omap2/sr_device.c b/arch/arm/mach-omap2/sr_device.c index a503e1e8358c..86e438e75105 100644 --- a/arch/arm/mach-omap2/sr_device.c +++ b/arch/arm/mach-omap2/sr_device.c | |||
@@ -17,6 +17,7 @@ | |||
17 | * it under the terms of the GNU General Public License version 2 as | 17 | * it under the terms of the GNU General Public License version 2 as |
18 | * published by the Free Software Foundation. | 18 | * published by the Free Software Foundation. |
19 | */ | 19 | */ |
20 | #include <linux/power/smartreflex.h> | ||
20 | 21 | ||
21 | #include <linux/err.h> | 22 | #include <linux/err.h> |
22 | #include <linux/slab.h> | 23 | #include <linux/slab.h> |
@@ -24,7 +25,6 @@ | |||
24 | 25 | ||
25 | #include <plat/omap_device.h> | 26 | #include <plat/omap_device.h> |
26 | 27 | ||
27 | #include "smartreflex.h" | ||
28 | #include "voltage.h" | 28 | #include "voltage.h" |
29 | #include "control.h" | 29 | #include "control.h" |
30 | #include "pm.h" | 30 | #include "pm.h" |
diff --git a/arch/arm/mach-omap2/smartreflex.h b/include/linux/power/smartreflex.h index 5809141171f8..69eb270c6297 100644 --- a/arch/arm/mach-omap2/smartreflex.h +++ b/include/linux/power/smartreflex.h | |||
@@ -17,12 +17,13 @@ | |||
17 | * published by the Free Software Foundation. | 17 | * published by the Free Software Foundation. |
18 | */ | 18 | */ |
19 | 19 | ||
20 | #ifndef __ASM_ARM_OMAP_SMARTREFLEX_H | 20 | #ifndef __POWER_SMARTREFLEX_H |
21 | #define __ASM_ARM_OMAP_SMARTREFLEX_H | 21 | #define __POWER_SMARTREFLEX_H |
22 | 22 | ||
23 | #include <linux/types.h> | ||
23 | #include <linux/platform_device.h> | 24 | #include <linux/platform_device.h> |
24 | 25 | ||
25 | #include "voltage.h" | 26 | #include <plat/voltage.h> |
26 | 27 | ||
27 | /* | 28 | /* |
28 | * Different Smartreflex IPs version. The v1 is the 65nm version used in | 29 | * Different Smartreflex IPs version. The v1 is the 65nm version used in |