Skip to content

Commit 04ca0a5

Browse files
walshbTzung-Bi Shih
authored andcommitted
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: Dustin L. Howett <[email protected]> Signed-off-by: Ben Walsh <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Tzung-Bi Shih <[email protected]>
1 parent 38c31b1 commit 04ca0a5

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

drivers/platform/chrome/cros_ec_lpc.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -636,6 +636,12 @@ static const struct lpc_driver_data framework_laptop_amd_lpc_driver_data __initc
636636
.quirk_mmio_memory_base = 0xE00,
637637
};
638638

639+
static const struct lpc_driver_data framework_laptop_11_lpc_driver_data __initconst = {
640+
.quirks = CROS_EC_LPC_QUIRK_ACPI_ID|CROS_EC_LPC_QUIRK_AML_MUTEX,
641+
.quirk_acpi_id = "PNP0C09",
642+
.quirk_aml_mutex_name = "ECMT",
643+
};
644+
639645
static const struct dmi_system_id cros_ec_lpc_dmi_table[] __initconst = {
640646
{
641647
/*
@@ -704,6 +710,7 @@ static const struct dmi_system_id cros_ec_lpc_dmi_table[] __initconst = {
704710
DMI_MATCH(DMI_SYS_VENDOR, "Framework"),
705711
DMI_MATCH(DMI_PRODUCT_NAME, "Laptop"),
706712
},
713+
.driver_data = (void *)&framework_laptop_11_lpc_driver_data,
707714
},
708715
{ /* sentinel */ }
709716
};

0 commit comments

Comments
 (0)