Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F161308003
D19507.id54834.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
746 B
Referenced Files
None
Subscribers
None
D19507.id54834.diff
View Options
Index: sys/dev/uart/uart_cpu_arm64.c
===================================================================
--- sys/dev/uart/uart_cpu_arm64.c
+++ sys/dev/uart/uart_cpu_arm64.c
@@ -149,9 +149,24 @@
*classp = cd->cd_class;
*rclk = 0;
- *shiftp = 2;
*iowidthp = spcr->SerialPort.BitWidth / 8;
+ switch (spcr->InterfaceType) {
+ case ACPI_DBG2_16550_COMPATIBLE: /* fallthrough */
+ case ACPI_DBG2_16550_SUBSET:
+ *shiftp = 0;
+ break;
+ case ACPI_DBG2_ARM_PL011: /* fallthrough */
+ case ACPI_DBG2_ARM_SBSA_32BIT:
+ case ACPI_DBG2_ARM_SBSA_GENERIC:
+ *shiftp = 2;
+ break;
+ default:
+ printf("uart_cpu_acpi_probe: unknown InterfaceType %d",
+ spcr->InterfaceType);
+ *shiftp = 2;
+ }
+
out:
acpi_unmap_table(spcr);
return (err);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Jul 3, 3:41 PM (12 h, 27 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
34629761
Default Alt Text
D19507.id54834.diff (746 B)
Attached To
Mode
D19507: Add quirk for ignoring SPCR AccessWidth values on the PL011 UART
Attached
Detach File
Event Timeline
Log In to Comment