aboutsummaryrefslogtreecommitdiff
path: root/include/i2c.h
diff options
context:
space:
mode:
authorStefan Roese <sr@denx.de>2007-03-01 07:03:25 +0100
committerStefan Roese <sr@denx.de>2007-03-01 07:03:25 +0100
commit8c12045a3b06c5b6675d3fe02fbc9f545988129a (patch)
tree1be6aa3d773a9dddb80655f66ad95aee054d618c /include/i2c.h
parent743571145b37182757d4e688a77860b36ee77573 (diff)
downloadu-boot-8c12045a3b06c5b6675d3fe02fbc9f545988129a.zip
u-boot-8c12045a3b06c5b6675d3fe02fbc9f545988129a.tar.gz
u-boot-8c12045a3b06c5b6675d3fe02fbc9f545988129a.tar.bz2
[PATCH] I2C: Add missing default CFG_RTC_BUS_NUM & CFG_DTT_BUS_NUM
Signed-off-by: Stefan Roese <sr@denx.de>
Diffstat (limited to 'include/i2c.h')
-rw-r--r--include/i2c.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/i2c.h b/include/i2c.h
index 54c6f9f..d31c72d 100644
--- a/include/i2c.h
+++ b/include/i2c.h
@@ -56,6 +56,14 @@
#define I2C_SET_BUS(a)
#endif
+/* define the I2C bus number for RTC and DTT if not already done */
+#if !defined(CFG_RTC_BUS_NUM)
+#define CFG_RTC_BUS_NUM 0
+#endif
+#if !defined(CFG_DTT_BUS_NUM)
+#define CFG_DTT_BUS_NUM 0
+#endif
+
/*
* Initialization, must be called once on start up, may be called
* repeatedly to change the speed and slave addresses.