浏览代码

ppc4xx: Fix sys_get_info() for 405GP(r)

This patch assigns the correct EBC clock for 405GP(r) CPUs
to PPC4xx_SYS_INFO structure. Without this patch U-Boot
uses an uninitialized EBC clock in its startup message.

Signed-off-by: Matthias Fuchs <matthias.fuchs@esd-electronics.com>
Matthias Fuchs 17 年之前
父节点
当前提交
e1d09680f6
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      cpu/ppc4xx/speed.c

+ 2 - 0
cpu/ppc4xx/speed.c

@@ -165,6 +165,8 @@ void get_sys_info (PPC4xx_SYS_INFO * sysInfo)
 		}
 	}
 
+	sysInfo->freqEBC = sysInfo->freqPLB / sysInfo->pllExtBusDiv;
+
 	sysInfo->freqUART = sysInfo->freqProcessor;
 }