#define CFG_SYS_WATCHDOG_FREQ (CONFIG_SYS_HZ / 2)
#endif
-#if defined(CFG_MCFTMR)
+#if CONFIG_IS_ENABLED(MCFTMR)
#ifndef CFG_SYS_UDELAY_BASE
# error "uDelay base not defined!"
#endif
return (timestamp - base);
}
-#endif /* CFG_MCFTMR */
+#endif /* CONFIG_MCFTMR */
/*
* This function is derived from PowerPC code (read timebase as long long).