From 535c77d1fcc9f6ae6a8cb27ead8a7467462a5a8f Mon Sep 17 00:00:00 2001 From: imp Date: Thu, 23 Jan 2014 18:09:10 +0000 Subject: [PATCH] Add Atmel serial drivers. --- sys/dev/uart/uart.h | 1 + sys/dev/uart/uart_bus_fdt.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/sys/dev/uart/uart.h b/sys/dev/uart/uart.h index 4874488550a3..0bceddeabe35 100644 --- a/sys/dev/uart/uart.h +++ b/sys/dev/uart/uart.h @@ -76,6 +76,7 @@ extern struct uart_class uart_pl011_class __attribute__((weak)); 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; diff --git a/sys/dev/uart/uart_bus_fdt.c b/sys/dev/uart/uart_bus_fdt.c index a98c50af4e10..3630b9c557ec 100644 --- a/sys/dev/uart/uart_bus_fdt.c +++ b/sys/dev/uart/uart_bus_fdt.c @@ -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},