summaryrefslogtreecommitdiff
path: root/include/i2c.h
diff options
context:
space:
mode:
authorTimur Tabi <timur@freescale.com>2006-10-31 21:23:16 -0600
committerKim Phillips <kim.phillips@freescale.com>2006-11-03 19:42:22 -0600
commit9ca880a250870a7d55754291b5591d2b5fe89b54 (patch)
treebfef7c3013d3423222e2af4522b3341f42398f8e /include/i2c.h
parentac4b5622ce050b5ee1e154b98df630d778661632 (diff)
downloadu-boot-imx-9ca880a250870a7d55754291b5591d2b5fe89b54.zip
u-boot-imx-9ca880a250870a7d55754291b5591d2b5fe89b54.tar.gz
u-boot-imx-9ca880a250870a7d55754291b5591d2b5fe89b54.tar.bz2
mpc83xx: Fix dual I2C support for the MPC8349ITX, MPC8349EMDS, TQM834x, and MPC8360EMDS
This patch also adds an improved I2C set_speed(), which handles all clock frequencies. Signed-off-by: Timur Tabi <timur@freescale.com>
Diffstat (limited to 'include/i2c.h')
-rw-r--r--include/i2c.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/i2c.h b/include/i2c.h
index 97e0061..a8f729a 100644
--- a/include/i2c.h
+++ b/include/i2c.h
@@ -97,7 +97,7 @@ void i2c_reg_write(uchar chip, uchar reg, uchar val);
* Returns: 0 on success, not 0 on failure
*
*/
-int i2c_set_bus_num(uchar bus);
+int i2c_set_bus_num(unsigned int bus);
/*
* i2c_get_bus_num:
@@ -105,7 +105,7 @@ int i2c_set_bus_num(uchar bus);
* Returns index of currently active I2C bus. Zero-based.
*/
-uchar i2c_get_bus_num(void);
+unsigned int i2c_get_bus_num(void);
/*
* i2c_set_bus_speed:
@@ -117,7 +117,7 @@ uchar i2c_get_bus_num(void);
* Returns: 0 on success, not 0 on failure
*
*/
-int i2c_set_bus_speed(int);
+int i2c_set_bus_speed(unsigned int);
/*
* i2c_get_bus_speed:
@@ -125,6 +125,6 @@ int i2c_set_bus_speed(int);
* Returns speed of currently active I2C bus in Hz
*/
-int i2c_get_bus_speed(void);
+unsigned int i2c_get_bus_speed(void);
#endif /* _I2C_H_ */