mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] serial_auart: make dt aware
@ 2016-04-26  9:08 Uwe Kleine-König
  2016-04-27  8:54 ` Sascha Hauer
  0 siblings, 1 reply; 2+ messages in thread
From: Uwe Kleine-König @ 2016-04-26  9:08 UTC (permalink / raw)
  To: barebox

This allows to instantiate devices from an oftree and so allows
to select the console using /chosen/stdout-path.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
---
 drivers/serial/serial_auart.c | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/drivers/serial/serial_auart.c b/drivers/serial/serial_auart.c
index 9bef576cd701..c3b9a1995f7d 100644
--- a/drivers/serial/serial_auart.c
+++ b/drivers/serial/serial_auart.c
@@ -230,9 +230,18 @@ static void auart_serial_remove(struct device_d *dev)
 	free(priv);
 }
 
+static const __maybe_unused struct of_device_id auart_serial_dt_ids[] = {
+	{
+		.compatible = "fsl,imx23-auart",
+	}, {
+		/* sentinel */
+	}
+};
+
 static struct driver_d auart_serial_driver = {
 	.name = "auart_serial",
 	.probe = auart_serial_probe,
 	.remove = auart_serial_remove,
+	.of_compatible = DRV_OF_COMPAT(auart_serial_dt_ids),
 };
 console_platform_driver(auart_serial_driver);
-- 
2.8.0.rc3


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] serial_auart: make dt aware
  2016-04-26  9:08 [PATCH] serial_auart: make dt aware Uwe Kleine-König
@ 2016-04-27  8:54 ` Sascha Hauer
  0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2016-04-27  8:54 UTC (permalink / raw)
  To: Uwe Kleine-König; +Cc: barebox

On Tue, Apr 26, 2016 at 11:08:34AM +0200, Uwe Kleine-König wrote:
> This allows to instantiate devices from an oftree and so allows
> to select the console using /chosen/stdout-path.
> 
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
> ---
>  drivers/serial/serial_auart.c | 9 +++++++++
>  1 file changed, 9 insertions(+)

Applied, thanks

Sascha

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-04-27  8:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-04-26  9:08 [PATCH] serial_auart: make dt aware Uwe Kleine-König
2016-04-27  8:54 ` Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox