]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: at91/tc/clocksource: Add 32 bit variant to Timer Counter
authorNicolas Ferre <nicolas.ferre@atmel.com>
Thu, 19 Jan 2012 17:44:49 +0000 (18:44 +0100)
committerNicolas Ferre <nicolas.ferre@atmel.com>
Thu, 1 Mar 2012 12:38:49 +0000 (13:38 +0100)
commit5ff8b6109db84d02bb47af796fc16ea2bd256b75
tree9eabbe8dfff1679fcc7c1ca72f81e58631dfdfcb
parent63cd80cdd46e524726c99089fb977504d666c68d
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