From: Eric Bénard Date: Tue, 12 Oct 2010 17:26:34 +0000 (+0200) Subject: mx25: fix clock's calculation X-Git-Tag: v2.6.37-rc1~184^2~5^2^2~16 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e482b3bee66d627356904746c217f8f1bf891e60;p=pandora-kernel.git mx25: fix clock's calculation * get_rate_arm : when 400MHz clock is selected (cctl & 1<<14), ARM clock is 400MHz (MPLL * 3 / 4) and not 800MHz * get_rate_per : peripherals's clock is derived from AHB and not from IPG (ref manual : figure 5-1) * can2_clk : use the correct ID * without this patch, peripherals getting their clock from PER clocks work fine because of the 2 errors which fix themselves (ARM clock x 2 and per clock actually based on IPG which is AHB/2) but flexcan can't work as it gets its clock from IPG and thus calculates its bitrate using a reference value which is twice what it really is. Signed-off-by: Eric Bénard --- Reading git-diff-tree failed