From ca084b8db29ebf0eed63e5204213a15a6c8b3f53 Mon Sep 17 00:00:00 2001 From: Chris Wang Date: Wed, 28 Apr 2021 00:03:03 +0800 Subject: [PATCH] mb/google/mancomb: Add STAPM values to overridetree Follow the FP6 IRM(#56328) to set the stapm parameter and allow other mancomb variants boards can customize those parameters. BUG=b:1181157669 TEST=build. Signed-off-by: Chris Wang Change-Id: Ib3ed76e5212a5a8b5fb4fcc3d6884ceff82377b7 Reviewed-on: https://review.coreboot.org/c/coreboot/+/52709 Tested-by: build bot (Jenkins) Reviewed-by: Marshall Dawson Reviewed-by: Felix Held --- .../google/mancomb/variants/baseboard/devicetree.cb | 2 ++ .../google/mancomb/variants/mancomb/overridetree.cb | 8 ++++++++ 2 files changed, 10 insertions(+) diff --git a/src/mainboard/google/mancomb/variants/baseboard/devicetree.cb b/src/mainboard/google/mancomb/variants/baseboard/devicetree.cb index 9bf52c7fa1..ab5ade728c 100644 --- a/src/mainboard/google/mancomb/variants/baseboard/devicetree.cb +++ b/src/mainboard/google/mancomb/variants/baseboard/devicetree.cb @@ -1,6 +1,8 @@ # SPDX-License-Identifier: GPL-2.0-or-later chip soc/amd/cezanne + register "system_configuration" = "3" + # eSPI Configuration register "common_config.espi_config" = "{ .std_io_decode_bitmap = ESPI_DECODE_IO_0x80_EN | ESPI_DECODE_IO_0X60_0X64_EN, diff --git a/src/mainboard/google/mancomb/variants/mancomb/overridetree.cb b/src/mainboard/google/mancomb/variants/mancomb/overridetree.cb index 891b4ebf0b..ef52ac0788 100644 --- a/src/mainboard/google/mancomb/variants/mancomb/overridetree.cb +++ b/src/mainboard/google/mancomb/variants/mancomb/overridetree.cb @@ -1,4 +1,12 @@ chip soc/amd/cezanne + + register "slow_ppt_limit_mW" = "37500" + register "fast_ppt_limit_mW" = "48000" + register "slow_ppt_time_constant_s" = "5" + register "stapm_time_constant_s" = "275" + register "sustained_power_limit_mW" = "25000" + register "thermctl_limit_degreeC" = "100" + device domain 0 on end # domain