summaryrefslogtreecommitdiffstats
path: root/arch/arm/cpu/armv7/omap5/hw_data.c
diff options
context:
space:
mode:
authorLokesh Vutla <lokeshvutla@ti.com>2013-05-30 02:54:33 +0000
committerTom Rini <trini@ti.com>2013-06-10 08:43:09 -0400
commit4ca94d81869f8c9ba3e72eac3a99d3eef29df991 (patch)
treef20dc62eadba270614f604fef91f0219936998d7 /arch/arm/cpu/armv7/omap5/hw_data.c
parentaf1d002f896e7f9cda47c384db31349cf923e95c (diff)
downloadtalos-obmc-uboot-4ca94d81869f8c9ba3e72eac3a99d3eef29df991.tar.gz
talos-obmc-uboot-4ca94d81869f8c9ba3e72eac3a99d3eef29df991.zip
ARM: OMAP4+: pmic: Make generic bus init and write functions
Voltage scaling can be done in two ways: -> Using SR I2C -> Using GP I2C In order to support both, have a function pointer in pmic_data so that we can call as per our requirement. Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Diffstat (limited to 'arch/arm/cpu/armv7/omap5/hw_data.c')
-rw-r--r--arch/arm/cpu/armv7/omap5/hw_data.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm/cpu/armv7/omap5/hw_data.c b/arch/arm/cpu/armv7/omap5/hw_data.c
index d2f5900013..585e318671 100644
--- a/arch/arm/cpu/armv7/omap5/hw_data.c
+++ b/arch/arm/cpu/armv7/omap5/hw_data.c
@@ -289,6 +289,9 @@ struct pmic_data palmas = {
* Offset code 0 switches OFF the SMPS
*/
.start_code = 6,
+ .i2c_slave_addr = SMPS_I2C_SLAVE_ADDR,
+ .pmic_bus_init = sri2c_init,
+ .pmic_write = omap_vc_bypass_send_value,
};
struct vcores_data omap5430_volts = {
OpenPOWER on IntegriCloud