drivers: i2c: mxc: Add early init
authorYuan Yao <yao.yuan@nxp.com>
Wed, 8 Jun 2016 10:24:51 +0000 (18:24 +0800)
committerYork Sun <york.sun@nxp.com>
Fri, 10 Jun 2016 20:44:58 +0000 (13:44 -0700)
commit9d10c2d3fe6852501a4c43853fe3d2469903a2bb
tree11c10d005f12676fdadb55fed1952cf9017814ae
parent30677deefdf57a8a2d12a766117ea861ca38f52c
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>
drivers/i2c/i2c_core.c
drivers/i2c/mxc_i2c.c
include/i2c.h