summaryrefslogtreecommitdiff
path: root/include/i2c.h
diff options
context:
space:
mode:
authorYuan Yao <yao.yuan@nxp.com>2016-06-08 10:24:51 (GMT)
committerYork Sun <york.sun@nxp.com>2016-06-10 20:44:58 (GMT)
commit9d10c2d3fe6852501a4c43853fe3d2469903a2bb (patch)
tree11c10d005f12676fdadb55fed1952cf9017814ae /include/i2c.h
parent30677deefdf57a8a2d12a766117ea861ca38f52c (diff)
downloadu-boot-9d10c2d3fe6852501a4c43853fe3d2469903a2bb.tar.xz
drivers: i2c: mxc: Add early init
Add early i2c init function with conservative divider when the exact clock rate is not available. Signed-off-by: Yuan Yao <yao.yuan@nxp.com> Reviewed-by: York Sun <york.sun@nxp.com>
Diffstat (limited to 'include/i2c.h')
-rw-r--r--include/i2c.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/i2c.h b/include/i2c.h
index 1f5ae45..d500445 100644
--- a/include/i2c.h
+++ b/include/i2c.h
@@ -701,6 +701,9 @@ extern struct i2c_bus_hose i2c_bus[];
* Initialization, must be called once on start up, may be called
* repeatedly to change the speed and slave addresses.
*/
+#ifdef CONFIG_SYS_I2C_EARLY_INIT
+void i2c_early_init_f(void);
+#endif
void i2c_init(int speed, int slaveaddr);
void i2c_init_board(void);
#ifdef CONFIG_SYS_I2C_BOARD_LATE_INIT