summaryrefslogtreecommitdiff
path: root/include/configs/omap3_overo.h
diff options
context:
space:
mode:
authorManikandan Pillai <mani.pillai@ti.com>2009-04-21 17:29:05 +0200
committerWolfgang Denk <wd@denx.de>2009-04-30 23:56:01 +0200
commitd3a513c23ba4100d6983161cdc1f747dfd087bbd (patch)
treec14a0214a8b84b28094385b8cc2d285ca4f6e260 /include/configs/omap3_overo.h
parent9d5e4d368129ae343ebdd340859ab144e2fb87c4 (diff)
downloadu-boot-imx-d3a513c23ba4100d6983161cdc1f747dfd087bbd.zip
u-boot-imx-d3a513c23ba4100d6983161cdc1f747dfd087bbd.tar.gz
u-boot-imx-d3a513c23ba4100d6983161cdc1f747dfd087bbd.tar.bz2
OMAP3: Fix timer handling to 1ms and CONFIG_SYS_HZ to 1000
Signed-off-by: Dirk Behme <dirk.behme@googlemail.com> Signed-off-by: Manikandan Pillai <mani.pillai@ti.com>
Diffstat (limited to 'include/configs/omap3_overo.h')
-rw-r--r--include/configs/omap3_overo.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/include/configs/omap3_overo.h b/include/configs/omap3_overo.h
index d941497..8902312 100644
--- a/include/configs/omap3_overo.h
+++ b/include/configs/omap3_overo.h
@@ -201,14 +201,14 @@
#define CONFIG_SYS_LOAD_ADDR (OMAP34XX_SDRC_CS0) /* default load */
/* address */
-
/*
- * 2430 has 12 GP timers, they can be driven by the SysClk (12/13/19.2) or by
- * 32KHz clk, or from external sig. This rate is divided by a local divisor.
+ * OMAP3 has 12 GP timers, they can be driven by the system clock
+ * (12/13/16.8/19.2/38.4MHz) or by 32KHz clock. We use 13MHz (V_SCLK).
+ * This rate is divided by a local divisor.
*/
-#define CONFIG_SYS_TIMERBASE (OMAP34XX_GPT2)
-#define CONFIG_SYS_PTV 7 /* 2^(PTV+1) */
-#define CONFIG_SYS_HZ ((V_SCLK) / (2 << CONFIG_SYS_PTV))
+#define CONFIG_SYS_TIMERBASE OMAP34XX_GPT2
+#define CONFIG_SYS_PTV 2 /* Divisor: 2^(PTV+1) => 8 */
+#define CONFIG_SYS_HZ 1000
/*-----------------------------------------------------------------------
* Stack sizes