diff options
author | Salvatore Bellizzi <lkml@seppia.net> | 2018-03-07 14:56:43 +0100 |
---|---|---|
committer | Benson Leung <bleung@chromium.org> | 2018-04-09 22:57:46 -0700 |
commit | f56db262e46d3368ee4e5c9e19797853cab382cd (patch) | |
tree | 23dafd7572399f89eefdb981330c0a162d93f823 /drivers/platform/chrome | |
parent | d6542b3916582375dde30344611fa920f51aed45 (diff) | |
download | blackbird-op-linux-f56db262e46d3368ee4e5c9e19797853cab382cd.tar.gz blackbird-op-linux-f56db262e46d3368ee4e5c9e19797853cab382cd.zip |
platform/chrome: cros_ec_lpc: Add support for Google devices using custom coreboot firmware
This patch adds generic device information to the DMI table of
the cros_ec_lpc driver, needed for Chromebooks/boxes using a
custom coreboot firmware.
The DMI info would not contain "Google_*" as BIOS version string,
instead the system vendor string would still be "GOOGLE", so this
seems to be a reasonable match for every Chromebook/box running
a custom firmware.
Signed-off-by: Salvatore Bellizzi <lkml@seppia.net>
Signed-off-by: Vittorio Gambaletta <linuxbugs@vittgam.net>
Signed-off-by: Benson Leung <bleung@chromium.org>
Diffstat (limited to 'drivers/platform/chrome')
-rw-r--r-- | drivers/platform/chrome/cros_ec_lpc.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/platform/chrome/cros_ec_lpc.c b/drivers/platform/chrome/cros_ec_lpc.c index 2a40c2b1a7ff..3682e1539251 100644 --- a/drivers/platform/chrome/cros_ec_lpc.c +++ b/drivers/platform/chrome/cros_ec_lpc.c @@ -346,6 +346,18 @@ static const struct dmi_system_id cros_ec_lpc_dmi_table[] __initconst = { }, }, { + /* + * If the box is running custom coreboot firmware then the + * DMI BIOS version string will not be matched by "Google_", + * but the system vendor string will still be matched by + * "GOOGLE". + */ + .matches = { + DMI_MATCH(DMI_BIOS_VENDOR, "coreboot"), + DMI_MATCH(DMI_SYS_VENDOR, "GOOGLE"), + }, + }, + { /* x86-link, the Chromebook Pixel. */ .matches = { DMI_MATCH(DMI_SYS_VENDOR, "GOOGLE"), |