aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/plat-nomadik/include/plat/mtu.h
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@stericsson.com>2010-06-01 08:26:49 +0100
committerRussell King <rmk+kernel@arm.linux.org.uk>2010-06-16 22:29:31 +0100
commit2917947a673763be5f94313a59e5f28ee01b3d9d (patch)
tree7cf356130bf1cf94c9ca26494ae5fd92a14073b3 /arch/arm/plat-nomadik/include/plat/mtu.h
parentARM: 6177/1: nomadik-gpio: fix "ignoring return value" warning (diff)
downloadlinux-dev-2917947a673763be5f94313a59e5f28ee01b3d9d.tar.xz
linux-dev-2917947a673763be5f94313a59e5f28ee01b3d9d.zip
ARM: 6153/1: nomadik MTU to use dynamic shift and mult assignment
This removes the hard-coded shift values for the MTU timer, since the different platforms using this has very different running frequencies doing this dynamically is a better idea. Also take this opportunity to make a more through shutdown of the MTU clockevent when requested. Acked-by: Alessandro Rubini <rubini@unipv.it> Signed-off-by: Linus Walleij <linus.walleij@stericsson.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/plat-nomadik/include/plat/mtu.h')
-rw-r--r--arch/arm/plat-nomadik/include/plat/mtu.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/arm/plat-nomadik/include/plat/mtu.h b/arch/arm/plat-nomadik/include/plat/mtu.h
index 42c907258b14..65704a3d4241 100644
--- a/arch/arm/plat-nomadik/include/plat/mtu.h
+++ b/arch/arm/plat-nomadik/include/plat/mtu.h
@@ -1,6 +1,12 @@
#ifndef __PLAT_MTU_H
#define __PLAT_MTU_H
+/*
+ * Guaranteed runtime conversion range in seconds for
+ * the clocksource and clockevent.
+ */
+#define MTU_MIN_RANGE 4
+
/* should be set by the platform code */
extern void __iomem *mtu_base;