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/include/asm/omap_common.h | |
| 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/include/asm/omap_common.h')
| -rw-r--r-- | arch/arm/include/asm/omap_common.h | 3 | 
1 files changed, 3 insertions, 0 deletions
| diff --git a/arch/arm/include/asm/omap_common.h b/arch/arm/include/asm/omap_common.h index 712d78b0a..b70575b1b 100644 --- a/arch/arm/include/asm/omap_common.h +++ b/arch/arm/include/asm/omap_common.h @@ -501,6 +501,9 @@ struct pmic_data {  	u32 start_code;  	unsigned gpio;  	int gpio_en; +	u32 i2c_slave_addr; +	void (*pmic_bus_init)(void); +	int (*pmic_write)(u8 sa, u8 reg_addr, u8 reg_data);  };  struct volts { |