diff options
author | Randall Spangler <rspangler@chromium.org> | 2013-04-26 14:36:38 -0700 |
---|---|---|
committer | ChromeBot <chrome-bot@google.com> | 2013-04-30 11:45:52 -0700 |
commit | 0a6b7620d6b4ba1a50500a75db3e76162eac5ce0 (patch) | |
tree | 8f55cf2a2ee6469981bd27924349bf80de0f295e /board/daisy/board.c | |
parent | c08e0ade765bf69fb9ab3f62305a84a4d3d34c1d (diff) | |
download | chrome-ec-0a6b7620d6b4ba1a50500a75db3e76162eac5ce0.tar.gz |
Move i2cread and i2cwrite functions to i2c_common
Also moves the handy i2cscan command to i2c_common. The
platform-dependent interface is now i2c_xfer().
Still more to do in follow-up CLs; for example, i2c_read_string() has
platform-dependent implementation, and the i2c/i2cread console
commands aren't common yet.
BUG=chrome-os-partner:18969
BRANCH=none
TEST=i2cscan on link, spring
Change-Id: Ia53d57beaa157bece293a4262257e20b4107589e
Signed-off-by: Randall Spangler <rspangler@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/49492
Reviewed-by: Simon Glass <sjg@chromium.org>
Commit-Queue: Daniel Erat <derat@chromium.org>
Commit-Queue: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'board/daisy/board.c')
-rw-r--r-- | board/daisy/board.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/board/daisy/board.c b/board/daisy/board.c index 0961df5a2f..72f601abb1 100644 --- a/board/daisy/board.c +++ b/board/daisy/board.c @@ -96,6 +96,12 @@ const struct gpio_info gpio_list[GPIO_COUNT] = { {"KB_OUT12", GPIO_C, (1<<7), GPIO_KB_OUTPUT, NULL}, }; +/* I2C ports */ +const struct i2c_port_t i2c_ports[I2C_PORTS_USED] = { + {"0", 0, 100}, + {"1", 1, 100}, +}; + /* Auto detect I2C host port * Daisy board has two I2C ports, I2C1(0) and I2C2(1), that can be configured * as host. PMU chip is connected directly to the EC, and hence can be used |