summaryrefslogtreecommitdiff
path: root/chip/stm32/usb_dwc_i2c.h
diff options
context:
space:
mode:
authorRuben Rodriguez Buchillon <coconutruben@chromium.org>2018-05-05 18:32:12 +0800
committerchrome-bot <chrome-bot@chromium.org>2018-05-21 18:19:29 -0700
commitcb4338e289389d699f26204c73aede4e24dd296e (patch)
treeb9e0cc1882811a49ca36e72d3698e7a327cb1ff3 /chip/stm32/usb_dwc_i2c.h
parente633c3c7dbc28cf92ae541f1426d0dac7a80901d (diff)
downloadchrome-ec-cb4338e289389d699f26204c73aede4e24dd296e.tar.gz
sweetberry: expose i2c over usb
Expose the i2c interface through usb so that we can read power rails through servod leveraging the work being done there. BRANCH=none BUG=chromium:806148 TEST=manual testing - powerlog still works - i2c over usb using servod code works (other CLs needed) Change-Id: I48876bc4839509a397ce77376b337c37c556ae40 Signed-off-by: Ruben Rodriguez Buchillon <coconutruben@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/1051136 Reviewed-by: Nick Sanders <nsanders@chromium.org>
Diffstat (limited to 'chip/stm32/usb_dwc_i2c.h')
-rw-r--r--chip/stm32/usb_dwc_i2c.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/chip/stm32/usb_dwc_i2c.h b/chip/stm32/usb_dwc_i2c.h
new file mode 100644
index 0000000000..e44002268a
--- /dev/null
+++ b/chip/stm32/usb_dwc_i2c.h
@@ -0,0 +1,13 @@
+/* Copyright 2018 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.
+ */
+
+#ifndef __CROS_EC_USB_DWC_I2C_H
+#define __CROS_EC_USB_DWC_I2C_H
+#include "usb_i2c.h"
+
+/* I2C over USB interface. This gets declared in usb_i2c.c */
+extern struct dwc_usb_ep i2c_usb__ep_ctl;
+
+#endif /* __CROS_EC_USB_DWC_I2C_H */