From 60d67ce924c48832b14487e396e6684fb9243827 Mon Sep 17 00:00:00 2001 From: Nikolai Vyssotski Date: Wed, 28 Apr 2021 19:26:37 -0500 Subject: 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 Reviewed-on: https://review.coreboot.org/c/coreboot/+/52748 Tested-by: build bot (Jenkins) Reviewed-by: Rob Barnes Reviewed-by: Raul Rangel Reviewed-by: Felix Held --- src/soc/amd/picasso/dmi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/soc/amd/picasso/dmi.c') diff --git a/src/soc/amd/picasso/dmi.c b/src/soc/amd/picasso/dmi.c index 1133670043..69928ad002 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) { -- cgit v1.2.3