OMAP2+: VC: support PMICs with separate voltage and command registers
authorKevin Hilman <khilman@ti.com>
Tue, 22 Mar 2011 21:12:37 +0000 (14:12 -0700)
committerKevin Hilman <khilman@ti.com>
Thu, 15 Sep 2011 18:39:11 +0000 (11:39 -0700)
commite74e44054f8297d60fbd2ed1d412d84055afee8c
tree2bbfb22023db5153b809653f73bbd0a08ab5ad92
parent01f48d308db1cfcfb0151d8d91153fd73e84ae40
OMAP2+: VC: support PMICs with separate voltage and command registers

The VC layer can support PMICs with separate voltage and command
registers by putting the different registers in the PRM_VC_SMPS_VOL_RA
and PRCM_VC_SMPS_CMD_RA registers respectively.

The PMIC data must supply at least a voltage register address
(volt_reg_addr).  The command register address (cmd_reg_addr) is
optional.  If the PMIC data does not supply a separate command
register address, the VC will use the voltage register address for both.

Signed-off-by: Kevin Hilman <khilman@ti.com>
arch/arm/mach-omap2/omap_twl.c
arch/arm/mach-omap2/vc.c
arch/arm/mach-omap2/voltage.h