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,853 次查看
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,472 次查看
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,472 次查看
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,472 次查看
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,472 次查看
Nico
Contributor II
Any news about setting a gpio?
0 项奖励
回复

1,472 次查看
Sjoon
Contributor II

I need the same on GPIO2_21...

 

Anyone?

0 项奖励
回复