]> git.sur5r.net Git - u-boot/commitdiff
powerpc/85xx: add missing QMAN frequency calculation
authorShaohui Xie <Shaohui.Xie@freescale.com>
Mon, 25 Mar 2013 07:33:25 +0000 (07:33 +0000)
committerAndy Fleming <afleming@freescale.com>
Tue, 14 May 2013 21:13:24 +0000 (16:13 -0500)
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 <Shaohui.Xie@freescale.com>
Signed-off-by: Andy Fleming <afleming@freescale.com>
arch/powerpc/cpu/mpc85xx/speed.c

index 9fc7b54aa8a1e9913b063fa9bd835d9b51b6c723..f00b1abe63f1f78d5c60b3f1300fad5919b09ada 100644 (file)
@@ -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 */