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

Enabled time handling on 83xx
Signed-off-by: Kumar Gala galak@kernel.crashing.org
CHANGELOG: * Enable time handling on 83xx
Patch by Kumar Gala 09 Dec 2005
--- commit 0e1dbe02634177d369921208bd36cd8c875bc4a6 tree ee3e5b5a6b2e14280509a5f5d1eb4c137e6c73b3 parent 113d17d798e5770ff90bcfd9f7b21e080b91a8c9 author Kumar Gala galak@kernel.crashing.org Fri, 09 Dec 2005 13:22:03 -0600 committer Kumar Gala galak@kernel.crashing.org Fri, 09 Dec 2005 13:22:03 -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..729de2a 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_IMMR; + + *decrementer_count = (gd->bus_clk / 4) / CFG_HZ; + + /* Enable e300 time base */ + + immr->sysconf.spcr |= 0x00400000; + return 0; }

Ignore this patch, it should have been CFG_IMMRBAR instead of CFG_IMMR. I'll send an updated on in a second.
- kumar
On Fri, 9 Dec 2005, Kumar Gala wrote:
Enabled time handling on 83xx
Signed-off-by: Kumar Gala galak@kernel.crashing.org
CHANGELOG:
Enable time handling on 83xx
Patch by Kumar Gala 09 Dec 2005
commit 0e1dbe02634177d369921208bd36cd8c875bc4a6 tree ee3e5b5a6b2e14280509a5f5d1eb4c137e6c73b3 parent 113d17d798e5770ff90bcfd9f7b21e080b91a8c9 author Kumar Gala galak@kernel.crashing.org Fri, 09 Dec 2005 13:22:03 -0600 committer Kumar Gala galak@kernel.crashing.org Fri, 09 Dec 2005 13:22:03 -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..729de2a 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_IMMR;
- *decrementer_count = (gd->bus_clk / 4) / CFG_HZ;
- /* Enable e300 time base */
- immr->sysconf.spcr |= 0x00400000;
- return 0;
}
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click _______________________________________________ U-Boot-Users mailing list U-Boot-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/u-boot-users
participants (1)
-
Kumar Gala