All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-help] PowerPC irq unmask
@ 2009-01-23  7:32 Federico Ridolfo
  2009-01-23  8:52 ` Philippe Gerum
                   ` (2 more replies)
  0 siblings, 3 replies; 14+ messages in thread
From: Federico Ridolfo @ 2009-01-23  7:32 UTC (permalink / raw)
  To: xenomai

Hi all,
my platform is a mpc5200b based one. I wrote
some rtdm driver for that platform on linux-2.6.18
kernel. Some info:
- ARCH=ppc
- no fdt (so no dts)
- u-boot
- xenomai 2.3.2,
- adeos-ipipe-2.6.18-ppc-1.5-01.patch
All works fine.

Now i want to use:
- ARCH = powerpc
- linux kernel from denx: ipipe-2.6-26-powerpc-2.4-03
- fdt (so i have a dts file)
- xenomai-2.4.6.1
- u-boot
Ok. My board boots, all peripheral s work. Xenomai works, but
my rtdm drivers don't work. The problem is that the rtdm_irq_request
returns -ENODEV coming from line 166 in wrappers.h:
...
#else /* > 2.6.19 */
#define rthal_irq_chip_enable(irq)                    \
    ({                                \
        int __err__ = 0;                    \
        if (unlikely(rthal_irq_handlerp(irq)->unmask == NULL))    \
            __err__ = -ENODEV;     \
        else                            \
            rthal_irq_handlerp(irq)->unmask(irq);        \
        __err__;                        \
    })
...
Seems that adeos doesn't not set the unmask function. In the linux kernel
the right functions for my pic in in
arch/powerpc/platforms/52xx/mpc52xx_pic.c
I thing i have to add some code in mpc52xx_pic.c in order to match
device tree table
and also something in my dts file. Any help is very usefull!!!
Thanks


--
chicco


^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2009-01-27  7:39 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-23  7:32 [Xenomai-help] PowerPC irq unmask Federico Ridolfo
2009-01-23  8:52 ` Philippe Gerum
2009-01-23  9:10   ` Federico Ridolfo
2009-01-23  9:48     ` Philippe Gerum
2009-01-23 10:16       ` Federico Ridolfo
2009-01-23 10:25 ` Philippe Gerum
2009-01-23 17:06   ` Federico Ridolfo
2009-01-23 18:07     ` Philippe Gerum
2009-01-23 18:18       ` Federico Ridolfo
2009-01-24  9:58         ` Philippe Gerum
2009-01-26 11:35           ` Federico Ridolfo
2009-01-26 14:52             ` Bosko Radivojevic
2009-01-27  7:39               ` Federico Ridolfo
2009-01-23 19:29 ` Wolfgang Grandegger

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.