i.MX6 onoff interrupt handler

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

i.MX6 onoff interrupt handler

跳至解决方案
1,827 次查看
johngriswold
Contributor II

I need to trap the interrupt generated when the onoff signal is grounded for 750+mS to kick off a proper Linux shutdown. Currently we don't field that interrupt, and customer behavior resorts to holding the button down until the iMX shuts down, but of course they then complain about corrupt files...

I'm also trying to follow Rule #1 in writing Linux device drivers, which is "Never write a Linux device driver", but I'm not having much luck in finding an example. I did find Question #431478 that pointed to an example that was being uploaded to Gitorious, but that seems to be its constant state.

While I have in the dark, distant past written device drivers for Linux, they were not based on the Device Tree, so I have a bit of a learning curve, as well.

Is there someone who could point me in the proper direction?

Thanks  very much in advance,

John

标签 (2)
标记 (1)
0 项奖励
回复
1 解答
1,516 次查看
b36401
NXP Employee
NXP Employee

I found noted patch here:

https://lkml.org/lkml/2014/9/12/160

Have a great day,

Victor

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

在原帖中查看解决方案

2 回复数
1,517 次查看
b36401
NXP Employee
NXP Employee

I found noted patch here:

https://lkml.org/lkml/2014/9/12/160

Have a great day,

Victor

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

1,516 次查看
johngriswold
Contributor II

Thank you very much. This looks like a good leg up on the problem.

0 项奖励
回复