bsps/shared: NS16550 driver updates the line control register during operation

Fixes: #5179
This commit is contained in:
Reinking, Janosch
2024-12-13 19:08:58 +01:00
committed by Chris Johns
parent 603c168a0b
commit f1c201c508

View File

@@ -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);