mb/google/hatch: 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 several hatch variants, verify audio
functional under Windows using coolstar's SOF drivers.

Change-Id: Ie791fa873fc7bbab84644f5ea5743bdcdc124908
Signed-off-by: Matt DeVillier <matt.devillier@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/74814
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Sean Rhodes <sean@starlabs.systems>
Reviewed-by: Martin Roth <martin.roth@amd.corp-partner.google.com>
This commit is contained in:
Matt DeVillier 2023-01-17 11:24:25 -06:00 committed by Matt DeVillier
parent 3a4ac3a85e
commit 10e928319d
12 changed files with 73 additions and 1 deletions

View File

@ -1,6 +1,7 @@
config BOARD_GOOGLE_BASEBOARD_HATCH config BOARD_GOOGLE_BASEBOARD_HATCH
def_bool n def_bool n
select BOARD_ROMSIZE_KB_16384 if !BOARD_ROMSIZE_KB_32768 select BOARD_ROMSIZE_KB_16384 if !BOARD_ROMSIZE_KB_32768
select DRIVERS_AUDIO_SOF
select DRIVERS_GENERIC_GPIO_KEYS select DRIVERS_GENERIC_GPIO_KEYS
select DRIVERS_GENERIC_MAX98357A select DRIVERS_GENERIC_MAX98357A
select DRIVERS_I2C_DA7219 select DRIVERS_I2C_DA7219

View File

@ -242,6 +242,12 @@ chip soc/intel/cannonlake
register "sdmode_delay" = "5" register "sdmode_delay" = "5"
device generic 0 on end device generic 0 on end
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 # Intel HDA end # Intel HDA
end end

View File

@ -345,7 +345,14 @@ chip soc/intel/cannonlake
end # eSPI Interface end # eSPI Interface
device pci 1f.1 on end # P2SB device pci 1f.1 on end # P2SB
device pci 1f.2 hidden end # Power Management Controller device pci 1f.2 hidden end # Power Management Controller
device pci 1f.3 on end # Intel HDA device pci 1f.3 on
chip drivers/sof
register "spkr_tplg" = "max98357a"
register "jack_tplg" = "rt5682"
register "mic_tplg" = "_2ch_pdm0"
device generic 0 on end
end
end # Intel HDA
device pci 1f.4 on end # SMBus device pci 1f.4 on end # SMBus
device pci 1f.5 on end # PCH SPI device pci 1f.5 on end # PCH SPI
device pci 1f.6 off end # GbE device pci 1f.6 off end # GbE

View File

@ -197,6 +197,12 @@ chip soc/intel/cannonlake
register "sdmode_delay" = "5" register "sdmode_delay" = "5"
device generic 0 on end device generic 0 on end
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 # Intel HDA end # Intel HDA
end end

View File

@ -175,6 +175,12 @@ chip soc/intel/cannonlake
register "sdmode_delay" = "5" register "sdmode_delay" = "5"
device generic 0 on end device generic 0 on end
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 # Intel HDA end # Intel HDA
end end

View File

@ -199,5 +199,13 @@ chip soc/intel/cannonlake
device spi 1 on end device spi 1 on end
end # FPMCU end # FPMCU
end # GSPI #1 end # GSPI #1
device pci 1f.3 on
chip drivers/sof
register "spkr_tplg" = "rt1011"
register "jack_tplg" = "rt5682"
register "mic_tplg" = "_2ch_pdm0"
device generic 0 on end
end
end # Intel HDA
end end
end end

View File

@ -218,6 +218,12 @@ chip soc/intel/cannonlake
register "sdmode_delay" = "5" register "sdmode_delay" = "5"
device generic 0 on end device generic 0 on end
end end
chip drivers/sof
register "spkr_tplg" = "rt1011"
register "jack_tplg" = "rt5682"
register "mic_tplg" = "_2ch_pdm0"
device generic 0 on end
end
end # Intel HDA end # Intel HDA
end end
end end

View File

@ -200,6 +200,12 @@ chip soc/intel/cannonlake
register "sdmode_delay" = "5" register "sdmode_delay" = "5"
device generic 0 on end device generic 0 on end
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 # Intel HDA end # Intel HDA
end end

View File

@ -211,6 +211,12 @@ chip soc/intel/cannonlake
register "sdmode_delay" = "5" register "sdmode_delay" = "5"
device generic 0 on end device generic 0 on end
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 # Intel HDA end # Intel HDA
end end

View File

@ -266,6 +266,12 @@ chip soc/intel/cannonlake
register "sdmode_delay" = "5" register "sdmode_delay" = "5"
device generic 0 on end device generic 0 on end
end end
chip drivers/sof
register "spkr_tplg" = "max98357a"
register "jack_tplg" = "da7219"
register "mic_tplg" = "_2ch_pdm0"
device generic 0 on end
end
end # Intel HDA end # Intel HDA
end # domain end # domain
end end

View File

@ -195,6 +195,12 @@ chip soc/intel/cannonlake
register "sdmode_delay" = "5" register "sdmode_delay" = "5"
device generic 0 on end device generic 0 on end
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 # Intel HDA end # Intel HDA
end end

View File

@ -263,5 +263,13 @@ chip soc/intel/cannonlake
device pci 1d.5 off end device pci 1d.5 off end
device pci 1a.0 on end #eMMC device pci 1a.0 on end #eMMC
device pci 1e.3 off end # GSPI #1 device pci 1e.3 off end # GSPI #1
device pci 1f.3 on
chip drivers/sof
register "spkr_tplg" = "max98390"
register "jack_tplg" = "da7219"
register "mic_tplg" = "_2ch_pdm0"
device generic 0 on end
end
end # Intel HDA
end # domain end # domain
end end