Skip to content
Snippets Groups Projects
Commit ebf86195 authored by Wolfgang Denk's avatar Wolfgang Denk
Browse files

Merge branch 'master' of git://git.denx.de/u-boot-blackfin

parents 2df72b82 ec01481d
No related branches found
No related tags found
No related merge requests found
...@@ -95,11 +95,12 @@ void udelay(unsigned long usec) ...@@ -95,11 +95,12 @@ void udelay(unsigned long usec)
int timer_init(void) int timer_init(void)
{ {
*pTCNTL = 0x1; *pTCNTL = 0x1;
CSYNC();
*pTSCALE = 0x0; *pTSCALE = 0x0;
*pTCOUNT = MAX_TIM_LOAD; *pTCOUNT = MAX_TIM_LOAD;
*pTPERIOD = MAX_TIM_LOAD; *pTPERIOD = MAX_TIM_LOAD;
*pTCNTL = 0x7; *pTCNTL = 0x7;
asm("CSYNC;"); CSYNC();
timestamp = 0; timestamp = 0;
last_time = 0; last_time = 0;
...@@ -151,5 +152,5 @@ ulong get_timer(ulong base) ...@@ -151,5 +152,5 @@ ulong get_timer(ulong base)
void reset_timer(void) void reset_timer(void)
{ {
timestamp = 0; timer_init();
} }
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