浏览代码

[RFC PATCH] icecube/lite5200b: fix OF_TBCLK (timebase-frequency) calculation

G2 core reference manual says decrementer and time base
are decreasing/increasing once every 4 bus clock cycles.
Lets fix it, so time in Linux won't run twice as fast

Signed-off-by: Domen Puncer <domen.puncer@telargo.com>
Acked-by: Grant Likely <grant.likely@secretlab.ca>
Domen Puncer 18 年之前
父节点
当前提交
39f23cd909
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      include/configs/IceCube.h

+ 1 - 1
include/configs/IceCube.h

@@ -182,7 +182,7 @@
 
 
 #define OF_CPU			"PowerPC,5200@0"
 #define OF_CPU			"PowerPC,5200@0"
 #define OF_SOC			"soc5200@f0000000"
 #define OF_SOC			"soc5200@f0000000"
-#define OF_TBCLK		(bd->bi_busfreq / 8)
+#define OF_TBCLK		(bd->bi_busfreq / 4)
 #define OF_STDOUT_PATH		"/soc5200@f0000000/serial@2000"
 #define OF_STDOUT_PATH		"/soc5200@f0000000/serial@2000"
 
 
 /*
 /*