Przeglądaj źródła

[PATCH] I2C: Add missing default CFG_RTC_BUS_NUM & CFG_DTT_BUS_NUM

Signed-off-by: Stefan Roese <sr@denx.de>
Stefan Roese 18 lat temu
rodzic
commit
8c12045a3b
1 zmienionych plików z 8 dodań i 0 usunięć
  1. 8 0
      include/i2c.h

+ 8 - 0
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.