diff options
author | Tzung-Bi Shih <tzungbi@chromium.org> | 2021-01-05 17:57:04 +0800 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2021-01-08 08:31:32 +0000 |
commit | 3f80a7aa6db62c16a724b86dfdcfe6202859e6e8 (patch) | |
tree | 2f22c41662a0c9303fe2dc18f4931011e25f7f1f /src/mainboard/google/asurada/chromeos.c | |
parent | 3436bb03f6c328a02688847f929ec28e1c98eab0 (diff) | |
download | coreboot-3f80a7aa6db62c16a724b86dfdcfe6202859e6e8.tar.gz coreboot-3f80a7aa6db62c16a724b86dfdcfe6202859e6e8.tar.bz2 coreboot-3f80a7aa6db62c16a724b86dfdcfe6202859e6e8.zip |
mb/google/asurada: Support audio
- Turns audio-related things power on.
- Selects I2S pin-muxing.
- Exposes GPIO "speaker enable" for switching on and off.
BUG=b:176856418
Signed-off-by: Tzung-Bi Shih <tzungbi@chromium.org>
Change-Id: If595657bbddad85bc9a154b3648bae1190cb00b5
Reviewed-on: https://review.coreboot.org/c/coreboot/+/49135
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Yu-Ping Wu <yupingso@google.com>
Diffstat (limited to 'src/mainboard/google/asurada/chromeos.c')
-rw-r--r-- | src/mainboard/google/asurada/chromeos.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mainboard/google/asurada/chromeos.c b/src/mainboard/google/asurada/chromeos.c index a57392bc0450..56a1084e8146 100644 --- a/src/mainboard/google/asurada/chromeos.c +++ b/src/mainboard/google/asurada/chromeos.c @@ -15,6 +15,7 @@ void setup_chromeos_gpios(void) gpio_input_pullup(GPIO_H1_AP_INT); gpio_input_pullup(GPIO_SD_CD); gpio_output(GPIO_RESET, 0); + gpio_output(GPIO_EN_SPK_AMP, 0); } void fill_lb_gpios(struct lb_gpios *gpios) @@ -24,6 +25,7 @@ void fill_lb_gpios(struct lb_gpios *gpios) {GPIO_EC_AP_INT.id, ACTIVE_LOW, -1, "EC interrupt"}, {GPIO_H1_AP_INT.id, ACTIVE_HIGH, -1, "TPM interrupt"}, {GPIO_SD_CD.id, ACTIVE_HIGH, -1, "SD card detect"}, + {GPIO_EN_SPK_AMP.id, ACTIVE_HIGH, -1, "speaker enable"}, }; lb_add_gpios(gpios, chromeos_gpios, ARRAY_SIZE(chromeos_gpios)); } |