uart_cpu_fdt.c (254590) | uart_cpu_fdt.c (254598) |
---|---|
1/*- 2 * Copyright (c) 2009-2010 The FreeBSD Foundation 3 * All rights reserved. 4 * 5 * This software was developed by Semihalf under sponsorship from 6 * the FreeBSD Foundation. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 14 unchanged lines hidden (view full) --- 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 */ 29 30#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2009-2010 The FreeBSD Foundation 3 * All rights reserved. 4 * 5 * This software was developed by Semihalf under sponsorship from 6 * the FreeBSD Foundation. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 14 unchanged lines hidden (view full) --- 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 */ 29 30#include <sys/cdefs.h> |
31__FBSDID("$FreeBSD: head/sys/dev/uart/uart_cpu_fdt.c 254590 2013-08-21 04:08:58Z ian $"); | 31__FBSDID("$FreeBSD: head/sys/dev/uart/uart_cpu_fdt.c 254598 2013-08-21 14:33:02Z ian $"); |
32 33#include <sys/param.h> 34#include <sys/bus.h> 35#include <sys/kernel.h> 36#include <sys/module.h> 37 38#include <machine/bus.h> 39#include <machine/fdt.h> --- 106 unchanged lines hidden (view full) --- 146 else if (fdt_is_compatible(node, "lpc")) 147 class = &uart_lpc_class; 148 else if (fdt_is_compatible(node, "arm,pl011")) 149 class = &uart_pl011_class; 150 else if (fdt_is_compatible(node, "exynos")) 151 class = &uart_s3c2410_class; 152 else if (fdt_is_compatible(node, "cadence,uart")) 153 class = &uart_cdnc_class; | 32 33#include <sys/param.h> 34#include <sys/bus.h> 35#include <sys/kernel.h> 36#include <sys/module.h> 37 38#include <machine/bus.h> 39#include <machine/fdt.h> --- 106 unchanged lines hidden (view full) --- 146 else if (fdt_is_compatible(node, "lpc")) 147 class = &uart_lpc_class; 148 else if (fdt_is_compatible(node, "arm,pl011")) 149 class = &uart_pl011_class; 150 else if (fdt_is_compatible(node, "exynos")) 151 class = &uart_s3c2410_class; 152 else if (fdt_is_compatible(node, "cadence,uart")) 153 class = &uart_cdnc_class; |
154 else if (fdt_is_compatible(node, "ti,ns16550")) 155 class = &uart_ti8250_class; |
|
154 else if (fdt_is_compatible(node, "ns16550")) 155 class = &uart_ns8250_class; 156 157 di->bas.chan = 0; 158 di->bas.regshft = (u_int)shift; 159 di->baudrate = br; 160 di->bas.rclk = (u_int)rclk; 161 di->ops = uart_getops(class); --- 16 unchanged lines hidden --- | 156 else if (fdt_is_compatible(node, "ns16550")) 157 class = &uart_ns8250_class; 158 159 di->bas.chan = 0; 160 di->bas.regshft = (u_int)shift; 161 di->baudrate = br; 162 di->bas.rclk = (u_int)rclk; 163 di->ops = uart_getops(class); --- 16 unchanged lines hidden --- |