List Info

Thread: Re: IRQs




Re: IRQs
country flaguser name
United States
2008-03-27 18:01:29


Charlie is this also valid to the ts7400, am i right? This is my board.

How do can use EGPIOs to generate irqs. The manual tell me that it's
possible and it is not in the example codes.

Still About the example codes, what gpio pins and ports the code
tsdio.o is using?

regards,
Jonas.

> Hi Jonas --
>
> --- In ts-7000%40yahoogroups.com">ts-7000yahoogroups.com, "jo_xavier18&quot; <jo_xavier18>
> wrote:
&gt; >
>; > Charlie, thanks for the answers, but i forgot some details.
> >
> > I'm trying to implement software irqs using DIO_16, 17 and 18 of
> GPIO
>; > (three inputs) and i'm not using irq vectors as in the books you
> pass
>; > me (i read this chapters). I'm reading a value from a button and i
> > need to generate the irq and pass them to the user. The result of
> the
> > request_irq is "-22&quot; that means "invalid argument&quot;
> > (in /linux24/include/asm-arm/errno.h).
>
> You could look at the two files tsdio.tar.gz and gps_pps.tgz (in the
> Yahoo groups' file section) for examples of using request_irq with
> GPIO. One may even do just what you want ...
>
> Are you sure you need to do this in the kernel? You could look at
> the TS keypad.c file for another (polling) approach.
>
> Regards, ....... Charlie
>
>
> >
> > The hole is more in low! hehehhehe...
> >
> > Best regards!
> >
> > Jonas.
&gt; >
> >
> >
> > --- In ts-7000%40yahoogroups.com">ts-7000yahoogroups.com, "charliem_1216&quot; <charliem_1216>
> wrote:
&gt; > >
>; > > Hi Jonas --
> > >
> > > --- In ts-7000%40yahoogroups.com">ts-7000yahoogroups.com, "jo_xavier18&quot; <jo_xavier18>
> > > wrote:
&gt; > > >
>; > > > Hi! Is there some body that knows how to add new IRQ number in
> the
> > > > /linux24/include/asm-arm/arch-ep93xx/irqs.h file? I know that
> i'll
> > > to
> > > > compile the kernel again...
> > > >
> > > > I have a problem because i'm trying to implement irqs in the
> > > ts7400 and
> > > > when i use the function 'request_irq()' (in <asm/sched.h>) my
> > > request
> > > > becomes lower zero (the normal is zero if it's ok).
> > >
> > > The negative number is your error code, trying to tell you
> > > something. -EBUSY, for example, usually means the interrupt is
> > > already claimed.
> > >
> > > >I've tested all
> > > > numbers of irqs (from 0 until 64) and that's ok, but when i
> put
> > > any
> > > > other value i have an error.
&gt; > >
> > > The chip only has 64 IRQs. The EP9301 User Guidebook has more
> info
> > > on this:
&gt; > > http://www.cirrus.com/en/pubs/manual/EP93xx_Users_Guide_UM1.pdf
> > >
> > > Also you might find LDD book by Rubini & Corbett helpful:
> > > http://www.xml.com/ldd/chapter/book/ch09.html
&gt; > > (Use second edition for 2.4, third edition for 2.6 kernels).
> > >
> > > What type of hardware are you trying to service?
> > >
> > > Regards, ....... Charlie
> > >
> > > >
> > > > Jonas Xavier.
> > > >
>; > >
>; >
>;

__._,_.___
.

__,_._,___
Re: IRQs
country flaguser name
United States
2008-03-28 19:40:26

--- In ts-7000%40yahoogroups.com">ts-7000yahoogroups.com, "jo_xavier18&quot; <jo_xavier18...>
wrote:
>
&gt;
> Charlie is this also valid to the ts7400, am i right? This is my
board.
>
> How do can use EGPIOs to generate irqs. The manual tell me that
it's
> possible and it is not in the example codes.

Sorry, I haven't used the TS-7400, but I believe it is mostly the
same. You can compare the manuals.

Also the ep930x manual from cirrus would help you a lot, but
remember that not all of the ep9302 pins are brought out on the TS
boards. For example, I think the TS-7400 is the only TS board to
bring out SPI and AC97, even though it's a ep9302 feature.

>
> Still About the example codes, what gpio pins and ports the code
>; tsdio.o is using?

I believe tsdio only deals with PortB gpio pins.

Regards, ..... Charlie

>
> regards,
> Jonas.
&gt;
>
>
>
>
>
> > Hi Jonas --
> >
> > --- In ts-7000%40yahoogroups.com">ts-7000yahoogroups.com, "jo_xavier18&quot; <jo_xavier18>
> > wrote:
&gt; > >
>; > > Charlie, thanks for the answers, but i forgot some details.
> > >
> > > I'm trying to implement software irqs using DIO_16, 17 and 18
of
> > GPIO
>; > > (three inputs) and i'm not using irq vectors as in the books
you
> > pass
>; > > me (i read this chapters). I'm reading a value from a button
and i
> > > need to generate the irq and pass them to the user. The result
of
> > the
> > > request_irq is "-22&quot; that means "invalid argument&quot;
> > > (in /linux24/include/asm-arm/errno.h).
> >
> > You could look at the two files tsdio.tar.gz and gps_pps.tgz (in
the
> > Yahoo groups' file section) for examples of using request_irq
with
> > GPIO. One may even do just what you want ...
> >
> > Are you sure you need to do this in the kernel? You could look
at
> > the TS keypad.c file for another (polling) approach.
> >
> > Regards, ....... Charlie
> >
> >
> > >
> > > The hole is more in low! hehehhehe...
> > >
> > > Best regards!
> > >
> > > Jonas.
&gt; > >
> > >
> > >
> > > --- In ts-7000%40yahoogroups.com">ts-7000yahoogroups.com, "charliem_1216&quot;
<charliem_1216>
> > wrote:
&gt; > > >
>; > > > Hi Jonas --
> > > >
> > > > --- In ts-7000%40yahoogroups.com">ts-7000yahoogroups.com, "jo_xavier18&quot; <jo_xavier18>
> > > > wrote:
&gt; > > > >
>; > > > > Hi! Is there some body that knows how to add new IRQ
number in
> > the
> > > > > /linux24/include/asm-arm/arch-ep93xx/irqs.h file? I know
that
> > i'll
> > > > to
> > > > > compile the kernel again...
> > > > >
> > > > > I have a problem because i'm trying to implement irqs in
the
> > > > ts7400 and
> > > > > when i use the function 'request_irq()' (in <asm/sched.h>)
my
> > > > request
> > > > > becomes lower zero (the normal is zero if it's ok).
> > > >
> > > > The negative number is your error code, trying to tell you
> > > > something. -EBUSY, for example, usually means the interrupt
is
> > > > already claimed.
> > > >
> > > > >I've tested all
> > > > > numbers of irqs (from 0 until 64) and that's ok, but when
i
> > put
> > > > any
> > > > > other value i have an error.
&gt; > > >
> > > > The chip only has 64 IRQs. The EP9301 User Guidebook has
more
> > info
> > > > on this:
&gt; > > >
http://www.cirrus.com/en/pubs/manual/EP93xx_Users_Guide_UM1.pdf
> > > >
> > > > Also you might find LDD book by Rubini & Corbett helpful:
> > > > http://www.xml.com/ldd/chapter/book/ch09.html
&gt; > > > (Use second edition for 2.4, third edition for 2.6 kernels).
> > > >
> > > > What type of hardware are you trying to service?
> > > >
> > > > Regards, ....... Charlie
> > > >
> > > > >
> > > > > Jonas Xavier.
> > > > >
>; > > >
>; > >
>; >
>;

__._,_.___
.

__,_._,___
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )