summaryrefslogtreecommitdiff
path: root/arch/arm/include/asm/hardware
diff options
context:
space:
mode:
authorPawel Moll <pawel.moll@arm.com>2012-09-18 18:17:48 +0400
committerMike Turquette <mturquette@linaro.org>2012-10-29 22:08:03 +0400
commitbcd6f569e87471d7f104bd9497f0b516a3b12e32 (patch)
treeb15f2f2b9a78232c1f70689d3d5ca35d1ed64168 /arch/arm/include/asm/hardware
parented27ff1db869cc81a92bed6defb7d107f5a156ff (diff)
downloadlinux-bcd6f569e87471d7f104bd9497f0b516a3b12e32.tar.xz
clk: Common clocks implementation for Versatile Express
This patch adds a DT and non-DT based implementation of the common clock infrastructure for Versatile Express platform. It registers (statically or using DT) all required fixed clocks, initialises motherboard's SP810 cell (that provides clocks for SP804 timers) and explicitly registers VE "osc" driver, to make the clock generators available early. Signed-off-by: Pawel Moll <pawel.moll@arm.com> Signed-off-by: Mike Turquette <mturquette@linaro.org>
Diffstat (limited to 'arch/arm/include/asm/hardware')
-rw-r--r--arch/arm/include/asm/hardware/sp810.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/include/asm/hardware/sp810.h b/arch/arm/include/asm/hardware/sp810.h
index 6b9b077d86b3..afd7e916472f 100644
--- a/arch/arm/include/asm/hardware/sp810.h
+++ b/arch/arm/include/asm/hardware/sp810.h
@@ -56,6 +56,8 @@
#define SCCTRL_TIMEREN1SEL_REFCLK (0 << 17)
#define SCCTRL_TIMEREN1SEL_TIMCLK (1 << 17)
+#define SCCTRL_TIMERENnSEL_SHIFT(n) (15 + ((n) * 2))
+
static inline void sysctl_soft_reset(void __iomem *base)
{
/* switch to slow mode */