summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRichard Retanubun <RichardRetanubun@RuggedCom.com>2010-04-12 15:08:17 -0400
committerHeiko Schocher <hs@denx.de>2010-04-19 07:46:35 +0200
commit26a33504a55e4882520f2e9da96ba6c22badb353 (patch)
tree42000dcd08814c5b5dbbe9438297e22506daa0e4 /include
parent2a72e9ed18d2164eb7fe569119342eb631b568da (diff)
downloadu-boot-imx-26a33504a55e4882520f2e9da96ba6c22badb353.zip
u-boot-imx-26a33504a55e4882520f2e9da96ba6c22badb353.tar.gz
u-boot-imx-26a33504a55e4882520f2e9da96ba6c22badb353.tar.bz2
fsl_i2c: Added a callpoint for i2c_board_late_init
This patch adds a callpoint in i2c_init that allows board specific i2c board initialization (typically for i2c bus reset) that is called after i2c_init operations, allowing the i2c_board_late_init function to use the pre-configured i2c bus speed and slave address.
Diffstat (limited to 'include')
-rw-r--r--include/i2c.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/i2c.h b/include/i2c.h
index d828964..cd23c8a 100644
--- a/include/i2c.h
+++ b/include/i2c.h
@@ -111,6 +111,9 @@ void i2c_init(int speed, int slaveaddr);
#ifdef CONFIG_SYS_I2C_INIT_BOARD
void i2c_init_board(void);
#endif
+#ifdef CONFIG_SYS_I2C_BOARD_LATE_INIT
+void i2c_board_late_init(void);
+#endif
#if defined(CONFIG_I2C_MUX)