diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/mainboard/google/volteer/romstage.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mainboard/google/volteer/romstage.c b/src/mainboard/google/volteer/romstage.c index cd4d7fea50..d35bbb5bea 100644 --- a/src/mainboard/google/volteer/romstage.c +++ b/src/mainboard/google/volteer/romstage.c @@ -7,6 +7,7 @@ #include <baseboard/variants.h> #include <ec/google/chromeec/ec.h> #include <fsp/soc_binding.h> +#include <fw_config.h> #include <gpio.h> #include <memory_info.h> #include <soc/gpio.h> @@ -26,6 +27,10 @@ void mainboard_memory_init_params(FSPM_UPD *mupd) }; bool half_populated = gpio_get(GPIO_MEM_CH_SEL); + /* Disable HDA device if no audio board is present. */ + if (fw_config_probe(FW_CONFIG(AUDIO, NONE))) + mem_cfg->PchHdaEnable = 0; + meminit_lpddr4x(mem_cfg, board_cfg, &spd_info, half_populated); } |