Realtek switch SoC docs

mango register: EXT_GPIO_INDRT_ACCESS_CTRL

Details

Name
EXT_GPIO_INDRT_ACCESS_CTRL
Offset
07f4
Feature
LED

Description

External GPIO indirect access controller (of the RTL8231)

default: 0x0000_0000

Fields

Name LSB Bits Description
RESERVED 29 3
GPIO_RCMD_FAIL 28 1

Ext GPIO read command fail

WRITE commands (GPIO_RWOP=1 and GPIO_CMD=1) will always clear this bit. Any CMD following an error will also clear.

  • 0b0: normal operation
  • 0b1: When a read-command fails to detect the ‘turn-around-bit’
GPIO_DATA 12 16

Ext GPIO register data

When RWOP=0 then read data from the RTL8231 When RWOP=1 then write data to the RTL8231

GPIO_REG 7 5

Ext GPIO register register address

Selects the register to be read/written

  • 0x00 - 0x1f -> register 0 - register 31
GPIO_PHYADRR 2 5

RTL8231 PHY address to use

GPIO_RWOP 1 1

Read/write operator

  • 0b0: read
  • 0b1: write
GPIO_CMD 0 1

Ext GPIO controller Execute Command

  • 0b0: normal operation
  • 0b1: execute command (auto clears on execution)