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

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

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

1,438件の閲覧回数
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!

ラベル(1)
0 件の賞賛
5 返答(返信)

1,057件の閲覧回数
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 件の賞賛

1,057件の閲覧回数
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 件の賞賛

1,057件の閲覧回数
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 件の賞賛

1,057件の閲覧回数
Nico
Contributor II
Any news about setting a gpio?
0 件の賞賛

1,057件の閲覧回数
Sjoon
Contributor II

I need the same on GPIO2_21...

 

Anyone?

0 件の賞賛