From 6b7178aa107ef7e2475e3b1f32ac849d98798406 Mon Sep 17 00:00:00 2001 From: Patrick Rudolph Date: Mon, 14 Aug 2017 17:46:58 +0200 Subject: ec/lenovo/h8/ssdt: Add keyboard backlight interface Add methods MLCG and MLCS for thinkpad_acpi kernel module. Required for backlight or thinklight control from userspace. Change-Id: Ia65e770e772936c9c32be33c30839a2dee2a107c Signed-off-by: Patrick Rudolph Reviewed-on: https://review.coreboot.org/21002 Tested-by: build bot (Jenkins) Reviewed-by: Felix Held --- src/ec/lenovo/h8/ssdt.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/ec/lenovo/h8/ssdt.c') diff --git a/src/ec/lenovo/h8/ssdt.c b/src/ec/lenovo/h8/ssdt.c index 84a52f5f63..4df4bd8a87 100644 --- a/src/ec/lenovo/h8/ssdt.c +++ b/src/ec/lenovo/h8/ssdt.c @@ -36,6 +36,8 @@ static char *h8_dsdt_scope(struct device *dev, const char *scope) */ void h8_ssdt_generator(struct device *dev) { + struct ec_lenovo_h8_config *conf = dev->chip_info; + if (!acpi_device_path(dev)) return; @@ -47,6 +49,8 @@ void h8_ssdt_generator(struct device *dev) /* Used by thinkpad_acpi */ acpigen_write_name_byte("HBDC", h8_has_bdc(dev) ? ONE_OP : ZERO_OP); acpigen_write_name_byte("HWAN", h8_has_wwan(dev) ? ONE_OP : ZERO_OP); + acpigen_write_name_byte("HKBL", (conf && conf->has_keyboard_backlight) ? + ONE_OP : ZERO_OP); acpigen_pop_len(); /* Scope HKEY */ } -- cgit v1.2.3