]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
ppc/p4080: Fix reporting of PME & FM clock frequencies
authorKumar Gala <galak@kernel.crashing.org>
Wed, 9 Dec 2009 23:28:17 +0000 (17:28 -0600)
committerKumar Gala <galak@kernel.crashing.org>
Tue, 5 Jan 2010 19:49:10 +0000 (13:49 -0600)
We incorrectly had the sense of PME_CLK_SEL, FM1_CLK_SEL, FM2_CLK_SEL
backwards so we report the wrong frequency.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
cpu/mpc85xx/speed.c

index 7959082404ba9470cd355642d4676c00f75cabaf..2103e2edf1192fcaddfadaa0b3dc786a8956c3e0 100644 (file)
@@ -103,21 +103,21 @@ void get_sys_info (sys_info_t * sysInfo)
 
 #ifdef CONFIG_SYS_DPAA_PME
        if (rcw_tmp & PME_CLK_SEL)
-               sysInfo->freqPME = freqCC_PLL[2] / 2;
-       else
                sysInfo->freqPME = sysInfo->freqSystemBus / 2;
+       else
+               sysInfo->freqPME = freqCC_PLL[2] / 2;
 #endif
 
 #ifdef CONFIG_SYS_DPAA_FMAN
        if (rcw_tmp & FM1_CLK_SEL)
-               sysInfo->freqFMan[0] = freqCC_PLL[2] / 2;
-       else
                sysInfo->freqFMan[0] = sysInfo->freqSystemBus / 2;
+       else
+               sysInfo->freqFMan[0] = freqCC_PLL[2] / 2;
 #if (CONFIG_SYS_NUM_FMAN) == 2
        if (rcw_tmp & FM2_CLK_SEL)
-               sysInfo->freqFMan[1] = freqCC_PLL[2] / 2;
-       else
                sysInfo->freqFMan[1] = sysInfo->freqSystemBus / 2;
+       else
+               sysInfo->freqFMan[1] = freqCC_PLL[2] / 2;
 #endif
 #endif