@@ -1204,6 +1204,22 @@ static struct clk_regmap meson8b_vclk_in_en = {
1204
1204
},
1205
1205
};
1206
1206
1207
+ static struct clk_regmap meson8b_vclk_en = {
1208
+ .data = & (struct clk_regmap_gate_data ){
1209
+ .offset = HHI_VID_CLK_CNTL ,
1210
+ .bit_idx = 19 ,
1211
+ },
1212
+ .hw .init = & (struct clk_init_data ){
1213
+ .name = "vclk_en" ,
1214
+ .ops = & clk_regmap_gate_ro_ops ,
1215
+ .parent_hws = (const struct clk_hw * []) {
1216
+ & meson8b_vclk_in_en .hw
1217
+ },
1218
+ .num_parents = 1 ,
1219
+ .flags = CLK_SET_RATE_PARENT ,
1220
+ },
1221
+ };
1222
+
1207
1223
static struct clk_regmap meson8b_vclk_div1_gate = {
1208
1224
.data = & (struct clk_regmap_gate_data ){
1209
1225
.offset = HHI_VID_CLK_CNTL ,
@@ -1213,7 +1229,7 @@ static struct clk_regmap meson8b_vclk_div1_gate = {
1213
1229
.name = "vclk_div1_en" ,
1214
1230
.ops = & clk_regmap_gate_ro_ops ,
1215
1231
.parent_hws = (const struct clk_hw * []) {
1216
- & meson8b_vclk_in_en .hw
1232
+ & meson8b_vclk_en .hw
1217
1233
},
1218
1234
.num_parents = 1 ,
1219
1235
.flags = CLK_SET_RATE_PARENT ,
@@ -1227,7 +1243,7 @@ static struct clk_fixed_factor meson8b_vclk_div2_div = {
1227
1243
.name = "vclk_div2" ,
1228
1244
.ops = & clk_fixed_factor_ops ,
1229
1245
.parent_hws = (const struct clk_hw * []) {
1230
- & meson8b_vclk_in_en .hw
1246
+ & meson8b_vclk_en .hw
1231
1247
},
1232
1248
.num_parents = 1 ,
1233
1249
.flags = CLK_SET_RATE_PARENT ,
@@ -1257,7 +1273,7 @@ static struct clk_fixed_factor meson8b_vclk_div4_div = {
1257
1273
.name = "vclk_div4" ,
1258
1274
.ops = & clk_fixed_factor_ops ,
1259
1275
.parent_hws = (const struct clk_hw * []) {
1260
- & meson8b_vclk_in_en .hw
1276
+ & meson8b_vclk_en .hw
1261
1277
},
1262
1278
.num_parents = 1 ,
1263
1279
.flags = CLK_SET_RATE_PARENT ,
@@ -1287,7 +1303,7 @@ static struct clk_fixed_factor meson8b_vclk_div6_div = {
1287
1303
.name = "vclk_div6" ,
1288
1304
.ops = & clk_fixed_factor_ops ,
1289
1305
.parent_hws = (const struct clk_hw * []) {
1290
- & meson8b_vclk_in_en .hw
1306
+ & meson8b_vclk_en .hw
1291
1307
},
1292
1308
.num_parents = 1 ,
1293
1309
.flags = CLK_SET_RATE_PARENT ,
@@ -1317,7 +1333,7 @@ static struct clk_fixed_factor meson8b_vclk_div12_div = {
1317
1333
.name = "vclk_div12" ,
1318
1334
.ops = & clk_fixed_factor_ops ,
1319
1335
.parent_hws = (const struct clk_hw * []) {
1320
- & meson8b_vclk_in_en .hw
1336
+ & meson8b_vclk_en .hw
1321
1337
},
1322
1338
.num_parents = 1 ,
1323
1339
.flags = CLK_SET_RATE_PARENT ,
@@ -2820,6 +2836,7 @@ static struct clk_hw_onecell_data meson8_hw_onecell_data = {
2820
2836
[CLKID_VID_PLL_FINAL_DIV ] = & meson8b_vid_pll_final_div .hw ,
2821
2837
[CLKID_VCLK_IN_SEL ] = & meson8b_vclk_in_sel .hw ,
2822
2838
[CLKID_VCLK_IN_EN ] = & meson8b_vclk_in_en .hw ,
2839
+ [CLKID_VCLK_EN ] = & meson8b_vclk_en .hw ,
2823
2840
[CLKID_VCLK_DIV1 ] = & meson8b_vclk_div1_gate .hw ,
2824
2841
[CLKID_VCLK_DIV2_DIV ] = & meson8b_vclk_div2_div .hw ,
2825
2842
[CLKID_VCLK_DIV2 ] = & meson8b_vclk_div2_div_gate .hw ,
@@ -3025,6 +3042,7 @@ static struct clk_hw_onecell_data meson8b_hw_onecell_data = {
3025
3042
[CLKID_VID_PLL_FINAL_DIV ] = & meson8b_vid_pll_final_div .hw ,
3026
3043
[CLKID_VCLK_IN_SEL ] = & meson8b_vclk_in_sel .hw ,
3027
3044
[CLKID_VCLK_IN_EN ] = & meson8b_vclk_in_en .hw ,
3045
+ [CLKID_VCLK_EN ] = & meson8b_vclk_en .hw ,
3028
3046
[CLKID_VCLK_DIV1 ] = & meson8b_vclk_div1_gate .hw ,
3029
3047
[CLKID_VCLK_DIV2_DIV ] = & meson8b_vclk_div2_div .hw ,
3030
3048
[CLKID_VCLK_DIV2 ] = & meson8b_vclk_div2_div_gate .hw ,
@@ -3241,6 +3259,7 @@ static struct clk_hw_onecell_data meson8m2_hw_onecell_data = {
3241
3259
[CLKID_VID_PLL_FINAL_DIV ] = & meson8b_vid_pll_final_div .hw ,
3242
3260
[CLKID_VCLK_IN_SEL ] = & meson8b_vclk_in_sel .hw ,
3243
3261
[CLKID_VCLK_IN_EN ] = & meson8b_vclk_in_en .hw ,
3262
+ [CLKID_VCLK_EN ] = & meson8b_vclk_en .hw ,
3244
3263
[CLKID_VCLK_DIV1 ] = & meson8b_vclk_div1_gate .hw ,
3245
3264
[CLKID_VCLK_DIV2_DIV ] = & meson8b_vclk_div2_div .hw ,
3246
3265
[CLKID_VCLK_DIV2 ] = & meson8b_vclk_div2_div_gate .hw ,
@@ -3443,6 +3462,7 @@ static struct clk_regmap *const meson8b_clk_regmaps[] = {
3443
3462
& meson8b_vid_pll_final_div ,
3444
3463
& meson8b_vclk_in_sel ,
3445
3464
& meson8b_vclk_in_en ,
3465
+ & meson8b_vclk_en ,
3446
3466
& meson8b_vclk_div1_gate ,
3447
3467
& meson8b_vclk_div2_div_gate ,
3448
3468
& meson8b_vclk_div4_div_gate ,
0 commit comments