]> git.proxmox.com Git - mirror_edk2.git/blobdiff - CorebootModulePkg/Library/BaseSerialPortLib16550/BaseSerialPortLib16550.c
CorebootModulePkg/BaseSerialPortLib: Set DTR and RTS
[mirror_edk2.git] / CorebootModulePkg / Library / BaseSerialPortLib16550 / BaseSerialPortLib16550.c
index 45056363c3f33b9b8d0f949ef45a3f3840209bef..ca6db2306ac48899adc8183a10b0906b9895b39e 100644 (file)
@@ -554,9 +554,10 @@ SerialPortInitialize (
   SerialPortWriteRegister (SerialRegisterBase, R_UART_FCR, (UINT8)(PcdGet8 (PcdSerialFifoControl) & (B_UART_FCR_FIFOE | B_UART_FCR_FIFO64)));
 
   //
-  // Put Modem Control Register(MCR) into its reset state of 0x00.
+  // Set RTS and DTR in Modem Control Register(MCR)
   //
-  SerialPortWriteRegister (SerialRegisterBase, R_UART_MCR, 0x00);
+  SerialPortWriteRegister (SerialRegisterBase, R_UART_MCR,
+                   EFI_SERIAL_REQUEST_TO_SEND | EFI_SERIAL_DATA_TERMINAL_READY);
 
   return RETURN_SUCCESS;
 }