So that the driver can work on a certain hardware when a platform module
dynamically changes the PCD value.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Cc: Feng Tian <feng.tian@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17607
6f19259b-4bc3-4df7-8a09-
765794883524
# Produces the Serial I/O protocol for standard UARTS using ISA I/O. This driver\r
# supports the 8250, 16450, 16550 and 16550A UART types.\r
#\r
-# Copyright (c) 2007 - 2014, Intel Corporation. All rights reserved.<BR>\r
+# Copyright (c) 2007 - 2015, Intel Corporation. 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
\r
[Packages]\r
MdePkg/MdePkg.dec\r
+ MdeModulePkg/MdeModulePkg.dec\r
IntelFrameworkPkg/IntelFrameworkPkg.dec\r
IntelFrameworkModulePkg/IntelFrameworkModulePkg.dec\r
\r
gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdIsaBusSerialUseHalfHandshake|FALSE ## CONSUMES\r
\r
[Pcd]\r
- gEfiMdePkgTokenSpaceGuid.PcdUartDefaultBaudRate|115200 ## CONSUMES\r
- gEfiMdePkgTokenSpaceGuid.PcdUartDefaultDataBits|8 ## CONSUMES\r
- gEfiMdePkgTokenSpaceGuid.PcdUartDefaultParity|1 ## CONSUMES\r
- gEfiMdePkgTokenSpaceGuid.PcdUartDefaultStopBits|1 ## CONSUMES\r
+ gEfiMdePkgTokenSpaceGuid.PcdUartDefaultBaudRate|115200 ## CONSUMES\r
+ gEfiMdePkgTokenSpaceGuid.PcdUartDefaultDataBits|8 ## CONSUMES\r
+ gEfiMdePkgTokenSpaceGuid.PcdUartDefaultParity|1 ## CONSUMES\r
+ gEfiMdePkgTokenSpaceGuid.PcdUartDefaultStopBits|1 ## CONSUMES\r
+ gEfiMdeModulePkgTokenSpaceGuid.PcdSerialClockRate|1843200 ## CONSUMES\r
\r
[UserExtensions.TianoCore."ExtraFiles"]\r
IsaSerialDxeExtra.uni\r
/** @file\r
Serial driver for standard UARTS on an ISA bus.\r
\r
-Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2006 - 2015, Intel Corporation. All rights reserved.<BR>\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
// Compute divisor use to program the baud rate using a round determination\r
//\r
Divisor = (UINT32) DivU64x32Remainder (\r
- SERIAL_PORT_INPUT_CLOCK,\r
+ PcdGet32 (PcdSerialClockRate),\r
((UINT32) BaudRate * 16),\r
&Remained\r
);\r
//\r
// Compute the actual baud rate that the serial port will be programmed for.\r
//\r
- BaudRate = SERIAL_PORT_INPUT_CLOCK / Divisor / 16;\r
+ BaudRate = PcdGet32 (PcdSerialClockRate) / Divisor / 16;\r
\r
//\r
// Put serial port on Divisor Latch Mode\r
/** @file\r
Include for Serial Driver\r
\r
-Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2006 - 2015, Intel Corporation. All rights reserved.<BR>\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
EFI_SERIAL_OUTPUT_BUFFER_EMPTY | \\r
EFI_SERIAL_INPUT_BUFFER_EMPTY)\r
\r
-\r
-//\r
-// (24000000/13)MHz input clock\r
-//\r
-#define SERIAL_PORT_INPUT_CLOCK 1843200\r
-\r
//\r
// 115200 baud with rounding errors\r
//\r