[U-Boot] I2C on mx25

Fabio Estevam festevam at gmail.com
Thu Oct 11 00:05:29 CEST 2012


On Wed, Oct 10, 2012 at 6:50 PM, Fabio Estevam <festevam at gmail.com> wrote:
> Hi,
>
> Has anyone managed to get i2c to work on mx25?
>
> I am using the latest u-boot.imx tree and I noticed that "i2c_write"
> always returns error.

Ok, i2c_write does work now. This recent commit fixed it:

commit b1e9e9ef71e6a33c3cc675a18be48929d4a8479f
Author: Matthias Weisser <weisserm at arcor.de>
Date:   Mon Sep 24 02:46:53 2012 +0000

    imx: Use MXC_I2C_CLK in imx i2c driver

    i2c didn't work on imx25 due to missing MXC_IPG_PERCLK. Now using
    MXC_I2C_CLK on all imx systems using i2c.

    Signed-off-by: Matthias Weisser <weisserm at arcor.de>
    Acked-by: Stefano Babic <sbabic at denx.de>

This allows me to write to the PMIC and I can turn on the power supply
for the FEC.

Still not able to get FEC to work on mx25pdk, but it seems to be
another problem now.

Regards,

Fabio Estevam


More information about the U-Boot mailing list