]> git.baikalelectronics.ru Git - kernel.git/commitdiff
clk: meson: g12a: fix VPU clock muxes mask
authorMaxime Jourdan <mjourdan@baylibre.com>
Tue, 19 Mar 2019 08:26:11 +0000 (09:26 +0100)
committerNeil Armstrong <narmstrong@baylibre.com>
Tue, 19 Mar 2019 16:38:00 +0000 (17:38 +0100)
There are 8 parents, use 0x7

Fixes: b1735941da33 ("clk: meson: g12a: add peripheral clock controller")
Signed-off-by: Maxime Jourdan <mjourdan@baylibre.com>
Acked-by: Neil Armstrong <narmstrong@baylibre.com>
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Link: https://lkml.kernel.org/r/20190319082611.6215-1-mjourdan@baylibre.com
drivers/clk/meson/g12a.c

index 0e1ce8c03259b73221266de7aa6491be331815f3..683769f6e90d6bb1b063743bff0449c9605606b2 100644 (file)
@@ -967,7 +967,7 @@ static const char * const g12a_vpu_parent_names[] = {
 static struct clk_regmap g12a_vpu_0_sel = {
        .data = &(struct clk_regmap_mux_data){
                .offset = HHI_VPU_CLK_CNTL,
-               .mask = 0x3,
+               .mask = 0x7,
                .shift = 9,
        },
        .hw.init = &(struct clk_init_data){
@@ -1011,7 +1011,7 @@ static struct clk_regmap g12a_vpu_0 = {
 static struct clk_regmap g12a_vpu_1_sel = {
        .data = &(struct clk_regmap_mux_data){
                .offset = HHI_VPU_CLK_CNTL,
-               .mask = 0x3,
+               .mask = 0x7,
                .shift = 25,
        },
        .hw.init = &(struct clk_init_data){