[U-Boot-Users] [PATCH][UPDATE] Enabled time handling on 83xx

Kumar Gala galak at gate.crashing.org
Fri Dec 9 20:40:55 CET 2005


Enabled time handling on 83xx

Signed-off-by: Kumar Gala <galak at kernel.crashing.org>

CHANGELOG:
* Enable time handling on 83xx

  Patch by Kumar Gala 09 Dec 2005

---
commit 559cd2d2afac76082f41b648a83d846482c41a5c
tree 59a0714c366cc6774bb52ba7a9bc9219bb0bba6e
parent 4d09dc8e4240955641b03aa3351a83eb308d9efb
author Kumar Gala <galak at kernel.crashing.org> Fri, 09 Dec 2005 13:44:09 -0600
committer Kumar Gala <galak at kernel.crashing.org> Fri, 09 Dec 2005 13:44:09 -0600

 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 53474f6..dfd51c1 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;
 }
 





More information about the U-Boot mailing list