projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ARM: da850-evm: Increase environment NOR partition offset
[oweals/u-boot.git]
/
include
/
twl6030.h
diff --git
a/include/twl6030.h
b/include/twl6030.h
index 66853439edb1e340a94f0d89decd2271ed4b72ca..41f17de3ab5572fbe511fcfc5f60c0606ba785d9 100644
(file)
--- a/
include/twl6030.h
+++ b/
include/twl6030.h
@@
-186,6
+186,7
@@
struct twl6030_data{
};
/* Functions to read and write from TWL6030 */
};
/* Functions to read and write from TWL6030 */
+#ifndef CONFIG_DM_I2C
static inline int twl6030_i2c_write_u8(u8 chip_no, u8 reg, u8 val)
{
return i2c_write(chip_no, reg, 1, &val, 1);
static inline int twl6030_i2c_write_u8(u8 chip_no, u8 reg, u8 val)
{
return i2c_write(chip_no, reg, 1, &val, 1);
@@
-195,6
+196,10
@@
static inline int twl6030_i2c_read_u8(u8 chip_no, u8 reg, u8 *val)
{
return i2c_read(chip_no, reg, 1, val, 1);
}
{
return i2c_read(chip_no, reg, 1, val, 1);
}
+#else
+int twl6030_i2c_write_u8(u8 chip_no, u8 reg, u8 val);
+int twl6030_i2c_read_u8(u8 chip_no, u8 reg, u8 *val);
+#endif
/*
* Power
/*
* Power