diff options
author | Mike Frysinger <vapier@gentoo.org> | 2010-06-08 16:18:00 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2010-07-13 17:50:52 -0400 |
commit | 787e343b91be62375001b80ee8b70f1594fdfc57 (patch) | |
tree | 2f89fa9326595f5665f25c7e4f1a481d56050692 /include/configs/bfin_adi_common.h | |
parent | bbf4fbb6cc3d1384a9008f1772aa157c4809df3a (diff) | |
download | u-boot-imx-787e343b91be62375001b80ee8b70f1594fdfc57.zip u-boot-imx-787e343b91be62375001b80ee8b70f1594fdfc57.tar.gz u-boot-imx-787e343b91be62375001b80ee8b70f1594fdfc57.tar.bz2 |
Blackfin: unify default I2C settings for ADI boards
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Acked-by: Heiko Schocher <hs@denx.de>
Diffstat (limited to 'include/configs/bfin_adi_common.h')
-rw-r--r-- | include/configs/bfin_adi_common.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/configs/bfin_adi_common.h b/include/configs/bfin_adi_common.h index 82daeb1..57a7309 100644 --- a/include/configs/bfin_adi_common.h +++ b/include/configs/bfin_adi_common.h @@ -252,6 +252,18 @@ #endif /* + * I2C Settings + */ +#if defined(CONFIG_HARD_I2C) || defined(CONFIG_SOFT_I2C) +# ifndef CONFIG_SYS_I2C_SPEED +# define CONFIG_SYS_I2C_SPEED 50000 +# endif +# ifndef CONFIG_SYS_I2C_SLAVE +# define CONFIG_SYS_I2C_SLAVE 0 +# endif +#endif + +/* * Misc Settings */ #define CONFIG_BFIN_SPI_GPIO_CS /* Only matters if BFIN_SPI is enabled */ |