summaryrefslogtreecommitdiff
path: root/include/cros_ec.h
diff options
context:
space:
mode:
authorMoritz Fischer <moritz.fischer@ettus.com>2016-09-27 15:42:07 -0700
committerTom Rini <trini@konsulko.com>2016-10-08 09:33:36 -0400
commit6d1a718fdffc92e5d1622d6892384328f5f73d03 (patch)
tree61ef78f15d2100449ea0e79ba2c52aca92fa30a7 /include/cros_ec.h
parent1053a769fb14ff6824977a42a74a11bc8522a418 (diff)
cros_ec: Honor the google,remote-bus dt property
Boards where ECs that use a I2C port != 0 specify this in the devicetree file via the google,remote-bus property. Previously this was ignored and hardcoded to port 0. Signed-off-by: Moritz Fischer <moritz.fischer@ettus.com> Cc: Simon Glass <sjg@chromium.org> Cc: Heiko Schocher <hs@denx.de> Cc: u-boot@lists.denx.de Acked-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/cros_ec.h')
-rw-r--r--include/cros_ec.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/cros_ec.h b/include/cros_ec.h
index 5fa5f6f782..30b19089b1 100644
--- a/include/cros_ec.h
+++ b/include/cros_ec.h
@@ -395,9 +395,11 @@ struct i2c_msg;
* Tunnel an I2C transfer to the EC
*
* @param dev CROS-EC device
+ * @param port The remote port on EC to use
* @param msg List of messages to transfer
* @param nmsgs Number of messages to transfer
*/
-int cros_ec_i2c_tunnel(struct udevice *dev, struct i2c_msg *msg, int nmsgs);
+int cros_ec_i2c_tunnel(struct udevice *dev, int port, struct i2c_msg *msg,
+ int nmsgs);
#endif