svn commit: r261083 - head/sys/dev/uart

Warner Losh imp at FreeBSD.org
Thu Jan 23 18:09:11 UTC 2014


Author: imp
Date: Thu Jan 23 18:09:10 2014
New Revision: 261083
URL: http://svnweb.freebsd.org/changeset/base/261083

Log:
  Add Atmel serial drivers.

Modified:
  head/sys/dev/uart/uart.h
  head/sys/dev/uart/uart_bus_fdt.c

Modified: head/sys/dev/uart/uart.h
==============================================================================
--- head/sys/dev/uart/uart.h	Thu Jan 23 17:27:16 2014	(r261082)
+++ head/sys/dev/uart/uart.h	Thu Jan 23 18:09:10 2014	(r261083)
@@ -76,6 +76,7 @@ extern struct uart_class uart_pl011_clas
 extern struct uart_class uart_cdnc_class __attribute__((weak));
 extern struct uart_class uart_ti8250_class __attribute__((weak));
 extern struct uart_class uart_vybrid_class __attribute__((weak));
+extern struct uart_class at91_usart_class __attribute__((weak));
 
 #ifdef FDT
 struct ofw_compat_data;

Modified: head/sys/dev/uart/uart_bus_fdt.c
==============================================================================
--- head/sys/dev/uart/uart_bus_fdt.c	Thu Jan 23 17:27:16 2014	(r261082)
+++ head/sys/dev/uart/uart_bus_fdt.c	Thu Jan 23 18:09:10 2014	(r261083)
@@ -71,6 +71,8 @@ static driver_t uart_fdt_driver = {
  */
 static struct ofw_compat_data compat_data[] = {
 	{"arm,pl011",		(uintptr_t)&uart_pl011_class},
+	{"atmel,at91rm9200-usart",(uintptr_t)&at91_usart_class},
+	{"atmel,at91sam9260-usart",(uintptr_t)&at91_usart_class},
 	{"cadence,uart",	(uintptr_t)&uart_cdnc_class},
 	{"exynos",		(uintptr_t)&uart_s3c2410_class},
 	{"fsl,imx6q-uart",	(uintptr_t)&uart_imx_class},


More information about the svn-src-all mailing list