]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
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 71b053d4d6e90af612f72437de498bd7c6a3749e..cf29559e7144b31e9df46b640c1d2775e8bd38e6 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 585216d6e6f6ed51132091f42df8970b17e101de..e07748bd802e5b7aa6d06c9d7a7b1013b6ef569d 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;