summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStar Zeng <star.zeng@intel.com>2016-04-07 18:19:22 +0800
committerLaszlo Ersek <lersek@redhat.com>2016-04-07 17:30:06 +0200
commit11a291a4d2794e1c6e27613f8e3f0ef1af4c8506 (patch)
tree98becb887e6fc2857cd751adc5a0fc29f6bbc0d0
parent31583f9a8b3e9f47bf57793ccf9906decbf435a0 (diff)
downloadedk2-11a291a4d2794e1c6e27613f8e3f0ef1af4c8506.zip
edk2-11a291a4d2794e1c6e27613f8e3f0ef1af4c8506.tar.gz
edk2-11a291a4d2794e1c6e27613f8e3f0ef1af4c8506.tar.bz2
MdeModulePkg: Introduce new PCD PcdAcpiS3Enable
Platform can configure the PCD statically or dynamically to control if ACPI S3 will be enabled. S3 related modules can consume the PCD to control the code. Cc: Feng Tian <feng.tian@intel.com> Cc: Jiewen Yao <jiewen.yao@intel.com> Cc: Laszlo Ersek <lersek@redhat.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng <star.zeng@intel.com> Reviewed-by: Jiewen Yao <jiewen.yao@intel.com> Tested-by: Laszlo Ersek <lersek@redhat.com>
-rw-r--r--MdeModulePkg/MdeModulePkg.dec6
-rw-r--r--MdeModulePkg/MdeModulePkg.uni6
2 files changed, 12 insertions, 0 deletions
diff --git a/MdeModulePkg/MdeModulePkg.dec b/MdeModulePkg/MdeModulePkg.dec
index aa9e806..f57e5c5 100644
--- a/MdeModulePkg/MdeModulePkg.dec
+++ b/MdeModulePkg/MdeModulePkg.dec
@@ -1504,6 +1504,12 @@
# @Prompt Mmio base address of pci-based SD/MMC host controller.
gEfiMdeModulePkgTokenSpaceGuid.PcdSdMmcPciHostControllerMmioBase|0xd0000000|UINT32|0x30001043
+ ## Indicates if ACPI S3 will be enabled.<BR><BR>
+ # TRUE - ACPI S3 will be enabled.<BR>
+ # FALSE - ACPI S3 will be disabled.<BR>
+ # @Prompt ACPI S3 Enable.
+ gEfiMdeModulePkgTokenSpaceGuid.PcdAcpiS3Enable|TRUE|BOOLEAN|0x01100000
+
[PcdsPatchableInModule]
## Specify memory size with page number for PEI code when
# Loading Module at Fixed Address feature is enabled.
diff --git a/MdeModulePkg/MdeModulePkg.uni b/MdeModulePkg/MdeModulePkg.uni
index 75659c1..cbd4ad3 100644
--- a/MdeModulePkg/MdeModulePkg.uni
+++ b/MdeModulePkg/MdeModulePkg.uni
@@ -325,6 +325,12 @@
"TRUE - to set NX for stack.<BR>"
"FALSE - Not to set NX for stack.<BR>"
+#string STR_gEfiMdeModulePkgTokenSpaceGuid_PcdAcpiS3Enable_PROMPT #language en-US "ACPI S3 Enable"
+
+#string STR_gEfiMdeModulePkgTokenSpaceGuid_PcdAcpiS3Enable_HELP #language en-US "Indicates if ACPI S3 will be enabled.<BR><BR>"
+ "TRUE - ACPI S3 will be enabled.<BR>"
+ "FALSE - ACPI S3 will be disabled.<BR>"
+
#string STR_gEfiMdeModulePkgTokenSpaceGuid_PcdVarCheckVfrDriverGuidArray_PROMPT #language en-US "Driver guid array of VFR drivers for VarCheckHiiBin generation"
#string STR_gEfiMdeModulePkgTokenSpaceGuid_PcdVarCheckVfrDriverGuidArray_HELP #language en-US "This PCD to include the driver guid of VFR drivers for VarCheckHiiBin generation.<BR><BR>"