[U-Boot-Users] 85xxCDS: Update bus frequency values.

Randy Vinson rvinson at mvista.com
Tue Jul 24 01:18:49 CEST 2007


>From 85bd0013666ebd3b56707078df1f1a18453f4251 Mon Sep 17 00:00:00 2001
From: Randy Vinson <rvinson at mvista.com>
Date: Fri, 13 Jul 2007 15:35:37 -0700
Subject: [PATCH] 85xxCDS: Update bus frequency values.

The current values used (33000000 and 66000000) do not match the actual
crystal values (33333333 and 66666666) which causes drifts in the Linux
wall clock and can cause NTP to fail due to excessive drift.

Signed-off-by: Randy Vinson <rvinson at mvista.com>
---
 board/cds/common/cadmus.c         |    6 +++---
 board/cds/mpc8541cds/mpc8541cds.c |    4 ++--
 board/cds/mpc8548cds/mpc8548cds.c |    4 ++--
 board/cds/mpc8555cds/mpc8555cds.c |    4 ++--
 4 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/board/cds/common/cadmus.c b/board/cds/common/cadmus.c
index 5f86de5..52ae5f7 100644
--- a/board/cds/common/cadmus.c
+++ b/board/cds/common/cadmus.c
@@ -61,12 +61,12 @@ get_clock_freq(void)
 	uint pci1_speed = (cadmus->cm_pci >> 2) & 0x3; /* PSPEED in [4:5] */
 
 	if (pci1_speed == 0) {
-		return 33000000;
+		return 33333333;
 	} else if (pci1_speed == 1) {
-		return 66000000;
+		return 66666666;
 	} else {
 		/* Really, unknown. Be safe? */
-		return 33000000;
+		return 33333333;
 	}
 }
 
diff --git a/board/cds/mpc8541cds/mpc8541cds.c b/board/cds/mpc8541cds/mpc8541cds.c
index 558ba99..4ea483f 100644
--- a/board/cds/mpc8541cds/mpc8541cds.c
+++ b/board/cds/mpc8541cds/mpc8541cds.c
@@ -227,8 +227,8 @@ int checkboard (void)
 
 	printf ("    PCI1: %d bit, %s MHz, %s\n",
 		(pci1_32) ? 32 : 64,
-		(pci1_speed == 33000000) ? "33" :
-		(pci1_speed == 66000000) ? "66" : "unknown",
+		(pci1_speed == 33333333) ? "33" :
+		(pci1_speed == 66666666) ? "66" : "unknown",
 		pci1_clk_sel ? "sync" : "async");
 
 	if (pci_dual) {
diff --git a/board/cds/mpc8548cds/mpc8548cds.c b/board/cds/mpc8548cds/mpc8548cds.c
index 6b78a92..efdbc14 100644
--- a/board/cds/mpc8548cds/mpc8548cds.c
+++ b/board/cds/mpc8548cds/mpc8548cds.c
@@ -74,8 +74,8 @@ int checkboard (void)
 
 	printf ("    PCI1: %d bit, %s MHz, %s\n",
 		(pci1_32) ? 32 : 64,
-		(pci1_speed == 33000000) ? "33" :
-		(pci1_speed == 66000000) ? "66" : "unknown",
+		(pci1_speed == 33333333) ? "33" :
+		(pci1_speed == 66666666) ? "66" : "unknown",
 		pci1_clk_sel ? "sync" : "async");
 
 	if (pci_dual) {
diff --git a/board/cds/mpc8555cds/mpc8555cds.c b/board/cds/mpc8555cds/mpc8555cds.c
index 8f16421..74d830b 100644
--- a/board/cds/mpc8555cds/mpc8555cds.c
+++ b/board/cds/mpc8555cds/mpc8555cds.c
@@ -225,8 +225,8 @@ int checkboard (void)
 
 	printf ("    PCI1: %d bit, %s MHz, %s\n",
 		(pci1_32) ? 32 : 64,
-		(pci1_speed == 33000000) ? "33" :
-		(pci1_speed == 66000000) ? "66" : "unknown",
+		(pci1_speed == 33333333) ? "33" :
+		(pci1_speed == 66666666) ? "66" : "unknown",
 		pci1_clk_sel ? "sync" : "async");
 
 	if (pci_dual) {
-- 
1.5.3.rc2.22.g69a9b





More information about the U-Boot mailing list