summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/cpu/mpc85xx/speed.c
diff options
context:
space:
mode:
authorHaiying Wang <Haiying.Wang@freescale.com>2012-10-11 07:13:39 +0000
committerAndy Fleming <afleming@freescale.com>2012-10-22 15:52:46 -0500
commit990e1a8ce1415b9010faccd1402d499e203ea2fb (patch)
treea27997d39b08cbca7cd1dd1799619ce6521e7d51 /arch/powerpc/cpu/mpc85xx/speed.c
parentb0e8115741cbba252e64f3b4e81799de57248a26 (diff)
downloadtalos-obmc-uboot-990e1a8ce1415b9010faccd1402d499e203ea2fb.tar.gz
talos-obmc-uboot-990e1a8ce1415b9010faccd1402d499e203ea2fb.zip
poweprc/85xx: add QMan frequency info and fdt fixup.
Starting from QMan3.0, the QMan clock cycle needs be exposed so that the kernel driver can use it to calculate the shaper prescaler and rate. Signed-off-by: Haiying Wang <Haiying.Wang@freescale.com> Signed-off-by: Andy Fleming <afleming@freescale.com>
Diffstat (limited to 'arch/powerpc/cpu/mpc85xx/speed.c')
-rw-r--r--arch/powerpc/cpu/mpc85xx/speed.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/powerpc/cpu/mpc85xx/speed.c b/arch/powerpc/cpu/mpc85xx/speed.c
index 8a8f317f8d..801ee078c0 100644
--- a/arch/powerpc/cpu/mpc85xx/speed.c
+++ b/arch/powerpc/cpu/mpc85xx/speed.c
@@ -167,6 +167,10 @@ void get_sys_info (sys_info_t * sysInfo)
}
#endif
+#ifdef CONFIG_SYS_DPAA_QBMAN
+ sysInfo->freqQMAN = sysInfo->freqSystemBus / 2;
+#endif
+
#ifdef CONFIG_SYS_DPAA_FMAN
switch ((rcw_tmp & FM1_CLK_SEL) >> FM1_CLK_SHIFT) {
case 1:
OpenPOWER on IntegriCloud