Skip to content
Snippets Groups Projects
Commit 39f23cd9 authored by Domen Puncer's avatar Domen Puncer Committed by Stefan Roese
Browse files

[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: default avatarDomen Puncer <domen.puncer@telargo.com>
Acked-by: default avatarGrant Likely <grant.likely@secretlab.ca>
parent 37837828
No related branches found
No related tags found
No related merge requests found
......@@ -182,7 +182,7 @@
#define OF_CPU "PowerPC,5200@0"
#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"
/*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment