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>
This commit is contained in:
Chris Wang 2020-09-08 01:44:47 +08:00 committed by Furquan Shaikh
parent e019bd910f
commit 7ef7596569
2 changed files with 9 additions and 0 deletions

View File

@ -4,3 +4,6 @@
/* Enable PS/2 Mouse */ /* Enable PS/2 Mouse */
#define SIO_EC_ENABLE_PS2M #define SIO_EC_ENABLE_PS2M
/* Enable DPTC support */
#define EC_ENABLE_AMD_DPTC_SUPPORT

View File

@ -20,6 +20,12 @@ chip soc/amd/picasso
register "telemetry_vddcr_soc_slope" = "29035" #mA register "telemetry_vddcr_soc_slope" = "29035" #mA
register "telemetry_vddcr_soc_offset" = "0" 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 # End : OPN Performance Configuration
# Enable I2C2 for trackpad, touchscreen, pen at 400kHz # Enable I2C2 for trackpad, touchscreen, pen at 400kHz