From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marek Vasut Date: Wed, 13 Jul 2011 11:57:05 +0200 Subject: [U-Boot] [PATCH v4 5/8] mxc_i2c: add support for MX53 processor In-Reply-To: <1294129662-680-5-git-send-email-r64343@freescale.com> References: <1294129662-680-1-git-send-email-r64343@freescale.com> <1294129662-680-5-git-send-email-r64343@freescale.com> Message-ID: <201107131157.06362.marek.vasut@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 > -- 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)