From: Shaohui Xie Date: Mon, 25 Mar 2013 07:33:25 +0000 (+0000) Subject: powerpc/85xx: add missing QMAN frequency calculation X-Git-Tag: v2013.07-rc1~1^2~16^2~11 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=3e83fc9b4d898e3e97a6079d103c1e3dc53ca5cc;p=u-boot powerpc/85xx: add missing QMAN frequency calculation When CONFIG_SYS_FSL_QORIQ_CHASSIS2 is not defined, QMAN frequency will not be initialized, and QMAN will have a wrong frequency display. Signed-off-by: Shaohui Xie Signed-off-by: Andy Fleming --- diff --git a/arch/powerpc/cpu/mpc85xx/speed.c b/arch/powerpc/cpu/mpc85xx/speed.c index 9fc7b54aa8..f00b1abe63 100644 --- a/arch/powerpc/cpu/mpc85xx/speed.c +++ b/arch/powerpc/cpu/mpc85xx/speed.c @@ -293,6 +293,10 @@ void get_sys_info (sys_info_t * sysInfo) #endif #endif +#ifdef CONFIG_SYS_DPAA_QBMAN + sysInfo->freqQMAN = sysInfo->freqSystemBus / 2; +#endif + #endif /* CONFIG_SYS_FSL_QORIQ_CHASSIS2 */ #else /* CONFIG_FSL_CORENET */