diff options
Diffstat (limited to 'src/mainboard/google/brox')
-rw-r--r-- | src/mainboard/google/brox/romstage.c | 3 | ||||
-rw-r--r-- | src/mainboard/google/brox/variants/baseboard/brox/ramstage.c | 5 |
2 files changed, 3 insertions, 5 deletions
diff --git a/src/mainboard/google/brox/romstage.c b/src/mainboard/google/brox/romstage.c index ced918457d..19b99bbeb7 100644 --- a/src/mainboard/google/brox/romstage.c +++ b/src/mainboard/google/brox/romstage.c @@ -21,8 +21,7 @@ void mainboard_memory_init_params(FSPM_UPD *memupd) size_t pads_num; /* If battery is not present - Boot with maximum non-turbo frequency */ - if (CONFIG(EC_GOOGLE_CHROMEEC) && - !google_chromeec_is_battery_present_and_above_critical_threshold()) { + if (CONFIG(EC_GOOGLE_CHROMEEC) && !google_chromeec_is_battery_present()) { FSP_M_CONFIG *mem_cfg = &memupd->FspmConfig; mem_cfg->BootFrequency = MAX_NONTURBO_PERFORMANCE; printk(BIOS_DEBUG, "Boot Frequency is set to %u\n", mem_cfg->BootFrequency); 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); |