summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mainboard/google/rex/Kconfig1
-rw-r--r--src/mainboard/google/rex/Kconfig.name6
-rw-r--r--src/mainboard/google/rex/variants/rex0/overridetree.cb33
3 files changed, 39 insertions, 1 deletions
diff --git a/src/mainboard/google/rex/Kconfig b/src/mainboard/google/rex/Kconfig
index 91ea5364b2..0575238240 100644
--- a/src/mainboard/google/rex/Kconfig
+++ b/src/mainboard/google/rex/Kconfig
@@ -7,7 +7,6 @@ config BOARD_GOOGLE_REX_COMMON
select DRIVERS_INTEL_DPTF
select DRIVERS_INTEL_DPTF_SUPPORTS_TPCH
select DRIVERS_INTEL_USB4_RETIMER
- select DRIVERS_SOUNDWIRE_ALC5682
select DRIVERS_WIFI_GENERIC
select DRIVERS_INTEL_MIPI_CAMERA
select DRIVERS_SPI_ACPI
diff --git a/src/mainboard/google/rex/Kconfig.name b/src/mainboard/google/rex/Kconfig.name
index b990e316cf..82bc0b1451 100644
--- a/src/mainboard/google/rex/Kconfig.name
+++ b/src/mainboard/google/rex/Kconfig.name
@@ -4,6 +4,9 @@ config BOARD_GOOGLE_REX0
bool "-> Rex 0"
select BOARD_GOOGLE_BASEBOARD_REX
select DRIVERS_GENESYSLOGIC_GL9755
+ select DRIVERS_INTEL_SOUNDWIRE
+ select DRIVERS_SOUNDWIRE_CS42L42
+ select DRIVERS_SOUNDWIRE_MAX98363
config BOARD_GOOGLE_SCREEBO
bool "-> Screebo"
@@ -14,3 +17,6 @@ config BOARD_GOOGLE_REX_EC_ISH
select BOARD_GOOGLE_BASEBOARD_REX
select DRIVERS_GENESYSLOGIC_GL9755
select DRIVERS_INTEL_ISH
+ select DRIVERS_INTEL_SOUNDWIRE
+ select DRIVERS_SOUNDWIRE_CS42L42
+ select DRIVERS_SOUNDWIRE_MAX98363
diff --git a/src/mainboard/google/rex/variants/rex0/overridetree.cb b/src/mainboard/google/rex/variants/rex0/overridetree.cb
index c3e2d7bf77..ab9596e1b7 100644
--- a/src/mainboard/google/rex/variants/rex0/overridetree.cb
+++ b/src/mainboard/google/rex/variants/rex0/overridetree.cb
@@ -767,6 +767,39 @@ chip soc/intel/meteorlake
probe AUDIO MAX98360_ALC5682I_I2S
end
end
+ chip drivers/intel/soundwire
+ device generic 0 on
+ probe AUDIO MAX98363_CS42L42_SNDW
+ chip drivers/soundwire/cs42l42
+ # SoundWire Link 0 ID 0
+ register "desc" = ""Headset Codec""
+ register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_B07)"
+ register "irq_gpio" = "ACPI_GPIO_IRQ_EDGE_BOTH(GPP_B06)"
+ register "ts_inv" = "true"
+ register "ts_dbnc_rise" = "RISE_DEB_1000_MS"
+ register "ts_dbnc_fall" = "FALL_DEB_0_MS"
+ register "btn_det_init_dbnce" = "100"
+ register "btn_det_event_dbnce" = "10"
+ register "bias_lvls[0]" = "15"
+ register "bias_lvls[1]" = "8"
+ register "bias_lvls[2]" = "4"
+ register "bias_lvls[3]" = "1"
+ register "hs_bias_ramp_rate" = "HSBIAS_RAMP_SLOW"
+ register "hs_bias_sense_disable" = "true"
+ device generic 0.0 on end
+ end
+ chip drivers/soundwire/max98363
+ # SoundWire Link 2 ID 0
+ register "desc" = ""Left Speaker Amp""
+ device generic 2.0 on end
+ end
+ chip drivers/soundwire/max98363
+ # SoundWire Link 2 ID 1
+ register "desc" = ""Right Speaker Amp""
+ device generic 2.1 on end
+ end
+ end
+ end
end
end
end