[U-Boot] [PATCH v2 09/14] mx5 clocks: Fix get_ipg_per_clk()
Benoît Thébaudeau
benoit.thebaudeau at advansee.com
Fri Sep 28 12:42:33 CEST 2012
Hi Stefano,
On Friday, September 28, 2012 11:31:11 AM, Stefano Babic wrote:
> On 27/09/2012 22:23, Benoît Thébaudeau wrote:
> > This fixes the "IPG PERCLK" frequency printed by the clocks
> > command. The issue
> > was that get_ipg_per_clk() used periph_clk instead of lp_apm in the
> > case
> > CCM.CBCMR.perclk_lp_apm_sel is set.
> >
> > It also fixes I²C support.
> >
>
> Hi Benoît,
>
> I understand "clocks" reports a wrong value only if
> CCM.CBCMR.perclk_lp_apm_sel is set, not always.
Correct.
> Can you better explain me which is wrong and which is the fix for I2C
> ?
> It seems unrelated, and I do not get the reason checking the patch
It's only because mxc_get_clock(MXC_IPG_CLK) (or mxc_get_clock(MXC_I2C_CLK)
after [1]) both return get_ipg_per_clk() for the I²C driver's clock.
Best regards,
Benoît
[1] http://git.denx.de/?p=u-boot/u-boot-imx.git;a=commitdiff;h=f6e11ba5997be9cc1044ca55f7b20d04bb7ed38a
More information about the U-Boot
mailing list