summaryrefslogtreecommitdiff
path: root/src/mainboard/clevo/cml-u/fadt.c
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/fadt.c
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/fadt.c')
-rw-r--r--src/mainboard/clevo/cml-u/fadt.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/mainboard/clevo/cml-u/fadt.c b/src/mainboard/clevo/cml-u/fadt.c
new file mode 100644
index 0000000000..28ed7e97c3
--- /dev/null
+++ b/src/mainboard/clevo/cml-u/fadt.c
@@ -0,0 +1,10 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
+#include <acpi/acpi.h>
+#include <intelblocks/acpi.h>
+
+void mainboard_fill_fadt(acpi_fadt_t *fadt)
+{
+ /* Control method power button (EC) */
+ fadt->flags |= ACPI_FADT_POWER_BUTTON;
+}