diff options
author | Peter Tyser <ptyser@xes-inc.com> | 2009-04-24 15:34:05 -0500 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2009-06-12 20:39:45 +0200 |
commit | 9c90a2c8e87414007a016b7cd099ac1e32fd301b (patch) | |
tree | 0a9426b2bc4bdc28a7c0cbb60eb9aa7653cd17a8 /include/i2c.h | |
parent | e7563aff174f77aa61dab1ef5d9b47bebaa43702 (diff) | |
download | u-boot-imx-9c90a2c8e87414007a016b7cd099ac1e32fd301b.zip u-boot-imx-9c90a2c8e87414007a016b7cd099ac1e32fd301b.tar.gz u-boot-imx-9c90a2c8e87414007a016b7cd099ac1e32fd301b.tar.bz2 |
i2c.h: Provide a default CONFIG_SYS_I2C_SLAVE value
Many boards/controllers/drivers don't support an I2C slave interface,
however CONFIG_SYS_I2C_SLAVE is used in common code so provide a
default
Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
Diffstat (limited to 'include/i2c.h')
-rw-r--r-- | include/i2c.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/include/i2c.h b/include/i2c.h index f8a59a6..668e754 100644 --- a/include/i2c.h +++ b/include/i2c.h @@ -78,16 +78,22 @@ #endif #ifdef CONFIG_8xx -/* Set default values for the I2C bus speed and slave address on 8xx. In the +/* Set default value for the I2C bus speed on 8xx. In the * future, we'll define these in all 8xx board config files. */ #ifndef CONFIG_SYS_I2C_SPEED #define CONFIG_SYS_I2C_SPEED 50000 #endif +#endif +/* + * Many boards/controllers/drivers don't support an I2C slave interface so + * provide a default slave address for them for use in common code. A real + * value for CONFIG_SYS_I2C_SLAVE should be defined for any board which does + * support a slave interface. + */ #ifndef CONFIG_SYS_I2C_SLAVE -#define CONFIG_SYS_I2C_SLAVE 0xFE -#endif +#define CONFIG_SYS_I2C_SLAVE 0xfe #endif /* |