summaryrefslogtreecommitdiff
path: root/board/hammer/board.c
diff options
context:
space:
mode:
authorNicolas Boichat <drinkcat@chromium.org>2017-11-12 18:34:50 -0800
committerchrome-bot <chrome-bot@chromium.org>2017-11-20 23:25:45 -0800
commitcd1f377f16fefc87e9d24290dc281ea193f7732b (patch)
tree7b1bf8fb210336c8644dc38dccd2a19abb6c5279 /board/hammer/board.c
parentb38792b78b35feed9f6a1ff9634e56d7f6a28ecf (diff)
downloadchrome-ec-cd1f377f16fefc87e9d24290dc281ea193f7732b.tar.gz
usb_i2c: Remove usb_i2c_board_enable/disable
These functions are not used by usb_i2c.c on chip/stm32, let's move them to board/cr50 which is the only place where they are used. BRANCH=none BUG=None TEST=make buildall -j Change-Id: I8c1b292838b8dbee9a9001add9332e0add80c342 Signed-off-by: Nicolas Boichat <drinkcat@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/778749 Reviewed-by: Vadim Bendebury <vbendeb@chromium.org> Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Diffstat (limited to 'board/hammer/board.c')
-rw-r--r--board/hammer/board.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/board/hammer/board.c b/board/hammer/board.c
index c6b5fa778b..c32341aa01 100644
--- a/board/hammer/board.c
+++ b/board/hammer/board.c
@@ -54,8 +54,7 @@ const void *const usb_strings[] = {
BUILD_ASSERT(ARRAY_SIZE(usb_strings) == USB_STR_COUNT);
/******************************************************************************
- * Support I2C bridging over USB, this requires usb_i2c_board_enable and
- * usb_i2c_board_disable to be defined to enable and disable the I2C bridge.
+ * Support I2C bridging over USB.
*/
#ifdef SECTION_IS_RW
@@ -78,9 +77,6 @@ const struct pwm_t pwm_channels[] = {
};
BUILD_ASSERT(ARRAY_SIZE(pwm_channels) == PWM_CH_COUNT);
-int usb_i2c_board_enable(void) { return EC_SUCCESS; }
-void usb_i2c_board_disable(void) {}
-
int usb_i2c_board_is_enabled(void)
{
/* Disable I2C passthrough when the system is locked */