summaryrefslogtreecommitdiff
path: root/src/soc/mediatek/mt8192/ufs.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/soc/mediatek/mt8192/ufs.c')
-rw-r--r--src/soc/mediatek/mt8192/ufs.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/soc/mediatek/mt8192/ufs.c b/src/soc/mediatek/mt8192/ufs.c
new file mode 100644
index 0000000000..2537fa7883
--- /dev/null
+++ b/src/soc/mediatek/mt8192/ufs.c
@@ -0,0 +1,9 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
+#include <soc/ufs.h>
+
+void ufs_disable_refclk(void)
+{
+ /* disable ref clock to let UFSHCI release SPM signal */
+ write32((void *)UFS_REFCLK_CTRL, 0);
+}