parent
7999983385
commit
a183f791c5
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue