summaryrefslogtreecommitdiff
path: root/src/mainboard/google/cherry/Kconfig
diff options
context:
space:
mode:
authorTrevor Wu <trevor.wu@mediatek.com>2022-03-22 13:09:13 +0800
committerFelix Held <felix-coreboot@felixheld.de>2022-03-29 13:56:24 +0000
commit812df72a54034adec7f296b9af9a120e121ccfcd (patch)
tree381bd7dc985b1155af436d712ec09649eafc51dc /src/mainboard/google/cherry/Kconfig
parentaf27ac26b34216f4a188ee1738825177d469cf48 (diff)
mb/google/cherry: support max98390 audio amp
The Cherry follower projects may choose Max98390 for audio output so we have to add a new config CHERRY_USE_MAX98390. Also, the 'dojo' device is the first one to use it. BUG=b:204391159 BRANCH=cherry TEST=emerge-cherry coreboot TEST=Verify beep function through CLI in depthcharge successfully Signed-off-by: Trevor Wu <trevor.wu@mediatek.com> Change-Id: I9b6bc5a5520292dd502b0389217f5062479b4490 Reviewed-on: https://review.coreboot.org/c/coreboot/+/63083 Reviewed-by: Rex-BC Chen <rex-bc.chen@mediatek.com> Reviewed-by: Hung-Te Lin <hungte@chromium.org> Reviewed-by: Yu-Ping Wu <yupingso@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/mainboard/google/cherry/Kconfig')
-rw-r--r--src/mainboard/google/cherry/Kconfig17
1 files changed, 12 insertions, 5 deletions
diff --git a/src/mainboard/google/cherry/Kconfig b/src/mainboard/google/cherry/Kconfig
index e45b259333..51ad029db3 100644
--- a/src/mainboard/google/cherry/Kconfig
+++ b/src/mainboard/google/cherry/Kconfig
@@ -57,11 +57,18 @@ config EC_GOOGLE_CHROMEEC_SPI_BUS
hex
default 0x0
-config CHERRY_USE_RT1011
- bool
- default n
+choice
+ prompt "Speaker AMP for Cherry"
+ default CHERRY_USE_RT1019 if BOARD_GOOGLE_CHERRY || BOARD_GOOGLE_TOMATO
+ default CHERRY_USE_MAX98390 if BOARD_GOOGLE_DOJO
+config CHERRY_USE_RT1011
+ bool "RT1011"
config CHERRY_USE_RT1019
- bool
- default y
+ bool "RT1019"
+config CHERRY_USE_MAX98390
+ bool "MAX98390"
+
+endchoice
+
endif