diff options
author | Gene Chen <gene.chen@intel.com> | 2016-02-16 02:25:14 -0500 |
---|---|---|
committer | Olof Johansson <olof@lixom.net> | 2016-05-11 14:55:46 -0400 |
commit | bff3c624dc7261a084a4d25a0b09c3fb0fec872a (patch) | |
tree | c82a76cbf103a69af1dc895c2353bfe8d594f0ca /drivers/platform/chrome | |
parent | c3b46c73264b03000d1e18b22f5caf63332547c9 (diff) |
platform/chrome: chromeos_laptop: Add Leon Touch
Add support for Leon touch devices, which is the same as
slippy/falco/peppy/wolf on the same buses using the LynxPoint-LP I2C via
the i2c-designware-pci driver.
Based on the following patch:
https://chromium-review.googlesource.com/#/c/168351/
Signed-off-by: Gene Chen <gene.chen@intel.com>
Reviewed-by: Benson Leung <bleung@chromium.org>
Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
Signed-off-by: Olof Johansson <olof@lixom.net>
Diffstat (limited to 'drivers/platform/chrome')
-rw-r--r-- | drivers/platform/chrome/chromeos_laptop.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/drivers/platform/chrome/chromeos_laptop.c b/drivers/platform/chrome/chromeos_laptop.c index 2b441e9ae593..f5aa0a361412 100644 --- a/drivers/platform/chrome/chromeos_laptop.c +++ b/drivers/platform/chrome/chromeos_laptop.c | |||
@@ -494,6 +494,13 @@ static struct chromeos_laptop cr48 = { | |||
494 | }, | 494 | }, |
495 | }; | 495 | }; |
496 | 496 | ||
497 | static struct chromeos_laptop leon = { | ||
498 | .i2c_peripherals = { | ||
499 | /* Touchpad. */ | ||
500 | { .add = setup_cyapa_tp, I2C_ADAPTER_DESIGNWARE_0 }, | ||
501 | }, | ||
502 | }; | ||
503 | |||
497 | #define _CBDD(board_) \ | 504 | #define _CBDD(board_) \ |
498 | .callback = chromeos_laptop_dmi_matched, \ | 505 | .callback = chromeos_laptop_dmi_matched, \ |
499 | .driver_data = (void *)&board_ | 506 | .driver_data = (void *)&board_ |
@@ -581,6 +588,14 @@ static struct dmi_system_id chromeos_laptop_dmi_table[] __initdata = { | |||
581 | }, | 588 | }, |
582 | _CBDD(cr48), | 589 | _CBDD(cr48), |
583 | }, | 590 | }, |
591 | { | ||
592 | .ident = "Leon", | ||
593 | .matches = { | ||
594 | DMI_MATCH(DMI_BIOS_VENDOR, "coreboot"), | ||
595 | DMI_MATCH(DMI_PRODUCT_NAME, "Leon"), | ||
596 | }, | ||
597 | _CBDD(leon), | ||
598 | }, | ||
584 | { } | 599 | { } |
585 | }; | 600 | }; |
586 | MODULE_DEVICE_TABLE(dmi, chromeos_laptop_dmi_table); | 601 | MODULE_DEVICE_TABLE(dmi, chromeos_laptop_dmi_table); |