mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-24 06:30:53 +07:00
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>
This commit is contained in:
parent
c3b46c7326
commit
bff3c624dc
@ -494,6 +494,13 @@ static struct chromeos_laptop cr48 = {
|
|||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
static struct chromeos_laptop leon = {
|
||||||
|
.i2c_peripherals = {
|
||||||
|
/* Touchpad. */
|
||||||
|
{ .add = setup_cyapa_tp, I2C_ADAPTER_DESIGNWARE_0 },
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
#define _CBDD(board_) \
|
#define _CBDD(board_) \
|
||||||
.callback = chromeos_laptop_dmi_matched, \
|
.callback = chromeos_laptop_dmi_matched, \
|
||||||
.driver_data = (void *)&board_
|
.driver_data = (void *)&board_
|
||||||
@ -581,6 +588,14 @@ static struct dmi_system_id chromeos_laptop_dmi_table[] __initdata = {
|
|||||||
},
|
},
|
||||||
_CBDD(cr48),
|
_CBDD(cr48),
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
.ident = "Leon",
|
||||||
|
.matches = {
|
||||||
|
DMI_MATCH(DMI_BIOS_VENDOR, "coreboot"),
|
||||||
|
DMI_MATCH(DMI_PRODUCT_NAME, "Leon"),
|
||||||
|
},
|
||||||
|
_CBDD(leon),
|
||||||
|
},
|
||||||
{ }
|
{ }
|
||||||
};
|
};
|
||||||
MODULE_DEVICE_TABLE(dmi, chromeos_laptop_dmi_table);
|
MODULE_DEVICE_TABLE(dmi, chromeos_laptop_dmi_table);
|
||||||
|
Loading…
Reference in New Issue
Block a user