Duncan Laurie has uploaded this change for review. ( https://review.coreboot.org/29121
Change subject: ec/google/wilco: Add a bootblock function for early init
......................................................................
ec/google/wilco: Add a bootblock function for early init
Add a function for use in bootblock stage that performs early init
of the EC, in particular setting it up for UART passthrough so a
legacy serial port can be used by the host.
This needs to be called by the mainboard that intends to use it
in bootblock in order for the UART to be available in later stages.
Some of the PNP style programming may look odd, but it is following
the EC specification which is not entirely standard. This code has
been tested on a board with this EC and it is functional.
Change-Id: I9d6935a9fdf0d7290a94bf2ee565ef2a7c00ecc7
Signed-off-by: Duncan Laurie <dlaurie(a)google.com>
---
M src/ec/google/wilco/Makefile.inc
A src/ec/google/wilco/bootblock.c
A src/ec/google/wilco/bootblock.h
3 files changed, 75 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/21/29121/1
diff --git a/src/ec/google/wilco/Makefile.inc b/src/ec/google/wilco/Makefile.inc
index 33eefd5..2e1c0d4 100644
--- a/src/ec/google/wilco/Makefile.inc
+++ b/src/ec/google/wilco/Makefile.inc
@@ -1,5 +1,6 @@
ifeq ($(CONFIG_EC_GOOGLE_WILCO),y)
+bootblock-y += bootblock.c
ramstage-y += chip.c commands.c mailbox.c
smm-y += commands.c mailbox.c smihandler.c
diff --git a/src/ec/google/wilco/bootblock.c b/src/ec/google/wilco/bootblock.c
new file mode 100644
index 0000000..dadc5c9
--- /dev/null
+++ b/src/ec/google/wilco/bootblock.c
@@ -0,0 +1,52 @@
+/*
+ * This file is part of the coreboot project.
+ *
+ * Copyright 2018 Google LLC
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; version 2 of the License.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ */
+
+#include <arch/io.h>
+#include <device/pnp_def.h>
+#include <swab.h>
+
+#include "bootblock.h"
+
+#define PNP_CFG_IDX 0x2e
+#define PNP_LDN_SERIAL 0x0d
+
+static void pnp_enter_conf_state(pnp_devfn_t dev)
+{
+ outb(0x55, PNP_CFG_IDX);
+ outb(0x55, PNP_CFG_IDX);
+}
+
+static void pnp_exit_conf_state(pnp_devfn_t dev)
+{
+ outb(0xaa, PNP_CFG_IDX);
+}
+
+static void wilco_ec_serial_init(void)
+{
+ pnp_devfn_t dev = PNP_DEV(PNP_CFG_IDX, PNP_LDN_SERIAL);
+
+ pnp_enter_conf_state(dev);
+ pnp_set_logical_device(dev);
+ pnp_set_enable(dev, 1);
+ pnp_set_iobase(dev, PNP_IDX_IO1, cpu_to_be16(CONFIG_TTYS0_BASE));
+ pnp_write_config(dev, PNP_IDX_IO0, 1);
+ pnp_exit_conf_state(dev);
+}
+
+void wilco_ec_early_init(void)
+{
+ if (IS_ENABLED(CONFIG_DRIVERS_UART_8250IO))
+ wilco_ec_serial_init();
+}
diff --git a/src/ec/google/wilco/bootblock.h b/src/ec/google/wilco/bootblock.h
new file mode 100644
index 0000000..6fc3fc7
--- /dev/null
+++ b/src/ec/google/wilco/bootblock.h
@@ -0,0 +1,22 @@
+/*
+ * This file is part of the coreboot project.
+ *
+ * Copyright 2018 Google LLC
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; version 2 of the License.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ */
+
+#ifndef EC_GOOGLE_WILCO_BOOTBLOCK_H
+#define EC_GOOGLE_WILCO_BOOTBLOCK_H
+
+/* Perform early initialization of the EC */
+void wilco_ec_early_init(void);
+
+#endif /* EC_GOOGLE_WILCO_BOOTBLOCK_H */
--
To view, visit https://review.coreboot.org/29121
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I9d6935a9fdf0d7290a94bf2ee565ef2a7c00ecc7
Gerrit-Change-Number: 29121
Gerrit-PatchSet: 1
Gerrit-Owner: Duncan Laurie <dlaurie(a)chromium.org>
Duncan Laurie has uploaded this change for review. ( https://review.coreboot.org/29120
Change subject: ec/google/wilco: Save and restore PS/2 data for S3
......................................................................
ec/google/wilco: Save and restore PS/2 data for S3
Send a command to the EC on the way into S3 suspend state telling
it to save the PS/2 data, and on resume send it a command for
restoring the PS/2 data that was previously saved.
Change-Id: Ic4b5d6d2656dbb1c476b9211b0d60c71b0cd7b32
Signed-off-by: Duncan Laurie <dlaurie(a)google.com>
---
M src/ec/google/wilco/chip.c
M src/ec/google/wilco/commands.h
M src/ec/google/wilco/smihandler.c
3 files changed, 12 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/20/29120/1
diff --git a/src/ec/google/wilco/chip.c b/src/ec/google/wilco/chip.c
index fe4ef6a..d8ec281 100644
--- a/src/ec/google/wilco/chip.c
+++ b/src/ec/google/wilco/chip.c
@@ -44,6 +44,13 @@
BOOT_STATE_INIT_ENTRY(BS_DEV_INIT, BS_ON_EXIT,
wilco_ec_post_video_init, NULL);
+static void wilco_ec_suspend_resume(void *unused)
+{
+ wilco_ec_send_noargs(KB_RESTORE);
+}
+BOOT_STATE_INIT_ENTRY(BS_OS_RESUME, BS_ON_ENTRY,
+ wilco_ec_suspend_resume, NULL);
+
static void wilco_ec_init(struct device *dev)
{
if (!dev->enabled)
diff --git a/src/ec/google/wilco/commands.h b/src/ec/google/wilco/commands.h
index a74e1b2..eeb6d30 100644
--- a/src/ec/google/wilco/commands.h
+++ b/src/ec/google/wilco/commands.h
@@ -25,6 +25,10 @@
KB_POWER_STATUS = 0x05,
/* Inform the EC aboout the reason host is turning off */
KB_POWER_OFF = 0x08,
+ /* Save PS/2 data before S3 suspend */
+ KB_SAVE = 0x2f,
+ /* Restore PS/2 data after S3 resume */
+ KB_RESTORE = 0x30,
/* Retrieve information about the EC */
KB_EC_INFO = 0x38,
/* Set ACPI mode on or off */
diff --git a/src/ec/google/wilco/smihandler.c b/src/ec/google/wilco/smihandler.c
index 9fb1518..adad533 100644
--- a/src/ec/google/wilco/smihandler.c
+++ b/src/ec/google/wilco/smihandler.c
@@ -25,6 +25,7 @@
{
switch (slp_type) {
case ACPI_S3:
+ wilco_ec_send_noargs(KB_SAVE);
wilco_ec_slp_en();
break;
case ACPI_S5:
--
To view, visit https://review.coreboot.org/29120
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ic4b5d6d2656dbb1c476b9211b0d60c71b0cd7b32
Gerrit-Change-Number: 29120
Gerrit-PatchSet: 1
Gerrit-Owner: Duncan Laurie <dlaurie(a)chromium.org>
Duncan Laurie has uploaded this change for review. ( https://review.coreboot.org/29119
Change subject: ec/google/wilco: Add SMM handlers
......................................................................
ec/google/wilco: Add SMM handlers
Add EC handlers for specific SMM actions:
- on entry to sleep state tell the EC to save state and to prepare for
the host to enter sleep
- on ACPI enable/disable send command to the EC
- add a function to print SMI reasons when eSPI SMI is received
These need to be called by the mainboard handlers which will be done
when a board is added that uses this EC.
Change-Id: Ibabdc1462e0a8df405f9520244b83684e2ccf2f5
Signed-off-by: Duncan Laurie <dlaurie(a)google.com>
---
M src/ec/google/wilco/Makefile.inc
A src/ec/google/wilco/smihandler.c
A src/ec/google/wilco/smm.h
3 files changed, 83 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/19/29119/1
diff --git a/src/ec/google/wilco/Makefile.inc b/src/ec/google/wilco/Makefile.inc
index c011ebf..33eefd5 100644
--- a/src/ec/google/wilco/Makefile.inc
+++ b/src/ec/google/wilco/Makefile.inc
@@ -1,5 +1,6 @@
ifeq ($(CONFIG_EC_GOOGLE_WILCO),y)
ramstage-y += chip.c commands.c mailbox.c
+smm-y += commands.c mailbox.c smihandler.c
endif
diff --git a/src/ec/google/wilco/smihandler.c b/src/ec/google/wilco/smihandler.c
new file mode 100644
index 0000000..9fb1518
--- /dev/null
+++ b/src/ec/google/wilco/smihandler.c
@@ -0,0 +1,59 @@
+/*
+ * This file is part of the coreboot project.
+ *
+ * Copyright 2018 Google LLC
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; version 2 of the License.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ */
+
+#include <arch/acpi.h>
+#include <console/console.h>
+#include <cpu/x86/smm.h>
+
+#include "commands.h"
+#include "ec.h"
+#include "smm.h"
+
+void wilco_ec_smi_sleep(int slp_type)
+{
+ switch (slp_type) {
+ case ACPI_S3:
+ wilco_ec_slp_en();
+ break;
+ case ACPI_S5:
+ wilco_ec_power_off(EC_SWOFF_ACPI);
+ break;
+ }
+}
+
+void wilco_ec_smi_apmc(int apmc)
+{
+ switch (apmc) {
+ case APM_CNT_ACPI_ENABLE:
+ wilco_ec_send(KB_ACPI, ACPI_ON);
+ break;
+ case APM_CNT_ACPI_DISABLE:
+ wilco_ec_send(KB_ACPI, ACPI_OFF);
+ break;
+ }
+}
+
+void wilco_ec_smi_espi(void)
+{
+ struct ec_pm_event_state pm;
+
+ if (!wilco_ec_power_smi(&pm)) {
+ printk(BIOS_INFO,
+ "EC SMI: %02x_%02x-%02x_%02x_%02x_%02x_%02x_%02x-%02x",
+ pm.event[0], pm.event[1],
+ pm.state[0], pm.state[1], pm.state[2],
+ pm.state[3], pm.state[4], pm.state[5], pm.hotkey);
+ }
+}
diff --git a/src/ec/google/wilco/smm.h b/src/ec/google/wilco/smm.h
new file mode 100644
index 0000000..1798b79
--- /dev/null
+++ b/src/ec/google/wilco/smm.h
@@ -0,0 +1,23 @@
+/*
+ * This file is part of the coreboot project.
+ *
+ * Copyright 2018 Google LLC
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; version 2 of the License.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ */
+
+#ifndef EC_GOOGLE_WILCO_SMM_H
+#define EC_GOOGLE_WILCO_SMM_H
+
+void wilco_ec_smi_sleep(int slp_type);
+void wilco_ec_smi_apmc(int apmc);
+void wilco_ec_smi_espi(void);
+
+#endif /* EC_GOOGLE_WILCO_SMM_H */
--
To view, visit https://review.coreboot.org/29119
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ibabdc1462e0a8df405f9520244b83684e2ccf2f5
Gerrit-Change-Number: 29119
Gerrit-PatchSet: 1
Gerrit-Owner: Duncan Laurie <dlaurie(a)chromium.org>
Duncan Laurie has uploaded this change for review. ( https://review.coreboot.org/29117
Change subject: ec/google/wilco: Add devicetree chip infrastructure
......................................................................
ec/google/wilco: Add devicetree chip infrastructure
Add a chip_operations structure for Wilco EC and hook it into the device
tree so it can be initialized at boot.
Reserve the device resources specified in Kconfig, which will also
create the device IO windows if they have not been created in bootblock.
If the IO windows already exist (becauase they were specified in the
mainboard devicetree.cb) then this will find the existing entry instead.
During device init stage prepare the keyboard for use, which is required
for it to be functional in firmware and OS with this EC. Also send a
command to the EC telling it to pass the power button through to the
host for processing.
Change-Id: I0adb01cf394f939f4a28aeb47fe4d0bcda5957d9
Signed-off-by: Duncan Laurie <dlaurie(a)google.com>
---
M src/ec/google/wilco/Makefile.inc
A src/ec/google/wilco/chip.c
A src/ec/google/wilco/chip.h
3 files changed, 107 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/17/29117/1
diff --git a/src/ec/google/wilco/Makefile.inc b/src/ec/google/wilco/Makefile.inc
index 68172e3..c011ebf 100644
--- a/src/ec/google/wilco/Makefile.inc
+++ b/src/ec/google/wilco/Makefile.inc
@@ -1,5 +1,5 @@
ifeq ($(CONFIG_EC_GOOGLE_WILCO),y)
-ramstage-y += commands.c mailbox.c
+ramstage-y += chip.c commands.c mailbox.c
endif
diff --git a/src/ec/google/wilco/chip.c b/src/ec/google/wilco/chip.c
new file mode 100644
index 0000000..4e6f4af
--- /dev/null
+++ b/src/ec/google/wilco/chip.c
@@ -0,0 +1,80 @@
+/*
+ * This file is part of the coreboot project.
+ *
+ * Copyright 2018 Google LLC
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; version 2 of the License
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ */
+
+#include <device/pnp.h>
+#include <pc80/keyboard.h>
+#include <stdint.h>
+#include <stdlib.h>
+
+#include "commands.h"
+#include "ec.h"
+#include "chip.h"
+
+static void wilco_ec_init(struct device *dev)
+{
+ if (!dev->enabled)
+ return;
+
+ /* Print EC firmware information */
+ wilco_ec_print_info();
+
+ /* Initialize keyboard, ignore emulated PS/2 mouse */
+ pc_keyboard_init(NO_AUX_DEVICE);
+
+ /* Direct power button to the host for processing */
+ wilco_ec_send(KB_POWER_BUTTON_TO_HOST, 1);
+}
+
+static void wilco_ec_resource(struct device *dev, int index,
+ size_t base, size_t size)
+{
+ struct resource *res = new_resource(dev, index);
+ res->flags = IORESOURCE_IO | IORESOURCE_ASSIGNED | IORESOURCE_FIXED;
+ res->base = base;
+ res->size = size;
+}
+
+static void wilco_ec_read_resources(struct device *dev)
+{
+ /* ACPI command and data regions */
+ wilco_ec_resource(dev, 0, CONFIG_EC_BASE_ACPI_DATA, 8);
+
+ /* Host command and data regions */
+ wilco_ec_resource(dev, 1, CONFIG_EC_BASE_HOST_DATA, 8);
+
+ /* Packet region */
+ wilco_ec_resource(dev, 2, CONFIG_EC_BASE_PACKET, 16);
+}
+
+static struct device_operations ops = {
+ .init = wilco_ec_init,
+ .read_resources = wilco_ec_read_resources,
+ .enable_resources = DEVICE_NOOP,
+ .set_resources = DEVICE_NOOP,
+};
+
+static struct pnp_info info[] = {
+ { NULL, 0, 0, 0, }
+};
+
+static void wilco_ec_enable_dev(struct device *dev)
+{
+ pnp_enable_devices(dev, &ops, ARRAY_SIZE(info), info);
+}
+
+struct chip_operations ec_google_wilco_ops = {
+ CHIP_NAME("Google Wilco EC")
+ .enable_dev = wilco_ec_enable_dev,
+};
diff --git a/src/ec/google/wilco/chip.h b/src/ec/google/wilco/chip.h
new file mode 100644
index 0000000..9b02ee3
--- /dev/null
+++ b/src/ec/google/wilco/chip.h
@@ -0,0 +1,26 @@
+/*
+ * This file is part of the coreboot project.
+ *
+ * Copyright 2018 Google LLC
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; version 2 of the License.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ */
+
+#ifndef EC_GOOGLE_WILCO_CHIP_H
+#define EC_GOOGLE_WILCO_CHIP_H
+
+#include <device/device.h>
+
+extern struct chip_operations ec_google_wilco_ops;
+
+struct ec_google_wilco_config {
+};
+
+#endif /* EC_GOOGLE_WILCO_CHIP_H */
--
To view, visit https://review.coreboot.org/29117
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I0adb01cf394f939f4a28aeb47fe4d0bcda5957d9
Gerrit-Change-Number: 29117
Gerrit-PatchSet: 1
Gerrit-Owner: Duncan Laurie <dlaurie(a)chromium.org>
Duncan Laurie has uploaded this change for review. ( https://review.coreboot.org/29115
Change subject: ec/google/wilco: Add mailbox commands
......................................................................
ec/google/wilco: Add mailbox commands
Add basic supported mailbox commands for this embedded contrlller,
and define some command functions to retrieve and print information
about the EC.
Change-Id: Ibcef7d58e1852fdb2e52b97acd4b51a26dd8cd77
Signed-off-by: Duncan Laurie <dlaurie(a)google.com>
---
M src/ec/google/wilco/Makefile.inc
A src/ec/google/wilco/commands.c
A src/ec/google/wilco/commands.h
3 files changed, 107 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/15/29115/1
diff --git a/src/ec/google/wilco/Makefile.inc b/src/ec/google/wilco/Makefile.inc
index 6130f6f..68172e3 100644
--- a/src/ec/google/wilco/Makefile.inc
+++ b/src/ec/google/wilco/Makefile.inc
@@ -1,5 +1,5 @@
ifeq ($(CONFIG_EC_GOOGLE_WILCO),y)
-ramstage-y += mailbox.c
+ramstage-y += commands.c mailbox.c
endif
diff --git a/src/ec/google/wilco/commands.c b/src/ec/google/wilco/commands.c
new file mode 100644
index 0000000..4cec58b
--- /dev/null
+++ b/src/ec/google/wilco/commands.c
@@ -0,0 +1,52 @@
+/*
+ * This file is part of the coreboot project.
+ *
+ * Copyright 2018 Google LLC
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; version 2 of the License
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ */
+
+#include <console/console.h>
+#include <stdint.h>
+#include <string.h>
+
+#include "ec.h"
+#include "commands.h"
+
+int wilco_ec_get_info(enum get_ec_info_cmd type, char *info)
+{
+ struct ec_response_get_ec_info rsp;
+
+ if (!info)
+ return -1;
+ if (wilco_ec_sendrecv(KB_EC_INFO, type, &rsp, sizeof(rsp)) < 0)
+ return -1;
+
+ /* Copy returned string */
+ strncpy(info, rsp.data, sizeof(rsp));
+ return 0;
+}
+
+void wilco_ec_print_info(void)
+{
+ char info[EC_INFO_MAX_SIZE];
+
+ if (!wilco_ec_get_info(GET_EC_LABEL, info))
+ printk(BIOS_INFO, "EC Label : %s\n", info);
+
+ if (!wilco_ec_get_info(GET_EC_SVN_REV, info))
+ printk(BIOS_INFO, "EC Revision : %s\n", info);
+
+ if (!wilco_ec_get_info(GET_EC_MODEL_NO, info))
+ printk(BIOS_INFO, "EC Model Num : %s\n", info);
+
+ if (!wilco_ec_get_info(GET_EC_BUILD_DATE, info))
+ printk(BIOS_INFO, "EC Build Date : %s\n", info);
+}
diff --git a/src/ec/google/wilco/commands.h b/src/ec/google/wilco/commands.h
new file mode 100644
index 0000000..76949d0
--- /dev/null
+++ b/src/ec/google/wilco/commands.h
@@ -0,0 +1,54 @@
+/*
+ * This file is part of the coreboot project.
+ *
+ * Copyright 2018 Google LLC
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; version 2 of the License.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ */
+
+#ifndef EC_GOOGLE_WILCO_COMMANDS_H
+#define EC_GOOGLE_WILCO_COMMANDS_H
+
+#include <stdint.h>
+
+enum {
+ /* Retrieve information about the EC */
+ KB_EC_INFO = 0x38,
+ /* Set ACPI mode on or off */
+ KB_ACPI = 0x3a,
+ /* Manage the EC power button passthru to the host */
+ KB_POWER_BUTTON_TO_HOST = 0x3e,
+};
+
+enum set_acpi_mode_cmd {
+ ACPI_OFF = 0,
+ ACPI_ON
+};
+
+/*
+ * EC Information
+ */
+
+enum get_ec_info_cmd {
+ GET_EC_LABEL = 0,
+ GET_EC_SVN_REV,
+ GET_EC_MODEL_NO,
+ GET_EC_BUILD_DATE
+};
+
+#define EC_INFO_MAX_SIZE 9
+struct ec_response_get_ec_info {
+ char data[EC_INFO_MAX_SIZE]; /* ascii null-terminated string */
+};
+
+int wilco_ec_get_info(enum get_ec_info_cmd cmd, char *info);
+void wilco_ec_print_info(void);
+
+#endif /* EC_GOOGLE_WILCO_COMMANDS_H */
--
To view, visit https://review.coreboot.org/29115
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ibcef7d58e1852fdb2e52b97acd4b51a26dd8cd77
Gerrit-Change-Number: 29115
Gerrit-PatchSet: 1
Gerrit-Owner: Duncan Laurie <dlaurie(a)chromium.org>