summaryrefslogtreecommitdiff
path: root/common/host_command.c
diff options
context:
space:
mode:
authorVincent Palatin <vpalatin@chromium.org>2012-05-11 01:11:52 +0000
committerVincent Palatin <vpalatin@chromium.org>2012-05-18 17:57:51 +0000
commit4c5f1365b50c345ea4f34e353cde31499a9190bd (patch)
tree1239615b03925fe915759bb05bf7ffcdb57906f0 /common/host_command.c
parent3e747005b35accb144ddaf4ca5a5142c19f8851b (diff)
downloadchrome-ec-4c5f1365b50c345ea4f34e353cde31499a9190bd.tar.gz
Use common host command processing for Daisy I2C
This also updates the communication protocol between the EC and the AP in a non backward compatible way. Signed-off-by: Vincent Palatin <vpalatin@chromium.org> BUG=chrome-os-partner:9614 TEST=on Daisy with updated kernel driver, use the keyboard in ChromeOS Change-Id: I5a50e9a74b9891153a37ea79318c8a66a1b0c5ca
Diffstat (limited to 'common/host_command.c')
-rw-r--r--common/host_command.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/common/host_command.c b/common/host_command.c
index 7e1a2f53d6..91fcb3af48 100644
--- a/common/host_command.c
+++ b/common/host_command.c
@@ -106,6 +106,7 @@ static int host_command_read_test(uint8_t *data, int *resp_size)
DECLARE_HOST_COMMAND(EC_CMD_READ_TEST, host_command_read_test);
+#ifdef CONFIG_LPC
/* ACPI query event handler. Note that the returned value is NOT actually
* an EC_RES enum; it's 0 if no event was pending, or the 1-based
* index of the lowest bit which was set. */
@@ -126,6 +127,7 @@ static int host_command_acpi_query_event(uint8_t *data, int *resp_size)
}
DECLARE_HOST_COMMAND(EC_CMD_ACPI_QUERY_EVENT,
host_command_acpi_query_event);
+#endif
/* Finds a command by command number. Returns the command structure, or NULL if