Hello,
I hope you are doing well.
You need to add it on device tree.
First you need to be sure that you are not using JTAG_SCK for other functions, if you are using it you need to disable it.
If you are not using it for other functions, you can only add it, here an example:
&iomuxc {
pinctrl-names = "default";
pinctrl-0 = <&BOARD_InitPins>;
imx6ull-board {
BOARD_InitPins: BOARD_InitPinsGrp { /*!< Function assigned for the core: Cortex-A7[ca7] */
fsl,pins = <
MX6UL_PAD_JTAG_TCK__GPIO1_IO14 0x000070A0
>;
};
};
};
With GPIO1_IO14 configured, it can be accessed from UserSpace.
Best regards.