Skip to content

Commit

Permalink
platform/surface: gpe: Add support for Surface Pro 9
Browse files Browse the repository at this point in the history
Add the lid GPE used by the Surface Pro 9.

Signed-off-by: Maximilian Luz <luzmaximilian@gmail.com>
  • Loading branch information
qzed committed Mar 12, 2023
1 parent b4ca910 commit 9420997
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions drivers/platform/surface/surface_gpe.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ static const struct property_entry lid_device_props_l4F[] = {
{},
};

static const struct property_entry lid_device_props_l52[] = {
PROPERTY_ENTRY_U32("gpe", 0x52),
{},
};

static const struct property_entry lid_device_props_l57[] = {
PROPERTY_ENTRY_U32("gpe", 0x57),
{},
Expand Down Expand Up @@ -107,6 +112,18 @@ static const struct dmi_system_id dmi_lid_device_table[] = {
},
.driver_data = (void *)lid_device_props_l4B,
},
{
/*
* We match for SKU here due to product name clash with the ARM
* version.
*/
.ident = "Surface Pro 9",
.matches = {
DMI_EXACT_MATCH(DMI_SYS_VENDOR, "Microsoft Corporation"),
DMI_EXACT_MATCH(DMI_PRODUCT_SKU, "Surface_Pro_9_2038"),
},
.driver_data = (void *)lid_device_props_l52,
},
{
.ident = "Surface Book 1",
.matches = {
Expand Down

0 comments on commit 9420997

Please sign in to comment.