diff options
author | Myles Watson <mylesgw@chromium.org> | 2014-11-25 15:12:50 -0800 |
---|---|---|
committer | ChromeOS Commit Bot <chromeos-commit-bot@chromium.org> | 2014-12-31 00:01:14 +0000 |
commit | 22f61c45275df8367735eec938863afcc5875791 (patch) | |
tree | 5d4b7b002e01874755f71b0f4a073697b0d230cc /board/hadoken/board.c | |
parent | 362bc01a172d5d123f30e4dd51b539a404375e06 (diff) | |
download | chrome-ec-22f61c45275df8367735eec938863afcc5875791.tar.gz |
hadoken: Enable I2C.
BUG=chrome-os-partner:34477
BRANCH=none
TEST=Used console commands to test access to the fuel gauge.
Signed-off-by: Myles Watson <mylesgw@chromium.org>
Change-Id: Iefcbbfe073dcffa3bfe6224ea8210f39fee563e1
Reviewed-on: https://chromium-review.googlesource.com/234287
Reviewed-by: Randall Spangler <rspangler@chromium.org>
Tested-by: Myles Watson <mylesgw@chromium.org>
Reviewed-by: Alec Berg <alecaberg@chromium.org>
Commit-Queue: Myles Watson <mylesgw@chromium.org>
Diffstat (limited to 'board/hadoken/board.c')
-rw-r--r-- | board/hadoken/board.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/board/hadoken/board.c b/board/hadoken/board.c index 895974efee..24c71882e5 100644 --- a/board/hadoken/board.c +++ b/board/hadoken/board.c @@ -4,9 +4,17 @@ */ #include "gpio.h" #include "registers.h" +#include "i2c.h" #include "util.h" /* To define the gpio_list[] instance. */ #include "gpio_list.h" +/* I2C ports */ +const struct i2c_port_t i2c_ports[] = { + {"master", 0 /*Port*/, 100 /*Kbps*/, GPIO_MCU_SCL, GPIO_MCU_SDA}, +}; + +const unsigned int i2c_ports_used = ARRAY_SIZE(i2c_ports); + |