]> Pileus Git - ~andy/linux/commit
ARM: OMAP3+: PM: VP: use uV for max and min voltage limits
authorNishanth Menon <nm@ti.com>
Tue, 25 Sep 2012 16:33:33 +0000 (19:33 +0300)
committerKevin Hilman <khilman@ti.com>
Mon, 5 Nov 2012 23:03:34 +0000 (15:03 -0800)
commitf2a0dfefec5fac797a5c6defa7e29db933a67a80
tree070d2d3befa2b0ad2be900e5fee478a7245cc3b9
parent3d70f8c617a436c7146ecb81df2265b4626dfe89
ARM: OMAP3+: PM: VP: use uV for max and min voltage limits

Every PMIC has it's own eccentricities, For example, one of the
PMIC has MSB set to 1 for a specific function - voltage enable!
using an hardcoded value specific for TWL when copied over to
such an implementation causes the system to crash as the MSB bit
was 0 and the voltage got disabled!.

Instead we use actual values and depend on the convertion routines
to abstract out the eccentricities of each PMIC.

With this, we can now move the voltages to a common location in
voltage.h as they are no longer dependent on PMICs and expect the
PMIC's conversion routines to set a cap if the voltage is out of
reach for the PMIC.

Reported-by: Jon Hunter <jon-hunter@ti.com>
Signed-off-by: Nishanth Menon <nm@ti.com>
Signed-off-by: Vishwanath BS <vishwanath.bs@ti.com>
Signed-off-by: Tero Kristo <t-kristo@ti.com>
Signed-off-by: Kevin Hilman <khilman@ti.com>
arch/arm/mach-omap2/omap_twl.c
arch/arm/mach-omap2/voltage.h
arch/arm/mach-omap2/vp.c