I'm trying to run a custom kernel on the BD-sl-imx6q board. I saw this and to test if the kernel is running properly, I intend to blink an LED on the starting line of the kernel. According to the reference manual, I'm supposed to set GPIO9 (which is GPIOIO_09 in the board) and test it with GND. The steps as described in the manual are fairly instructive, i.e. set IOMUXC to GPIO (how does one do this programmatically?) and set direction as input/output and perform I/O. All known tutorials are strictly Linux based which use the /sys/class/gpio/* folder to send GPIO signals.
As a standalone program, how can I set the registers and invoke the IOMUXC and conseqently, the GPIO pins? Any lead/assistance would be immensely helpful.
Thanks and regards,