diff options
author | Timur Tabi <timur@freescale.com> | 2006-10-31 21:23:16 -0600 |
---|---|---|
committer | Kim Phillips <kim.phillips@freescale.com> | 2006-11-03 19:42:22 -0600 |
commit | 9ca880a250870a7d55754291b5591d2b5fe89b54 (patch) | |
tree | bfef7c3013d3423222e2af4522b3341f42398f8e /include/asm-ppc | |
parent | ac4b5622ce050b5ee1e154b98df630d778661632 (diff) | |
download | u-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/asm-ppc')
-rw-r--r-- | include/asm-ppc/i2c.h | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/include/asm-ppc/i2c.h b/include/asm-ppc/i2c.h index baf9d9a..8afdda2 100644 --- a/include/asm-ppc/i2c.h +++ b/include/asm-ppc/i2c.h @@ -79,12 +79,6 @@ typedef struct i2c #endif #define I2C_TIMEOUT (CFG_HZ/4) -enum I2C_BUS_NUM -{ - I2C_BUS_1 = 0, - I2C_BUS_2, -}; - #ifndef CFG_IMMRBAR #error CFG_IMMRBAR is not defined in /include/configs/${BOARD}.h #endif @@ -96,9 +90,9 @@ enum I2C_BUS_NUM #define I2C_1 ((i2c_t*)(CFG_IMMRBAR + CFG_I2C_OFFSET)) /* Optional support for second I2C bus */ -#ifdef CFG_I2C2_OFFSET +#ifdef CFG_I2C2_OFFSET #define I2C_2 ((i2c_t*)(CFG_IMMRBAR + CFG_I2C2_OFFSET)) -#endif /* CFG_I2C2_OFFSET */ +#endif /* CFG_I2C2_OFFSET */ #define I2C_READ 1 #define I2C_WRITE 0 |