From: Stefan Roese Date: Thu, 1 Mar 2007 06:03:25 +0000 (+0100) Subject: [PATCH] I2C: Add missing default CFG_RTC_BUS_NUM & CFG_DTT_BUS_NUM X-Git-Tag: v2025.01-rc5-pxa1908~22833^2 X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=8c12045a3b06c5b6675d3fe02fbc9f545988129a;p=u-boot.git [PATCH] I2C: Add missing default CFG_RTC_BUS_NUM & CFG_DTT_BUS_NUM Signed-off-by: Stefan Roese --- diff --git a/include/i2c.h b/include/i2c.h index 54c6f9fbc6..d31c72d247 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.