diff options
author | Nikolai Vyssotski <nikolai.vyssotski@amd.corp-partner.google.com> | 2021-04-28 19:26:37 -0500 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2021-05-03 07:42:18 +0000 |
commit | 60d67ce924c48832b14487e396e6684fb9243827 (patch) | |
tree | e05cc3170ab031bb9aa55c98eaf9eec3c2462fc7 /src | |
parent | 745965763bb59055766a8f1a1662813387890cbb (diff) | |
download | coreboot-60d67ce924c48832b14487e396e6684fb9243827.tar.gz coreboot-60d67ce924c48832b14487e396e6684fb9243827.tar.bz2 coreboot-60d67ce924c48832b14487e396e6684fb9243827.zip |
soc/amd/picasso/dmi.c: Fix builds for boards without Google EC
For CRBs without Google EC with CONFIG_CHROMEOS=y we will get a build
error as google_chromeec_cbi_get_dram_part_num() is not defined. Use
EC_GOOGLE_CHROMEEC instead of CHROMEOS to gate the call.
BUG=b:184124605
Change-Id: I2b200f4fb11513c6fc17a2f0af3e12e5a3e3e5a1
Signed-off-by: Nikolai Vyssotski <nikolai.vyssotski@amd.corp-partner.google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/52748
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Rob Barnes <robbarnes@google.com>
Reviewed-by: Raul Rangel <rrangel@chromium.org>
Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
Diffstat (limited to 'src')
-rw-r--r-- | src/soc/amd/picasso/dmi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/soc/amd/picasso/dmi.c b/src/soc/amd/picasso/dmi.c index 113367004370..69928ad00230 100644 --- a/src/soc/amd/picasso/dmi.c +++ b/src/soc/amd/picasso/dmi.c @@ -158,7 +158,7 @@ static void prepare_dmi_17(void *unused) } printk(BIOS_DEBUG, "AMD_FSP_DMI_HOB found\n"); - if (CONFIG(CHROMEOS)) { + if (CONFIG(EC_GOOGLE_CHROMEEC)) { /* Prefer DRAM part number from CBI. */ if (google_chromeec_cbi_get_dram_part_num( cbi_part_number, sizeof(cbi_part_number)) == 0) { |