summaryrefslogtreecommitdiff
path: root/include/asm-ppc/i2c.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-ppc/i2c.h')
-rw-r--r--include/asm-ppc/i2c.h10
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