mirror of
https://github.com/Stichting-MINIX-Research-Foundation/u-boot.git
synced 2025-09-10 04:26:19 -04:00
Merge branch 'master' of git://git.denx.de/u-boot-blackfin
This commit is contained in:
commit
ebf8619584
@ -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)
|
|||||||
|
|
||||||
void reset_timer(void)
|
void reset_timer(void)
|
||||||
{
|
{
|
||||||
timestamp = 0;
|
timer_init();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user