On Tuesday, January 04, 2011 09:27:39 AM Jason Liu wrote: > This patch add I2C support for Freescale MX53 processor > > Signed-off-by: Jason Liu <r64...@freescale.com> > -- SNIP -- > > +#if defined(CONFIG_MX31) > + freq = mx31_get_ipg_clk(); > /* start the required I2C clock */ > __REG(CCM_CGR0) = __REG(CCM_CGR0) | (3 << I2C_CLK_OFFSET); > +#else > + freq = mxc_get_clock(MXC_IPG_PERCLK);
Jason, this here is incorrect, I CCed you with my "rework of i2c_mxc" patch where this is fixed, as well as the driver is more stable (at least for me on imx51). The correct source here should be MXC_IPG_CLK. Cheers > +#endif > > for (i = 0; i < 0x1f; i++) > if (freq / div[i] <= speed) _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot