diff --git a/src/mainboard/google/fatcat/variants/francka/variant.c b/src/mainboard/google/fatcat/variants/francka/variant.c index 0943ee18be..1ca6e41125 100644 --- a/src/mainboard/google/fatcat/variants/francka/variant.c +++ b/src/mainboard/google/fatcat/variants/francka/variant.c @@ -3,6 +3,7 @@ #include #include #include +#include void variant_update_soc_memory_init_params(FSPM_UPD *memupd) { @@ -15,3 +16,22 @@ void variant_update_soc_memory_init_params(FSPM_UPD *memupd) m_cfg->PchHdaSdiEnable[1] = false; } } + +/* + * HDA verb table loading is supported based on the firmware configuration. + * + * This function determines if the current platform has an HDA codec enabled by + * examining the `FW_CONFIG` value. Specifically, it checks if the + * `FW_CONFIG` includes the `AUDIO_ALC256M_CG_HDA` value, which is used to identify + * Francka SKUs with HDA codec support. + * + * Return true if the `FW_CONFIG` indicates HDA support (i.e., contains + * `AUDIO_ALC256M_CG_HDA`), false otherwise. + */ +bool mainboard_is_hda_codec_enabled(void) +{ + if (fw_config_probe(FW_CONFIG(AUDIO, AUDIO_ALC256M_CG_HDA))) + return true; + + return false; +}