]> git.proxmox.com Git - mirror_edk2.git/commitdiff
MdeModulePkg: Introduce new PCD PcdAcpiS3Enable
authorStar Zeng <star.zeng@intel.com>
Thu, 7 Apr 2016 10:19:22 +0000 (18:19 +0800)
committerLaszlo Ersek <lersek@redhat.com>
Thu, 7 Apr 2016 15:30:06 +0000 (17:30 +0200)
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>
MdeModulePkg/MdeModulePkg.dec
MdeModulePkg/MdeModulePkg.uni

index aa9e8066d8a6b90be2c4b8d9d48515e60dbcd79e..f57e5c5917228ca92f28531d8856e62cc205f654 100644 (file)
   # @Prompt Mmio base address of pci-based SD/MMC host controller.\r
   gEfiMdeModulePkgTokenSpaceGuid.PcdSdMmcPciHostControllerMmioBase|0xd0000000|UINT32|0x30001043\r
 \r
+  ## Indicates if ACPI S3 will be enabled.<BR><BR>\r
+  #   TRUE  - ACPI S3 will be enabled.<BR>\r
+  #   FALSE - ACPI S3 will be disabled.<BR>\r
+  # @Prompt ACPI S3 Enable.\r
+  gEfiMdeModulePkgTokenSpaceGuid.PcdAcpiS3Enable|TRUE|BOOLEAN|0x01100000\r
+\r
 [PcdsPatchableInModule]\r
   ## Specify memory size with page number for PEI code when\r
   #  Loading Module at Fixed Address feature is enabled.\r
index 75659c115f1ff8857530b05c73db94aabbfbba10..cbd4ad31b2b448ae2aa1c3366bde957ffde0cc10 100644 (file)
                                                                                   "TRUE  - to set NX for stack.<BR>"\r
                                                                                   "FALSE - Not to set NX for stack.<BR>"\r
 \r
+#string STR_gEfiMdeModulePkgTokenSpaceGuid_PcdAcpiS3Enable_PROMPT  #language en-US "ACPI S3 Enable"\r
+\r
+#string STR_gEfiMdeModulePkgTokenSpaceGuid_PcdAcpiS3Enable_HELP  #language en-US "Indicates if ACPI S3 will be enabled.<BR><BR>"\r
+                                                                                  "TRUE  - ACPI S3 will be enabled.<BR>"\r
+                                                                                  "FALSE - ACPI S3 will be disabled.<BR>"\r
+\r
 #string STR_gEfiMdeModulePkgTokenSpaceGuid_PcdVarCheckVfrDriverGuidArray_PROMPT  #language en-US "Driver guid array of VFR drivers for VarCheckHiiBin generation"\r
 \r
 #string STR_gEfiMdeModulePkgTokenSpaceGuid_PcdVarCheckVfrDriverGuidArray_HELP  #language en-US "This PCD to include the driver guid of VFR drivers for VarCheckHiiBin generation.<BR><BR>"\r