]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
i2c, mpc83xx: add CONFIG_SYS_I2C_INIT_BOARD for fsl_i2c
authorHeiko Schocher <hs@denx.de>
Thu, 9 Jul 2009 10:04:26 +0000 (12:04 +0200)
committerHeiko Schocher <hs@denx.de>
Tue, 21 Jul 2009 05:06:26 +0000 (07:06 +0200)
commit39df00d9aecfb465b9eec9af593f9b763fb5209a
tree65392eb84672e4f25379bf65a4e9a20fb41e27c6
parent1bc1538613d66cef3cbce680fc8d7c3561a0fbd0
i2c, mpc83xx: add CONFIG_SYS_I2C_INIT_BOARD for fsl_i2c

This patch adds the possibility to call a board specific
i2c bus reset routine for the fsl_i2c bus driver, and adds
this option for the keymile kmeter1 board.

The deblock sequence for this board is implemented and
tested in the following way:

CR = 0x20 (release SDA and SCL pin)
CR = 0xa0 (start read)
dummy read
dummy read
if 2. dummy read == 0x00
3. dummy read

CR = 0x80 (SDA and SCL now 1 SR = 0x86)
CR = 0x00 (Modul reset SR=0x81)
CR = 0x80 (SDA and SCL = 1, SR = 0x81)

Signed-off-by: Heiko Schocher <hs@denx.de>
board/keymile/common/common.c
drivers/i2c/fsl_i2c.c
include/configs/kmeter1.h