Re: [edk2] [Patch] Vlv2DeviceRefcodePkg:Add setup option to control _STA of LPE Audio
It's good. Reviewed-by: zwei4 <david@intel.com> Thanks, David | SSG BIOS -Original Message- From: edk2-devel [mailto:edk2-devel-boun...@lists.01.org] On Behalf Of lushifex Sent: Tuesday, January 19, 2016 11:00 AM To: edk2-devel@lists.01.org Subject: [edk2] [Patch] Vlv2DeviceRefcodePkg:Add setup option to control _STA of LPE Audio Signed-off-by: lushifex <shifeix.a...@intel.com> --- Vlv2DeviceRefCodePkg/AcpiTablesPCAT/GloblNvs.asl | 3 ++- Vlv2DeviceRefCodePkg/AcpiTablesPCAT/Pch.asl| 12 +--- Vlv2DeviceRefCodePkg/AcpiTablesPCAT/PchLpss.asl| 7 +-- Vlv2TbltDevicePkg/AcpiPlatform/AcpiPlatform.c | 3 ++- Vlv2TbltDevicePkg/Include/Guid/SetupVariable.h | 3 ++- Vlv2TbltDevicePkg/Include/Protocol/GlobalNvsArea.h | 3 ++- .../PlatformSetupDxe/SouthClusterConfig.vfi| 11 ++- Vlv2TbltDevicePkg/PlatformSetupDxe/UqiList.uni | Bin 66540 -> 66864 bytes Vlv2TbltDevicePkg/PlatformSetupDxe/VfrStrings.uni | Bin 215420 -> 216022 bytes 9 files changed, 32 insertions(+), 10 deletions(-) diff --git a/Vlv2DeviceRefCodePkg/AcpiTablesPCAT/GloblNvs.asl b/Vlv2DeviceRefCodePkg/AcpiTablesPCAT/GloblNvs.asl index 21e526c..32cfd9d 100644 --- a/Vlv2DeviceRefCodePkg/AcpiTablesPCAT/GloblNvs.asl +++ b/Vlv2DeviceRefCodePkg/AcpiTablesPCAT/GloblNvs.asl @@ -3,11 +3,11 @@ ;**; ;*Intel Corporation - ACPI Reference Code for the Baytrail*; ;*Family of Customer Reference Boards.*; ;**; ;**; -;*Copyright (c) 1999 - 2015, Intel Corporation. All rights reserved *; +;*Copyright (c) 1999 - 2016, Intel Corporation. All rights reserved *; ; ; This program and the accompanying materials are licensed and made available under ; the terms and conditions of the BSD License that accompanies this distribution. ; The full text of the license may be found at ; http://opensource.org/licenses/bsd-license.php. @@ -347,7 +347,8 @@ Field(GNVS,AnyAcc,Lock,Preserve) Offset(792), EDPV, 8, //(792) Check for eDP display device DIDX, 32, //(793) Device ID for eDP device IOT, 8, //(794) MinnowBoard Max JP1 is configured for MSFT IOT project. BATT, 8, //(795) The Flag of RTC Battery Prensent. + LPAD, 8, //(796) } diff --git a/Vlv2DeviceRefCodePkg/AcpiTablesPCAT/Pch.asl b/Vlv2DeviceRefCodePkg/AcpiTablesPCAT/Pch.asl index 38dac87..0d12719 100644 --- a/Vlv2DeviceRefCodePkg/AcpiTablesPCAT/Pch.asl +++ b/Vlv2DeviceRefCodePkg/AcpiTablesPCAT/Pch.asl @@ -3,11 +3,11 @@ ;**; ;*Intel Corporation - ACPI Reference Code for the Baytrail*; ;*Family of Customer Reference Boards.*; ;**; ;**; -;*Copyright (c) 2012 - 2014, Intel Corporation. All rights reserved*; +;*Copyright (c) 2012 - 2016, Intel Corporation. All rights reserved*; ; ; This program and the accompanying materials are licensed and made available under ; the terms and conditions of the BSD License that accompanies this distribution. ; The full text of the license may be found at ; http://opensource.org/licenses/bsd-license.php. @@ -137,11 +137,14 @@ scope (\_SB) Method (_STA, 0x0, NotSerialized) { If (LAnd(LAnd(LEqual(LPEE, 2), LEqual(LPED, 0)), LEqual(OSEL, 0))) { -Return (0xF) +If(LEqual(LPAD, 1)) +{ + Return (0xF) +} } Return (0x0) } Method (_DIS, 0x0, NotSerialized) @@ -216,11 +219,14 @@ scope (\_SB) Method (_STA, 0x0, NotSerialized) { If (LAnd(LAnd(LEqual(LPEE, 2), LEqual(LPED, 0)), LEqual(OSEL, 1))) { -Return (0xF) +If(LEqual(LPAD, 1)) +{ + Return (0xF) +} } Return (0x0) } Method (_DIS, 0x0, NotSerialized) diff --git a/Vlv2DeviceRefCodePkg/AcpiTablesPCAT/PchLpss.asl b/Vlv2DeviceRefCodePkg/AcpiTablesPCAT/PchLpss.asl index 3e61e79..ecb20c1 100644 --- a/Vlv2DeviceRefCodePkg/AcpiTablesPCAT/PchLpss.asl +++ b/Vlv2DeviceRefCodePkg/AcpiTablesPCAT/PchLpss.asl @@ -3,11 +3,11 @@ ;**; ;*Intel Corporation - ACPI Reference Code for the Baytrail*; ;*Family of Customer Reference Boards.*; ;**; ;**; -;*Copyright (c) 2
[edk2] [Patch] Vlv2DeviceRefcodePkg:Add setup option to control _STA of LPE Audio
Signed-off-by: lushifex--- Vlv2DeviceRefCodePkg/AcpiTablesPCAT/GloblNvs.asl | 3 ++- Vlv2DeviceRefCodePkg/AcpiTablesPCAT/Pch.asl| 12 +--- Vlv2DeviceRefCodePkg/AcpiTablesPCAT/PchLpss.asl| 7 +-- Vlv2TbltDevicePkg/AcpiPlatform/AcpiPlatform.c | 3 ++- Vlv2TbltDevicePkg/Include/Guid/SetupVariable.h | 3 ++- Vlv2TbltDevicePkg/Include/Protocol/GlobalNvsArea.h | 3 ++- .../PlatformSetupDxe/SouthClusterConfig.vfi| 11 ++- Vlv2TbltDevicePkg/PlatformSetupDxe/UqiList.uni | Bin 66540 -> 66864 bytes Vlv2TbltDevicePkg/PlatformSetupDxe/VfrStrings.uni | Bin 215420 -> 216022 bytes 9 files changed, 32 insertions(+), 10 deletions(-) diff --git a/Vlv2DeviceRefCodePkg/AcpiTablesPCAT/GloblNvs.asl b/Vlv2DeviceRefCodePkg/AcpiTablesPCAT/GloblNvs.asl index 21e526c..32cfd9d 100644 --- a/Vlv2DeviceRefCodePkg/AcpiTablesPCAT/GloblNvs.asl +++ b/Vlv2DeviceRefCodePkg/AcpiTablesPCAT/GloblNvs.asl @@ -3,11 +3,11 @@ ;**; ;*Intel Corporation - ACPI Reference Code for the Baytrail*; ;*Family of Customer Reference Boards.*; ;**; ;**; -;*Copyright (c) 1999 - 2015, Intel Corporation. All rights reserved *; +;*Copyright (c) 1999 - 2016, Intel Corporation. All rights reserved *; ; ; This program and the accompanying materials are licensed and made available under ; the terms and conditions of the BSD License that accompanies this distribution. ; The full text of the license may be found at ; http://opensource.org/licenses/bsd-license.php. @@ -347,7 +347,8 @@ Field(GNVS,AnyAcc,Lock,Preserve) Offset(792), EDPV, 8, //(792) Check for eDP display device DIDX, 32, //(793) Device ID for eDP device IOT, 8, //(794) MinnowBoard Max JP1 is configured for MSFT IOT project. BATT, 8, //(795) The Flag of RTC Battery Prensent. + LPAD, 8, //(796) } diff --git a/Vlv2DeviceRefCodePkg/AcpiTablesPCAT/Pch.asl b/Vlv2DeviceRefCodePkg/AcpiTablesPCAT/Pch.asl index 38dac87..0d12719 100644 --- a/Vlv2DeviceRefCodePkg/AcpiTablesPCAT/Pch.asl +++ b/Vlv2DeviceRefCodePkg/AcpiTablesPCAT/Pch.asl @@ -3,11 +3,11 @@ ;**; ;*Intel Corporation - ACPI Reference Code for the Baytrail*; ;*Family of Customer Reference Boards.*; ;**; ;**; -;*Copyright (c) 2012 - 2014, Intel Corporation. All rights reserved*; +;*Copyright (c) 2012 - 2016, Intel Corporation. All rights reserved*; ; ; This program and the accompanying materials are licensed and made available under ; the terms and conditions of the BSD License that accompanies this distribution. ; The full text of the license may be found at ; http://opensource.org/licenses/bsd-license.php. @@ -137,11 +137,14 @@ scope (\_SB) Method (_STA, 0x0, NotSerialized) { If (LAnd(LAnd(LEqual(LPEE, 2), LEqual(LPED, 0)), LEqual(OSEL, 0))) { -Return (0xF) +If(LEqual(LPAD, 1)) +{ + Return (0xF) +} } Return (0x0) } Method (_DIS, 0x0, NotSerialized) @@ -216,11 +219,14 @@ scope (\_SB) Method (_STA, 0x0, NotSerialized) { If (LAnd(LAnd(LEqual(LPEE, 2), LEqual(LPED, 0)), LEqual(OSEL, 1))) { -Return (0xF) +If(LEqual(LPAD, 1)) +{ + Return (0xF) +} } Return (0x0) } Method (_DIS, 0x0, NotSerialized) diff --git a/Vlv2DeviceRefCodePkg/AcpiTablesPCAT/PchLpss.asl b/Vlv2DeviceRefCodePkg/AcpiTablesPCAT/PchLpss.asl index 3e61e79..ecb20c1 100644 --- a/Vlv2DeviceRefCodePkg/AcpiTablesPCAT/PchLpss.asl +++ b/Vlv2DeviceRefCodePkg/AcpiTablesPCAT/PchLpss.asl @@ -3,11 +3,11 @@ ;**; ;*Intel Corporation - ACPI Reference Code for the Baytrail*; ;*Family of Customer Reference Boards.*; ;**; ;**; -;*Copyright (c) 2012 - 2014, Intel Corporation. All rights reserved*; +;*Copyright (c) 2012 - 2016, Intel Corporation. All rights reserved*; ; ; This program and the accompanying materials are licensed and made available under ; the terms and conditions of the BSD License that accompanies this distribution. ; The full text of the license may be found at ;