i.MX6 onoff interrupt handler

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

i.MX6 onoff interrupt handler

ソリューションへジャンプ
1,814件の閲覧回数
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,503件の閲覧回数
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,504件の閲覧回数
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,503件の閲覧回数
johngriswold
Contributor II

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

0 件の賞賛
返信