@@ -1387,6 +1387,22 @@ static struct clk_regmap meson8b_vclk2_clk_in_en = {
13871387 },
13881388};
13891389
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+
13901406static struct clk_regmap meson8b_vclk2_div1_gate = {
13911407 .data = & (struct clk_regmap_gate_data ){
13921408 .offset = HHI_VIID_CLK_DIV ,
@@ -1396,7 +1412,7 @@ static struct clk_regmap meson8b_vclk2_div1_gate = {
13961412 .name = "vclk2_div1_en" ,
13971413 .ops = & clk_regmap_gate_ro_ops ,
13981414 .parent_hws = (const struct clk_hw * []) {
1399- & meson8b_vclk2_clk_in_en .hw
1415+ & meson8b_vclk2_clk_en .hw
14001416 },
14011417 .num_parents = 1 ,
14021418 .flags = CLK_SET_RATE_PARENT ,
@@ -1410,7 +1426,7 @@ static struct clk_fixed_factor meson8b_vclk2_div2_div = {
14101426 .name = "vclk2_div2" ,
14111427 .ops = & clk_fixed_factor_ops ,
14121428 .parent_hws = (const struct clk_hw * []) {
1413- & meson8b_vclk2_clk_in_en .hw
1429+ & meson8b_vclk2_clk_en .hw
14141430 },
14151431 .num_parents = 1 ,
14161432 .flags = CLK_SET_RATE_PARENT ,
@@ -1440,7 +1456,7 @@ static struct clk_fixed_factor meson8b_vclk2_div4_div = {
14401456 .name = "vclk2_div4" ,
14411457 .ops = & clk_fixed_factor_ops ,
14421458 .parent_hws = (const struct clk_hw * []) {
1443- & meson8b_vclk2_clk_in_en .hw
1459+ & meson8b_vclk2_clk_en .hw
14441460 },
14451461 .num_parents = 1 ,
14461462 .flags = CLK_SET_RATE_PARENT ,
@@ -1470,7 +1486,7 @@ static struct clk_fixed_factor meson8b_vclk2_div6_div = {
14701486 .name = "vclk2_div6" ,
14711487 .ops = & clk_fixed_factor_ops ,
14721488 .parent_hws = (const struct clk_hw * []) {
1473- & meson8b_vclk2_clk_in_en .hw
1489+ & meson8b_vclk2_clk_en .hw
14741490 },
14751491 .num_parents = 1 ,
14761492 .flags = CLK_SET_RATE_PARENT ,
@@ -1500,7 +1516,7 @@ static struct clk_fixed_factor meson8b_vclk2_div12_div = {
15001516 .name = "vclk2_div12" ,
15011517 .ops = & clk_fixed_factor_ops ,
15021518 .parent_hws = (const struct clk_hw * []) {
1503- & meson8b_vclk2_clk_in_en .hw
1519+ & meson8b_vclk2_clk_en .hw
15041520 },
15051521 .num_parents = 1 ,
15061522 .flags = CLK_SET_RATE_PARENT ,
@@ -2848,6 +2864,7 @@ static struct clk_hw_onecell_data meson8_hw_onecell_data = {
28482864 [CLKID_VCLK_DIV12 ] = & meson8b_vclk_div12_div_gate .hw ,
28492865 [CLKID_VCLK2_IN_SEL ] = & meson8b_vclk2_in_sel .hw ,
28502866 [CLKID_VCLK2_IN_EN ] = & meson8b_vclk2_clk_in_en .hw ,
2867+ [CLKID_VCLK2_EN ] = & meson8b_vclk2_clk_en .hw ,
28512868 [CLKID_VCLK2_DIV1 ] = & meson8b_vclk2_div1_gate .hw ,
28522869 [CLKID_VCLK2_DIV2_DIV ] = & meson8b_vclk2_div2_div .hw ,
28532870 [CLKID_VCLK2_DIV2 ] = & meson8b_vclk2_div2_div_gate .hw ,
@@ -3054,6 +3071,7 @@ static struct clk_hw_onecell_data meson8b_hw_onecell_data = {
30543071 [CLKID_VCLK_DIV12 ] = & meson8b_vclk_div12_div_gate .hw ,
30553072 [CLKID_VCLK2_IN_SEL ] = & meson8b_vclk2_in_sel .hw ,
30563073 [CLKID_VCLK2_IN_EN ] = & meson8b_vclk2_clk_in_en .hw ,
3074+ [CLKID_VCLK2_EN ] = & meson8b_vclk2_clk_en .hw ,
30573075 [CLKID_VCLK2_DIV1 ] = & meson8b_vclk2_div1_gate .hw ,
30583076 [CLKID_VCLK2_DIV2_DIV ] = & meson8b_vclk2_div2_div .hw ,
30593077 [CLKID_VCLK2_DIV2 ] = & meson8b_vclk2_div2_div_gate .hw ,
@@ -3271,6 +3289,7 @@ static struct clk_hw_onecell_data meson8m2_hw_onecell_data = {
32713289 [CLKID_VCLK_DIV12 ] = & meson8b_vclk_div12_div_gate .hw ,
32723290 [CLKID_VCLK2_IN_SEL ] = & meson8b_vclk2_in_sel .hw ,
32733291 [CLKID_VCLK2_IN_EN ] = & meson8b_vclk2_clk_in_en .hw ,
3292+ [CLKID_VCLK2_EN ] = & meson8b_vclk2_clk_en .hw ,
32743293 [CLKID_VCLK2_DIV1 ] = & meson8b_vclk2_div1_gate .hw ,
32753294 [CLKID_VCLK2_DIV2_DIV ] = & meson8b_vclk2_div2_div .hw ,
32763295 [CLKID_VCLK2_DIV2 ] = & meson8b_vclk2_div2_div_gate .hw ,
@@ -3470,6 +3489,7 @@ static struct clk_regmap *const meson8b_clk_regmaps[] = {
34703489 & meson8b_vclk_div12_div_gate ,
34713490 & meson8b_vclk2_in_sel ,
34723491 & meson8b_vclk2_clk_in_en ,
3492+ & meson8b_vclk2_clk_en ,
34733493 & meson8b_vclk2_div1_gate ,
34743494 & meson8b_vclk2_div2_div_gate ,
34753495 & meson8b_vclk2_div4_div_gate ,
0 commit comments