summaryrefslogtreecommitdiff
path: root/board
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 /board
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 'board')
-rw-r--r--board/daisy/board.h3
-rw-r--r--board/daisy/ec.tasklist3
-rw-r--r--board/snow/board.h3
-rw-r--r--board/snow/ec.tasklist3
4 files changed, 8 insertions, 4 deletions
diff --git a/board/daisy/board.h b/board/daisy/board.h
index deb8de1e14..b3a9588a37 100644
--- a/board/daisy/board.h
+++ b/board/daisy/board.h
@@ -17,6 +17,9 @@
/* support programming on-chip flash */
#define CONFIG_FLASH
+/* use I2C for host communication */
+#define CONFIG_I2C
+
/* By default, enable all console messages except keyboard */
#define CC_DEFAULT (CC_ALL & ~CC_MASK(CC_KEYSCAN))
diff --git a/board/daisy/ec.tasklist b/board/daisy/ec.tasklist
index 9a14c9098a..24b151ba87 100644
--- a/board/daisy/ec.tasklist
+++ b/board/daisy/ec.tasklist
@@ -18,5 +18,4 @@
TASK(KEYSCAN, keyboard_scan_task, NULL) \
TASK(GAIAPOWER, gaia_power_task, NULL) \
TASK(CONSOLE, console_task, NULL) \
- TASK(SPI_WORK, spi_work_task, NULL) \
- TASK(I2C2_WORK, i2c2_work_task, NULL)
+ TASK(HOSTCMD, host_command_task, NULL)
diff --git a/board/snow/board.h b/board/snow/board.h
index 7d4a1fd3b5..67156dc0ec 100644
--- a/board/snow/board.h
+++ b/board/snow/board.h
@@ -14,6 +14,9 @@
/* Use USART1 as console serial port */
#define CONFIG_CONSOLE_UART 1
+/* use I2C for host communication */
+#define CONFIG_I2C
+
#define USB_CHARGE_PORT_COUNT 0
/* EC drives 13 outputs to keyboard matrix */
diff --git a/board/snow/ec.tasklist b/board/snow/ec.tasklist
index 9a14c9098a..24b151ba87 100644
--- a/board/snow/ec.tasklist
+++ b/board/snow/ec.tasklist
@@ -18,5 +18,4 @@
TASK(KEYSCAN, keyboard_scan_task, NULL) \
TASK(GAIAPOWER, gaia_power_task, NULL) \
TASK(CONSOLE, console_task, NULL) \
- TASK(SPI_WORK, spi_work_task, NULL) \
- TASK(I2C2_WORK, i2c2_work_task, NULL)
+ TASK(HOSTCMD, host_command_task, NULL)