diff options
| author | Lokesh Vutla <lokeshvutla@ti.com> | 2013-05-30 02:54:33 +0000 | 
|---|---|---|
| committer | Tom Rini <trini@ti.com> | 2013-06-10 08:43:09 -0400 | 
| commit | 4ca94d81869f8c9ba3e72eac3a99d3eef29df991 (patch) | |
| tree | f20dc62eadba270614f604fef91f0219936998d7 /arch/arm/cpu/armv7/omap5/hw_data.c | |
| parent | af1d002f896e7f9cda47c384db31349cf923e95c (diff) | |
| download | olio-uboot-2014.01-4ca94d81869f8c9ba3e72eac3a99d3eef29df991.tar.xz olio-uboot-2014.01-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.c | 3 | 
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 d2f590001..585e31867 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 = { |