diff options
author | Albert ARIBAUD <albert.u.boot@aribaud.net> | 2013-01-14 15:21:00 +0100 |
---|---|---|
committer | Albert ARIBAUD <albert.u.boot@aribaud.net> | 2013-01-14 15:21:00 +0100 |
commit | 1199c377cf14c240b903e351ab02b3b2cd3800c6 (patch) | |
tree | 8ea274860fc5d3d7a011c2896d865b6976008384 /include/i2c.h | |
parent | 961ffc7759b703e1c574280267e705f2e5f54432 (diff) | |
parent | e4660e0b7363cdc86519f4af2143b841592a7ffd (diff) |
Merge branch 'u-boot-samsung/master' into 'u-boot-arm/master'
Diffstat (limited to 'include/i2c.h')
-rw-r--r-- | include/i2c.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/include/i2c.h b/include/i2c.h index 16f099d2ee..c60d07583b 100644 --- a/include/i2c.h +++ b/include/i2c.h @@ -262,4 +262,30 @@ extern int get_multi_scl_pin(void); extern int get_multi_sda_pin(void); extern int multi_i2c_init(void); #endif + +/** + * Get FDT values for i2c bus. + * + * @param blob Device tree blbo + * @return the number of I2C bus + */ +void board_i2c_init(const void *blob); + +/** + * Find the I2C bus number by given a FDT I2C node. + * + * @param blob Device tree blbo + * @param node FDT I2C node to find + * @return the number of I2C bus (zero based), or -1 on error + */ +int i2c_get_bus_num_fdt(int node); + +/** + * Reset the I2C bus represented by the given a FDT I2C node. + * + * @param blob Device tree blbo + * @param node FDT I2C node to find + * @return 0 if port was reset, -1 if not found + */ +int i2c_reset_port_fdt(const void *blob, int node); #endif /* _I2C_H_ */ |