summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuo Mang <mang.guo@intel.com>2017-09-27 14:50:05 +0800
committerGuo Mang <mang.guo@intel.com>2017-09-27 17:05:36 +0800
commit5bfb200a98ab46a9937a2fc0b1708dbd517e2bdb (patch)
treee53a2f8b34c74953b87942ce72c0df7d5a645d41
parent51a0fe07d4a96fec9130569e43183d32e38abe1a (diff)
downloadedk2-platforms-5bfb200a98ab46a9937a2fc0b1708dbd517e2bdb.tar.xz
Changed Max Baud Rate
Change Max Baud Rate to 115200. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Guo Mang <mang.guo@intel.com>
-rw-r--r--Silicon/BroxtonSoC/BroxtonSiPkg/SouthCluster/Include/ScRegs/RegsLpss.h9
-rw-r--r--Silicon/BroxtonSoC/BroxtonSiPkg/SouthCluster/Library/PeiDxeSmmPchSerialIoUartLib/PeiDxeSmmPchSerialIoUartLib.c3
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 51e4e95670..6f2f91d559 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 ed34140562..4a3bdcc9d8 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