mb/google/dedede: Add SOF chip driver
Add all SOF chip drivers to baseboard and use FW_CONFIG to determine the correct option, to ensure the correct audio config is passed to the SOF OS drivers. TEST=build, boot Windows on several dedede variants, verify audio functional under Windows using coolstar's SOF drivers. Change-Id: I9452b11af614d8727aa8dd448e37f7a06faa450d Signed-off-by: Matt DeVillier <matt.devillier@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/74818 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:
parent
1591f8437c
commit
35470e1604
|
@ -1,6 +1,7 @@
|
||||||
config BOARD_GOOGLE_BASEBOARD_DEDEDE
|
config BOARD_GOOGLE_BASEBOARD_DEDEDE
|
||||||
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_I2C_CS42L42
|
select DRIVERS_I2C_CS42L42
|
||||||
select DRIVERS_I2C_GENERIC
|
select DRIVERS_I2C_GENERIC
|
||||||
|
|
|
@ -384,7 +384,33 @@ chip soc/intel/jasperlake
|
||||||
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 off end # Intel HDA/cAVS
|
device pci 1f.3 on
|
||||||
|
chip drivers/sof
|
||||||
|
register "spkr_tplg" = "rt1015"
|
||||||
|
register "jack_tplg" = "rt5682"
|
||||||
|
register "mic_tplg" = "_2ch_pdm0"
|
||||||
|
device generic 0 on
|
||||||
|
probe AUDIO_AMP RT1015_I2C
|
||||||
|
probe AUDIO_AMP RT1015P_AUTO
|
||||||
|
end
|
||||||
|
end
|
||||||
|
chip drivers/sof
|
||||||
|
register "spkr_tplg" = "max98360a"
|
||||||
|
register "jack_tplg" = "rt5682"
|
||||||
|
register "mic_tplg" = "_2ch_pdm0"
|
||||||
|
device generic 0 on
|
||||||
|
probe AUDIO_AMP MAX98360
|
||||||
|
end
|
||||||
|
end
|
||||||
|
chip drivers/sof
|
||||||
|
register "spkr_tplg" = "max98357a"
|
||||||
|
register "jack_tplg" = "rt5682"
|
||||||
|
register "mic_tplg" = "_2ch_pdm0"
|
||||||
|
device generic 0 on
|
||||||
|
probe AUDIO_AMP UNPROVISIONED
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end # Intel HDA/cAVS
|
||||||
device pci 1f.4 off end # SMBus
|
device pci 1f.4 off end # SMBus
|
||||||
device pci 1f.5 on end # PCH SPI
|
device pci 1f.5 on end # PCH SPI
|
||||||
device pci 1f.7 off end # Intel Trace Hub
|
device pci 1f.7 off end # Intel Trace Hub
|
||||||
|
|
Loading…
Reference in New Issue