Yang Wu has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/81077?usp=email )
Change subject: mb/google/corsola: Add registers reset for ALC5650 ......................................................................
mb/google/corsola: Add registers reset for ALC5650
The power of codec isn't dropped down when cold reboot on corsola, so in devbeep sences, the first beep will be loudly due to codec may not have been initialized. Therefore, we reset codec registers in configure_alc5645().
BRANCH=corsola BUG=b:323606238 TEST=Verify devbeep in depthcharge
Change-Id: I8f74f0b95f20bdcf81a5e1c605e841caa0e0fb1a Signed-off-by: Yang Wu wuyang5@huaqin.corp-partner.google.com --- M src/mainboard/google/corsola/mainboard.c 1 file changed, 4 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/77/81077/1
diff --git a/src/mainboard/google/corsola/mainboard.c b/src/mainboard/google/corsola/mainboard.c index a1ba5f9..1eff98b 100644 --- a/src/mainboard/google/corsola/mainboard.c +++ b/src/mainboard/google/corsola/mainboard.c @@ -3,6 +3,7 @@ #include <bootmode.h> #include <console/console.h> #include <device/device.h> +#include <device/i2c_simple.h> #include <fw_config.h> #include <gpio.h> #include <soc/bl31.h> @@ -38,6 +39,9 @@
/* Init I2C bus timing register for audio codecs */ mtk_i2c_bus_init(I2C5, I2C_SPEED_STANDARD); + + /* Reset the codec/regs */ + i2c_write_field(I2C5, 0x1a, 0x00, 0x00, 0xFF, 0); }
static void mainboard_init(struct device *dev)