Setup a GPIO like IRQ and relative IRQ_handler on IMX28 under LTIB-LINUX 2.6.35

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Setup a GPIO like IRQ and relative IRQ_handler on IMX28 under LTIB-LINUX 2.6.35

1,851 Views
Nico
Contributor II

Hi,

i've to setup GPIO4_11 like GPIO input and it must enable an IRQ on iMX28 under LTIB-LINUX 2.6.35.

I use that gpio with TSC2006 touch-screen controller.

 

How is it possible  and  where i have to add code. (/arch/arm/mach-mx28/..?) ?

The same is for the IRQ_handler.

 

Thank you in advance!

Labels (1)
0 Kudos
Reply
5 Replies

1,470 Views
Nico
Contributor II

Is it so hard to set a gpio in input mode?

 

It's not necessary set the IRQ; it's the touch-screen driver who does.

 

But i don't find the way to set in input the GPIO4_11 and find a function that returns the relative gpio number value; this value is then used by the driver to set the irq by the function request_irq(..).

 

Thanks in advance.

0 Kudos
Reply

1,470 Views
Nico
Contributor II

i've to setup GPIO4_11 like GPIO input and it must enable an IRQ on iMX28 under LTIB-LINUX 2.6.35.

I use that gpio with TSC2006 touch-screen controller.

 

How is it possible  and  where i have to add code. (/arch/arm/mach-mx28/..?) ?

The same is for the IRQ_handler.


0 Kudos
Reply

1,470 Views
Sjoon
Contributor II

I have succesfully registered my irq handler for interrupts on GPIO1_10, but for some reason there already is a signal on that pin...

What signal could that be? I have disabled the lcd-drivers in th kernel.

0 Kudos
Reply

1,470 Views
Nico
Contributor II
Any news about setting a gpio?
0 Kudos
Reply

1,470 Views
Sjoon
Contributor II

I need the same on GPIO2_21...

 

Anyone?

0 Kudos
Reply