svn commit: r242964 - projects/efika_mx/sys/dev/uart
Aleksandr Rybalko
ray at FreeBSD.org
Tue Nov 13 14:04:02 UTC 2012
Author: ray
Date: Tue Nov 13 14:04:02 2012
New Revision: 242964
URL: http://svnweb.freebsd.org/changeset/base/242964
Log:
Add imx to uarts family.
Sponsored by: FreeBSD Foundation
Modified:
projects/efika_mx/sys/dev/uart/uart.h
projects/efika_mx/sys/dev/uart/uart_bus_fdt.c
Modified: projects/efika_mx/sys/dev/uart/uart.h
==============================================================================
--- projects/efika_mx/sys/dev/uart/uart.h Tue Nov 13 14:01:07 2012 (r242963)
+++ projects/efika_mx/sys/dev/uart/uart.h Tue Nov 13 14:04:02 2012 (r242964)
@@ -64,6 +64,7 @@ struct uart_bas {
*/
struct uart_class;
+extern struct uart_class uart_imx_class __attribute__((weak));
extern struct uart_class uart_ns8250_class __attribute__((weak));
extern struct uart_class uart_quicc_class __attribute__((weak));
extern struct uart_class uart_sab82532_class __attribute__((weak));
Modified: projects/efika_mx/sys/dev/uart/uart_bus_fdt.c
==============================================================================
--- projects/efika_mx/sys/dev/uart/uart_bus_fdt.c Tue Nov 13 14:01:07 2012 (r242963)
+++ projects/efika_mx/sys/dev/uart/uart_bus_fdt.c Tue Nov 13 14:04:02 2012 (r242964)
@@ -105,6 +105,8 @@ uart_fdt_probe(device_t dev)
sc->sc_class = &uart_ns8250_class;
else if (ofw_bus_is_compatible(dev, "lpc,uart"))
sc->sc_class = &uart_lpc_class;
+ else if (ofw_bus_is_compatible(dev, "fsl,imx-uart"))
+ sc->sc_class = &uart_imx_class;
else if (ofw_bus_is_compatible(dev, "arm,pl011"))
sc->sc_class = &uart_pl011_class;
else
@@ -184,6 +186,8 @@ uart_cpu_getdev(int devtype, struct uart
/*
* Finalize configuration.
*/
+ if (fdt_is_compatible(node, "fsl,imx-uart"))
+ class = &uart_imx_class;
if (fdt_is_compatible(node, "quicc"))
class = &uart_quicc_class;
if (fdt_is_compatible(node, "lpc"))
More information about the svn-src-projects
mailing list