summaryrefslogtreecommitdiff
path: root/include/configs/bfin_adi_common.h
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2010-06-08 16:18:00 -0400
committerMike Frysinger <vapier@gentoo.org>2010-07-13 17:50:52 -0400
commit787e343b91be62375001b80ee8b70f1594fdfc57 (patch)
tree2f89fa9326595f5665f25c7e4f1a481d56050692 /include/configs/bfin_adi_common.h
parentbbf4fbb6cc3d1384a9008f1772aa157c4809df3a (diff)
downloadu-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.h12
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 */