]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
mx5 clocks: Fix get_ipg_per_clk()
authorBenoît Thébaudeau <benoit.thebaudeau@advansee.com>
Thu, 27 Sep 2012 10:23:08 +0000 (10:23 +0000)
committerTom Rini <trini@ti.com>
Mon, 15 Oct 2012 18:54:11 +0000 (11:54 -0700)
commitf124e718f43297d60066974d3ccbbb721fb30c0c
tree8e520586be8dd7120075ccd19f22f1db42994fc1
parent55c8df0cb14843d4e19af18e0431f3d9b293c22a
mx5 clocks: Fix get_ipg_per_clk()

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.

Signed-off-by: Benoît Thébaudeau <benoit.thebaudeau@advansee.com>
Cc: Stefano Babic <sbabic@denx.de>
arch/arm/cpu/armv7/mx5/clock.c