projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
57b888c
)
platform/chrome: cros_ec_lpcs: detect the Framework Laptop
author
Dustin L. Howett
<dustin@howett.net>
Thu, 17 Feb 2022 16:59:29 +0000
(10:59 -0600)
committer
Tzung-Bi Shih
<tzungbi@kernel.org>
Tue, 3 May 2022 05:43:20 +0000
(13:43 +0800)
The Framework Laptop identifies itself in DMI with manufacturer
"Framework" and product "Laptop".
Signed-off-by: Dustin L. Howett <dustin@howett.net>
Signed-off-by: Tzung-Bi Shih <tzungbi@kernel.org>
Link:
https://lore.kernel.org/r/20220217165930.15081-2-dustin@howett.net
drivers/platform/chrome/cros_ec_lpc.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/platform/chrome/cros_ec_lpc.c
b/drivers/platform/chrome/cros_ec_lpc.c
index 7651417b4a25b0bbedc620e1583c3d0567ade0ec..1ec12d19c779c1d2748a1d00a2cc0780c077fc53 100644
(file)
--- a/
drivers/platform/chrome/cros_ec_lpc.c
+++ b/
drivers/platform/chrome/cros_ec_lpc.c
@@
-502,6
+502,14
@@
static const struct dmi_system_id cros_ec_lpc_dmi_table[] __initconst = {
DMI_MATCH(DMI_PRODUCT_NAME, "Glimmer"),
},
},
+ /* A small number of non-Chromebook/box machines also use the ChromeOS EC */
+ {
+ /* the Framework Laptop */
+ .matches = {
+ DMI_MATCH(DMI_SYS_VENDOR, "Framework"),
+ DMI_MATCH(DMI_PRODUCT_NAME, "Laptop"),
+ },
+ },
{ /* sentinel */ }
};
MODULE_DEVICE_TABLE(dmi, cros_ec_lpc_dmi_table);