mb/google/fatcat/var/francka: Add support for DMIC0
This patch enables DMIC_CLK0 and DMIC_DATA0 for internal board DMIC recording. BUG=b:392007428 TEST=emerge-fatcat coreboot Change-Id: Idcc18a6a605694bc5c1a2994453717887814e897 Signed-off-by: Mac Chiang <mac.chiang@intel.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/86699 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Subrata Banik <subratabanik@google.com>
This commit is contained in:
parent
c16891ecbd
commit
715e7e51c5
1 changed files with 8 additions and 0 deletions
|
|
@ -37,6 +37,13 @@ static const struct pad_config sndw_alc721_enable_pads[] = {
|
|||
PAD_CFG_NF(GPP_S07, NONE, DEEP, NF5),
|
||||
};
|
||||
|
||||
static const struct pad_config enable_dmic_0_pads[] = {
|
||||
/* GPP_S02: SOC_DMIC_CLK0 */
|
||||
PAD_CFG_NF(GPP_S02, NONE, DEEP, NF5),
|
||||
/* GPP_S03: SOC_DMIC_DATA0 */
|
||||
PAD_CFG_NF(GPP_S03, NONE, DEEP, NF5),
|
||||
};
|
||||
|
||||
/*
|
||||
* WWAN: power sequence requires three stages:
|
||||
* step 1: 3.3V power, FCP# (Full Card Power), RST#, and PERST# off
|
||||
|
|
@ -120,6 +127,7 @@ void fw_config_gpio_padbased_override(struct pad_config *padbased_table)
|
|||
if (fw_config_probe(FW_CONFIG(AUDIO, AUDIO_ALC256M_CG_HDA))) {
|
||||
printk(BIOS_INFO, "Configure GPIOs for HDA ALC256 mode.\n");
|
||||
GPIO_PADBASED_OVERRIDE(padbased_table, hda_enable_pads);
|
||||
GPIO_PADBASED_OVERRIDE(padbased_table, enable_dmic_0_pads);
|
||||
} else if (fw_config_probe(FW_CONFIG(AUDIO, AUDIO_ALC721_SNDW))) {
|
||||
printk(BIOS_INFO, "Configure GPIOs for Soundwire ALC721 mode.\n");
|
||||
GPIO_PADBASED_OVERRIDE(padbased_table, sndw_alc721_enable_pads);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue