From: Thierry Escande Date: Fri, 1 Dec 2017 13:42:22 +0000 (+0100) Subject: platform/chrome: cros_ec_lpc: Add support for Google Glimmer X-Git-Tag: v5.15~9408^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e675191729029cfb1cd624a03864f6426906a078;p=platform%2Fkernel%2Flinux-starfive.git platform/chrome: cros_ec_lpc: Add support for Google Glimmer This patch adds device information to the DMI table of the cros_ec_lpc driver for Google Glimmer devices. Since Google BIOS does not enumerate devices in the LPC bus, the cros_ec_lpc driver checks for system compatibility and registers the cros_ec device itself. Signed-off-by: Thierry Escande Reviewed-by: Gwendal Grignou Signed-off-by: Benson Leung --- diff --git a/drivers/platform/chrome/cros_ec_lpc.c b/drivers/platform/chrome/cros_ec_lpc.c index 47ace99..af89e82 100644 --- a/drivers/platform/chrome/cros_ec_lpc.c +++ b/drivers/platform/chrome/cros_ec_lpc.c @@ -362,6 +362,13 @@ static const struct dmi_system_id cros_ec_lpc_dmi_table[] __initconst = { DMI_MATCH(DMI_PRODUCT_NAME, "Peppy"), }, }, + { + /* x86-glimmer, the Lenovo Thinkpad Yoga 11e. */ + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "GOOGLE"), + DMI_MATCH(DMI_PRODUCT_NAME, "Glimmer"), + }, + }, { /* sentinel */ } }; MODULE_DEVICE_TABLE(dmi, cros_ec_lpc_dmi_table);