Change Max Baud Rate to 115200.

Contributed-under: TianoCore Contribution Agreement 1.1

Signed-off-by: Guo Mang <mang....@intel.com>
---
 .../BroxtonSiPkg/SouthCluster/Include/ScRegs/RegsLpss.h          | 9 +++++++--
 .../PeiDxeSmmPchSerialIoUartLib/PeiDxeSmmPchSerialIoUartLib.c    | 3 +--
 2 files changed, 8 insertions(+), 4 deletions(-)

diff --git 
a/Silicon/BroxtonSoC/BroxtonSiPkg/SouthCluster/Include/ScRegs/RegsLpss.h 
b/Silicon/BroxtonSoC/BroxtonSiPkg/SouthCluster/Include/ScRegs/RegsLpss.h
index 51e4e95..6f2f91d 100644
--- a/Silicon/BroxtonSoC/BroxtonSiPkg/SouthCluster/Include/ScRegs/RegsLpss.h
+++ b/Silicon/BroxtonSoC/BroxtonSiPkg/SouthCluster/Include/ScRegs/RegsLpss.h
@@ -17,7 +17,7 @@
   - Registers / bits of new devices introduced in a SC generation will be just 
named
     as "_PCH_" without <generation_name> inserted.
 
-  Copyright (c) 1999 - 2016, Intel Corporation. All rights reserved.<BR>
+  Copyright (c) 1999 - 2017, Intel Corporation. All rights reserved.<BR>
 
   This program and the accompanying materials
   are licensed and made available under the terms and conditions of the BSD 
License
@@ -124,8 +124,13 @@
 #define B_LPSS_IO_MEM_PCP_N_VAL           0x7FFF0000   ///< N value for the M 
over N divider
 #define B_LPSS_IO_MEM_PCP_M_VAL           0x0000FFFE   ///< M value for the M 
over N divider
 #define B_LPSS_IO_MEM_PCP_CLK_EN          BIT0         ///< Clock Enable
-#define V_LPSS_IO_PPR_CLK_M_DIV           1152         ///< Max Baudrate = 
(100MHz * (1152 / 15625)) / 16 = 460800Hz
+#define V_LPSS_IO_PPR_CLK_M_DIV           288          ///< Max Baudrate = 
(100MHz * (288 / 15625)) / 16 = 115200Hz
+                                                       /// 2304 -> 921600
+                                                       /// 1152 -> 460800
+                                                       ///  576 -> 230400
+                                                       ///  288 -> 115200
 #define V_LPSS_IO_PPR_CLK_N_DIV           15625
+#define MAX_BAUD_RATE                     115200       /// ((100000000 * 
(V_LPSS_IO_PPR_CLK_M_DIV / V_LPSS_IO_PPR_CLK_N_DIV)) / 16)
 
 #define R_LPSS_IO_MEM_RESETS              0x204        ///< Software Reset
 #define B_LPSS_IO_MEM_HC_RESET_REL        (BIT0|BIT1)  ///< LPSS IO Host 
Controller Reset Release
diff --git 
a/Silicon/BroxtonSoC/BroxtonSiPkg/SouthCluster/Library/PeiDxeSmmPchSerialIoUartLib/PeiDxeSmmPchSerialIoUartLib.c
 
b/Silicon/BroxtonSoC/BroxtonSiPkg/SouthCluster/Library/PeiDxeSmmPchSerialIoUartLib/PeiDxeSmmPchSerialIoUartLib.c
index ed34140..4a3bdcc 100644
--- 
a/Silicon/BroxtonSoC/BroxtonSiPkg/SouthCluster/Library/PeiDxeSmmPchSerialIoUartLib/PeiDxeSmmPchSerialIoUartLib.c
+++ 
b/Silicon/BroxtonSoC/BroxtonSiPkg/SouthCluster/Library/PeiDxeSmmPchSerialIoUartLib/PeiDxeSmmPchSerialIoUartLib.c
@@ -3,7 +3,7 @@
   All function in this library is available for PEI, DXE, and SMM,
   But do not support UEFI RUNTIME environment call.
 
-  Copyright (c) 2014 - 2016, Intel Corporation. All rights reserved.<BR>
+  Copyright (c) 2014 - 2017, Intel Corporation. All rights reserved.<BR>
 
   This program and the accompanying materials
   are licensed and made available under the terms and conditions of the BSD 
License
@@ -24,7 +24,6 @@
 #include <Library/ScPcrLib.h>
 #include <Library/ScSerialIoLib.h>
 
-#define MAX_BAUD_RATE     460800  // Maximum Baud per SoC spec
 
 #define R_PCH_SERIAL_IO_8BIT_UART_RXBUF      0x00
 #define R_PCH_SERIAL_IO_8BIT_UART_TXBUF      0x00
-- 
2.10.1.windows.1

_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel

Reply via email to