@@ -1387,6 +1387,22 @@ static struct clk_regmap meson8b_vclk2_clk_in_en = {
1387
1387
},
1388
1388
};
1389
1389
1390
+ static struct clk_regmap meson8b_vclk2_clk_en = {
1391
+ .data = & (struct clk_regmap_gate_data ){
1392
+ .offset = HHI_VIID_CLK_DIV ,
1393
+ .bit_idx = 19 ,
1394
+ },
1395
+ .hw .init = & (struct clk_init_data ){
1396
+ .name = "vclk2_en" ,
1397
+ .ops = & clk_regmap_gate_ro_ops ,
1398
+ .parent_hws = (const struct clk_hw * []) {
1399
+ & meson8b_vclk2_clk_in_en .hw
1400
+ },
1401
+ .num_parents = 1 ,
1402
+ .flags = CLK_SET_RATE_PARENT ,
1403
+ },
1404
+ };
1405
+
1390
1406
static struct clk_regmap meson8b_vclk2_div1_gate = {
1391
1407
.data = & (struct clk_regmap_gate_data ){
1392
1408
.offset = HHI_VIID_CLK_DIV ,
@@ -1396,7 +1412,7 @@ static struct clk_regmap meson8b_vclk2_div1_gate = {
1396
1412
.name = "vclk2_div1_en" ,
1397
1413
.ops = & clk_regmap_gate_ro_ops ,
1398
1414
.parent_hws = (const struct clk_hw * []) {
1399
- & meson8b_vclk2_clk_in_en .hw
1415
+ & meson8b_vclk2_clk_en .hw
1400
1416
},
1401
1417
.num_parents = 1 ,
1402
1418
.flags = CLK_SET_RATE_PARENT ,
@@ -1410,7 +1426,7 @@ static struct clk_fixed_factor meson8b_vclk2_div2_div = {
1410
1426
.name = "vclk2_div2" ,
1411
1427
.ops = & clk_fixed_factor_ops ,
1412
1428
.parent_hws = (const struct clk_hw * []) {
1413
- & meson8b_vclk2_clk_in_en .hw
1429
+ & meson8b_vclk2_clk_en .hw
1414
1430
},
1415
1431
.num_parents = 1 ,
1416
1432
.flags = CLK_SET_RATE_PARENT ,
@@ -1440,7 +1456,7 @@ static struct clk_fixed_factor meson8b_vclk2_div4_div = {
1440
1456
.name = "vclk2_div4" ,
1441
1457
.ops = & clk_fixed_factor_ops ,
1442
1458
.parent_hws = (const struct clk_hw * []) {
1443
- & meson8b_vclk2_clk_in_en .hw
1459
+ & meson8b_vclk2_clk_en .hw
1444
1460
},
1445
1461
.num_parents = 1 ,
1446
1462
.flags = CLK_SET_RATE_PARENT ,
@@ -1470,7 +1486,7 @@ static struct clk_fixed_factor meson8b_vclk2_div6_div = {
1470
1486
.name = "vclk2_div6" ,
1471
1487
.ops = & clk_fixed_factor_ops ,
1472
1488
.parent_hws = (const struct clk_hw * []) {
1473
- & meson8b_vclk2_clk_in_en .hw
1489
+ & meson8b_vclk2_clk_en .hw
1474
1490
},
1475
1491
.num_parents = 1 ,
1476
1492
.flags = CLK_SET_RATE_PARENT ,
@@ -1500,7 +1516,7 @@ static struct clk_fixed_factor meson8b_vclk2_div12_div = {
1500
1516
.name = "vclk2_div12" ,
1501
1517
.ops = & clk_fixed_factor_ops ,
1502
1518
.parent_hws = (const struct clk_hw * []) {
1503
- & meson8b_vclk2_clk_in_en .hw
1519
+ & meson8b_vclk2_clk_en .hw
1504
1520
},
1505
1521
.num_parents = 1 ,
1506
1522
.flags = CLK_SET_RATE_PARENT ,
@@ -2848,6 +2864,7 @@ static struct clk_hw_onecell_data meson8_hw_onecell_data = {
2848
2864
[CLKID_VCLK_DIV12 ] = & meson8b_vclk_div12_div_gate .hw ,
2849
2865
[CLKID_VCLK2_IN_SEL ] = & meson8b_vclk2_in_sel .hw ,
2850
2866
[CLKID_VCLK2_IN_EN ] = & meson8b_vclk2_clk_in_en .hw ,
2867
+ [CLKID_VCLK2_EN ] = & meson8b_vclk2_clk_en .hw ,
2851
2868
[CLKID_VCLK2_DIV1 ] = & meson8b_vclk2_div1_gate .hw ,
2852
2869
[CLKID_VCLK2_DIV2_DIV ] = & meson8b_vclk2_div2_div .hw ,
2853
2870
[CLKID_VCLK2_DIV2 ] = & meson8b_vclk2_div2_div_gate .hw ,
@@ -3054,6 +3071,7 @@ static struct clk_hw_onecell_data meson8b_hw_onecell_data = {
3054
3071
[CLKID_VCLK_DIV12 ] = & meson8b_vclk_div12_div_gate .hw ,
3055
3072
[CLKID_VCLK2_IN_SEL ] = & meson8b_vclk2_in_sel .hw ,
3056
3073
[CLKID_VCLK2_IN_EN ] = & meson8b_vclk2_clk_in_en .hw ,
3074
+ [CLKID_VCLK2_EN ] = & meson8b_vclk2_clk_en .hw ,
3057
3075
[CLKID_VCLK2_DIV1 ] = & meson8b_vclk2_div1_gate .hw ,
3058
3076
[CLKID_VCLK2_DIV2_DIV ] = & meson8b_vclk2_div2_div .hw ,
3059
3077
[CLKID_VCLK2_DIV2 ] = & meson8b_vclk2_div2_div_gate .hw ,
@@ -3271,6 +3289,7 @@ static struct clk_hw_onecell_data meson8m2_hw_onecell_data = {
3271
3289
[CLKID_VCLK_DIV12 ] = & meson8b_vclk_div12_div_gate .hw ,
3272
3290
[CLKID_VCLK2_IN_SEL ] = & meson8b_vclk2_in_sel .hw ,
3273
3291
[CLKID_VCLK2_IN_EN ] = & meson8b_vclk2_clk_in_en .hw ,
3292
+ [CLKID_VCLK2_EN ] = & meson8b_vclk2_clk_en .hw ,
3274
3293
[CLKID_VCLK2_DIV1 ] = & meson8b_vclk2_div1_gate .hw ,
3275
3294
[CLKID_VCLK2_DIV2_DIV ] = & meson8b_vclk2_div2_div .hw ,
3276
3295
[CLKID_VCLK2_DIV2 ] = & meson8b_vclk2_div2_div_gate .hw ,
@@ -3470,6 +3489,7 @@ static struct clk_regmap *const meson8b_clk_regmaps[] = {
3470
3489
& meson8b_vclk_div12_div_gate ,
3471
3490
& meson8b_vclk2_in_sel ,
3472
3491
& meson8b_vclk2_clk_in_en ,
3492
+ & meson8b_vclk2_clk_en ,
3473
3493
& meson8b_vclk2_div1_gate ,
3474
3494
& meson8b_vclk2_div2_div_gate ,
3475
3495
& meson8b_vclk2_div4_div_gate ,
0 commit comments