arm: arch_timer: factor out register accessors
authorMark Rutland <mark.rutland@arm.com>
Mon, 12 Nov 2012 16:18:00 +0000 (16:18 +0000)
committerMark Rutland <mark.rutland@arm.com>
Thu, 31 Jan 2013 15:51:22 +0000 (15:51 +0000)
commitec944c93a293bee6b4cc6b6f1c9560526c7ed635
tree564dda7943e789ade94ec3aa4a4c70fa3204da5c
parentfd5583a4c271ec03e2da04196aaaab177b385eb8
arm: arch_timer: factor out register accessors

Currently the arch_timer register accessors are thrown together with
the main driver, preventing us from porting the driver to other
architectures.

This patch moves the register accessors into a header file, as with
the arm64 version. Constants required by the accessors are also moved.

Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Acked-by: Marc Zyngier <marc.zyngier@arm.com>
Acked-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
arch/arm/include/asm/arch_timer.h
arch/arm/kernel/arch_timer.c