GPIO triggers kernel reboot
Mehaffey, John
John_Mehaffey at mentor.com
Sat Jan 25 15:24:33 EST 2014
> -----Original Message-----
> From: linux-embedded-owner at vger.kernel.org
> [mailto:linux-embedded-owner at vger.kernel.org] On Behalf Of Heiko
> Schocher
> Sent: Saturday, January 25, 2014 8:03 AM
> To: linux-embedded at vger.kernel.org
> Cc: Wolfgang Denk; linux-arm-kernel at lists.infradead.org
> Subject: GPIO triggers kernel reboot
>
> Hello all,
>
> is it possible to reboot current mainline kernel triggered from a GPIO in kernel space?
>
> If not, how can be done this, so that it has a chance to go into mainline?
>
> Thanks for any suggestions
>
> bye,
> Heiko
Hi Heiko,
Call kexec() from the GPIO driver.
It will take some effort to get it right :)
Or if a simple reboot is all that you want, examine the several reboot APIs in kernel/reboot.c
Sincerely,
John Mehaffey
Principal Engineer, Automotive
Mentor Graphics
> --
> DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
> HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
> --
> To unsubscribe from this list: send the line "unsubscribe
> linux-embedded" in the body of a message to majordomo at vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe linux-embedded" in the body of a message to majordomo at vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
More information about the linux-arm-kernel
mailing list