Newer
Older
AMI-Aptio-BIOS-Reversed / PchSerialGpio / README.md
@Ajax Dong Ajax Dong 2 days ago 1 KB Init

PchSerialGpio, Index 0145, 12772 bytes, DXE Phase

PCH Serial GPIO DXE driver for the Purley/Lewisburg PCH. Manages Serial GPIO (SGPIO) pin assignment by installing the PCH_SERIAL_GPIO_PROTOCOL. Provides register/unregister operations for SGPIO pins and GPIO pad muxing configuration for serial interface usage. Encodes GPIO pad values as 32-bit fields (pin number, group index, function number).

Key Functions

  • RegisterSerialGpio -- Assign an SGPIO pin to a serial function
  • SetSerialGpioAltFunc -- Write serial data to the SGPIO interface
  • GpioReadReg/GpioWriteReg -- MMIO-based GPIO register access
  • GpioPollSgpioReady -- Poll SGPIO ready status
  • GpioIsPadValid/GpioValidateGroup/GpioValidatePin -- Pad validation helpers
  • GpioWriteSgpioWord/GpioWriteSgpioPartialWord -- Word-level SGPIO write

Protocols/Dependencies

  • PCH_SERIAL_GPIO_PROTOCOL (installed protocol)
  • PCH GPIO MMIO registers (0xFD000000 base + group offset)
  • PCH Group Information Table (13 GPIO groups, 60 bytes each)

Platform

HR650X, x86-64, PurleySktPkg/SouthClusterLbg/SerialGpio/Dxe/, VS2015 DEBUG