[coreboot-gerrit] Change in coreboot[master]: mb/google/kahlee: Set stapm parameters with time value fixed

Akshu Agrawal (Code Review) gerrit at coreboot.org
Thu Oct 11 12:24:59 CEST 2018


Akshu Agrawal has uploaded this change for review. ( https://review.coreboot.org/29027


Change subject: mb/google/kahlee: Set stapm parameters with time value fixed
......................................................................

mb/google/kahlee: Set stapm parameters with time value fixed

stapm_time passed to smu via agesa is in msec. With earlier value
smu was getting stapm_time as 2.5 sec instead of 2500 sec and thus
causing issue in S3, and audio in PsppBalanceLow state.

BUG=b:117569918, b:117252463
TEST=
1.) audio works with PsppBalanceLow
2.) S3 cycles

Change-Id: I673e7e673d042918dff47141f37bbca354f5c45c
Signed-off-by: Akshu Agrawal <akshu.agrawal at amd.com>
---
M src/mainboard/google/kahlee/variants/careena/devicetree.cb
M src/mainboard/google/kahlee/variants/grunt/devicetree.cb
2 files changed, 6 insertions(+), 10 deletions(-)



  git pull ssh://review.coreboot.org:29418/coreboot refs/changes/27/29027/1

diff --git a/src/mainboard/google/kahlee/variants/careena/devicetree.cb b/src/mainboard/google/kahlee/variants/careena/devicetree.cb
index e0909f2..ad760b5 100644
--- a/src/mainboard/google/kahlee/variants/careena/devicetree.cb
+++ b/src/mainboard/google/kahlee/variants/careena/devicetree.cb
@@ -20,11 +20,9 @@
 	register "dram_clear_on_reset" = "DRAM_CONTENTS_KEEP"
 	register "uma_mode" = "UMAMODE_SPECIFIED_SIZE"
 	register "uma_size" = "32 * MiB"
-
-	# Don't set STAPM values for now
-	# register "stapm_percent" = "68"
-	# register "stapm_time" = "2500"
-	# register "stapm_power" = "7800"
+	register "stapm_percent" = "68"
+	register "stapm_time" = "2500000"
+	register "stapm_power" = "7800"
 
 	# Enable I2C0 for audio, USB3 hub at 400kHz
 	register "i2c[0]" = "{
diff --git a/src/mainboard/google/kahlee/variants/grunt/devicetree.cb b/src/mainboard/google/kahlee/variants/grunt/devicetree.cb
index ab56866..8af3f9c 100644
--- a/src/mainboard/google/kahlee/variants/grunt/devicetree.cb
+++ b/src/mainboard/google/kahlee/variants/grunt/devicetree.cb
@@ -20,11 +20,9 @@
 	register "dram_clear_on_reset" = "DRAM_CONTENTS_KEEP"
 	register "uma_mode" = "UMAMODE_SPECIFIED_SIZE"
 	register "uma_size" = "32 * MiB"
-
-	# For now, don't set STAPM values
-	# register "stapm_percent" = "80"
-	# register "stapm_time" = "2500"
-	# register "stapm_power" = "7800"
+	register "stapm_percent" = "80"
+	register "stapm_time" = "2500000"
+	register "stapm_power" = "7800"
 
 	# Enable I2C0 for audio, USB3 hub at 400kHz
 	register "i2c[0]" = "{

-- 
To view, visit https://review.coreboot.org/29027
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I673e7e673d042918dff47141f37bbca354f5c45c
Gerrit-Change-Number: 29027
Gerrit-PatchSet: 1
Gerrit-Owner: Akshu Agrawal <akshu.agrawal at amd.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.coreboot.org/pipermail/coreboot-gerrit/attachments/20181011/7b9adecc/attachment-0001.html>


More information about the coreboot-gerrit mailing list