summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wang <chris.wang@amd.corp-partner.google.com>2020-09-08 01:44:47 +0800
committerFurquan Shaikh <furquan@google.com>2020-09-17 06:19:07 +0000
commit7ef7596569d80bfee129761814713e1f93f7223b (patch)
treeb35193a8c119d99156da73c4a427a3d3f3d42de6
parente019bd910f5aa58577bff92efaa2b1d6c0610e97 (diff)
mb/google/zork: Add dptc interface support for morphius
Add dptc interface in devicetree for morphius. Set the STAPM parameters for tablet mode: dptc_enable = 1 dptc_fast_ppt_limit = 24000 dptc_slow_ppt_limit = 20000 dptc_sustained_power_limit = 6000 BUG=b:157943445 BRANCH=zork TEST=Build. check the setting changed. Signed-off-by: Chris Wang <chris.wang@amd.corp-partner.google.com> Change-Id: I4dac4b7e5157ad7ad407f42a6fc6b06eefbf3291 Reviewed-on: https://review.coreboot.org/c/coreboot/+/45153 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Furquan Shaikh <furquan@google.com>
-rw-r--r--src/mainboard/google/zork/variants/morphius/include/variant/ec.h3
-rw-r--r--src/mainboard/google/zork/variants/morphius/overridetree.cb6
2 files changed, 9 insertions, 0 deletions
diff --git a/src/mainboard/google/zork/variants/morphius/include/variant/ec.h b/src/mainboard/google/zork/variants/morphius/include/variant/ec.h
index e177507e22..04dfba43b9 100644
--- a/src/mainboard/google/zork/variants/morphius/include/variant/ec.h
+++ b/src/mainboard/google/zork/variants/morphius/include/variant/ec.h
@@ -4,3 +4,6 @@
/* Enable PS/2 Mouse */
#define SIO_EC_ENABLE_PS2M
+
+/* Enable DPTC support */
+#define EC_ENABLE_AMD_DPTC_SUPPORT
diff --git a/src/mainboard/google/zork/variants/morphius/overridetree.cb b/src/mainboard/google/zork/variants/morphius/overridetree.cb
index ed2670208b..00403899b8 100644
--- a/src/mainboard/google/zork/variants/morphius/overridetree.cb
+++ b/src/mainboard/google/zork/variants/morphius/overridetree.cb
@@ -20,6 +20,12 @@ chip soc/amd/picasso
register "telemetry_vddcr_soc_slope" = "29035" #mA
register "telemetry_vddcr_soc_offset" = "0"
+ # Set STAPM confiuration for tablet mode
+ register "dptc_enable" = "1"
+ register "slow_ppt_limit_tablet_mode" = "20000" #mw
+ register "fast_ppt_limit_tablet_mode" = "24000" #mw
+ register "sustained_power_limit_tablet_mode" = "6000" #mw
+
# End : OPN Performance Configuration
# Enable I2C2 for trackpad, touchscreen, pen at 400kHz