X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=IntelFrameworkModulePkg%2FBus%2FIsa%2FIsaSerialDxe%2FSerial.c;fp=IntelFrameworkModulePkg%2FBus%2FIsa%2FIsaSerialDxe%2FSerial.c;h=57ee669d140682e922f5b0d632eef765e4e411a7;hp=15d2bab824b43dfa9442d2f982d1fec396e80b17;hb=684fec3c964dd125160d47992413b3c95170f885;hpb=b2a41b1e403db9bfa6abbebccd4067c7892dbeda diff --git a/IntelFrameworkModulePkg/Bus/Isa/IsaSerialDxe/Serial.c b/IntelFrameworkModulePkg/Bus/Isa/IsaSerialDxe/Serial.c index 15d2bab824..57ee669d14 100644 --- a/IntelFrameworkModulePkg/Bus/Isa/IsaSerialDxe/Serial.c +++ b/IntelFrameworkModulePkg/Bus/Isa/IsaSerialDxe/Serial.c @@ -1,7 +1,7 @@ /** @file Serial driver for standard UARTS on an ISA bus. -Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.
+Copyright (c) 2006 - 2015, Intel Corporation. All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at @@ -1393,7 +1393,7 @@ IsaSerialSetAttributes ( // Compute divisor use to program the baud rate using a round determination // Divisor = (UINT32) DivU64x32Remainder ( - SERIAL_PORT_INPUT_CLOCK, + PcdGet32 (PcdSerialClockRate), ((UINT32) BaudRate * 16), &Remained ); @@ -1410,7 +1410,7 @@ IsaSerialSetAttributes ( // // Compute the actual baud rate that the serial port will be programmed for. // - BaudRate = SERIAL_PORT_INPUT_CLOCK / Divisor / 16; + BaudRate = PcdGet32 (PcdSerialClockRate) / Divisor / 16; // // Put serial port on Divisor Latch Mode