aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'include/palmas.h')
-rw-r--r--include/palmas.h16
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
39int twl6035_i2c_write_u8(u8 chip_no, u8 val, u8 reg); 39/*
40int 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 */
43static 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
48static 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
41void palmas_init_settings(void); 53void palmas_init_settings(void);
42int palmas_mmc1_poweron_ldo(void); 54int palmas_mmc1_poweron_ldo(void);