]> git.proxmox.com Git - mirror_edk2.git/blobdiff - ArmPlatformPkg/Library/PL011SerialPortLib/PL011SerialPortLib.c
NetworkPkg: Stop and release DHCP4 child after boot info is ready
[mirror_edk2.git] / ArmPlatformPkg / Library / PL011SerialPortLib / PL011SerialPortLib.c
index 09033dbd76184eacee04940a988541f80ad4cb1e..d4f7fc96f6d4893dfe1c5592920bec443ede9fd5 100644 (file)
@@ -2,8 +2,8 @@
   Serial I/O Port library functions with no library constructor/destructor\r
 \r
   Copyright (c) 2008 - 2010, Apple Inc. All rights reserved.<BR>\r
-  Copyright (c) 2012, ARM Ltd. All rights reserved.<BR>\r
-  \r
+  Copyright (c) 2012 - 2013, ARM Ltd. All rights reserved.<BR>\r
+\r
   This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
   which accompanies this distribution.  The full text of the license may be found at\r
@@ -37,13 +37,21 @@ SerialPortInitialize (
   VOID\r
   )\r
 {\r
+  UINT64              BaudRate;\r
+  UINT32              ReceiveFifoDepth;\r
+  EFI_PARITY_TYPE     Parity;\r
+  UINT8               DataBits;\r
+  EFI_STOP_BITS_TYPE  StopBits;\r
+\r
+  BaudRate = (UINTN)PcdGet64 (PcdUartDefaultBaudRate);\r
+  ReceiveFifoDepth = 0; // Use the default value for Fifo depth\r
+  Parity = (EFI_PARITY_TYPE)PcdGet8 (PcdUartDefaultParity);\r
+  DataBits = PcdGet8 (PcdUartDefaultDataBits);\r
+  StopBits = (EFI_STOP_BITS_TYPE) PcdGet8 (PcdUartDefaultStopBits);\r
+\r
   return PL011UartInitializePort (\r
       (UINTN)PcdGet64 (PcdSerialRegisterBase),\r
-      (UINTN)PcdGet64 (PcdUartDefaultBaudRate),\r
-      0, // Use the default value for Fifo depth\r
-      (EFI_PARITY_TYPE)PcdGet8 (PcdUartDefaultParity),\r
-      PcdGet8 (PcdUartDefaultDataBits),\r
-      (EFI_STOP_BITS_TYPE) PcdGet8 (PcdUartDefaultStopBits));\r
+      &BaudRate, &ReceiveFifoDepth, &Parity, &DataBits, &StopBits);\r
 }\r
 \r
 /**\r