class GMBusPinPair
Defined at line 23 of file ../../src/graphics/display/drivers/intel-display/i2c/gmbus-gpio.h
The GMBUS controller has multiple GPIO pin pairs used as I2C clock and
data lines connected to DDIs for I2C-based data transfer protocol like
VESA DDC/CI and E-DDC. The mapping between pin pair number and DDI ID
vary from platform to platform.
This class wraps the (pin pair, 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 pin pair that is used by GMBusClockPortSelect
register.
Defined at line 27 of file ../../src/graphics/display/drivers/intel-display/i2c/gmbus-gpio.h
DdiId ddi_id ()
Returns the ID of the DDI this pin pair connects in the Display Engine.
Defined at line 30 of file ../../src/graphics/display/drivers/intel-display/i2c/gmbus-gpio.h
std::optional<GMBusPinPair> GetForDdi (DdiId ddi_id, registers::Platform platform)
Get the GMBUS pin pair for a given DDI ID on `platform`.
The `ddi_id` must be a valid DDI available in `platform`.
Defined at line 44 of file ../../src/graphics/display/drivers/intel-display/i2c/gmbus-gpio.h
bool HasValidPinPair (DdiId ddi_id, registers::Platform platform)
Returns whether a DDI has a valid pin pair on `platform`.
Defined at line 56 of file ../../src/graphics/display/drivers/intel-display/i2c/gmbus-gpio.h