summaryrefslogtreecommitdiffstats
path: root/include/cros_ec.h
diff options
context:
space:
mode:
authorRandall Spangler <rspangler@chromium.org>2014-02-27 13:26:08 -0700
committerSimon Glass <sjg@chromium.org>2014-03-17 20:05:47 -0600
commite8c12662364fbcf5ea917d341f707534c8574900 (patch)
tree92b10bee92329f51223785449ba781c9cdbaee74 /include/cros_ec.h
parent836bb6e8277aaa8f0f86e39b0c38b207d32723d9 (diff)
downloadblackbird-obmc-uboot-e8c12662364fbcf5ea917d341f707534c8574900.tar.gz
blackbird-obmc-uboot-e8c12662364fbcf5ea917d341f707534c8574900.zip
cros_ec: Clean up multiple EC protocol support
Version 1 protocols (without command version) were already no longer supported in cros_ec.c. This removes some dead code from the cros_ec_i2c driver. Version 2 protcols (with command version) are now called protocol_version=2, instead of cmd_version_is_supported=1. A subsequent change will introduce protocol version 3 for SPI. Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Randall Spangler <rspangler@chromium.org> Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/cros_ec.h')
-rw-r--r--include/cros_ec.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/include/cros_ec.h b/include/cros_ec.h
index 31661329fd..1199d92335 100644
--- a/include/cros_ec.h
+++ b/include/cros_ec.h
@@ -33,7 +33,7 @@ struct cros_ec_dev {
unsigned int bus_num; /* Bus number (for I2C) */
unsigned int max_frequency; /* Maximum interface frequency */
struct fdt_gpio_state ec_int; /* GPIO used as EC interrupt line */
- int cmd_version_is_supported; /* Device supports command versions */
+ int protocol_version; /* Protocol version to use */
int optimise_flash_write; /* Don't write erased flash blocks */
/*
@@ -260,8 +260,7 @@ int cros_ec_spi_decode_fdt(struct cros_ec_dev *dev, const void *blob);
* Check whether the LPC interface supports new-style commands.
*
* LPC has its own way of doing this, which involves checking LPC values
- * visible to the host. Do this, and update dev->cmd_version_is_supported
- * accordingly.
+ * visible to the host. Do this, and update dev->protocol_version accordingly.
*
* @param dev CROS-EC device to check
*/
OpenPOWER on IntegriCloud