summaryrefslogtreecommitdiff
path: root/src/soc/mediatek/mt8188/mtcmos.c
diff options
context:
space:
mode:
authorBo-Chen Chen <rex-bc.chen@mediatek.com>2022-09-29 18:45:37 +0800
committerYu-Ping Wu <yupingso@google.com>2022-10-25 08:30:15 +0000
commitf09872c5bd0fa2d4b6f4e52259ab3355e8489244 (patch)
treef503826a13dca15bab1ac88f37f2d63d00f89164 /src/soc/mediatek/mt8188/mtcmos.c
parent8a604bdbae9d5ddb1ba4ae699d978ebb38746663 (diff)
soc/mediatek/mt8188: Update mtcmos settings for display and audio
- For display, only vdosys0_pwr_con and edp_tx_pwr_con settings are required. - For audio, it requires powering on adsp_ao_pwr_con, adsp_infra_pwr_con and audio_pwr_con. - Add new power domain data `ext_buck_iso_bits` for buck isolation control. BUG=b:244208960 TEST=access display registers successfully. Signed-off-by: Bo-Chen Chen <rex-bc.chen@mediatek.com> Change-Id: I7f00bda0cc5c7f8dea55a564a0ff10ae601115b3 Reviewed-on: https://review.coreboot.org/c/coreboot/+/68489 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Yidi Lin <yidilin@google.com> Reviewed-by: Yu-Ping Wu <yupingso@google.com>
Diffstat (limited to 'src/soc/mediatek/mt8188/mtcmos.c')
-rw-r--r--src/soc/mediatek/mt8188/mtcmos.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/soc/mediatek/mt8188/mtcmos.c b/src/soc/mediatek/mt8188/mtcmos.c
new file mode 100644
index 0000000000..3143b019f1
--- /dev/null
+++ b/src/soc/mediatek/mt8188/mtcmos.c
@@ -0,0 +1,11 @@
+/* SPDX-License-Identifier: GPL-2.0-only OR MIT */
+
+#include <device/mmio.h>
+#include <soc/infracfg.h>
+#include <soc/mtcmos.h>
+#include <soc/spm.h>
+
+void mtcmos_set_scpd_ext_buck_iso(const struct power_domain_data *pd)
+{
+ clrbits32(&mtk_spm->ext_buck_iso, pd->ext_buck_iso_bits);
+}