diff options
Diffstat (limited to 'include/i2c.h')
-rw-r--r-- | include/i2c.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/i2c.h b/include/i2c.h index 8ae21566cb..1dcfe46332 100644 --- a/include/i2c.h +++ b/include/i2c.h @@ -361,6 +361,16 @@ void i2cm_init(void); int board_allow_i2c_passthru(int port); /** + * Board level function that can indicate if a particular i2c bus is known to be + * currently powered or not. + * + * @param port: I2C port number + * + * @return non-zero if powered, 0 if the bus is not powered. + */ +int board_is_i2c_port_powered(int port); + +/** * Function to allow board to take any action before starting a new i2c * transaction on a given port. Board must implement this if it defines * CONFIG_I2C_XFER_BOARD_CALLBACK. |