[U-Boot] [PATCH v4 5/8] mxc_i2c: add support for MX53 processor

Marek Vasut marek.vasut at gmail.com
Wed Jul 13 11:57:05 CEST 2011


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 <r64343 at 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)


More information about the U-Boot mailing list