summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/arm/imx/include/bsp.h
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2017-09-29 10:43:03 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2017-10-02 13:40:56 +0200
commitf043b9bd3bf25626fb1a311dd7fa041eacc68adc (patch)
treece0648c5c47cde734500581cf4d04ac2c58fd708 /c/src/lib/libbsp/arm/imx/include/bsp.h
parentbsp/imx: Fix I2C register header (diff)
downloadrtems-f043b9bd3bf25626fb1a311dd7fa041eacc68adc.tar.bz2
bsp/imx: Add I2C bus driver
Update #3090.
Diffstat (limited to 'c/src/lib/libbsp/arm/imx/include/bsp.h')
-rw-r--r--c/src/lib/libbsp/arm/imx/include/bsp.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/c/src/lib/libbsp/arm/imx/include/bsp.h b/c/src/lib/libbsp/arm/imx/include/bsp.h
index 08b3127dba..e4debf2a14 100644
--- a/c/src/lib/libbsp/arm/imx/include/bsp.h
+++ b/c/src/lib/libbsp/arm/imx/include/bsp.h
@@ -49,6 +49,17 @@ rtems_vector_number imx_get_irq_of_node(
size_t index
);
+/**
+ * @brief Registers an IMX I2C bus driver.
+ *
+ * @param[in] bus_path The I2C bus driver device path, e.g. "/dev/i2c-0".
+ * @param[in] alias_or_path The FDT alias or path, e.g. "i2c0".
+ *
+ * @retval 0 Successful operation.
+ * @retval -1 An error occurred. The errno is set to indicate the error.
+ */
+int i2c_bus_register_imx(const char *bus_path, const char *alias_or_path);
+
#ifdef __cplusplus
}
#endif /* __cplusplus */