mxc: refactor timer code to use timer versions
authorSascha Hauer <s.hauer@pengutronix.de>
Fri, 4 Dec 2009 08:34:51 +0000 (09:34 +0100)
committerAmit Kucheria <amit.kucheria@canonical.com>
Tue, 9 Feb 2010 14:15:26 +0000 (16:15 +0200)
commit0f3332c4fabb2227b1bc15dc7542017d08f10a09
tree5957bc11e9bc2ba66d828068c93f1949840562e6
parenta003708ad4ee9384226251431c7953a24079ff80
mxc: refactor timer code to use timer versions

Refactor the timer code into version 1 and version 2.

Essentially there are 2 versions of the timer hardware on Freescale MXC
hardware. Version 1 is found on MX1/MXL, MX21 and MX27. Version 2 is found on
MX25, MX31, MX35, MX37, MX51, and future parts.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Acked-by: Grant Likely <grant.likely@secretlab.ca>
Signed-off-by: Amit Kucheria <amit.kucheria@canonical.com>
arch/arm/plat-mxc/time.c