From 0a6b7620d6b4ba1a50500a75db3e76162eac5ce0 Mon Sep 17 00:00:00 2001 From: Randall Spangler Date: Fri, 26 Apr 2013 14:36:38 -0700 Subject: 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 Reviewed-on: https://gerrit.chromium.org/gerrit/49492 Reviewed-by: Simon Glass Commit-Queue: Daniel Erat Commit-Queue: Simon Glass --- board/daisy/board.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'board/daisy/board.c') 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 -- cgit v1.2.1