diff options
author | Kevin Hilman <khilman@ti.com> | 2011-03-21 17:08:55 -0400 |
---|---|---|
committer | Kevin Hilman <khilman@ti.com> | 2011-09-15 14:39:10 -0400 |
commit | ccd5ca7787df8f1bd267b90f03a09c31c160ffe2 (patch) | |
tree | 593de0267c8554188d7d5425e83836ba7d84bb65 /arch/arm/mach-omap2/vc.h | |
parent | e69c22b1459068f15e56e48b4b6953cc3f566c79 (diff) |
OMAP2+: voltage: split voltage controller (VC) code into dedicated layer
As part of the voltage layer cleanup, split out VC specific code into
a dedicated VC layer. This patch primarily just moves VC code from
voltage.c into vc.c, and adds prototypes to vc.h.
No functional changes.
For readability, each function was given a local 'vc' pointer:
struct omap_vc_instance_data *vc = voltdm->vdd->vc_data;
and a global replace of s/vdd->vc_data/vc/ was done.
Also vc_init was renamed to vc_init_channel to reflect that this is
per-VC channel initializtion.
Signed-off-by: Kevin Hilman <khilman@ti.com>
Diffstat (limited to 'arch/arm/mach-omap2/vc.h')
-rw-r--r-- | arch/arm/mach-omap2/vc.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/vc.h b/arch/arm/mach-omap2/vc.h index f7338af13d0b..d0bf34831c0b 100644 --- a/arch/arm/mach-omap2/vc.h +++ b/arch/arm/mach-omap2/vc.h | |||
@@ -19,6 +19,8 @@ | |||
19 | 19 | ||
20 | #include <linux/kernel.h> | 20 | #include <linux/kernel.h> |
21 | 21 | ||
22 | struct voltagedomain; | ||
23 | |||
22 | /** | 24 | /** |
23 | * struct omap_vc_common_data - per-VC register/bitfield data | 25 | * struct omap_vc_common_data - per-VC register/bitfield data |
24 | * @cmd_on_mask: ON bitmask in PRM_VC_CMD_VAL* register | 26 | * @cmd_on_mask: ON bitmask in PRM_VC_CMD_VAL* register |
@@ -81,5 +83,15 @@ extern struct omap_vc_instance_data omap4_vc_mpu_data; | |||
81 | extern struct omap_vc_instance_data omap4_vc_iva_data; | 83 | extern struct omap_vc_instance_data omap4_vc_iva_data; |
82 | extern struct omap_vc_instance_data omap4_vc_core_data; | 84 | extern struct omap_vc_instance_data omap4_vc_core_data; |
83 | 85 | ||
86 | void omap_vc_init_channel(struct voltagedomain *voltdm); | ||
87 | int omap_vc_pre_scale(struct voltagedomain *voltdm, | ||
88 | unsigned long target_volt, | ||
89 | u8 *target_vsel, u8 *current_vsel); | ||
90 | void omap_vc_post_scale(struct voltagedomain *voltdm, | ||
91 | unsigned long target_volt, | ||
92 | u8 target_vsel, u8 current_vsel); | ||
93 | int omap_vc_bypass_scale_voltage(struct voltagedomain *voltdm, | ||
94 | unsigned long target_volt); | ||
95 | |||
84 | #endif | 96 | #endif |
85 | 97 | ||