ARM: at91: add at91sam9263 DT support
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
This commit is contained in:
@@ -953,8 +953,25 @@ static struct platform_device at91sam9263_tcb_device = {
|
||||
.num_resources = ARRAY_SIZE(tcb_resources),
|
||||
};
|
||||
|
||||
#if defined(CONFIG_OF)
|
||||
static struct of_device_id tcb_ids[] = {
|
||||
{ .compatible = "atmel,at91rm9200-tcb" },
|
||||
{ /*sentinel*/ }
|
||||
};
|
||||
#endif
|
||||
|
||||
static void __init at91_add_device_tc(void)
|
||||
{
|
||||
#if defined(CONFIG_OF)
|
||||
struct device_node *np;
|
||||
|
||||
np = of_find_matching_node(NULL, tcb_ids);
|
||||
if (np) {
|
||||
of_node_put(np);
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
|
||||
platform_device_register(&at91sam9263_tcb_device);
|
||||
}
|
||||
#else
|
||||
@@ -1483,6 +1500,9 @@ void __init at91_add_device_serial(void) {}
|
||||
*/
|
||||
static int __init at91_add_standard_devices(void)
|
||||
{
|
||||
if (of_have_populated_dt())
|
||||
return 0;
|
||||
|
||||
at91_add_device_rtt();
|
||||
at91_add_device_watchdog();
|
||||
at91_add_device_tc();
|
||||
|
||||
Reference in New Issue
Block a user