summaryrefslogtreecommitdiff
path: root/src/soc/mediatek/mt8195/include
diff options
context:
space:
mode:
authorJitao Shi <jitao.shi@mediatek.com>2021-06-01 11:42:27 +0800
committerHung-Te Lin <hungte@chromium.org>2021-06-10 09:40:45 +0000
commit435ee357e9c4e09032e4919b4b815fce1fc7d555 (patch)
treedaddaccf2d8cf67ce394775721eb2537306698d5 /src/soc/mediatek/mt8195/include
parentf1763ca7e501c0f02fa0fbc80d1d5fb69386ce64 (diff)
soc/mediatek/mt8195: add power and power control for eDP
1. Add API of TVD_PLL1 mt_pll_set_tvd_pll1_freq() for setting rate. 2. Add API of TVD_PLL1 edp_mux_set_sel() for mux sel. 3. Add eDP power domain control. BUG=b:189985956 Signed-off-by: Jitao Shi <jitao.shi@mediatek.com> Change-Id: I9e43e0ffeb7b8bcd1786a8d2f5acbf22d5ab501f Reviewed-on: https://review.coreboot.org/c/coreboot/+/55346 Reviewed-by: Yu-Ping Wu <yupingso@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/soc/mediatek/mt8195/include')
-rw-r--r--src/soc/mediatek/mt8195/include/soc/spm.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/soc/mediatek/mt8195/include/soc/spm.h b/src/soc/mediatek/mt8195/include/soc/spm.h
index 8f0bcedfa3..fb7d17fb54 100644
--- a/src/soc/mediatek/mt8195/include/soc/spm.h
+++ b/src/soc/mediatek/mt8195/include/soc/spm.h
@@ -991,6 +991,12 @@ static const struct power_domain_data disp[] = {
.sram_pdn_mask = 0x1 << 8,
.sram_ack_mask = 0x1 << 12,
},
+ {
+ .pwr_con = &mtk_spm->edp_tx_pwr_con,
+ .pwr_sta_mask = 0x1 << 17,
+ .sram_pdn_mask = 0x1 << 8,
+ .sram_ack_mask = 0x1 << 12,
+ },
};
static const struct power_domain_data audio[] = {