mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-21 11:13:30 +00:00
Obey SPCR AccessWidth parameter.
The "access width" value was hard-coded as 2, indicating 32-bit accesses; instead, use the value specified in the SPCR table. This unbreaks the console on EC2 "A1" family instances. Submitted by: Greg V
This commit is contained in:
parent
5d3d68abae
commit
b8bfd8fc06
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=345405
@ -149,7 +149,7 @@ uart_cpu_acpi_probe(struct uart_class **classp, bus_space_tag_t *bst,
|
||||
|
||||
*classp = cd->cd_class;
|
||||
*rclk = 0;
|
||||
*shiftp = 2;
|
||||
*shiftp = spcr->SerialPort.AccessWidth - 1;
|
||||
*iowidthp = spcr->SerialPort.BitWidth / 8;
|
||||
|
||||
out:
|
||||
|
Loading…
Reference in New Issue
Block a user