Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <dustin@howett.net>
Signed-off-by: Ben Walsh <ben@jubnut.com>
Link: https://lore.kernel.org/r/20240605063351.14836-6-ben@jubnut.com
Signed-off-by: Tzung-Bi Shih <tzungbi@kernel.org>

authored by

Ben Walsh and committed by
Tzung-Bi Shih
04ca0a51 38c31b1d

+7
+7
drivers/platform/chrome/cros_ec_lpc.c
··· 636 636 .quirk_mmio_memory_base = 0xE00, 637 637 }; 638 638 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 + 639 645 static const struct dmi_system_id cros_ec_lpc_dmi_table[] __initconst = { 640 646 { 641 647 /* ··· 710 704 DMI_MATCH(DMI_SYS_VENDOR, "Framework"), 711 705 DMI_MATCH(DMI_PRODUCT_NAME, "Laptop"), 712 706 }, 707 + .driver_data = (void *)&framework_laptop_11_lpc_driver_data, 713 708 }, 714 709 { /* sentinel */ } 715 710 };