summaryrefslogtreecommitdiff
path: root/include/i2c_peripheral.h
diff options
context:
space:
mode:
authorDossym Nurmukhanov <dossym@google.com>2020-12-12 00:28:36 +0000
committerCommit Bot <commit-bot@chromium.org>2020-12-12 20:15:35 +0000
commitc03b3d8174231562369cd51f3fedf82e75655273 (patch)
tree3f578cf62a7df457fac43531e51fb2af20bcda90 /include/i2c_peripheral.h
parentabd894e1c9e01462ce5cf4cc4691a75f4e1378de (diff)
downloadchrome-ec-c03b3d8174231562369cd51f3fedf82e75655273.tar.gz
COIL: Rename i2c_peripheral files
BUG=none TEST=build and run on volteer BRANCH=none Signed-off-by: dossym@chromium.org Change-Id: I11a75e4954e918b2d4ff575dee14dec621a619b3 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2587226 Reviewed-by: Aseda Aboagye <aaboagye@chromium.org> Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
Diffstat (limited to 'include/i2c_peripheral.h')
-rw-r--r--include/i2c_peripheral.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/include/i2c_peripheral.h b/include/i2c_peripheral.h
new file mode 100644
index 0000000000..3145d4679b
--- /dev/null
+++ b/include/i2c_peripheral.h
@@ -0,0 +1,21 @@
+/* Copyright 2019 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.
+ */
+
+/* I2C slave interface for Chrome EC */
+
+#ifndef __CROS_EC_I2CSLV_H
+#define __CROS_EC_I2CSLV_H
+
+/* Data structure to define I2C slave port configuration. */
+struct i2c_slv_port_t {
+ const char *name; /* Port name */
+ int port; /* Port */
+ uint8_t slave_adr; /* slave address(7-bit without R/W) */
+};
+
+extern const struct i2c_slv_port_t i2c_slv_ports[];
+extern const unsigned int i2c_slvs_used;
+
+#endif /* __CROS_EC_I2CSLV_H */