summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt DeVillier <matt.devillier@gmail.com>2023-05-15 10:36:59 -0500
committerFelix Held <felix-coreboot@felixheld.de>2023-05-17 11:19:59 +0000
commite29b770d8357c41e7e130710f8418259174e2142 (patch)
tree2d7a6e6329b8140e0c6a2399cb71ac23591fa359
parent4c5ec2137439bc098ef046a0e06fa5c4d3ded457 (diff)
downloadcoreboot-e29b770d8357c41e7e130710f8418259174e2142.tar.gz
drivers/sof: Add support for max98373a using port SSP2
Some devices using the MAX98373a smart amp have the speakers connected to port SSP2 vs the default SSP1, so add a configuration item to be able to specify that. TEST=tested with rest of patch train Change-Id: I11d8011c54946aa72a83c73fa88456b4bb5d7d95 Signed-off-by: Matt DeVillier <matt.devillier@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/75231 Reviewed-by: Felix Held <felix-coreboot@felixheld.de> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
-rw-r--r--src/drivers/sof/chip.h3
-rw-r--r--src/drivers/sof/sof.c1
2 files changed, 3 insertions, 1 deletions
diff --git a/src/drivers/sof/chip.h b/src/drivers/sof/chip.h
index 5f7e8b8120..8d5b0f1893 100644
--- a/src/drivers/sof/chip.h
+++ b/src/drivers/sof/chip.h
@@ -8,7 +8,8 @@
/* Speaker topology */
enum _spkr_tplg {
- max98373 = 1,
+ max98373 = 1, /* port SSP1 */
+ max98373_ssp2,
max98360a,
max98357a,
max98357a_tdm,
diff --git a/src/drivers/sof/sof.c b/src/drivers/sof/sof.c
index edc1f80d0e..b476c1f365 100644
--- a/src/drivers/sof/sof.c
+++ b/src/drivers/sof/sof.c
@@ -12,6 +12,7 @@ static const char *get_spkr_tplg_str(enum _spkr_tplg tplg)
{
switch (tplg) {
case max98373: return "max98373";
+ case max98373_ssp2: return "max98373-ssp2";
case max98360a: return "max98360a";
case max98357a: return "max98357a";
case max98357a_tdm: return "max98357a-tdm";