diff options
author | imp <imp@FreeBSD.org> | 2009-01-22 21:56:41 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2009-01-22 21:56:41 +0000 |
commit | f8e69e3986e2b5e3a4dedf32ee042ae954450936 (patch) | |
tree | 4ae250ff82db53713c8dddb79155d3c317b19252 /sys/arm/at91/uart_bus_at91usart.c | |
parent | 94037e905a8be1cc577586607073e3714a32283b (diff) | |
download | FreeBSD-src-f8e69e3986e2b5e3a4dedf32ee042ae954450936.zip FreeBSD-src-f8e69e3986e2b5e3a4dedf32ee042ae954450936.tar.gz |
Migrate towards using at91_master_clock. Initialize the clocks for
the serial port class when we set the devclass since it is now
no-longer a compile time constant. Eliminate the pci include, as it
isn't relevant or necessary.
Diffstat (limited to 'sys/arm/at91/uart_bus_at91usart.c')
-rw-r--r-- | sys/arm/at91/uart_bus_at91usart.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/arm/at91/uart_bus_at91usart.c b/sys/arm/at91/uart_bus_at91usart.c index 44a5b76..aa246cb 100644 --- a/sys/arm/at91/uart_bus_at91usart.c +++ b/sys/arm/at91/uart_bus_at91usart.c @@ -38,13 +38,12 @@ __FBSDID("$FreeBSD$"); #include <sys/rman.h> #include <machine/resource.h> -#include <dev/pci/pcivar.h> - #include <dev/uart/uart.h> #include <dev/uart/uart_bus.h> #include <dev/uart/uart_cpu.h> #include <arm/at91/at91rm92reg.h> +#include <arm/at91/at91var.h> #include "uart_if.h" @@ -103,6 +102,8 @@ usart_at91rm92_probe(device_t dev) break; } sc->sc_class = &at91_usart_class; + if (sc->sc_class->uc_rclk == 0) + sc->sc_class->uc_rclk = at91_master_clock; return (uart_bus_probe(dev, 0, 0, 0, device_get_unit(dev))); } |