diff options
author | Kevin Hilman <khilman@ti.com> | 2011-03-30 16:36:30 -0700 |
---|---|---|
committer | Kevin Hilman <khilman@ti.com> | 2011-06-03 10:13:31 -0700 |
commit | ec74a96705ce65b6c473a9741d30a61e70552281 (patch) | |
tree | ce64b5050b4d2abe380144c7dde751603452821f /arch/arm/mach-omap2/vc3xxx_data.c | |
parent | 7cd738768839508765ce20834554a89ca03bddd1 (diff) | |
download | kernel_samsung_tuna-ec74a96705ce65b6c473a9741d30a61e70552281.zip kernel_samsung_tuna-ec74a96705ce65b6c473a9741d30a61e70552281.tar.gz kernel_samsung_tuna-ec74a96705ce65b6c473a9741d30a61e70552281.tar.bz2 |
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.
Signed-off-by: Kevin Hilman <khilman@ti.com>
Diffstat (limited to 'arch/arm/mach-omap2/vc3xxx_data.c')
-rw-r--r-- | arch/arm/mach-omap2/vc3xxx_data.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/vc3xxx_data.c b/arch/arm/mach-omap2/vc3xxx_data.c index f4449eb..688d55d 100644 --- a/arch/arm/mach-omap2/vc3xxx_data.c +++ b/arch/arm/mach-omap2/vc3xxx_data.c @@ -44,6 +44,9 @@ static struct omap_vc_common omap3_vc_common = { .cmd_ret_shift = OMAP3430_VC_CMD_RET_SHIFT, .cmd_off_shift = OMAP3430_VC_CMD_OFF_SHIFT, .cfg_channel_reg = OMAP3_PRM_VC_CH_CONF_OFFSET, + .i2c_cfg_hsen_shift = OMAP3430_HSEN_MASK, + .i2c_cfg_reg = OMAP3_PRM_VC_I2C_CFG_OFFSET, + .i2c_mcode_mask = OMAP3430_MCODE_MASK, }; struct omap_vc_channel omap3_vc_mpu = { |