summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPatrick Rudolph <patrick.rudolph@9elements.com>2021-02-08 08:50:46 +0100
committerPatrick Georgi <pgeorgi@google.com>2021-02-10 07:20:14 +0000
commit082f0b94ee1a6a6a06c6c6315c815b0c16274281 (patch)
treeee9e7aee89c1d59ac2f4634a88634ef628a8727d /src
parent6c2f34ab3205be2098274df7145f2d5b69fd1cfc (diff)
mb/prodrive/hermes: Set mb_hda_amp_enable based on cfg
Change-Id: I13c2ece729128fe245de88c0d36ce7b4bcaf6b6d Signed-off-by: Patrick Rudolph <patrick.rudolph@9elements.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/50381 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/mainboard/prodrive/hermes/mainboard.c8
1 files changed, 7 insertions, 1 deletions
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);