ARM: at91/tc/clocksource: Add 32 bit variant to Timer Counter
commit8e315a7b0c082c6743a6636ead5674a2265638d3
authorNicolas Ferre <nicolas.ferre@atmel.com>
Thu, 19 Jan 2012 17:44:49 +0000 (19 18:44 +0100)
committerNicolas Ferre <nicolas.ferre@atmel.com>
Thu, 1 Mar 2012 12:38:49 +0000 (1 13:38 +0100)
tree9eabbe8dfff1679fcc7c1ca72f81e58631dfdfcb
parent3a61a5dae49bf3d1afb7f75c8acb3607f26565af
ARM: at91/tc/clocksource: Add 32 bit variant to Timer Counter

Some SoC have a 32 bit variant of Timer Counter Blocks. We do not
need the chaining of two 16 bit counters anymore for them.

The SoC nature is deduced from the device tree "compatible" string.
For non-device-tree configurations, backward compatibility is maintained
by using the default 16 bit counter configuration.

This patch addresses both the atmel_tclib and its user: tcb_clksrc
clocksource.

Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Acked-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Acked-by: Grant Likely <grant.likely@secretlab.ca>
drivers/clocksource/tcb_clksrc.c
drivers/misc/atmel_tclib.c
include/linux/atmel_tc.h