mb/google/brya: Add SOF chip driver

Add SOF chip driver entries for all variants, so that the correct audio
config is passed to the OS drivers.

TEST=build, boot Windows on banshee and osiris variants, verify audio
functional under Windows using coolstar's SOF drivers.

Change-Id: I12614b85f9779cc40d83a9c868cc46b110f26af6
Signed-off-by: Matt DeVillier <matt.devillier@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/74817
Reviewed-by: CoolStar <coolstarorganization@gmail.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Sean Rhodes <sean@starlabs.systems>
This commit is contained in:
Matt DeVillier 2023-01-17 13:44:23 -06:00 committed by Matt DeVillier
parent 35470e1604
commit 3f3dc504e9
10 changed files with 61 additions and 1 deletions

View File

@ -42,6 +42,7 @@ config BOARD_GOOGLE_BASEBOARD_BRYA
def_bool n
select BOARD_GOOGLE_BRYA_COMMON
select BOARD_ROMSIZE_KB_32768
select DRIVERS_AUDIO_SOF
select HAVE_SLP_S0_GATE
select MEMORY_SOLDERDOWN if !BOARD_GOOGLE_BANSHEE
select SOC_INTEL_ALDERLAKE_PCH_P

View File

@ -275,6 +275,12 @@ chip soc/intel/alderlake
register "sdmode_delay" = "5"
device generic 0 on end
end
chip drivers/sof
register "spkr_tplg" = "max98360a"
register "jack_tplg" = "rt5682"
register "mic_tplg" = "_2ch_pdm1"
device generic 0 on end
end
end
device ref gspi1 off end
device ref pch_espi on

View File

@ -196,6 +196,13 @@ chip soc/intel/alderlake
device pnp 0c09.0 on end
end
end
device ref hda on end
device ref hda on
chip drivers/sof
register "spkr_tplg" = "max98360a"
register "jack_tplg" = "rt5682"
register "mic_tplg" = "_2ch_pdm0"
device generic 0 on end
end
end
end
end

View File

@ -316,6 +316,12 @@ chip soc/intel/alderlake
register "sdmode_delay" = "5"
device generic 0 on end
end
chip drivers/sof
register "spkr_tplg" = "max98360a"
register "jack_tplg" = "rt5682"
register "mic_tplg" = "_2ch_pdm1"
device generic 0 on end
end
end
device ref pch_espi on
chip ec/google/chromeec

View File

@ -558,5 +558,13 @@ chip soc/intel/alderlake
end
end
end
device ref hda on
chip drivers/sof
register "spkr_tplg" = "max98373"
register "jack_tplg" = "nau8825"
register "mic_tplg" = "_2ch_pdm0"
device generic 0 on end
end
end
end
end

View File

@ -243,6 +243,12 @@ chip soc/intel/alderlake
probe AUDIO MAX98360_NAU88L25B_I2S
end
end
chip drivers/sof
register "spkr_tplg" = "max98360a"
register "jack_tplg" = "nau8825"
register "mic_tplg" = "_2ch_pdm0"
device generic 0 on end
end
end
device ref pcie_rp6 off end # PCIE6 WWAN
device ref pcie_rp7 on

View File

@ -506,6 +506,12 @@ chip soc/intel/alderlake
probe AUDIO AUDIO_MAX98357_ALC5682I_VS_I2S
end
end
chip drivers/sof
register "spkr_tplg" = "max98357a"
register "jack_tplg" = "rt5682"
register "mic_tplg" = "_2ch_pdm0"
device generic 0 on end
end
end
device ref pcie_rp5 on
chip soc/intel/common/block/pcie/rtd3

View File

@ -368,6 +368,12 @@ chip soc/intel/alderlake
probe AUDIO AUDIO_MAX98357_ALC5682I_VS_I2S
end
end
chip drivers/sof
register "spkr_tplg" = "max98357a"
register "jack_tplg" = "rt5682"
register "mic_tplg" = "_2ch_pdm0"
device generic 0 on end
end
end
device ref pcie_rp5 on
chip soc/intel/common/block/pcie/rtd3

View File

@ -322,6 +322,12 @@ chip soc/intel/alderlake
probe AUDIO AUDIO_MAX98357_ALC5682I_I2S_2WAY
end
end
chip drivers/sof
register "spkr_tplg" = "max98357a"
register "jack_tplg" = "rt5682"
register "mic_tplg" = "_2ch_pdm0"
device generic 0 on end
end
end
device ref pcie_rp5 on
chip soc/intel/common/block/pcie/rtd3

View File

@ -420,5 +420,13 @@ chip soc/intel/alderlake
end
end
end
device ref hda on
chip drivers/sof
register "spkr_tplg" = "max98373"
register "jack_tplg" = "nau8825"
register "mic_tplg" = "_2ch_pdm0"
device generic 0 on end
end
end
end
end