summaryrefslogtreecommitdiff
path: root/src/ec/dell/mec5055/early_init.c
diff options
context:
space:
mode:
authorIru Cai <mytbk920423@gmail.com>2020-06-07 21:40:21 +0800
committerIru Cai <mytbk920423@gmail.com>2020-06-25 20:44:10 +0800
commit52ffeb512ee07601f3a63961e6fd7c22ff978c25 (patch)
tree172a835f252c48c619da1f4f756080fcc146c475 /src/ec/dell/mec5055/early_init.c
parent28da35417bcde79edbf826fef7d02bbfe5c714cf (diff)
downloadcoreboot-52ffeb512ee07601f3a63961e6fd7c22ff978c25.tar.xz
[WIP] ec: Add support for MEC5055 for Dell laptops
This EC support code is required to boot Dell Latitude E6230 and E7240, otherwise the laptop will shut on in a minute after powered on. ACPI support doesn't work yet. Change-Id: Iee68ea52dcf0242315868a46b5e4768303e30dce Signed-off-by: Iru Cai <mytbk920423@gmail.com>
Diffstat (limited to 'src/ec/dell/mec5055/early_init.c')
-rw-r--r--src/ec/dell/mec5055/early_init.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/ec/dell/mec5055/early_init.c b/src/ec/dell/mec5055/early_init.c
new file mode 100644
index 0000000000..f69c1deabc
--- /dev/null
+++ b/src/ec/dell/mec5055/early_init.c
@@ -0,0 +1,12 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+/* This file is part of the coreboot project. */
+
+#include "mec5055.h"
+
+void mec5055_early_init(void)
+{
+ u8 buf1[32];
+ u8 c;
+ mec5055_ec_command_0(buf1, 0xc2, 0);
+ mec5055_ec_command_1(0xab, NULL, 0, &c, 1);
+}