Realtek switch SoC docs

longan register: EXT_GPIO_GLB_CTRL

Details

Name
EXT_GPIO_GLB_CTRL
Offset
c600
Feature
LED

Description

External GPIO control register (of the RTL8231)

default: 0x0000_000c

Fields

Name LSB Bits Description
RESERVED 22 10
DV_SPEEDUP_GPIO 21 1

GPIO pre-scaler controller?

Multiply the pre-scaler to increase blinking rate??

  • 0b0: x 1?
  • 0b0: x 8?
EXT_GPIO_MDX2_READY 15 6

Primary RTL8231 (MDX 2) ready-bits (reg1[9:4)

EXT_GPIO_MDX3_READY 9 6

Secondary RTL8231 (MDX 3) ready-bits (reg1[9:4)

EXT_GPIO_EN 8 1

Ext. GPIO function, tied to GPIO1 and GPIO2 pads

  • 0b0: disable (GPIO[2:1] are GPIO)
  • 0b1: enable (GPIO1 is MDC, GPIO2 is MDIO)
EXT_GPIO_MDIO_PREMBL 6 2

MDIO pre-amble bits

Note, that the first command of the command sequance must have a 32 bit pre-amble.

  • 0x0: 32 bits
  • 0x1: 16 bits
  • 0x2: 8 bits
  • 0x3: 1 bit
EXT_GPIO_MDC_PERIOD 4 2

MDC period

  • 0x0: 800 ns
  • 0x1: 400 ns
  • 0x2: 200 ns
  • 0x3: 100 ns
EXT_GPIO_MDX2_ACCESS_MODE 3 1

Primary RTL8231 (MDX 2) access mode

  • 0b0: trigger
  • 0b1: continuous
EXT_GPIO_MDX3_ACCESS_MODE 2 1

Secondary RTL8231 (MDX 3) access mode

  • 0b0: trigger
  • 0b1: continuous
EXT_GPIO_MDX2_EN 1 1

Enable primary RTL8231 (MDX 2)

  • 0b0: disable
  • 0b1: enable
EXT_GPIO_MDX3_EN 0 1

Enable secondary RTL8231 (MDX 3)

  • 0b0: disable
  • 0b1: enable