]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
set GPTCR_M24EN when using 24MHz as clock source on i.MX6DL
authorLothar Waßmann <LW@KARO-electronics.de>
Mon, 22 Jul 2013 09:46:39 +0000 (11:46 +0200)
committerLothar Waßmann <LW@KARO-electronics.de>
Mon, 22 Jul 2013 09:46:39 +0000 (11:46 +0200)
arch/arm/imx-common/timer.c

index 6b6c3368bf5188fcea7c8906560ba3264db31658..bf1810264190f11c255fce4a813a6c3bd0db3d63 100644 (file)
@@ -48,9 +48,12 @@ static struct mxc_gpt *cur_gpt = (struct mxc_gpt *)GPT1_BASE_ADDR;
 #define GPTCR_CLKSOURCE_IPG    (1 << 6)        /* Clock source */
 #define GPTCR_CLKSOURCE_CKIH   (2 << 6)
 #define GPTCR_CLKSOURCE_32kHz  (4 << 6)
-#ifdef CONFIG_MX6
-#define GPTCR_CLKSOURCE_OSC_DIV_8      (5 << 6)
+#if defined(CONFIG_MX6Q)
+#define GPTCR_CLKSOURCE_OSCDIV8        (5 << 6)
 #define GPTCR_CLKSOURCE_OSC    (7 << 6)
+#elif defined(CONFIG_MX6DL)
+#define GPTCR_M24EN            (1 << 10)
+#define GPTCR_CLKSOURCE_OSC    ((5 << 6) | GPTCR_M24EN)
 #else
 #define GPTCR_CLKSOURCE_OSC    (5 << 6)
 #endif