]> git.dujemihanovic.xyz Git - u-boot.git/commit
i2c: mxs: Abstract out the MXS I2C speed setup
authorMarek Vasut <marex@denx.de>
Mon, 12 Nov 2012 14:34:28 +0000 (14:34 +0000)
committerTom Rini <trini@ti.com>
Tue, 11 Dec 2012 20:17:30 +0000 (13:17 -0700)
commitf32a470ed3dfff493473bc25c7d0a01920507eed
treeaab877c32ae2e4c9cd0e0252d58c18365cb06a2e
parent06afa388b2f6f0f974a9d60f0e5fc273b857bdeb
i2c: mxs: Abstract out the MXS I2C speed setup

This patch pulls out the I2C speed setup from the i2c_init() call
and implements the bus configuration lookup table with register
values that needs to be programmed into the I2C IP to run at
particular speed.

This patch is a first step towards implementing run-time I2C bus
speed configuration for the MXS I2C IP.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Stefano Babic <sbabic@denx.de>
Cc: Fabio Estevam <fabio.estevam@freescale.com>
drivers/i2c/mxs_i2c.c