summaryrefslogtreecommitdiff
path: root/src/mainboard/clevo/tgl-u/bootblock.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:28 +0000
commit3504918b43544a0f8b79881e4e67b6badfecd08a (patch)
tree396b9793213becda1a260503ab0728ef70b00c2e /src/mainboard/clevo/tgl-u/bootblock.c
parentdc3e7def5f1d0ef05cc26e75a91603dd6889068e (diff)
mb/clevo/l140mu: 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: I6c4637936761cd62571b5d19fe2afd65560f49a0 Signed-off-by: Michael Niewöhner <foss@mniewoehner.de> Reviewed-on: https://review.coreboot.org/c/coreboot/+/59850 Reviewed-by: Angel Pons <th3fanbus@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/mainboard/clevo/tgl-u/bootblock.c')
-rw-r--r--src/mainboard/clevo/tgl-u/bootblock.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/mainboard/clevo/tgl-u/bootblock.c b/src/mainboard/clevo/tgl-u/bootblock.c
index b351fbd8ef..ee6c0b31ce 100644
--- a/src/mainboard/clevo/tgl-u/bootblock.c
+++ b/src/mainboard/clevo/tgl-u/bootblock.c
@@ -1,9 +1,21 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#include <bootblock_common.h>
+#include <ec/clevo/it5570e/early_init.h>
+#include <intelblocks/lpc_lib.h>
#include <variant/gpio.h>
void bootblock_mainboard_early_init(void)
{
variant_configure_early_gpios();
+
+ /* Open LGMR window for EC */
+ if (CONFIG(EC_CLEVO_IT5570E))
+ lpc_open_mmio_window(CONFIG_EC_CLEVO_IT5570E_MEM_BASE, 64 * KiB);
+}
+
+void bootblock_mainboard_init(void)
+{
+ if (CONFIG(EC_CLEVO_IT5570E))
+ ec_configure_kbled_booteffect();
}