diff options
author | Wolfgang Denk <wd@pollux.denx.de> | 2006-03-12 21:33:52 +0100 |
---|---|---|
committer | Wolfgang Denk <wd@pollux.denx.de> | 2006-03-12 21:33:52 +0100 |
commit | 795bee849603c7c2994ba20fcd96f3f9835ffd96 (patch) | |
tree | 905ce7474dcf0adfbab149df429bfdaef5d5e258 /cpu/mpc83xx/interrupts.c | |
parent | 7b230f61db319d87d51449d4620d520822813fbb (diff) | |
parent | 2688e2f972bd124be87cb86bce58aa1b186b5aa7 (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.c | 10 |
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; } |