cros_ec: Honor the google,remote-bus dt property
authorMoritz Fischer <moritz.fischer@ettus.com>
Tue, 27 Sep 2016 22:42:07 +0000 (15:42 -0700)
committerTom Rini <trini@konsulko.com>
Sat, 8 Oct 2016 13:33:36 +0000 (09:33 -0400)
commit6d1a718fdffc92e5d1622d6892384328f5f73d03
tree61ef78f15d2100449ea0e79ba2c52aca92fa30a7
parent1053a769fb14ff6824977a42a74a11bc8522a418
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>
drivers/i2c/cros_ec_tunnel.c
drivers/misc/cros_ec.c
include/cros_ec.h