Skip to contentSkip to conversation

4xx: fix sys_get_info() for 405GP(r)

PATCH New Matthias Fuchs 2 participants 2 messages Apr 18, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 4xx: 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.

---
 cpu/ppc4xx/speed.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
cpu/ppc4xx/speed.c +2 -0
index fa79952..05b42fe 100644
@@ -165,6 +165,8 @@ void get_sys_info (PPC4xx_SYS_INFO * sysInfo)
 		}
 	}
 
+	sysInfo->freqEBC = sysInfo->freqPLB / sysInfo->pllExtBusDiv;
+
 	sysInfo->freqUART = sysInfo->freqProcessor;
 }
 
Signature · 1 line
1.5.3
#1 lore raw

PATCH 1/1 4xx: fix sys_get_info() for 405GP(r)

Quoted 3 lines · Matthias Fuchs

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.

Added to u-boot-ppc4xx custodian repo. Thanks.

Best regards,
Stefan

=====================================================================
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: office at denx.de
=====================================================================