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

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

3,653 Views
wangvictor
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
Reply
2 Replies

2,718 Views
andrewdyer
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
Reply

2,718 Views
igorpadykov
NXP Employee
NXP Employee

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
Reply