summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mainboard/google/kukui/Kconfig14
-rw-r--r--src/mainboard/google/kukui/chromeos.c2
2 files changed, 15 insertions, 1 deletions
diff --git a/src/mainboard/google/kukui/Kconfig b/src/mainboard/google/kukui/Kconfig
index cff94daf20..0e3a4dc23c 100644
--- a/src/mainboard/google/kukui/Kconfig
+++ b/src/mainboard/google/kukui/Kconfig
@@ -83,4 +83,18 @@ config BOARD_OVERRIDE_LCM_ID
default 0x1 if BOARD_GOOGLE_BURNET || BOARD_GOOGLE_ESCHE
default 0x0
+config SPEAKER_GPIO_NAME
+ string
+ # MAX98357A, should include KENZO in future.
+ default "speaker enable" if BOARD_GOOGLE_JACUZZI || BOARD_GOOGLE_JUNIPER
+ default "speaker enable" if BOARD_GOOGLE_WILLOW || BOARD_GOOGLE_DAMU
+ # MAX98360
+ default "speaker enable" if BOARD_GOOGLE_BURNET || BOARD_GOOGLE_ESCHE
+ default "speaker enable" if BOARD_GOOGLE_KAPPA
+ # ALC1015Q (default for Jacuzzi followers)
+ default "rt1015p sdb" if BOARD_GOOGLE_KAKADU
+ default "rt1015p sdb" if BOARD_GOOGLE_JACUZZI_COMMON
+ # MAX98357A (default for Kukui followers)
+ default "speaker enable"
+
endif
diff --git a/src/mainboard/google/kukui/chromeos.c b/src/mainboard/google/kukui/chromeos.c
index c5810d11aa..3f15a3fb91 100644
--- a/src/mainboard/google/kukui/chromeos.c
+++ b/src/mainboard/google/kukui/chromeos.c
@@ -23,7 +23,7 @@ void fill_lb_gpios(struct lb_gpios *gpios)
{EC_IN_RW.id, ACTIVE_HIGH, -1, "EC in RW"},
{EC_IRQ.id, ACTIVE_LOW, -1, "EC interrupt"},
{CR50_IRQ.id, ACTIVE_HIGH, -1, "TPM interrupt"},
- {GPIO_EN_SPK_AMP.id, ACTIVE_HIGH, -1, "speaker enable"},
+ {GPIO_EN_SPK_AMP.id, ACTIVE_HIGH, -1, CONFIG_SPEAKER_GPIO_NAME},
};
lb_add_gpios(gpios, chromeos_gpios, ARRAY_SIZE(chromeos_gpios));
}