according to Datasheet Documentation described, when when the Jtag_gpio_mode register is set to 1 , theJTAG pin function is gpio, and the corresponding Gpio sequence number is gpio17~gpio21.
Setting the JTAG interface to GPIO requires modifying the jtag_gpio_mode of the Gpiomode register Bits,thegpiomode Register is located in the SYSCTL Register Group, as described in the following table:
gpiomode register Span style= "; font-family: Song body; font-size:14px" > offset to 0x60 gpiomode The actual address of the register is 0x1000 0060 jtag_gpio_mode gpiomode register 6bit position.
sdk in system kernel driver source/linux-2.6.36.x/drivers/char/ralink_gpio.h
/* * Address of RALINK_ Registers */ #define  RALINK_ Sysctl_addr ralink_sysctl_ base // system control#define ralink_reg_gpiomode (ralink_sysctl_addr + 0x60)
So you can modify the jtag_gpio_mode Register directly using the macro definition.
In source/linux-2.6.36.x/drivers/char/ralink_gpio.c , find int __init ralink_gpio_init (void) function, add the following statement to the function:
Gpiomode |= (1 << 6);
It is possible to configure the JTAG pin as a GPIO to use.
RT3052 Modifying the Jtag interface to Gpio