From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by mx.groups.io with SMTP id smtpd.web10.3269.1605075378529524667 for ; Tue, 10 Nov 2020 22:16:18 -0800 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: intel.com, ip: 134.134.136.20, mailfrom: heng.luo@intel.com) IronPort-SDR: /2htX6Ew7D6Gyzxo78N7uc7s5dlD/nAEILfOqzWYacuTenBKdnHBuZ7lFQesDcp66Y3aeoq+Fb 0IXbdLeR9obw== X-IronPort-AV: E=McAfee;i="6000,8403,9801"; a="157109530" X-IronPort-AV: E=Sophos;i="5.77,468,1596524400"; d="scan'208";a="157109530" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Nov 2020 22:16:17 -0800 IronPort-SDR: upp4R9t07aDEmxsSzMaf8HW8o3wP9AruPOnz2pE5eZxPHQkeUovO2w3b+6S8v1LFWyvJXDZ/9x Y3hBt7OJ2d0w== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.77,468,1596524400"; d="scan'208";a="531543430" Received: from hengluo-dev.ccr.corp.intel.com ([10.239.153.154]) by fmsmga005.fm.intel.com with ESMTP; 10 Nov 2020 22:16:15 -0800 From: "Heng Luo" To: devel@edk2.groups.io Cc: Eric Dong , Chasel Chiu , Nate DeSimone , Liming Gao Subject: [Patch V5 1/3] MinPlatformPkg: Add PCDs for Serial Terminal feature Date: Wed, 11 Nov 2020 14:16:06 +0800 Message-Id: <20201111061608.5303-1-heng.luo@intel.com> X-Mailer: git-send-email 2.24.0.windows.2 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3D3014 1. Add PcdSerialTerminalEnable to enable/disable Serial Terminal feature, this feature supports console redirect after the shell is loaded. 2. Add PCDs to configure serial port. Cc: Eric Dong Cc: Chasel Chiu Cc: Nate DeSimone Cc: Liming Gao Signed-off-by: Heng Luo --- Platform/Intel/MinPlatformPkg/MinPlatformPkg.dec | 25 ++++++++++++++++++++= +++++ Platform/Intel/MinPlatformPkg/MinPlatformPkg.dsc | 3 ++- 2 files changed, 27 insertions(+), 1 deletion(-) diff --git a/Platform/Intel/MinPlatformPkg/MinPlatformPkg.dec b/Platform/In= tel/MinPlatformPkg/MinPlatformPkg.dec index 7ef189dac8..36050aa1a8 100644 --- a/Platform/Intel/MinPlatformPkg/MinPlatformPkg.dec +++ b/Platform/Intel/MinPlatformPkg/MinPlatformPkg.dec @@ -205,6 +205,30 @@ [PcdsDynamic, PcdsDynamicEx]=0D gMinPlatformPkgTokenSpaceGuid.PcdPcIoApicEnable|0x0|UINT32|0x90000019=0D =0D + # The baud rate setting for the UART style device. A value of 0=0D + # means that the device's default baud rate will be used.=0D + gMinPlatformPkgTokenSpaceGuid.PcdSerialTerminalBaudRate|115200|UINT64|0x= 9000001A=0D +=0D + # The number of data bits for the UART style device. A value=0D + # of 0 means that the device's default number of data bits will be used.= =0D + gMinPlatformPkgTokenSpaceGuid.PcdSerialTerminalDataBits|0x8|UINT8|0x9000= 001B=0D +=0D + # The parity setting for the UART style device.=0D + # Parity 0x00 - Default Parity.=0D + # Parity 0x01 - No Parity.=0D + # Parity 0x02 - Even Parity.=0D + # Parity 0x03 - Odd Parity.=0D + # Parity 0x04 - Mark Parity.=0D + # Parity 0x05 - Space Parity.=0D + gMinPlatformPkgTokenSpaceGuid.PcdSerialTerminalParity|0x1|UINT8|0x900000= 1C=0D +=0D + # The number of stop bits for the UART style device.=0D + # Stop Bits 0x00 - Default Stop Bits.=0D + # Stop Bits 0x01 - 1 Stop Bit.=0D + # Stop Bits 0x02 - 1.5 Stop Bits.=0D + # Stop Bits 0x03 - 2 Stop Bits.=0D + gMinPlatformPkgTokenSpaceGuid.PcdSerialTerminalStopBits|0x1|UINT8|0x9000= 001D=0D +=0D [PcdsFixedAtBuild, PcdsPatchableInModule, PcdsDynamic, PcdsDynamicEx]=0D =0D ##=0D @@ -318,3 +342,4 @@ gMinPlatformPkgTokenSpaceGuid.PcdTpm2Enable |FALSE|BOOLEAN|0= xF00000A5=0D gMinPlatformPkgTokenSpaceGuid.PcdSmiHandlerProfileEnable|FALSE|BOOLEAN|0= xF00000A6=0D gMinPlatformPkgTokenSpaceGuid.PcdPerformanceEnable |FALSE|BOOLEAN|0= xF00000A7=0D + gMinPlatformPkgTokenSpaceGuid.PcdSerialTerminalEnable |FALSE|BOOLEAN|0= xF00000B0=0D diff --git a/Platform/Intel/MinPlatformPkg/MinPlatformPkg.dsc b/Platform/In= tel/MinPlatformPkg/MinPlatformPkg.dsc index 112ddff7d9..d0b5593817 100644 --- a/Platform/Intel/MinPlatformPkg/MinPlatformPkg.dsc +++ b/Platform/Intel/MinPlatformPkg/MinPlatformPkg.dsc @@ -1,7 +1,7 @@ ## @file=0D # Platform description.=0D #=0D -# Copyright (c) 2017 - 2019, Intel Corporation. All rights reserved.
=0D +# Copyright (c) 2017 - 2020, Intel Corporation. All rights reserved.
=0D #=0D # SPDX-License-Identifier: BSD-2-Clause-Patent=0D #=0D @@ -44,6 +44,7 @@ gMinPlatformPkgTokenSpaceGuid.PcdTpm2Enable|FALSE=0D gMinPlatformPkgTokenSpaceGuid.PcdPerformanceEnable|FALSE=0D gMinPlatformPkgTokenSpaceGuid.PcdSmiHandlerProfileEnable|FALSE=0D + gMinPlatformPkgTokenSpaceGuid.PcdSerialTerminalEnable|FALSE=0D =0D ##########################################################################= ######=0D #=0D --=20 2.24.0.windows.2