How can I add interrupt in uboot to detect my gpio pin

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I add interrupt in uboot to detect my gpio pin

1,079 Views
Contributor III

Hi All

I'm using Android 6.0 to build my image.

And the CPU that I developing is i.MX 6 sabresd DL.

Now I'm trying to design a button that will detect during uboot.

If the button be pressed than will get into recovery mode.

So I need to make an interrupt in uboot.

How to do it?

Labels (4)
Tags (2)
0 Kudos
2 Replies

144 Views
Contributor III

I was just looking at this in the NXP distribution of Android 8.  The uboot for mx6sabresd already has support for entering fastboot/recovery mode.  They don't use an interrupt, just read the state of the switch at a point during boot time, so it requires the user to press and hold through the time the switch is read, but from what I understand that is normal behaviour.

see mx6sabresd.c\mx6sabresd\freescale\board - uboot-imx - i.MX U-Boot 

and look for CONFIG_FSL_FASTBOOT

0 Kudos

144 Views
NXP TechSupport
NXP TechSupport

Hi victor

please look on

arm - Handling gpio Interrupts in u-boot - Stack Overflow 

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

0 Kudos