Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F144564396
D53119.1775485884.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
953 B
Referenced Files
None
Subscribers
None
D53119.1775485884.diff
View Options
diff --git a/sys/dev/uart/uart_bus_fdt.c b/sys/dev/uart/uart_bus_fdt.c
--- a/sys/dev/uart/uart_bus_fdt.c
+++ b/sys/dev/uart/uart_bus_fdt.c
@@ -238,6 +238,12 @@
clk = 0;
}
+ /*
+ * Grab the default rclk from the uart class.
+ */
+ if (clk == 0)
+ clk = class->uc_rclk;
+
/*
* Retrieve serial attributes.
*/
diff --git a/sys/dev/uart/uart_dev_snps.c b/sys/dev/uart/uart_dev_snps.c
--- a/sys/dev/uart/uart_dev_snps.c
+++ b/sys/dev/uart/uart_dev_snps.c
@@ -113,7 +113,17 @@
.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[] = {
+ { "starfive,jh7110-uart", (uintptr_t)&uart_snps_jh7110_class },
{ "snps,dw-apb-uart", (uintptr_t)&uart_snps_class },
{ "marvell,armada-38x-uart", (uintptr_t)&uart_snps_class },
{ NULL, (uintptr_t)NULL }
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Apr 6, 2:31 PM (11 h, 44 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28276648
Default Alt Text
D53119.1775485884.diff (953 B)
Attached To
Mode
D53119: uart: provide and use default rclk for JH7110 UART
Attached
Detach File
Event Timeline
Log In to Comment