ColdFire: Fix incorrect define for mcf5227x and mcf5445x RTC
authorTsiChung Liew <Tsi-Chung.Liew@freescale.com>
Wed, 9 Jul 2008 20:47:27 +0000 (15:47 -0500)
committerJohn Rigby <jrigby@freescale.com>
Fri, 11 Jul 2008 16:45:59 +0000 (10:45 -0600)
Rename CONFIG_MCFTMR to CONFIG_MCFRTC to include real time
clock module in cpu/<cf arch>/cpu_init.c

Signed-off-by: TsiChung Liew <Tsi-Chung.Liew@freescale.com>
cpu/mcf5227x/cpu_init.c
cpu/mcf5445x/cpu_init.c

index 71b053d..cf29559 100644 (file)
@@ -106,7 +106,7 @@ void cpu_init_f(void)
  */
 int cpu_init_r(void)
 {
-#ifdef CONFIG_MCFTMR
+#ifdef CONFIG_MCFRTC
        volatile rtc_t *rtc = (volatile rtc_t *)(CFG_MCFRTC_BASE);
        volatile rtcex_t *rtcex = (volatile rtcex_t *)&rtc->extended;
        u32 oscillator = CFG_RTC_OSCILLATOR;
index 585216d..e07748b 100644 (file)
@@ -110,7 +110,7 @@ void cpu_init_f(void)
  */
 int cpu_init_r(void)
 {
-#ifdef CONFIG_MCFTMR
+#ifdef CONFIG_MCFRTC
        volatile rtc_t *rtc = (volatile rtc_t *)(CFG_MCFRTC_BASE);
        volatile rtcex_t *rtcex = (volatile rtcex_t *)&rtc->extended;