[PATCH 3/3] ARM: at91/tc/clocksource: Add 32 bit variant to Timer Counter
From: Grant Likely <hidden>
Date: 2012-01-28 18:31:01
Also in:
linux-devicetree
From: Grant Likely <hidden>
Date: 2012-01-28 18:31:01
Also in:
linux-devicetree
On Thu, Jan 19, 2012 at 07:05:12PM +0100, Nicolas Ferre wrote:
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 <redacted>
Looks reasonable to me. One comment below, but otherwise: Acked-by: Grant Likely <redacted>
static const struct of_device_id atmel_tcb_dt_ids[] = {
{
.compatible = "atmel,at91rm9200-tcb",
+ .data = &tcb_rm9200_config,
+ }, {
+ .compatible = "atmel,at91sam9x5-tcb",
+ .data = &tcb_sam9x5_config,
}, {
/* sentinel */
}
Using wildcards ('x') in compatible values is strongly discouraged.
Use specific device names instead. You never know when a vendor may
introduce another part number that fits with the wildcard, but isn't
actually compatible.
Use the exact device name(s) and newer devices can claim compatibility
with the old in the .dts file.
g.