Deleted Added
full compact
uart_bus_fdt.c (266277) uart_bus_fdt.c (283321)
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: stable/10/sys/dev/uart/uart_bus_fdt.c 266277 2014-05-17 00:53:12Z ian $");
31__FBSDID("$FreeBSD: stable/10/sys/dev/uart/uart_bus_fdt.c 283321 2015-05-23 19:27:04Z ian $");
32
33#include "opt_platform.h"
34
35#include <sys/param.h>
36#include <sys/bus.h>
37#include <sys/kernel.h>
38#include <sys/module.h>
39

--- 39 unchanged lines hidden (view full) ---

79 {"fsl,imx53-uart", (uintptr_t)&uart_imx_class},
80 {"fsl,imx51-uart", (uintptr_t)&uart_imx_class},
81 {"fsl,imx31-uart", (uintptr_t)&uart_imx_class},
82 {"fsl,imx27-uart", (uintptr_t)&uart_imx_class},
83 {"fsl,imx25-uart", (uintptr_t)&uart_imx_class},
84 {"fsl,imx21-uart", (uintptr_t)&uart_imx_class},
85 {"fsl,mvf600-uart", (uintptr_t)&uart_vybrid_class},
86 {"lpc,uart", (uintptr_t)&uart_lpc_class},
32
33#include "opt_platform.h"
34
35#include <sys/param.h>
36#include <sys/bus.h>
37#include <sys/kernel.h>
38#include <sys/module.h>
39

--- 39 unchanged lines hidden (view full) ---

79 {"fsl,imx53-uart", (uintptr_t)&uart_imx_class},
80 {"fsl,imx51-uart", (uintptr_t)&uart_imx_class},
81 {"fsl,imx31-uart", (uintptr_t)&uart_imx_class},
82 {"fsl,imx27-uart", (uintptr_t)&uart_imx_class},
83 {"fsl,imx25-uart", (uintptr_t)&uart_imx_class},
84 {"fsl,imx21-uart", (uintptr_t)&uart_imx_class},
85 {"fsl,mvf600-uart", (uintptr_t)&uart_vybrid_class},
86 {"lpc,uart", (uintptr_t)&uart_lpc_class},
87 {"qcom,msm-uartdm", (uintptr_t)&uart_msm_class},
87 {"ti,ns16550", (uintptr_t)&uart_ti8250_class},
88 {"ns16550", (uintptr_t)&uart_ns8250_class},
89 {NULL, (uintptr_t)NULL},
90};
91
92/* Export the compat_data table for use by the uart_cpu_fdt.c probe routine. */
93const struct ofw_compat_data *uart_fdt_compat_data = compat_data;
94

--- 56 unchanged lines hidden (view full) ---

151 if ((err = uart_fdt_get_clock(node, &clock)) != 0)
152 return (err);
153 uart_fdt_get_shift(node, &shift);
154
155 return (uart_bus_probe(dev, (int)shift, (int)clock, 0, 0));
156}
157
158DRIVER_MODULE(uart, simplebus, uart_fdt_driver, uart_devclass, 0, 0);
88 {"ti,ns16550", (uintptr_t)&uart_ti8250_class},
89 {"ns16550", (uintptr_t)&uart_ns8250_class},
90 {NULL, (uintptr_t)NULL},
91};
92
93/* Export the compat_data table for use by the uart_cpu_fdt.c probe routine. */
94const struct ofw_compat_data *uart_fdt_compat_data = compat_data;
95

--- 56 unchanged lines hidden (view full) ---

152 if ((err = uart_fdt_get_clock(node, &clock)) != 0)
153 return (err);
154 uart_fdt_get_shift(node, &shift);
155
156 return (uart_bus_probe(dev, (int)shift, (int)clock, 0, 0));
157}
158
159DRIVER_MODULE(uart, simplebus, uart_fdt_driver, uart_devclass, 0, 0);
160DRIVER_MODULE(uart, ofwbus, uart_fdt_driver, uart_devclass, 0, 0);