From 1d19432e1e50dc507af2759bf83c74d5c32c6e4c Mon Sep 17 00:00:00 2001 From: Trevor Wu Date: Tue, 17 Aug 2021 15:58:11 +0800 Subject: 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 Change-Id: I18939a2a2caae0444ce17f4712764647975121ad Reviewed-on: https://review.coreboot.org/c/coreboot/+/57157 Reviewed-by: Yu-Ping Wu Tested-by: build bot (Jenkins) --- src/mainboard/google/cherry/mainboard.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/mainboard/google/cherry/mainboard.c') 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"); -- cgit v1.2.3