Sumeet R Pawnikar has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/51937 )
Change subject: TEST: To test OEM variable functionality ......................................................................
TEST: To test OEM variable functionality
Test OEM variable functionality
Change-Id: I65e7245d8e4dadaa3ad9ea14d606940ca364e5a1 Signed-off-by: Sumeet R Pawnikar sumeet.r.pawnikar@intel.com --- M src/ec/google/chromeec/acpi/ec.asl 1 file changed, 23 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/37/51937/1
diff --git a/src/ec/google/chromeec/acpi/ec.asl b/src/ec/google/chromeec/acpi/ec.asl index 7b1a663..dea2882 100644 --- a/src/ec/google/chromeec/acpi/ec.asl +++ b/src/ec/google/chromeec/acpi/ec.asl @@ -6,6 +6,9 @@ * re-evaluate their _PPC and _CST tables. */
+External (_SB.IETM, DeviceObj) +External (_SB.IETM.ODVP, MethodObj) + // Mainboard specific throttle handler #ifdef DPTF_ENABLE_CHARGER External (_SB.DPTF.TCHG, DeviceObj) @@ -239,6 +242,10 @@ Store ("EC: AC CONNECTED", Debug) Store (ACEX, \PWRS) Notify (AC, 0x80) + + Increment(_SB.IETM.ODVP) + Notify (_SB.IETM, 0x88) + #ifdef DPTF_ENABLE_CHARGER If (CondRefOf (_SB.DPTF.TCHG)) { Notify (_SB.DPTF.TCHG, 0x80) @@ -253,6 +260,10 @@ Store ("EC: AC DISCONNECTED", Debug) Store (ACEX, \PWRS) Notify (AC, 0x80) + + Decrement(_SB.IETM.ODVP) + Notify (_SB.IETM, 0x88) + #ifdef DPTF_ENABLE_CHARGER If (CondRefOf (_SB.DPTF.TCHG)) { Notify (_SB.DPTF.TCHG, 0x80) @@ -280,6 +291,10 @@ { Store ("EC: BATTERY INFO", Debug) Notify (BAT0, 0x81) + + Increment(_SB.IETM.ODVP) + Notify (_SB.IETM, 0x88) + #ifdef EC_ENABLE_SECOND_BATTERY_DEVICE If (CondRefOf (BAT1)) { Notify (BAT1, 0x81) @@ -305,6 +320,10 @@ Method (_Q0C, 0, NotSerialized) { Store ("EC: USB CHARGER", Debug) + + Increment(_SB.IETM.ODVP) + Notify (_SB.IETM, 0x88) + }
// Key Pressed @@ -360,6 +379,10 @@ { Store ("EC: BATTERY STATUS", Debug) Notify (BAT0, 0x80) + + Increment(_SB.IETM.ODVP) + Notify (_SB.IETM, 0x88) + #ifdef EC_ENABLE_SECOND_BATTERY_DEVICE If (CondRefOf (BAT1)) { Notify (BAT1, 0x80)