OMAP2+: voltage: start towards a new voltagedomain layer
commit81a604823797ddb3aaf2a78cc1c6a1fa8f4d200c
authorKevin Hilman <khilman@ti.com>
Wed, 16 Mar 2011 21:25:45 +0000 (16 14:25 -0700)
committerKevin Hilman <khilman@ti.com>
Thu, 15 Sep 2011 18:39:09 +0000 (15 11:39 -0700)
tree68e8c9f006b9e1b3349fa1d28bba02501b15c872
parentc39263c33f9c94443aa9fc4fc2b1f1191666fccd
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>
arch/arm/mach-omap2/io.c
arch/arm/mach-omap2/omap_twl.c
arch/arm/mach-omap2/pm.c
arch/arm/mach-omap2/sr_device.c
arch/arm/mach-omap2/voltage.c
arch/arm/mach-omap2/voltage.h
arch/arm/mach-omap2/voltagedomains3xxx_data.c
arch/arm/mach-omap2/voltagedomains44xx_data.c