summaryrefslogtreecommitdiff
path: root/src/mainboard/amd/mandolin/mainboard.c
diff options
context:
space:
mode:
authorFelix Held <felix.held@amd.corp-partner.google.com>2020-06-27 01:41:21 +0200
committerFelix Held <felix-coreboot@felixheld.de>2020-06-28 14:20:11 +0000
commit346f391642623a132a539edeabbe8a638015b1f9 (patch)
tree5cebeff3f297cad162b273205fb807147b4dba86 /src/mainboard/amd/mandolin/mainboard.c
parent664ba9767d1171c4bd918a76e3c1d1bc4703b028 (diff)
downloadcoreboot-346f391642623a132a539edeabbe8a638015b1f9.tar.xz
mb/amd/mandolin: factor out eMMC GPIO pin mux setup
This also makes the calling of the eMMC GPIO mux setup function conditional on PICASSO_LPC_IOMUX instead of AMD_LPC_DEBUG_CARD which only makes the selection of PICASSO_LPC_IOMUX user-configurable. Change-Id: Ic49a668f82fbc1b851c07d312b543d2889fe4734 Signed-off-by: Felix Held <felix-coreboot@felixheld.de> Reviewed-on: https://review.coreboot.org/c/coreboot/+/42842 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Diffstat (limited to 'src/mainboard/amd/mandolin/mainboard.c')
-rw-r--r--src/mainboard/amd/mandolin/mainboard.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mainboard/amd/mandolin/mainboard.c b/src/mainboard/amd/mandolin/mainboard.c
index c0b9dac7ba..c22ed34849 100644
--- a/src/mainboard/amd/mandolin/mainboard.c
+++ b/src/mainboard/amd/mandolin/mainboard.c
@@ -115,6 +115,12 @@ static void mainboard_init(void *chip_info)
cfg->sd_emmc_config = SD_EMMC_EMMC_HS400;
mainboard_program_gpios();
+
+ /* Re-muxing LPCCLK0 can hang the system if LPC is in use. */
+ if (CONFIG(PICASSO_LPC_IOMUX))
+ printk(BIOS_INFO, "eMMC not available due to LPC requirement\n");
+ else
+ mainboard_program_emmc_gpios();
}
static void mandolin_enable(struct device *dev)