aboutsummaryrefslogtreecommitdiff
path: root/src/mainboard/clevo/cml-u/variants
diff options
context:
space:
mode:
authorMichael Niewöhner <foss@mniewoehner.de>2021-11-28 23:53:55 +0100
committerMichael Niewöhner <foss@mniewoehner.de>2022-11-11 22:43:14 +0000
commitdc3e7def5f1d0ef05cc26e75a91603dd6889068e (patch)
treec2d2102d43c766fb0cc735504dc03e1d935ad731 /src/mainboard/clevo/cml-u/variants
parentd6ac7a9a3a774eb5a70385660c072bbaa248a355 (diff)
mb/clevo/l140cu: make use of the new clevo/it5570e ec driver
Hook up the new EC driver. Tested: - Fn hotkeys work (brightness, display, volume, tp toggle, ...) - Display lid - Sleep/wake - Camera (including Fn toggle) - Bluetooth (both CNVi and PCIe card) - Wi-Fi (both CNVi and PCIe card) - CMOS options Known issues: - Touchpad toggle needs OS setup; see CB:68791 - UCSI is not implemented; see CB:68791 Change-Id: I28ac401ada2945bb58fe862895458b10fed505fe Signed-off-by: Michael Niewöhner <foss@mniewoehner.de> Reviewed-on: https://review.coreboot.org/c/coreboot/+/68795 Reviewed-by: Angel Pons <th3fanbus@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/mainboard/clevo/cml-u/variants')
-rw-r--r--src/mainboard/clevo/cml-u/variants/l140cu/acpi/variant.asl6
-rw-r--r--src/mainboard/clevo/cml-u/variants/l140cu/devicetree.cb4
2 files changed, 10 insertions, 0 deletions
diff --git a/src/mainboard/clevo/cml-u/variants/l140cu/acpi/variant.asl b/src/mainboard/clevo/cml-u/variants/l140cu/acpi/variant.asl
new file mode 100644
index 0000000000..7694bfe361
--- /dev/null
+++ b/src/mainboard/clevo/cml-u/variants/l140cu/acpi/variant.asl
@@ -0,0 +1,6 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
+#define EC_GPE_SCI GPE0_DW2_16 /* GPP_E16 */
+#define EC_GPE_PWRB GPE0_DW1_09 /* GPP_D9 (SWI#) */
+#define EC_GPE_SLPB GPE0_DW1_09 /* GPP_D9 (SWI#) */
+#define EC_GPE_LID GPE0_DW1_09 /* GPP_D9 (SWI#) */
diff --git a/src/mainboard/clevo/cml-u/variants/l140cu/devicetree.cb b/src/mainboard/clevo/cml-u/variants/l140cu/devicetree.cb
index 7385fe19c6..ce683b37dc 100644
--- a/src/mainboard/clevo/cml-u/variants/l140cu/devicetree.cb
+++ b/src/mainboard/clevo/cml-u/variants/l140cu/devicetree.cb
@@ -183,6 +183,10 @@ chip soc/intel/cannonlake
device pci 1e.2 off end # GSPI #0
device pci 1e.3 off end # GSPI #1
device pci 1f.0 on # LPC Interface
+ chip ec/clevo/it5570e
+ device generic 0 on end
+ register "pl2_on_battery" = "15"
+ end
chip drivers/pc80/tpm # TPM
device pnp 0c31.0 on end
end