Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/uart/uart_dev_snps.c
| Show First 20 Lines • Show All 107 Lines • ▼ Show 20 Lines | struct uart_class uart_snps_class = { | ||||
| "snps", | "snps", | ||||
| snps_methods, | snps_methods, | ||||
| sizeof(struct snps_softc), | sizeof(struct snps_softc), | ||||
| .uc_ops = &uart_ns8250_ops, | .uc_ops = &uart_ns8250_ops, | ||||
| .uc_range = 8, | .uc_range = 8, | ||||
| .uc_rclk = 0, | .uc_rclk = 0, | ||||
| }; | }; | ||||
| struct uart_class uart_snps_jh7110_class = { | |||||
| "snps", | |||||
| snps_methods, | |||||
| sizeof(struct snps_softc), | |||||
| .uc_ops = &uart_ns8250_ops, | |||||
| .uc_range = 8, | |||||
| .uc_rclk = 24000000, | |||||
| }; | |||||
| static struct ofw_compat_data compat_data[] = { | static struct ofw_compat_data compat_data[] = { | ||||
| { "starfive,jh7110-uart", (uintptr_t)&uart_snps_jh7110_class }, | |||||
| { "snps,dw-apb-uart", (uintptr_t)&uart_snps_class }, | { "snps,dw-apb-uart", (uintptr_t)&uart_snps_class }, | ||||
| { "marvell,armada-38x-uart", (uintptr_t)&uart_snps_class }, | { "marvell,armada-38x-uart", (uintptr_t)&uart_snps_class }, | ||||
| { NULL, (uintptr_t)NULL } | { NULL, (uintptr_t)NULL } | ||||
| }; | }; | ||||
| UART_FDT_CLASS(compat_data); | UART_FDT_CLASS(compat_data); | ||||
| static int | static int | ||||
| snps_get_clocks(device_t dev, clk_t *baudclk, clk_t *apb_pclk) | snps_get_clocks(device_t dev, clk_t *baudclk, clk_t *apb_pclk) | ||||
| ▲ Show 20 Lines • Show All 175 Lines • Show Last 20 Lines | |||||