summaryrefslogtreecommitdiffstats
path: root/arch/arm/include/asm/hardware/sp810.h
diff options
context:
space:
mode:
authorPawel Moll2012-09-18 16:17:48 +0200
committerMike Turquette2012-10-29 19:08:03 +0100
commitbcd6f569e87471d7f104bd9497f0b516a3b12e32 (patch)
treeb15f2f2b9a78232c1f70689d3d5ca35d1ed64168 /arch/arm/include/asm/hardware/sp810.h
parentclk: Versatile Express clock generators ("osc") driver (diff)
downloadkernel-qcow2-linux-bcd6f569e87471d7f104bd9497f0b516a3b12e32.tar.gz
kernel-qcow2-linux-bcd6f569e87471d7f104bd9497f0b516a3b12e32.tar.xz
kernel-qcow2-linux-bcd6f569e87471d7f104bd9497f0b516a3b12e32.zip
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/sp810.h')
-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 */