aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/io.c
diff options
context:
space:
mode:
authorKevin Hilman <khilman@ti.com>2011-03-16 17:25:45 -0400
committerKevin Hilman <khilman@ti.com>2011-09-15 14:39:09 -0400
commit81a604823797ddb3aaf2a78cc1c6a1fa8f4d200c (patch)
tree68e8c9f006b9e1b3349fa1d28bba02501b15c872 /arch/arm/mach-omap2/io.c
parentc39263c33f9c94443aa9fc4fc2b1f1191666fccd (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/io.c')
-rw-r--r--arch/arm/mach-omap2/io.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/io.c b/arch/arm/mach-omap2/io.c
index 40b6d47fdbda..7c36fde5dd62 100644
--- a/arch/arm/mach-omap2/io.c
+++ b/arch/arm/mach-omap2/io.c
@@ -38,6 +38,7 @@
38#include "io.h" 38#include "io.h"
39 39
40#include <plat/omap-pm.h> 40#include <plat/omap-pm.h>
41#include "voltage.h"
41#include "powerdomain.h" 42#include "powerdomain.h"
42 43
43#include "clockdomain.h" 44#include "clockdomain.h"
@@ -349,10 +350,12 @@ void __init omap2_init_common_infrastructure(void)
349 omap243x_clockdomains_init(); 350 omap243x_clockdomains_init();
350 omap2430_hwmod_init(); 351 omap2430_hwmod_init();
351 } else if (cpu_is_omap34xx()) { 352 } else if (cpu_is_omap34xx()) {
353 omap3xxx_voltagedomains_init();
352 omap3xxx_powerdomains_init(); 354 omap3xxx_powerdomains_init();
353 omap3xxx_clockdomains_init(); 355 omap3xxx_clockdomains_init();
354 omap3xxx_hwmod_init(); 356 omap3xxx_hwmod_init();
355 } else if (cpu_is_omap44xx()) { 357 } else if (cpu_is_omap44xx()) {
358 omap44xx_voltagedomains_init();
356 omap44xx_powerdomains_init(); 359 omap44xx_powerdomains_init();
357 omap44xx_clockdomains_init(); 360 omap44xx_clockdomains_init();
358 omap44xx_hwmod_init(); 361 omap44xx_hwmod_init();