From 6d1a718fdffc92e5d1622d6892384328f5f73d03 Mon Sep 17 00:00:00 2001 From: Moritz Fischer Date: Tue, 27 Sep 2016 15:42:07 -0700 Subject: 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 Cc: Simon Glass Cc: Heiko Schocher Cc: u-boot@lists.denx.de Acked-by: Simon Glass --- include/cros_ec.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/cros_ec.h b/include/cros_ec.h index 5fa5f6f782a..30b19089b14 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 -- cgit v1.2.3