Although i.MX6UL RM shows the SW_MOD_CTRL register for the JTAG_MOD pad, there is no way to use this pad for any alternate function other than JTAG_MOD, otherwise, the processor may lock. So, there is no way to use the JTAG_MOD pad as GPIO.
Have a great day,
Artur
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------