summaryrefslogtreecommitdiff
path: root/cpu/mpc83xx/interrupts.c
diff options
context:
space:
mode:
authorWolfgang Denk <wd@pollux.denx.de>2006-03-12 21:33:52 +0100
committerWolfgang Denk <wd@pollux.denx.de>2006-03-12 21:33:52 +0100
commit795bee849603c7c2994ba20fcd96f3f9835ffd96 (patch)
tree905ce7474dcf0adfbab149df429bfdaef5d5e258 /cpu/mpc83xx/interrupts.c
parent7b230f61db319d87d51449d4620d520822813fbb (diff)
parent2688e2f972bd124be87cb86bce58aa1b186b5aa7 (diff)
Merge with git://git.kernel.org/pub/scm/boot/u-boot/u-boot.git#mpc83xx
Diffstat (limited to 'cpu/mpc83xx/interrupts.c')
-rw-r--r--cpu/mpc83xx/interrupts.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/cpu/mpc83xx/interrupts.c b/cpu/mpc83xx/interrupts.c
index 53474f60c9..dfd51c15fe 100644
--- a/cpu/mpc83xx/interrupts.c
+++ b/cpu/mpc83xx/interrupts.c
@@ -43,6 +43,16 @@ struct irq_action {
int interrupt_init_cpu (unsigned *decrementer_count)
{
+ DECLARE_GLOBAL_DATA_PTR;
+
+ volatile immap_t *immr = (immap_t *) CFG_IMMRBAR;
+
+ *decrementer_count = (gd->bus_clk / 4) / CFG_HZ;
+
+ /* Enable e300 time base */
+
+ immr->sysconf.spcr |= 0x00400000;
+
return 0;
}