summaryrefslogtreecommitdiff
path: root/drivers/i2c/i2c_core.c
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 /drivers/i2c/i2c_core.c
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 'drivers/i2c/i2c_core.c')
-rw-r--r--drivers/i2c/i2c_core.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/i2c/i2c_core.c b/drivers/i2c/i2c_core.c
index 41cc3b8..16b1aba 100644
--- a/drivers/i2c/i2c_core.c
+++ b/drivers/i2c/i2c_core.c
@@ -233,6 +233,11 @@ __weak void i2c_init_board(void)
{
}
+/* implement possible for i2c specific early i2c init */
+__weak void i2c_early_init_f(void)
+{
+}
+
/*
* i2c_init_all():
*