Skip to contentSkip to conversation

85xx: Fix the wrong SYS_CLK_IN for 8569MDS

PATCH New Dave Liu 3 participants 3 messages May 18, 2009 – Jun 2, 2009

lore
Share & tools
lore

Dave Liu

author
#0 lore raw

PATCH 1/1 85xx: Fix the wrong SYS_CLK_IN for 8569MDS

The SYS_CLK_IN of MPC8569MDS is 66.66MHz,
The DDR_CLK_IN is same with SYS_CLK_IN in 8569 processor. so, change the SYS_CLK_IN from 66MHz to 66.66MHz.

---
 include/configs/MPC8569MDS.h |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
include/configs/MPC8569MDS.h +2 -2
index 7fd2b56..c501b17 100644
@@ -55,8 +55,8 @@
 extern unsigned long get_clock_freq(void);
 #endif
 /* Replace a call to get_clock_freq (after it is implemented)*/
-#define CONFIG_SYS_CLK_FREQ	66000000
-#define CONFIG_DDR_CLK_FREQ	66000000
+#define CONFIG_SYS_CLK_FREQ	66666666
+#define CONFIG_DDR_CLK_FREQ	CONFIG_SYS_CLK_FREQ
 
 /*
  * These can be toggled for performance analysis, otherwise use default.
Signature · 1 line
1.5.4
#1 lore raw

PATCH 1/1 85xx: Fix the wrong SYS_CLK_IN for 8569MDS

Quoted 15 lines

The SYS_CLK_IN of MPC8569MDS is 66.66MHz,
The DDR_CLK_IN is same with SYS_CLK_IN in 8569 processor. so, change the SYS_CLK_IN from 66MHz to 66.66MHz.

---
 include/configs/MPC8569MDS.h |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
include/configs/MPC8569MDS.h +0 -0
index 7fd2b56..c501b17 100644

include/configs/MPC8569MDS.h line 59

Quoted 7 lines
include/configs/MPC8569MDS.h +2 -2
@@ -55,8 +55,8 @@
 extern unsigned long get_clock_freq(void);
 #endif
 /* Replace a call to get_clock_freq (after it is implemented)*/
-#define CONFIG_SYS_CLK_FREQ   66000000
-#define CONFIG_DDR_CLK_FREQ   66000000
+#define CONFIG_SYS_CLK_FREQ   66666666
+#define CONFIG_DDR_CLK_FREQ   CONFIG_SYS_CLK_FREQ

Is the clock really 66.666666 MHz? Our clock is 66.666000 MHz and pretending it is 66.666666 will show up as RTC drift.

Jocke

Applied
#2 lore raw

PATCH 1/1 85xx: Fix the wrong SYS_CLK_IN for 8569MDS

In reply to Dave Liu
Quoted 5 lines · Dave Liu

The SYS_CLK_IN of MPC8569MDS is 66.66MHz,
The DDR_CLK_IN is same with SYS_CLK_IN in 8569 processor. so, change the SYS_CLK_IN from 66MHz to 66.66MHz.

Applied to HEAD, thanks!

Andy