[U-Boot] [PATCH v2 8/9] drivers:i2c: modify I2C header for Multi-I2C
Piotr Wilczek
p.wilczek at samsung.com
Mon Oct 22 09:21:22 CEST 2012
This patch modifies i2c.h header to support Multi-I2C.
Signed-off-by: Piotr Wilczek <p.wilczek at samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park at samsung.com>
CC: Minkyu Kang <mk7.kang at samsung.com>
---
Changes in v2:
- new patch
include/i2c.h | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
diff --git a/include/i2c.h b/include/i2c.h
index 16f099d..cc07058 100644
--- a/include/i2c.h
+++ b/include/i2c.h
@@ -30,6 +30,13 @@
#define _I2C_H_
/*
+ * Multi_I2C header file.
+ */
+#if defined(CONFIG_MULTI_I2C)
+#include <multi_i2c.h>
+#endif
+
+/*
* WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
*
* The implementation MUST NOT use static or global variables if the
@@ -234,6 +241,10 @@ int i2c_set_bus_speed(unsigned int);
* Returns speed of currently active I2C bus in Hz
*/
+#if defined(CONFIG_MULTI_I2C)
+void i2c_reset(void);
+#endif
+
unsigned int i2c_get_bus_speed(void);
/* NOTE: These two functions MUST be always_inline to avoid code growth! */
--
1.7.5.4
More information about the U-Boot
mailing list