diff options
author | Randall Spangler <rspangler@chromium.org> | 2013-03-19 13:40:59 -0700 |
---|---|---|
committer | ChromeBot <chrome-bot@google.com> | 2013-03-20 15:23:29 -0700 |
commit | 34e17d4c05ccc4ad48b0a717aebcf278c97f1a79 (patch) | |
tree | 6afb325abc859c8e99ea9b5d7ced633557a0bde4 /include/i2c.h | |
parent | 19920f1f74f07e00160f4bb817d756f2af024744 (diff) | |
download | chrome-ec-34e17d4c05ccc4ad48b0a717aebcf278c97f1a79.tar.gz |
Move I2C arbitration to its own file
It's only board-specific in that we've only needed it on snow so far.
But by that logic, x86_power would be board specific because we've
only needed it on link.
No functionality change, just moving code between files and renaming
the interface to indicate it's not board-specific.
BUG=chrome-os-partner:18343
BRANCH=none
TEST=build daisy,snow,spring
Change-Id: I35debdaa71829d55a2fbc5d3c62b2aaf6e467633
Signed-off-by: Randall Spangler <rspangler@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/45879
Diffstat (limited to 'include/i2c.h')
-rw-r--r-- | include/i2c.h | 30 |
1 files changed, 1 insertions, 29 deletions
diff --git a/include/i2c.h b/include/i2c.h index dbf933e102..d14008a2d0 100644 --- a/include/i2c.h +++ b/include/i2c.h @@ -1,4 +1,4 @@ -/* Copyright (c) 2012 The Chromium OS Authors. All rights reserved. +/* Copyright (c) 2013 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. */ @@ -48,32 +48,4 @@ int i2c_write8(int port, int slave_addr, int offset, int data); int i2c_read_string(int port, int slave_addr, int offset, uint8_t *data, int len); -/** - * Claim an I2C port for use in master mode - * - * If this function succeed, then you must later call board_i2c_release() - * to release the claim. - * - * This function may optionally be implemented by a board file. If provided - * then it should check the port number and arbitrate as needed. - * - * This function will not be called to claim an already-claimed port. - * - * @param port Port to claim (0 for first, 1 for second, etc.) - * @return 0 if claimed successfully, -1 if it is in use - */ -int board_i2c_claim(int port); - -/** - * Release an I2C port (after previously being claimed) - * - * This function may optionally be implemented by a board file. If provided - * then it should check the port number and arbitrate as needed. - * - * This function will not be called to release an already-released port. - * - * @param port Port to claim (0 for first, 1 for second, etc.) - */ -void board_i2c_release(int port); - #endif /* __CROS_EC_I2C_H */ |