diff options
author | Kevin Hilman <khilman@ti.com> | 2011-03-21 17:29:13 -0400 |
---|---|---|
committer | Kevin Hilman <khilman@ti.com> | 2011-09-15 14:39:11 -0400 |
commit | 01f48d308db1cfcfb0151d8d91153fd73e84ae40 (patch) | |
tree | 2b36a459bb9ea482cdf60cfaf79c4e4996d599dc /arch/arm/mach-omap2/vp.h | |
parent | 4d47506a85a9f2e745dc63215594e9f799aff3dc (diff) |
OMAP2+: voltage: split out voltage processor (VP) code into new layer
This patch is primarily a move of VP specific code from voltage.c into
its own code in vp.c and adds prototypes to vp.h
No functional changes, except debugfs...
VP debugfs moved to 'vp' subdir of <debugfs>/voltage/ and 'vp_'
prefixes removed from all debugfs filenames.
Signed-off-by: Kevin Hilman <khilman@ti.com>
Diffstat (limited to 'arch/arm/mach-omap2/vp.h')
-rw-r--r-- | arch/arm/mach-omap2/vp.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/vp.h b/arch/arm/mach-omap2/vp.h index 5406b08463b6..025cf164da71 100644 --- a/arch/arm/mach-omap2/vp.h +++ b/arch/arm/mach-omap2/vp.h | |||
@@ -19,6 +19,8 @@ | |||
19 | 19 | ||
20 | #include <linux/kernel.h> | 20 | #include <linux/kernel.h> |
21 | 21 | ||
22 | struct voltagedomain; | ||
23 | |||
22 | /* XXX document */ | 24 | /* XXX document */ |
23 | #define VP_IDLE_TIMEOUT 200 | 25 | #define VP_IDLE_TIMEOUT 200 |
24 | #define VP_TRANXDONE_TIMEOUT 300 | 26 | #define VP_TRANXDONE_TIMEOUT 300 |
@@ -139,4 +141,11 @@ extern struct omap_vp_instance_data omap4_vp_mpu_data; | |||
139 | extern struct omap_vp_instance_data omap4_vp_iva_data; | 141 | extern struct omap_vp_instance_data omap4_vp_iva_data; |
140 | extern struct omap_vp_instance_data omap4_vp_core_data; | 142 | extern struct omap_vp_instance_data omap4_vp_core_data; |
141 | 143 | ||
144 | void omap_vp_init(struct voltagedomain *voltdm); | ||
145 | void omap_vp_enable(struct voltagedomain *voltdm); | ||
146 | void omap_vp_disable(struct voltagedomain *voltdm); | ||
147 | unsigned long omap_vp_get_curr_volt(struct voltagedomain *voltdm); | ||
148 | int omap_vp_forceupdate_scale(struct voltagedomain *voltdm, | ||
149 | unsigned long target_volt); | ||
150 | |||
142 | #endif | 151 | #endif |