forked from Imagelibrary/rtems
bsps/shared: NS16550 driver updates the line control register during operation
Fixes: #5179
This commit is contained in:
committed by
Chris Johns
parent
603c168a0b
commit
f1c201c508
@@ -590,7 +590,7 @@ int ns16550_set_attributes(
|
||||
* turn into the LSB and MSB divisor latch registers.
|
||||
*/
|
||||
|
||||
(*setReg)(pNS16550, NS16550_LINE_CONTROL, SP_LINE_DLAB);
|
||||
(*setReg)(pNS16550, NS16550_LINE_CONTROL, SP_LINE_DLAB | ucLineControl);
|
||||
(*setReg)(pNS16550, NS16550_TRANSMIT_BUFFER, ulBaudDivisor&0xff);
|
||||
(*setReg)(pNS16550, NS16550_INTERRUPT_ENABLE, (ulBaudDivisor>>8)&0xff);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user