From ce574ff5060b63b1bad143d84f0c386892d3243f Mon Sep 17 00:00:00 2001 From: Kumar Gala Date: Wed, 11 Jan 2006 11:19:12 -0600 Subject: [PATCH] Enable time handling on 83xx Patch by Kumar Gala, 11 Jan 2006 --- CHANGELOG | 3 +++ cpu/mpc83xx/interrupts.c | 10 ++++++++++ 2 files changed, 13 insertions(+) diff --git a/CHANGELOG b/CHANGELOG index 4f4073346b..dae3cdc1d1 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -2,6 +2,9 @@ Changes since U-Boot 1.1.4: ====================================================================== +* Enable time handling on 83xx + Patch by Kumar Gala, 11 Jan 2006 + * Make System IO Config Registers board configurable on MPC83xx Patch by Kumar Gala, 11 Jan 2006 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; } -- 2.39.5