summaryrefslogtreecommitdiffstats
path: root/src/soc/mediatek/mt8195/soc.c
diff options
context:
space:
mode:
authorYidi Lin <yidi.lin@mediatek.com>2021-04-19 16:06:55 +0800
committerHung-Te Lin <hungte@chromium.org>2021-05-11 03:54:09 +0000
commitbe8621d7854d28cc4ac1a2c07e8de6ddfb9d5a0c (patch)
tree643cd286d0b14f6f54f2ad43d9457e7910c43f7f /src/soc/mediatek/mt8195/soc.c
parent9a056013411a79ca7973c6a141d78e22949d4553 (diff)
downloadcoreboot-be8621d7854d28cc4ac1a2c07e8de6ddfb9d5a0c.tar.gz
coreboot-be8621d7854d28cc4ac1a2c07e8de6ddfb9d5a0c.tar.bz2
coreboot-be8621d7854d28cc4ac1a2c07e8de6ddfb9d5a0c.zip
soc/mediatek/mt8195: Disable UFS reference clock
UFS reference clock (refclk) is enabled by default, which will cause the UFSHCI to hold the SPM signal and lead to suspend failure. Since UFS kernel driver is not built-in, disable refclk in coreboot stage. Change UFSHCI base register to 0x11270000. Signed-off-by: Yidi Lin <yidi.lin@mediatek.com> Change-Id: I1386e59f802a9e3c938a7e8dbeea547fbcb02709 Reviewed-on: https://review.coreboot.org/c/coreboot/+/54011 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Yu-Ping Wu <yupingso@google.com>
Diffstat (limited to 'src/soc/mediatek/mt8195/soc.c')
-rw-r--r--src/soc/mediatek/mt8195/soc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/soc/mediatek/mt8195/soc.c b/src/soc/mediatek/mt8195/soc.c
index 4c98a662f920..cd161e874ab5 100644
--- a/src/soc/mediatek/mt8195/soc.c
+++ b/src/soc/mediatek/mt8195/soc.c
@@ -3,6 +3,7 @@
#include <device/device.h>
#include <soc/emi.h>
#include <soc/mmu_operations.h>
+#include <soc/ufs.h>
#include <symbols.h>
static void soc_read_resources(struct device *dev)
@@ -13,6 +14,7 @@ static void soc_read_resources(struct device *dev)
static void soc_init(struct device *dev)
{
mtk_mmu_disable_l2c_sram();
+ ufs_disable_refclk();
}
static struct device_operations soc_ops = {