9
0
Fork 0

svn_rev_125

add initcall to clocksource_init
This commit is contained in:
Sascha Hauer 2007-07-05 18:01:25 +02:00 committed by Sascha Hauer
parent 7999983385
commit a183f791c5
2 changed files with 5 additions and 1 deletions

View File

@ -6,3 +6,4 @@ obj-y += lowlevel_init.o
obj-$(CONFIG_DRIVER_NET_AT91_ETHER) += lxt972.o
obj-y += serial.o
# obj-y += usb_ohci.o

View File

@ -32,6 +32,7 @@
#include <common.h>
#include <clock.h>
#include <init.h>
#include <asm/arch/hardware.h>
AT91PS_TC tmr;
@ -47,7 +48,7 @@ static struct clocksource cs = {
.shift = 10,
};
int interrupt_init (void)
static int clocksource_init (void)
{
tmr = AT91C_BASE_TC0;
@ -70,6 +71,8 @@ int interrupt_init (void)
return 0;
}
core_initcall(clocksource_init);
/*
* Reset the cpu by setting up the watchdog timer and let him time out
* or toggle a GPIO pin on the AT91RM9200DK board