From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-pg0-x244.google.com ([2607:f8b0:400e:c05::244]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cnolD-0005Di-6Q for barebox@lists.infradead.org; Tue, 14 Mar 2017 15:53:22 +0000 Received: by mail-pg0-x244.google.com with SMTP id m5so934986pgk.3 for ; Tue, 14 Mar 2017 08:52:58 -0700 (PDT) From: Andrey Smirnov Date: Tue, 14 Mar 2017 08:52:13 -0700 Message-Id: <20170314155222.11657-3-andrew.smirnov@gmail.com> In-Reply-To: <20170314155222.11657-1-andrew.smirnov@gmail.com> References: <20170314155222.11657-1-andrew.smirnov@gmail.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH 02/11] serial: atmel: Add DT compatibility table To: barebox@lists.infradead.org Cc: Andrey Smirnov Signed-off-by: Andrey Smirnov --- drivers/serial/atmel.c | 7 +++++++ 1 file changed, 7 insertions(+) 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); -- 2.9.3 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox