Files
OpenCellular/board/hadoken/board.c
Myles Watson 22f61c4527 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>
2014-12-31 00:01:14 +00:00

21 lines
507 B
C

/* Copyright (c) 2014 The Chromium OS Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#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);