diff options
author | Sowmya Aralguppe <sowmya.aralguppe@intel.com> | 2024-11-05 16:55:11 +0530 |
---|---|---|
committer | Karthik Ramasubramanian <kramasub@google.com> | 2024-11-06 18:20:22 +0000 |
commit | 34cbfae8b6d01c7dcbaba6891ec2f4ffb234efc3 (patch) | |
tree | 5fba59928287358efc89703b3c8da84a8953cf7f /src/mainboard/google/brox/variants | |
parent | 4597fc331b0bdc2d95ffd7d128c17fbbbc581369 (diff) |
mb/google/brox: Reduce PL4 only for battery disconnected scenario
This patch reduces PL4 only for no battery condition i.e. when battery
is disconnected or not physically present.
BUG=b:377305625
TEST=Build Brox and boot when the battery is disconnected
Change-Id: I59a1028ce9cd3a6cf98f865d9c085a64f391f201
Signed-off-by: Sowmya Aralguppe <sowmya.aralguppe@intel.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/85002
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Karthik Ramasubramanian <kramasub@google.com>
Diffstat (limited to 'src/mainboard/google/brox/variants')
-rw-r--r-- | src/mainboard/google/brox/variants/baseboard/brox/ramstage.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mainboard/google/brox/variants/baseboard/brox/ramstage.c b/src/mainboard/google/brox/variants/baseboard/brox/ramstage.c index 80c8499e4e..f079d7a58f 100644 --- a/src/mainboard/google/brox/variants/baseboard/brox/ramstage.c +++ b/src/mainboard/google/brox/variants/baseboard/brox/ramstage.c @@ -53,9 +53,8 @@ static void variant_pl4_override(struct soc_power_limits_config *config, if (!config->tdp_pl4) return; - /* limiting PL4 value for battery disconnected or below critical threshold */ - if (CONFIG_PL4_LIMIT_FOR_CRITICAL_BAT_BOOT && - (!google_chromeec_is_battery_present_and_above_critical_threshold())) + /* Limit PL4 when battery is disconnected */ + if (CONFIG_PL4_LIMIT_FOR_CRITICAL_BAT_BOOT && !google_chromeec_is_battery_present()) config->tdp_pl4 = CONFIG_PL4_LIMIT_FOR_CRITICAL_BAT_BOOT; else config->tdp_pl4 = DIV_ROUND_UP(limits[brox_idx].pl4_power, MILLIWATTS_TO_WATTS); |