OMAP3+: VC: make I2C config programmable with PMIC-specific settings
authorKevin Hilman <khilman@ti.com>
Wed, 30 Mar 2011 23:36:30 +0000 (16:36 -0700)
committerKevin Hilman <khilman@ti.com>
Thu, 15 Sep 2011 19:08:58 +0000 (12:08 -0700)
commitf5395480f5088a86cc8594d29b5c2f07f6995c3d
tree85b13fd9a57214de3d59f6dbf4a3702f7873cc6e
parentce8ebe0dfb1f8713337cebf82499d3dced288328
OMAP3+: VC: make I2C config programmable with PMIC-specific settings

Remove hard-coded I2C configuration in favor of settings that can be
configured from PMIC-specific values.  Currently only high-speed mode
and the master-code value are supported, since they were the only
fields currently used, but extending this is now trivial.

Thanks to Nishanth Menon <nm@ti.com> for reporting/fixing a sparse
problem and making omap_vc_i2c_init() static, as well as finding and
fixing a problem with the shift/mask of mcode.

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/vc.h
arch/arm/mach-omap2/vc3xxx_data.c
arch/arm/mach-omap2/vc44xx_data.c
arch/arm/mach-omap2/voltage.h