@@ -34,6 +34,12 @@ static const struct mtk_gate_regs vdo1_3_cg_regs = {
34
34
.sta_ofs = 0x140 ,
35
35
};
36
36
37
+ static const struct mtk_gate_regs vdo1_4_cg_regs = {
38
+ .set_ofs = 0x400 ,
39
+ .clr_ofs = 0x400 ,
40
+ .sta_ofs = 0x400 ,
41
+ };
42
+
37
43
#define GATE_VDO1_0 (_id , _name , _parent , _shift ) \
38
44
GATE_MTK(_id, _name, _parent, &vdo1_0_cg_regs, _shift, &mtk_clk_gate_ops_setclr)
39
45
@@ -50,6 +56,9 @@ static const struct mtk_gate_regs vdo1_3_cg_regs = {
50
56
#define GATE_VDO1_3 (_id , _name , _parent , _shift ) \
51
57
GATE_MTK(_id, _name, _parent, &vdo1_3_cg_regs, _shift, &mtk_clk_gate_ops_setclr)
52
58
59
+ #define GATE_VDO1_4 (_id , _name , _parent , _shift ) \
60
+ GATE_MTK(_id, _name, _parent, &vdo1_4_cg_regs, _shift, &mtk_clk_gate_ops_no_setclr_inv)
61
+
53
62
static const struct mtk_gate vdo1_clks [] = {
54
63
/* VDO1_0 */
55
64
GATE_VDO1_0 (CLK_VDO1_SMI_LARB2 , "vdo1_smi_larb2" , "top_vpp" , 0 ),
@@ -107,6 +116,8 @@ static const struct mtk_gate vdo1_clks[] = {
107
116
GATE_VDO1_2 (CLK_VDO1_DISP_MONITOR_DPINTF , "vdo1_disp_monitor_dpintf" , "top_vpp" , 17 ),
108
117
/* VDO1_3 */
109
118
GATE_VDO1_3 (CLK_VDO1_26M_SLOW , "vdo1_26m_slow" , "clk26m" , 8 ),
119
+ /* VDO1_4 */
120
+ GATE_VDO1_4 (CLK_VDO1_DPI1_HDMI , "vdo1_dpi1_hdmi" , "hdmi_txpll" , 0 ),
110
121
};
111
122
112
123
static int clk_mt8195_vdo1_probe (struct platform_device * pdev )
0 commit comments