Add command for handling DDR ECC registers on MPC8349EE MDS board.
[oweals/u-boot.git] / rtc / ds1307.c
index 4b6d8acbfa5a2b6b6a63d4df1e9fd70590db2b8c..3b26a0a327ad7f18169969fc0895debfe5b79408 100644 (file)
@@ -52,7 +52,7 @@
 # define CFG_I2C_RTC_ADDR      0x68
 #endif
 
-#if CFG_I2C_SPEED > 100000
+#if defined(CONFIG_RTC_DS1307) && (CFG_I2C_SPEED > 100000)
 # error The DS1307 is specified only up to 100kHz!
 #endif