7 #include <linux/kernel.h>
9 #include <linux/module.h>
10 #include <linux/slab.h>
11 #include <linux/export.h>
20 #if defined(CONFIG_AVR32)
25 #elif defined(CONFIG_ARCH_AT91)
53 if (tc->
pdev->dev.of_node) {
59 }
else if (tc->
pdev->id == block) {
65 if (!pdev || tc->
iomem)
72 size = resource_size(r);
116 #if defined(CONFIG_OF)
128 .data = &tcb_rm9200_config,
130 .compatible =
"atmel,at91sam9x5-tcb",
131 .data = &tcb_sam9x5_config,
166 if (pdev->
dev.of_node) {
175 if (IS_ERR(tc->
clk[1]))
178 if (IS_ERR(tc->
clk[2]))
203 static int __init tc_init(
void)