I have a functioning U-Boot on my IMX6SX-based board. I am using the imx6sxsabresd u-boot and Linux configurations. I am able to toggle GPIO during U-Boot boot up. I am attempting to toggle the exact same GPIO during Linux boot up so I can use the GPIO toggling as a debug marker (I do not have serial on Linux yet).
I am using source from imx-yocto-L4.9.88_2.0.0.
Below is my code in U-Boot that successfully toggles the GPIO (pin 6, pad 1).
How would I do the equivalent in Linux?
Thanks in advance.
Hi Bobby
some gpio codes examples can be found in L4.9.88 linux/root/arch/arm/mach-imx folder, like
pm-imx7.c\mach-imx\arm\arch - linux-imx - i.MX Linux kernel
Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------