From mboxrd@z Thu Jan 1 00:00:00 1970
From: Piotr Wilczek
Date: Mon, 22 Oct 2012 09:21:22 +0200
Subject: [U-Boot] [PATCH v2 8/9] drivers:i2c: modify I2C header for Multi-I2C
In-Reply-To: <1350890483-26579-1-git-send-email-p.wilczek@samsung.com>
References: <1350890483-26579-1-git-send-email-p.wilczek@samsung.com>
Message-ID: <1350890483-26579-9-git-send-email-p.wilczek@samsung.com>
List-Id:
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
To: u-boot@lists.denx.de
This patch modifies i2c.h header to support Multi-I2C.
Signed-off-by: Piotr Wilczek
Signed-off-by: Kyungmin Park
CC: Minkyu Kang
---
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
+#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