diff options
author | Kevin Hilman <khilman@ti.com> | 2011-03-16 17:25:45 -0400 |
---|---|---|
committer | Kevin Hilman <khilman@ti.com> | 2011-09-15 14:39:09 -0400 |
commit | 81a604823797ddb3aaf2a78cc1c6a1fa8f4d200c (patch) | |
tree | 68e8c9f006b9e1b3349fa1d28bba02501b15c872 /arch/arm/mach-omap2/omap_twl.c | |
parent | c39263c33f9c94443aa9fc4fc2b1f1191666fccd (diff) |
OMAP2+: voltage: start towards a new voltagedomain layer
Start cleaning up the voltage layer to have a voltage domain layer
that resembles the structure of the existing clock and power domain
layers. To that end:
- move the 'struct voltagedomain' out of 'struct omap_vdd_info' to
become the primary data structure.
- convert any functions taking a pointer to struct omap_vdd_info into
functions taking a struct voltagedomain pointer.
- convert the register & initialize of voltage domains to look like
that of powerdomains
- convert omap_voltage_domain_lookup() to voltdm_lookup(), modeled
after the current powerdomain and clockdomain lookup functions.
- omap_voltage_late_init(): only configure VDD info when
the vdd_info struct is non-NULL
Signed-off-by: Kevin Hilman <khilman@ti.com>
Diffstat (limited to 'arch/arm/mach-omap2/omap_twl.c')
-rw-r--r-- | arch/arm/mach-omap2/omap_twl.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/arch/arm/mach-omap2/omap_twl.c b/arch/arm/mach-omap2/omap_twl.c index 07d6140baa9d..fcd2f62fbdc3 100644 --- a/arch/arm/mach-omap2/omap_twl.c +++ b/arch/arm/mach-omap2/omap_twl.c | |||
@@ -250,13 +250,13 @@ int __init omap4_twl_init(void) | |||
250 | if (!cpu_is_omap44xx()) | 250 | if (!cpu_is_omap44xx()) |
251 | return -ENODEV; | 251 | return -ENODEV; |
252 | 252 | ||
253 | voltdm = omap_voltage_domain_lookup("mpu"); | 253 | voltdm = voltdm_lookup("mpu"); |
254 | omap_voltage_register_pmic(voltdm, &omap4_mpu_volt_info); | 254 | omap_voltage_register_pmic(voltdm, &omap4_mpu_volt_info); |
255 | 255 | ||
256 | voltdm = omap_voltage_domain_lookup("iva"); | 256 | voltdm = voltdm_lookup("iva"); |
257 | omap_voltage_register_pmic(voltdm, &omap4_iva_volt_info); | 257 | omap_voltage_register_pmic(voltdm, &omap4_iva_volt_info); |
258 | 258 | ||
259 | voltdm = omap_voltage_domain_lookup("core"); | 259 | voltdm = voltdm_lookup("core"); |
260 | omap_voltage_register_pmic(voltdm, &omap4_core_volt_info); | 260 | omap_voltage_register_pmic(voltdm, &omap4_core_volt_info); |
261 | 261 | ||
262 | return 0; | 262 | return 0; |
@@ -288,10 +288,10 @@ int __init omap3_twl_init(void) | |||
288 | if (!twl_sr_enable_autoinit) | 288 | if (!twl_sr_enable_autoinit) |
289 | omap3_twl_set_sr_bit(true); | 289 | omap3_twl_set_sr_bit(true); |
290 | 290 | ||
291 | voltdm = omap_voltage_domain_lookup("mpu"); | 291 | voltdm = voltdm_lookup("mpu"); |
292 | omap_voltage_register_pmic(voltdm, &omap3_mpu_volt_info); | 292 | omap_voltage_register_pmic(voltdm, &omap3_mpu_volt_info); |
293 | 293 | ||
294 | voltdm = omap_voltage_domain_lookup("core"); | 294 | voltdm = voltdm_lookup("core"); |
295 | omap_voltage_register_pmic(voltdm, &omap3_core_volt_info); | 295 | omap_voltage_register_pmic(voltdm, &omap3_core_volt_info); |
296 | 296 | ||
297 | return 0; | 297 | return 0; |