diff options
author | Shon <shon.wang@quanta.corp-partner.google.com> | 2024-09-12 13:34:37 +0800 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2024-09-13 14:19:39 +0000 |
commit | 0251f7da803287b86d1614ea382d89d509d1be46 (patch) | |
tree | 1d3b8d1cc000475266f6f42f8b2a4410eba669eb /src | |
parent | 2a2c78aeeaa16e8847907a68d21992e083c47fb7 (diff) |
mb/google/brask/var/bujia: Fix PSYS voltage setting
It return 0 when google_chromeec_command() on success, so
get_input_power_voltage() should return adaptor voltage instead of
psys_config default value.
BUG=b:329037849
BRANCH=firmware-brya-14505.B
TEST= cbmem -c | grep -i PsysPmax
Change-Id: I848c92752b7a7b53f47c6296aad0bdda20e9b0bd
Signed-off-by: Shon <shon.wang@quanta.corp-partner.google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/84333
Reviewed-by: Derek Huang <derekhuang@google.com>
Reviewed-by: Eric Lai <ericllai@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/mainboard/google/brya/variants/bujia/ramstage.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mainboard/google/brya/variants/bujia/ramstage.c b/src/mainboard/google/brya/variants/bujia/ramstage.c index 1aaa54b590..51f5ecfaaf 100644 --- a/src/mainboard/google/brya/variants/bujia/ramstage.c +++ b/src/mainboard/google/brya/variants/bujia/ramstage.c @@ -70,9 +70,9 @@ static int32_t get_input_power_voltage(void) .cmd_data_out = &info, }; if (!google_chromeec_command(&cmd)) - return psys_config.bj_volts_mv; + return info.adc_value; - return info.adc_value; + return psys_config.bj_volts_mv; } void variant_devtree_update(void) |