mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-10 17:41:54 +00:00
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>
21 lines
507 B
C
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);
|
|
|