summaryrefslogtreecommitdiff
path: root/src/mainboard/google/cherry/mainboard.c
diff options
context:
space:
mode:
authorTrevor Wu <trevor.wu@mediatek.com>2021-08-17 15:58:11 +0800
committerFelix Held <felix-coreboot@felixheld.de>2021-08-27 02:54:22 +0000
commit1d19432e1e50dc507af2759bf83c74d5c32c6e4c (patch)
tree87dbcc35effa19fc83865d0d0e04ce033a1ae2f7 /src/mainboard/google/cherry/mainboard.c
parent52889c9c9f6d634f580c003b77889301916ef5e5 (diff)
mb/google/cherry: Support audio codec RT1011
Add GPIO "rt1011 reset" and i2c2 initialization for RT1011. Add CHERRY_USE_RT1011 and CHERRY_USE_RT1019 to Kconfig, so we can spearate code for the specific codec by config. Signed-off-by: Trevor Wu <trevor.wu@mediatek.com> Change-Id: I18939a2a2caae0444ce17f4712764647975121ad Reviewed-on: https://review.coreboot.org/c/coreboot/+/57157 Reviewed-by: Yu-Ping Wu <yupingso@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/mainboard/google/cherry/mainboard.c')
-rw-r--r--src/mainboard/google/cherry/mainboard.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mainboard/google/cherry/mainboard.c b/src/mainboard/google/cherry/mainboard.c
index bb6dbac8ab..7b9ba658d1 100644
--- a/src/mainboard/google/cherry/mainboard.c
+++ b/src/mainboard/google/cherry/mainboard.c
@@ -203,6 +203,10 @@ static void mainboard_init(struct device *dev)
configure_sdcard();
setup_usb_host();
+ /* for audio usage */
+ if (CONFIG(CHERRY_USE_RT1011))
+ mtk_i2c_bus_init(I2C2);
+
if (dpm_init())
printk(BIOS_ERR, "dpm init failed, DVFS may not work\n");