]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
i2c: designware_i2c.c: Add support for the "i2c probe" command
authorStefan Roese <sr@denx.de>
Fri, 20 Jan 2012 10:52:33 +0000 (11:52 +0100)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Sat, 7 Jul 2012 12:07:43 +0000 (14:07 +0200)
commit496ba48f5ec60187d9ff7e4298e3d37677d74530
treed981029cc4a18ad136646b0cfa67f2fc5ac9246e
parent038f3c54ba9a7ab4552943f47efe8f05736b1732
i2c: designware_i2c.c: Add support for the "i2c probe" command

i2c_probe() is changed to reinit the i2c bus upon read failure.
This is naturally the case upon i2c bus probing.

Also, some printf messages upon read failure are removed. As they
would interfere with the "i2c probe" command.

Additionally, i2c_set_bus_speed() now returns 0, so that the
"i2c speed" command can be used.

Signed-off-by: Stefan Roese <sr@denx.de>
Cc: Amit Virdi <amit.virdi@st.com>
Cc: Vipin Kumar <vipin.kumar@st.com>
drivers/i2c/designware_i2c.c