diff options
Diffstat (limited to 'include/palmas.h')
-rw-r--r-- | include/palmas.h | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/include/palmas.h b/include/palmas.h index 305092e1ce..e629fbf998 100644 --- a/include/palmas.h +++ b/include/palmas.h | |||
@@ -36,7 +36,19 @@ | |||
36 | #define LDO_MODE_SLEEP (1 << 2) | 36 | #define LDO_MODE_SLEEP (1 << 2) |
37 | #define LDO_MODE_ACTIVE (1 << 0) | 37 | #define LDO_MODE_ACTIVE (1 << 0) |
38 | 38 | ||
39 | int twl6035_i2c_write_u8(u8 chip_no, u8 val, u8 reg); | 39 | /* |
40 | int twl6035_i2c_read_u8(u8 chip_no, u8 *val, u8 reg); | 40 | * Functions to read and write from TPS659038/TWL6035/TWL6037 |
41 | * or other Palmas family of TI PMICs | ||
42 | */ | ||
43 | static inline int palmas_i2c_write_u8(u8 chip_no, u8 reg, u8 val) | ||
44 | { | ||
45 | return i2c_write(chip_no, reg, 1, &val, 1); | ||
46 | } | ||
47 | |||
48 | static inline int palmas_i2c_read_u8(u8 chip_no, u8 reg, u8 *val) | ||
49 | { | ||
50 | return i2c_read(chip_no, reg, 1, val, 1); | ||
51 | } | ||
52 | |||
41 | void palmas_init_settings(void); | 53 | void palmas_init_settings(void); |
42 | int palmas_mmc1_poweron_ldo(void); | 54 | int palmas_mmc1_poweron_ldo(void); |