mirror of
https://github.com/torvalds/linux.git
synced 2026-09-26 10:02:02 +02:00
drm/i915/gmbus: Add gmbus_pins_lpt_lp[]
LPT/WPT-LP don't have as many GPIO pins as the -H variants. Add proper mapping for the -LP PCHs so that we can't end up poking at non-existent GPIOs. Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Link: https://patch.msgid.link/20260623125111.6632-4-ville.syrjala@linux.intel.com Reviewed-by: Michał Grzelak <michal.grzelak@intel.com>
This commit is contained in:
parent
ace3774277
commit
1c626c95b4
|
|
@ -86,13 +86,18 @@ static const struct gmbus_pin gmbus_pins[] = {
|
|||
[GMBUS_PIN_DPD] = { "dpd", GPIO_5 },
|
||||
};
|
||||
|
||||
static const struct gmbus_pin gmbus_pins_lpt[] = {
|
||||
static const struct gmbus_pin gmbus_pins_lpt_h[] = {
|
||||
[GMBUS_PIN_VGADDC] = { "vga", GPIO_0 },
|
||||
[GMBUS_PIN_DPC] = { "dpc", GPIO_3 },
|
||||
[GMBUS_PIN_DPB] = { "dpb", GPIO_4 },
|
||||
[GMBUS_PIN_DPD] = { "dpd", GPIO_5 },
|
||||
};
|
||||
|
||||
static const struct gmbus_pin gmbus_pins_lpt_lp[] = {
|
||||
[GMBUS_PIN_DPC] = { "dpc", GPIO_3 },
|
||||
[GMBUS_PIN_DPB] = { "dpb", GPIO_4 },
|
||||
};
|
||||
|
||||
static const struct gmbus_pin gmbus_pins_skl[] = {
|
||||
[GMBUS_PIN_DPC] = { "dpc", GPIO_3 },
|
||||
[GMBUS_PIN_DPB] = { "dpb", GPIO_4 },
|
||||
|
|
@ -178,9 +183,12 @@ 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 (HAS_PCH_LPT_LP(display)) {
|
||||
pins = gmbus_pins_lpt_lp;
|
||||
size = ARRAY_SIZE(gmbus_pins_lpt_lp);
|
||||
} else if (HAS_PCH_LPT(display)) {
|
||||
pins = gmbus_pins_lpt;
|
||||
size = ARRAY_SIZE(gmbus_pins_lpt);
|
||||
pins = gmbus_pins_lpt_h;
|
||||
size = ARRAY_SIZE(gmbus_pins_lpt_h);
|
||||
} else {
|
||||
pins = gmbus_pins;
|
||||
size = ARRAY_SIZE(gmbus_pins);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user