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>
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user