Commit 7605aa5b authored by Jerome Brunet's avatar Jerome Brunet Committed by Neil Armstrong

clk: meson: gxbb: fix clk_mclk_i958 divider flags

CLK_DIVIDER_ROUND_CLOSEST was incorrectly put in the hw.init flags
while it should have been in the divider flags

Fixes: 3c277c24 ("clk: meson: gxbb: add cts_mclk_i958")
Signed-off-by: default avatarJerome Brunet <jbrunet@baylibre.com>
Signed-off-by: default avatarNeil Armstrong <narmstrong@baylibre.com>
parent 004f6f46
...@@ -876,7 +876,7 @@ static struct clk_mux gxbb_cts_mclk_i958_sel = { ...@@ -876,7 +876,7 @@ static struct clk_mux gxbb_cts_mclk_i958_sel = {
/* Default parent unknown (register reset value: 0) */ /* Default parent unknown (register reset value: 0) */
.table = (u32[]){ 1, 2, 3 }, .table = (u32[]){ 1, 2, 3 },
.lock = &clk_lock, .lock = &clk_lock,
.hw.init = &(struct clk_init_data){ .hw.init = &(struct clk_init_data) {
.name = "cts_mclk_i958_sel", .name = "cts_mclk_i958_sel",
.ops = &clk_mux_ops, .ops = &clk_mux_ops,
.parent_names = (const char *[]){ "mpll0", "mpll1", "mpll2" }, .parent_names = (const char *[]){ "mpll0", "mpll1", "mpll2" },
...@@ -890,12 +890,13 @@ static struct clk_divider gxbb_cts_mclk_i958_div = { ...@@ -890,12 +890,13 @@ static struct clk_divider gxbb_cts_mclk_i958_div = {
.shift = 16, .shift = 16,
.width = 8, .width = 8,
.lock = &clk_lock, .lock = &clk_lock,
.hw.init = &(struct clk_init_data){ .flags = CLK_DIVIDER_ROUND_CLOSEST,
.hw.init = &(struct clk_init_data) {
.name = "cts_mclk_i958_div", .name = "cts_mclk_i958_div",
.ops = &clk_divider_ops, .ops = &clk_divider_ops,
.parent_names = (const char *[]){ "cts_mclk_i958_sel" }, .parent_names = (const char *[]){ "cts_mclk_i958_sel" },
.num_parents = 1, .num_parents = 1,
.flags = CLK_SET_RATE_PARENT | CLK_DIVIDER_ROUND_CLOSEST, .flags = CLK_SET_RATE_PARENT,
}, },
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment