AnsweredAssumed Answered

i.MX6 onoff interrupt handler

Question asked by John Griswold on Jan 13, 2016
Latest reply on Jan 14, 2016 by John Griswold

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,