Realtek switch SoC docs

longan register: JTAG_SEL_CTRL

Details

Name
JTAG_SEL_CTRL
Offset
0204
Feature
INTERFACE

Fields

Name LSB Bits Description
RESERVED 27 5
JTAG_TDO_SEL_GPIO 22 5

JTAG TDO select

Can use any GPIO as TDO, but only active if JTAG_SEL = 2

  • 0x0: GPIO00
  • 0x1: GPIO01
  • ..
  • 0x17: GPIO23
  • 0x1f: No TDO
JTAG_TDI_SEL_GPIO 17 5

JTAG TDI select

Can use any GPIO as TDI, but only active if JTAG_SEL = 2

  • 0x0: GPIO00
  • 0x1: GPIO01
  • ..
  • 0x17: GPIO23
  • 0x1f: No TDI
JTAG_TMS_SEL_GPIO 12 5

JTAG TMS select

Can use any GPIO as TMS, but only active if JTAG_SEL = 2

  • 0x0: GPIO00
  • 0x1: GPIO01
  • ..
  • 0x17: GPIO23
  • 0x1f: No TMS
JTAG_TCK_SEL_GPIO 7 5

JTAG TCK select

Can use any GPIO as TCK, but only active if JTAG_SEL = 2

  • 0x0: GPIO00
  • 0x1: GPIO01
  • ..
  • 0x17: GPIO23
  • 0x1f: No TCK
JTAG_TRST_SEL_GPIO 2 5

JTAG TRST select

Can use any GPIO as TRST, but only active if JTAG_SEL = 2

  • 0x0: GPIO00
  • 0x1: GPIO01
  • ..
  • 0x17: GPIO23
  • 0x1f: No TRST
JTAG_SEL 0 2

Mux eJTAG pins:

  • 0: JTAG (default)
  • 1: UART1
  • 2: GPIO