[U-Boot-Users] error: `CFG_RTC_BUS_NUM' undeclared

Kim Phillips kim.phillips at freescale.com
Thu Mar 1 01:21:47 CET 2007

The code introduced with your patch "[PATCH] I2C: Add support for multiple I2C busses for RTC & DTT":


breaks board builds that don't define CFG_RTC_BUS_NUM but do define
CFG_CMD_DATE (such as the MPC8349EMDS):

cmd_date.c: In function `do_date':
cmd_date.c:52: error: `CFG_RTC_BUS_NUM' undeclared (first use in this function)

CFG_RTC_BUS_NUM needs to either be protected, or forced to 0 if undefined, or even enforce that all boards that define CMD_DATE also define the RTC bus.  Let me know how you want to proceed.


More information about the U-Boot mailing list