Commit 04ca0a51 authored by Ben Walsh's avatar Ben Walsh Committed by Tzung-Bi Shih

platform/chrome: cros_ec_lpc: Add quirks for Framework Laptop

For Framework Laptops with Microchip EC (MEC), use the ACPI id
"PNP0C09" to find the ACPI device, and AML mutex "ECMT" to protect EC
memory access.
Tested-by: default avatarDustin L. Howett <dustin@howett.net>
Signed-off-by: default avatarBen Walsh <ben@jubnut.com>
Link: https://lore.kernel.org/r/20240605063351.14836-6-ben@jubnut.comSigned-off-by: default avatarTzung-Bi Shih <tzungbi@kernel.org>
parent 38c31b1d
...@@ -636,6 +636,12 @@ static const struct lpc_driver_data framework_laptop_amd_lpc_driver_data __initc ...@@ -636,6 +636,12 @@ static const struct lpc_driver_data framework_laptop_amd_lpc_driver_data __initc
.quirk_mmio_memory_base = 0xE00, .quirk_mmio_memory_base = 0xE00,
}; };
static const struct lpc_driver_data framework_laptop_11_lpc_driver_data __initconst = {
.quirks = CROS_EC_LPC_QUIRK_ACPI_ID|CROS_EC_LPC_QUIRK_AML_MUTEX,
.quirk_acpi_id = "PNP0C09",
.quirk_aml_mutex_name = "ECMT",
};
static const struct dmi_system_id cros_ec_lpc_dmi_table[] __initconst = { static const struct dmi_system_id cros_ec_lpc_dmi_table[] __initconst = {
{ {
/* /*
...@@ -704,6 +710,7 @@ static const struct dmi_system_id cros_ec_lpc_dmi_table[] __initconst = { ...@@ -704,6 +710,7 @@ static const struct dmi_system_id cros_ec_lpc_dmi_table[] __initconst = {
DMI_MATCH(DMI_SYS_VENDOR, "Framework"), DMI_MATCH(DMI_SYS_VENDOR, "Framework"),
DMI_MATCH(DMI_PRODUCT_NAME, "Laptop"), DMI_MATCH(DMI_PRODUCT_NAME, "Laptop"),
}, },
.driver_data = (void *)&framework_laptop_11_lpc_driver_data,
}, },
{ /* sentinel */ } { /* sentinel */ }
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment