soc/mediatek/mt8196: Initialize PMIF for SD Card
mt6373_init_pmif_arb() needs to be initialized for SD card to control the regulator. TEST=emrege-rauru coreboot TEST=The assertion is gone on Rauru during normal boot. Change-Id: I7e3265bb62a6c78d44e2c756be9a020a49a03056 Signed-off-by: Yidi Lin <yidilin@chromium.org> Reviewed-on: https://review.coreboot.org/c/coreboot/+/85969 Reviewed-by: Yu-Ping Wu <yupingso@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
f51c279d7c
commit
a81e09612b
1 changed files with 2 additions and 0 deletions
|
|
@ -7,6 +7,7 @@
|
|||
|
||||
#include <gpio.h>
|
||||
#include <soc/msdc.h>
|
||||
#include <soc/mt6373.h>
|
||||
#include <soc/regulator.h>
|
||||
|
||||
static const struct pad_func sdcard_pins[] = {
|
||||
|
|
@ -29,6 +30,7 @@ void mtk_msdc_configure_sdcard(void)
|
|||
}
|
||||
|
||||
/* enable SD card power */
|
||||
mt6373_init_pmif_arb();
|
||||
mainboard_enable_regulator(MTK_REGULATOR_VMCH, true);
|
||||
mainboard_enable_regulator(MTK_REGULATOR_VMC, true);
|
||||
mainboard_set_regulator_voltage(MTK_REGULATOR_VMCH, 3000000);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue