From 082f0b94ee1a6a6a06c6c6315c815b0c16274281 Mon Sep 17 00:00:00 2001 From: Patrick Rudolph Date: Mon, 8 Feb 2021 08:50:46 +0100 Subject: mb/prodrive/hermes: Set mb_hda_amp_enable based on cfg Change-Id: I13c2ece729128fe245de88c0d36ce7b4bcaf6b6d Signed-off-by: Patrick Rudolph Reviewed-on: https://review.coreboot.org/c/coreboot/+/50381 Tested-by: build bot (Jenkins) Reviewed-by: Angel Pons --- src/mainboard/prodrive/hermes/mainboard.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/mainboard/prodrive/hermes/mainboard.c b/src/mainboard/prodrive/hermes/mainboard.c index 822ed58b81..d9abb7616f 100644 --- a/src/mainboard/prodrive/hermes/mainboard.c +++ b/src/mainboard/prodrive/hermes/mainboard.c @@ -62,9 +62,16 @@ static void mainboard_init(void *chip_info) if (!board_cfg) return; + /* Set Deep Sx */ config_t *config = config_of_soc(); config->deep_s5_enable_ac = board_cfg->deep_sx_enabled; config->deep_s5_enable_dc = board_cfg->deep_sx_enabled; + + /* Enable internal speaker amplifier */ + if (board_cfg->internal_audio_connection == 2) + mb_hda_amp_enable(1); + else + mb_hda_amp_enable(0); } static void mainboard_final(struct device *dev) @@ -122,7 +129,6 @@ static void mainboard_enable(struct device *dev) mb_configure_dp2_pwr(1); mb_configure_dp3_pwr(1); - mb_hda_amp_enable(1); mb_usb31_rp1_pwr_enable(1); mb_usb31_rp2_pwr_enable(1); mb_usb31_fp_pwr_enable(1); -- cgit v1.2.3