class GpioPort

Defined at line 209 of file ../../src/graphics/display/drivers/intel-display/i2c/gmbus-gpio.h

The Intel Display Engine has multiple GPIO pin pairs (ports) which may

be used as I2C clock and data lines, or for DSI devices. The mapping between

GPIO port number and DDI ID vary from platform to platform.

This class wraps the (GPIO port, platform) tuple and can be used for

conversion between DDIs and GMBUs pin pairs on different platforms.

Public Methods

int number ()

Returns the number of the GPIO port that is used when selecting the GPIO

control register.

Defined at line 213 of file ../../src/graphics/display/drivers/intel-display/i2c/gmbus-gpio.h

DdiId ddi_id ()

Returns the ID of the DDI this GPIO port connects in the Display Engine.

Defined at line 216 of file ../../src/graphics/display/drivers/intel-display/i2c/gmbus-gpio.h

std::optional<GpioPort> GetForDdi (DdiId ddi_id, registers::Platform platform)

Get the GPIO port for a given DDI ID on `platform`.

Defined at line 228 of file ../../src/graphics/display/drivers/intel-display/i2c/gmbus-gpio.h

bool HasValidPort (DdiId ddi_id, registers::Platform platform)

Returns whether a DDI has a valid GPIO port on `platform`.

Defined at line 240 of file ../../src/graphics/display/drivers/intel-display/i2c/gmbus-gpio.h