summaryrefslogtreecommitdiff
path: root/src/mainboard/google
diff options
context:
space:
mode:
authorMatt DeVillier <matt.devillier@gmail.com>2023-01-17 13:51:29 -0600
committerMatt DeVillier <matt.devillier@amd.corp-partner.google.com>2023-05-05 15:38:53 +0000
commit1db8c57470f373787448d8fb8961b0dc1208a953 (patch)
tree0671fc7de6fef5690a199b524a59d5bf04d5f7cb /src/mainboard/google
parentb78e4620375cc5668db668d900340fd89271c330 (diff)
vc/google: Decouple DSM_CALIB from CHROMEOS
DSM (Dynamic Speaker Management) uses calibration parameters stored in a VPD (Vital Product Data) FMAP region to configure the audio output via an ACPI _DSD table. This has no dependency on a ChromeOS, and can be used by Linux/Windows drivers if appropriately configured. Remove the dependency of DSM_CALIB (and the calibration file) on CHROMEOS and replace it with VPD, so that non-CHROMEOS builds can utilize this feature as well. Move files from underneath vc/google/chromeos to underscore the point. TEST=build/boot google/nightfury, dump ACPI, verify DSM calibraton parameters present in _DSD table. Change-Id: I643b3581bcc662befc9e30736dae806f94b055af Signed-off-by: Matt DeVillier <matt.devillier@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/74812 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: CoolStar <coolstarorganization@gmail.com> Reviewed-by: Sean Rhodes <sean@starlabs.systems> Reviewed-by: Martin Roth <martin.roth@amd.corp-partner.google.com>
Diffstat (limited to 'src/mainboard/google')
-rw-r--r--src/mainboard/google/brya/Kconfig.name16
-rw-r--r--src/mainboard/google/hatch/Kconfig8
-rw-r--r--src/mainboard/google/volteer/Kconfig2
3 files changed, 13 insertions, 13 deletions
diff --git a/src/mainboard/google/brya/Kconfig.name b/src/mainboard/google/brya/Kconfig.name
index 9cdc8e7c9e..14aa8d0f6c 100644
--- a/src/mainboard/google/brya/Kconfig.name
+++ b/src/mainboard/google/brya/Kconfig.name
@@ -57,16 +57,16 @@ config BOARD_GOOGLE_FELWINTER
config BOARD_GOOGLE_GIMBLE
bool "-> Gimble"
select BOARD_GOOGLE_BASEBOARD_BRYA
- select CHROMEOS_DSM_CALIB if CHROMEOS
- select CHROMEOS_DSM_PARAM_FILE_NAME if CHROMEOS
+ select GOOGLE_DSM_CALIB if VPD
+ select GOOGLE_DSM_PARAM_FILE_NAME if VPD
select DRIVERS_GENESYSLOGIC_GL9750
select DRIVERS_I2C_MAX98390
config BOARD_GOOGLE_GIMBLE4ES
bool "-> Gimble4ES"
select BOARD_GOOGLE_BASEBOARD_BRYA
- select CHROMEOS_DSM_CALIB if CHROMEOS
- select CHROMEOS_DSM_PARAM_FILE_NAME if CHROMEOS
+ select GOOGLE_DSM_CALIB if VPD
+ select GOOGLE_DSM_PARAM_FILE_NAME if VPD
select DEFAULT_ADL_NEM
select DRIVERS_GENESYSLOGIC_GL9750
select DRIVERS_I2C_MAX98390
@@ -118,8 +118,8 @@ config BOARD_GOOGLE_PRIMUS4ES
config BOARD_GOOGLE_REDRIX
bool "-> Redrix"
select BOARD_GOOGLE_BASEBOARD_BRYA
- select CHROMEOS_DSM_CALIB if CHROMEOS
- select CHROMEOS_DSM_PARAM_FILE_NAME if CHROMEOS
+ select GOOGLE_DSM_CALIB if VPD
+ select GOOGLE_DSM_PARAM_FILE_NAME if VPD
select DRIVERS_GENESYSLOGIC_GL9755
select DRIVERS_GFX_GENERIC
select DRIVERS_I2C_MAX98390
@@ -130,8 +130,8 @@ config BOARD_GOOGLE_REDRIX
config BOARD_GOOGLE_REDRIX4ES
bool "-> Redrix4ES"
select BOARD_GOOGLE_BASEBOARD_BRYA
- select CHROMEOS_DSM_CALIB if CHROMEOS
- select CHROMEOS_DSM_PARAM_FILE_NAME if CHROMEOS
+ select GOOGLE_DSM_CALIB if VPD
+ select GOOGLE_DSM_PARAM_FILE_NAME if VPD
select DEFAULT_ADL_NEM
select DRIVERS_GENESYSLOGIC_GL9755
select DRIVERS_GFX_GENERIC
diff --git a/src/mainboard/google/hatch/Kconfig b/src/mainboard/google/hatch/Kconfig
index 174978e7e5..c674036735 100644
--- a/src/mainboard/google/hatch/Kconfig
+++ b/src/mainboard/google/hatch/Kconfig
@@ -44,13 +44,13 @@ config BOARD_GOOGLE_HATCH
config BOARD_GOOGLE_HELIOS
select BOARD_GOOGLE_BASEBOARD_HATCH
- select CHROMEOS_DSM_CALIB if CHROMEOS
+ select GOOGLE_DSM_CALIB if VPD
select DRIVERS_I2C_RT1011
select INTEL_GMA_HAVE_VBT
config BOARD_GOOGLE_HELIOS_DISKSWAP
select BOARD_GOOGLE_BASEBOARD_HATCH
- select CHROMEOS_DSM_CALIB if CHROMEOS
+ select GOOGLE_DSM_CALIB if VPD
select DRIVERS_I2C_RT1011
select INTEL_GMA_HAVE_VBT
@@ -74,13 +74,13 @@ config BOARD_GOOGLE_MUSHU
config BOARD_GOOGLE_NIGHTFURY
select BOARD_GOOGLE_BASEBOARD_HATCH
- select CHROMEOS_DSM_CALIB if CHROMEOS
+ select GOOGLE_DSM_CALIB if VPD
select DRIVERS_I2C_MAX98390
select INTEL_GMA_HAVE_VBT
config BOARD_GOOGLE_PALKIA
select BOARD_GOOGLE_BASEBOARD_HATCH
- select CHROMEOS_DSM_CALIB if CHROMEOS
+ select GOOGLE_DSM_CALIB if VPD
select DRIVERS_I2C_RT1011
if BOARD_GOOGLE_BASEBOARD_HATCH
diff --git a/src/mainboard/google/volteer/Kconfig b/src/mainboard/google/volteer/Kconfig
index f4ab6de479..7064a14d06 100644
--- a/src/mainboard/google/volteer/Kconfig
+++ b/src/mainboard/google/volteer/Kconfig
@@ -77,7 +77,7 @@ config BOARD_GOOGLE_HALVOR
config BOARD_GOOGLE_LINDAR
select BOARD_GOOGLE_BASEBOARD_VOLTEER
- select CHROMEOS_DSM_CALIB if CHROMEOS
+ select GOOGLE_DSM_CALIB if VPD
select DRIVERS_GENERIC_BAYHUB_LV2
select DRIVERS_I2C_RT1011
select INTEL_CAR_NEM