diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2007-07-05 18:01:25 +0200 |
---|---|---|
committer | Sascha Hauer <sha@octopus.labnet.pengutronix.de> | 2007-07-05 18:01:25 +0200 |
commit | a183f791c5ba2b31216bd175bca443f0e49017e9 (patch) | |
tree | 784e05b10f241248e18ced89a812d61681f5a2dc /cpu | |
parent | 7999983385ad17d6d1a44306e64aa3664b2b6e04 (diff) | |
download | barebox-a183f791c5ba2b31216bd175bca443f0e49017e9.tar.gz barebox-a183f791c5ba2b31216bd175bca443f0e49017e9.tar.xz |
svn_rev_125
add initcall to clocksource_init
Diffstat (limited to 'cpu')
-rw-r--r-- | cpu/arm920t/at91rm9200/Makefile | 1 | ||||
-rw-r--r-- | cpu/arm920t/at91rm9200/interrupts.c | 5 |
2 files changed, 5 insertions, 1 deletions
diff --git a/cpu/arm920t/at91rm9200/Makefile b/cpu/arm920t/at91rm9200/Makefile index 0f2345a646..b553e18c89 100644 --- a/cpu/arm920t/at91rm9200/Makefile +++ b/cpu/arm920t/at91rm9200/Makefile @@ -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 + diff --git a/cpu/arm920t/at91rm9200/interrupts.c b/cpu/arm920t/at91rm9200/interrupts.c index 9396408fba..0614233ead 100644 --- a/cpu/arm920t/at91rm9200/interrupts.c +++ b/cpu/arm920t/at91rm9200/interrupts.c @@ -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 |