LS102xA GPIO in U-boot

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

LS102xA GPIO in U-boot

跳至解决方案
1,877 次查看
mbend
Contributor I

Hello,

I am developing a device using the TQMLS102xA module by TQ. I am currently attempting to change the U-boot code to display some boot process LEDs (to aid in debugging). However, looking at the "arch/arm/include/asm/arch-ls102xa/gpio.h" file, the GPIO functionality has not been implemented for this device.

Why has the GPIO functionality not been implemented in U-boot for the LS102xA?

Is it likely to be implemented and/or can someone point me in the direction of some guidance on how I can implement this myself?

Thanks,

Mike

标签 (1)
标记 (2)
1 解答
1,439 次查看
keestrommel
Contributor IV

See attached patch file for a U-Boot LS102xA GPIO implementation.

Updated the patch file because a patched file was missing.

在原帖中查看解决方案

3 回复数
1,440 次查看
keestrommel
Contributor IV

See attached patch file for a U-Boot LS102xA GPIO implementation.

Updated the patch file because a patched file was missing.

1,439 次查看
Pavel
NXP Employee
NXP Employee

Look at u-boot readme about GPIO using on the following page:

http://git.denx.de/?p=u-boot.git;a=blob_plain;f=README;hb=HEAD.


Have a great day,
Pavel Chubakov

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

0 项奖励
回复
1,439 次查看
mbend
Contributor I

Thanks for your reply, however that link does nothing to answer either of the questions.

When the LS102xa support was being added to the U-Boot source, the GPIO support was not implemented (which means the standard U-boot GPIO API will not work). This can be seen by the patch submitted to the u-boot mailing list ([U-Boot] [PATCH 1/2] arm: ls102xa: Add dummy gpio.h to enable CONFIG_OF_CONTROL ). This dummy gpio.h still exists in the most recent snapshot of u-boot (2017.05).

0 项奖励
回复