summaryrefslogtreecommitdiffstats
path: root/drivers/serial
diff options
context:
space:
mode:
authorAndrey Smirnov <andrew.smirnov@gmail.com>2017-03-16 08:04:39 -0700
committerSascha Hauer <s.hauer@pengutronix.de>2017-03-30 08:23:18 +0200
commite6cff67ca14c2590bdf6e2b78e29e996a47c17d6 (patch)
tree1904051b8750da4bf9748501592c043caece9d4c /drivers/serial
parent4185a0ea1b92c76c1024a06f0cb27c438ab861ab (diff)
downloadbarebox-e6cff67ca14c2590bdf6e2b78e29e996a47c17d6.tar.gz
serial: atmel: Add DT compatibility table
Acked-by: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/serial')
-rw-r--r--drivers/serial/atmel.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/serial/atmel.c b/drivers/serial/atmel.c
index ab94fd2..2f8adc9 100644
--- a/drivers/serial/atmel.c
+++ b/drivers/serial/atmel.c
@@ -446,8 +446,15 @@ static int atmel_serial_probe(struct device_d *dev)
return 0;
}
+static const struct of_device_id __maybe_unused atmel_serial_dt_ids[] = {
+ { .compatible = "atmel,at91rm9200-usart" },
+ { .compatible = "atmel,at91sam9260-usart" },
+ { /* sentinel */ }
+};
+
static struct driver_d atmel_serial_driver = {
.name = "atmel_usart",
.probe = atmel_serial_probe,
+ .of_compatible = DRV_OF_COMPAT(atmel_serial_dt_ids),
};
console_platform_driver(atmel_serial_driver);