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

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

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

3,609件の閲覧回数
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?

ラベル(4)
タグ(2)
0 件の賞賛
返信
2 返答(返信)

2,674件の閲覧回数
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 件の賞賛
返信

2,674件の閲覧回数
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 件の賞賛
返信