Re: [Xenomai-core] [PATCH] rtcan_mem - CAN driver for memory mapped SJA1000 controllers

2006-09-12 Thread Matthias Fuchs
On Tuesday 12 September 2006 18:46, Wolfgang Grandegger wrote: > Matthias Fuchs wrote: > > Hi, > > > > here's the 2nd try: > > - updated external clock frequency handling > > - use request_mem_region() before remapping memory > > - renamed local v

Re: [Xenomai-core] [PATCH] rtcan_mem - CAN driver for memory mapped SJA1000 controllers

2006-09-12 Thread Matthias Fuchs
dn't merge because of my former arguments. But do not care about me:-) Matthias On Tuesday 12 September 2006 14:22, Wolfgang Grandegger wrote: > Hi Matthias, > > Matthias Fuchs wrote: > > Hi, > > > > attached you will find a patch that adds support for memory mapped

[Xenomai-core] RTCAN_USE_REFCOUNT issue in rtcan_dev.h

2006-09-12 Thread Matthias Fuchs
Hi Jan, I think there's is little typo in rtcan_dev.h: Index: rtcan_dev.h === --- rtcan_dev.h (revision 1564) +++ rtcan_dev.h (working copy) @@ -45,7 +45,7 @@ /* Suppress handling of refcount if module support is not enabled * o

Re: [Xenomai-core] [PATCH] rtcan_mem - CAN driver for memory mapped SJA1000 controllers

2006-09-12 Thread Matthias Fuchs
Hi Wolfgang, On Tuesday 12 September 2006 14:22, Wolfgang Grandegger wrote: > What about using request_mem_region()? While looking to the driver I now ... will be added, of course. > realize, that it's mainly duplicated code. Does it not make more sense > to make a combined io/mem driver. If io

[Xenomai-core] [PATCH] rtcan_mem - CAN driver for memory mapped SJA1000 controllers

2006-09-12 Thread Matthias Fuchs
= --- ksrc/drivers/can/sja1000/rtcan_mem.c (revision 0) +++ ksrc/drivers/can/sja1000/rtcan_mem.c (revision 0) @@ -0,0 +1,206 @@ +/* + * Copyright (C) 2006 Matthias Fuchs <[EMAIL PROTECTED]>, + *Jan Kiszka <[EMAIL PROTECTED]> + * + * RTCAN driver f

Re: [Xenomai-core] No hardware interrupts with xenomai on ppc405

2006-09-12 Thread Matthias Fuchs
On Monday 11 September 2006 20:13, Wolfgang Grandegger wrote: > > In 2.6 the interrupts are disabled by default. Then the attached patch > for Xenomai should help. > > Wolfgang. > Your patch also works fine. Now what's the recommended solution? I noticed that Philippe already checked in an Ade

Re: [Xenomai-core] No hardware interrupts with xenomai on ppc405

2006-09-11 Thread Matthias Fuchs
On Monday 11 September 2006 17:46, Wolfgang Grandegger wrote: > > > > A possible explanation is that configurations only using the timer IRQ > > are not affected, since the decrementer is not subject to this issue > > (the tick handler returns XN_ISR_NOENABLE anyway). > > I run RT-Socket-CAN on a

Re: [Xenomai-core] No hardware interrupts with xenomai on ppc405

2006-09-11 Thread Matthias Fuchs
Hello Philippe, that helps. I will do some further testing. Matthias On Monday 11 September 2006 12:20, Philippe Gerum wrote: > It's likely an Adeos issue. Could you try this patch? TIA, > > --- arch/ppc/syslib/ppc4xx_pic.c~ 2005-10-28 02:02:08.0 +0200 > +++ arch/ppc/syslib/ppc4xx_

Re: [Xenomai-core] No hardware interrupts with xenomai on ppc405

2006-09-11 Thread Matthias Fuchs
On Sunday 10 September 2006 13:02, Wolfgang Grandegger wrote: > Hi Matthias, > > Matthias Fuchs wrote: > > Hi, > > > > I was trying to use some external hardware interupts on a PPC405 board > > as part of a hacking session with Jan to bring up the rtcan driver o

Re: [Xenomai-core] external hardware interupts on a PPC405

2006-09-10 Thread Matthias Fuchs
On Monday 11 September 2006 06:46, Philipp Keller wrote: > We are using ppc6xx, but hat a timing problem with external HW, perhaps > this is related to that interrupt thing? We saw on the oszilloscope that > we have to init the rtcan with half the baudrate the external modules > use, then it works.

[Xenomai-core] No hardware interrupts with xenomai on ppc405

2006-09-10 Thread Matthias Fuchs
Hi, I was trying to use some external hardware interupts on a PPC405 board as part of a hacking session with Jan to bring up the rtcan driver on this board. Here are some versions: Linux Kernel: 2.6.14 Adeos: 1.3-07 Xenomai: from svn (2.3pre, last friday night) The first

Re: [Xenomai-core] Re: CAN updates & questions

2006-09-10 Thread Matthias Fuchs
Hi Wolfgang, Wolfgang Grandegger wrote: > Hi Matthias, > > Matthias Fuchs wrote: >> Hi Wolfgang, >> >> Wolfgang Grandegger wrote: >>> You have to define the real CAN system clock, which is 16/2 = 8 Mhz for >>> most SJA 1000 hardware even if the os

Re: [Xenomai-core] Re: CAN updates & questions

2006-09-09 Thread Matthias Fuchs
Hi Wolfgang, Wolfgang Grandegger wrote: > You have to define the real CAN system clock, which is 16/2 = 8 Mhz for > most SJA 1000 hardware even if the oscillator is running at 16 MHz. I > will add some reasonable note to rtcan_dev.h Is there any special reason for this? Wouldn't it be more meaning