> From what I read in the AT91 headers, the difference between SAM9263 and 
> other AT91s is that 
> the TC interrupt is shared. Are you sure you do not get problems with this ?

Yepp, this is the "problem". The TCB-clock is not found in at91_ipipe_time.c: 
the setup-code looks for "at91_tc0", but there is only a "at91_tcb" clock.

Below is a patch which should avoid this problem. The patch was created on base 
of linux-2.6.24 + adoes-ipipe-2.6.24-arm-1.9.00.


Thanks for your hint,
Karsten.



>>>>>>>>>> SNIP >>>>>>>>>>><

--- at91_ipipe_time.c.orig      2008-03-14 08:00:25.000000000 +0100
+++ at91_ipipe_time.c   2008-03-14 08:04:55.000000000 +0100
@@ -239,7 +239,12 @@
 EXPORT_SYMBOL(__ipipe_mach_get_tsc);
 
 static struct clocksource clksrc = {
+#if !defined(CONFIG_ARCH_AT91SAM9263)
        .name   = "at91_tc" __stringify(CONFIG_IPIPE_AT91_TC),
+#else
+       // at91sam9263 only has a single TCB clock
+       .name   = "at91_tcb",
+#endif 
        .rating = 250,
        .read   = __ipipe_mach_get_tsc,
        .mask   = CLOCKSOURCE_MASK(64),
@@ -325,7 +330,12 @@
 }
 
 static struct clk *tc, local_tc = {
+#if !defined(CONFIG_ARCH_AT91SAM9263)
        .name           = "tc" __stringify(CONFIG_IPIPE_AT91_TC) "_clk",
+#else
+       // at91sam9263 only has a single TCB clock
+       .name           = "tcb_clk",
+#endif 
        .users          = 0,
        .type           = CLK_TYPE_PERIPHERAL,
        .pmc_mask       = 1 << (KERNEL_TIMER_IRQ_NUM),

_____________________________________________________________________

Karsten-Olaf Laux 
Electronic and Software Engineering OEM

Wipotec GmbH
Adam-Hoffmann-Str. 26 
67657 Kaiserslautern

T +49.631.34146-0
F +49.631.34146-8640
http://www.wipotec.com

Precise, ultra fast weighing solutions - LIVE!
Interpack Düsseldorf | 24.-30.04.2008 | Hall15 - Stand B41 

Legal information:
Wipotec Wiege- und Positioniersysteme GmbH
HRB 2317 Kaiserslautern, Management: T. Düppre, U. Wagner

This e-mail may contain confidential and/or privileged information. 
If you are not the intended recipient (or have received this e-mail in error)
please notify the sender immediately and delete this e-mail. Any unauthorized 
copying, disclosure or distribution of the material in this e-mail is strictly 
forbidden.


_______________________________________________
Adeos-main mailing list
[email protected]
https://mail.gna.org/listinfo/adeos-main

Reply via email to