Skip to contentSkip to conversation

Fix the local bus divider mapping

PATCH New Dave Liu 2 participants 2 messages Nov 17, 2009 – Jan 26, 2010

lore
Share & tools
lore

Dave Liu

author
#0 lore raw

PATCH 1/1 Fix the local bus divider mapping

The real clock divider is 4 times of the bits LCRR[CLKDIV], according the latest RevF RM.

---
 cpu/mpc85xx/speed.c |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)
cpu/mpc85xx/speed.c +6 -1
index 7959082..89ecc87 100644
@@ -170,7 +170,12 @@ void get_sys_info (sys_info_t * sysInfo)
 	}
 #endif
 	if (lcrr_div == 2 || lcrr_div == 4 || lcrr_div == 8) {
-#if !defined(CONFIG_MPC8540) && !defined(CONFIG_MPC8541) && \
+#if defined(CONFIG_FSL_CORENET)
+		/* If this is corenet based SoC, bit-representation
+		 * for four times the clock divider values.
+		 */
+		lcrr_div *= 4;
+#elif !defined(CONFIG_MPC8540) && !defined(CONFIG_MPC8541) && \
     !defined(CONFIG_MPC8555) && !defined(CONFIG_MPC8560)
 		/*
 		 * Yes, the entire PQ38 family use the same
Signature · 1 line
1.5.6
Applied
#1 lore raw

PATCH 1/1 Fix the local bus divider mapping

Quoted 7 lines · Dave Liu

The real clock divider is 4 times of the bits LCRR[CLKDIV], according the latest RevF RM.

---
cpu/mpc85xx/speed.c | 7 ++++++-

1 files changed, 6 insertions(+), 1 deletions(-)

applied

- k