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>
This commit is contained in:
parent
745965763b
commit
60d67ce924
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue