mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-10-04 02:20:43 +09:00
Revert "ppc/p4080: Fix reporting of PME & FM clock frequencies"
This reverts commit bc20f9a952
.
The original code was correct. I clearly need glasses or a brown
paper bag.
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
This commit is contained in:
parent
93cedc7164
commit
693416fe01
@ -103,21 +103,21 @@ void get_sys_info (sys_info_t * sysInfo)
|
|||||||
|
|
||||||
#ifdef CONFIG_SYS_DPAA_PME
|
#ifdef CONFIG_SYS_DPAA_PME
|
||||||
if (rcw_tmp & PME_CLK_SEL)
|
if (rcw_tmp & PME_CLK_SEL)
|
||||||
sysInfo->freqPME = sysInfo->freqSystemBus / 2;
|
|
||||||
else
|
|
||||||
sysInfo->freqPME = freqCC_PLL[2] / 2;
|
sysInfo->freqPME = freqCC_PLL[2] / 2;
|
||||||
|
else
|
||||||
|
sysInfo->freqPME = sysInfo->freqSystemBus / 2;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_SYS_DPAA_FMAN
|
#ifdef CONFIG_SYS_DPAA_FMAN
|
||||||
if (rcw_tmp & FM1_CLK_SEL)
|
if (rcw_tmp & FM1_CLK_SEL)
|
||||||
sysInfo->freqFMan[0] = sysInfo->freqSystemBus / 2;
|
|
||||||
else
|
|
||||||
sysInfo->freqFMan[0] = freqCC_PLL[2] / 2;
|
sysInfo->freqFMan[0] = freqCC_PLL[2] / 2;
|
||||||
|
else
|
||||||
|
sysInfo->freqFMan[0] = sysInfo->freqSystemBus / 2;
|
||||||
#if (CONFIG_SYS_NUM_FMAN) == 2
|
#if (CONFIG_SYS_NUM_FMAN) == 2
|
||||||
if (rcw_tmp & FM2_CLK_SEL)
|
if (rcw_tmp & FM2_CLK_SEL)
|
||||||
sysInfo->freqFMan[1] = sysInfo->freqSystemBus / 2;
|
|
||||||
else
|
|
||||||
sysInfo->freqFMan[1] = freqCC_PLL[2] / 2;
|
sysInfo->freqFMan[1] = freqCC_PLL[2] / 2;
|
||||||
|
else
|
||||||
|
sysInfo->freqFMan[1] = sysInfo->freqSystemBus / 2;
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user