On Tue, 23 Jun 2026, Ville Syrjala wrote:
From: Ville Syrjälä <[email protected]>

The GMBUS pin pair <-> GPIO mapping is purely a property
of the PCH (on the platforms where GMBUS lives in the PCH).
So rename gmbus_pins_bdw[] to gmbus_pins_lpt[] and extend
it to cover all platforms with LPT/WPT PCHs.

Signed-off-by: Ville Syrjälä <[email protected]>

Reviewed-by: Michał Grzelak <[email protected]>

BR,
Michał

---
drivers/gpu/drm/i915/display/intel_gmbus.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/gpu/drm/i915/display/intel_gmbus.c 
b/drivers/gpu/drm/i915/display/intel_gmbus.c
index 9990e6391b03..2869ec23e1ec 100644
--- a/drivers/gpu/drm/i915/display/intel_gmbus.c
+++ b/drivers/gpu/drm/i915/display/intel_gmbus.c
@@ -86,7 +86,7 @@ static const struct gmbus_pin gmbus_pins[] = {
        [GMBUS_PIN_DPD] = { "dpd", GPIO_5 },
};

-static const struct gmbus_pin gmbus_pins_bdw[] = {
+static const struct gmbus_pin gmbus_pins_lpt[] = {
        [GMBUS_PIN_VGADDC] = { "vga", GPIO_0 },
        [GMBUS_PIN_DPC] = { "dpc", GPIO_3 },
        [GMBUS_PIN_DPB] = { "dpb", GPIO_4 },
@@ -178,9 +178,9 @@ static const struct gmbus_pin *get_gmbus_pin(struct 
intel_display *display,
        } else if (DISPLAY_VER(display) == 9) {
                pins = gmbus_pins_skl;
                size = ARRAY_SIZE(gmbus_pins_skl);
-       } else if (display->platform.broadwell) {
-               pins = gmbus_pins_bdw;
-               size = ARRAY_SIZE(gmbus_pins_bdw);
+       } else if (HAS_PCH_LPT(display)) {
+               pins = gmbus_pins_lpt;
+               size = ARRAY_SIZE(gmbus_pins_lpt);
        } else {
                pins = gmbus_pins;
                size = ARRAY_SIZE(gmbus_pins);
--
2.53.0

Reply via email to