Commit 76d3fc38 authored by Jerome Brunet's avatar Jerome Brunet

clk: meson: g12a: add mpll register init sequences

Add the required init of each MPLL of the g12a.
Signed-off-by: default avatarJerome Brunet <jbrunet@baylibre.com>
parent 19855c82
...@@ -1001,6 +1001,10 @@ static struct clk_fixed_factor g12a_mpll_prediv = { ...@@ -1001,6 +1001,10 @@ static struct clk_fixed_factor g12a_mpll_prediv = {
}, },
}; };
static const struct reg_sequence g12a_mpll0_init_regs[] = {
{ .reg = HHI_MPLL_CNTL2, .def = 0x40000033 },
};
static struct clk_regmap g12a_mpll0_div = { static struct clk_regmap g12a_mpll0_div = {
.data = &(struct meson_clk_mpll_data){ .data = &(struct meson_clk_mpll_data){
.sdm = { .sdm = {
...@@ -1024,6 +1028,8 @@ static struct clk_regmap g12a_mpll0_div = { ...@@ -1024,6 +1028,8 @@ static struct clk_regmap g12a_mpll0_div = {
.width = 1, .width = 1,
}, },
.lock = &meson_clk_lock, .lock = &meson_clk_lock,
.init_regs = g12a_mpll0_init_regs,
.init_count = ARRAY_SIZE(g12a_mpll0_init_regs),
}, },
.hw.init = &(struct clk_init_data){ .hw.init = &(struct clk_init_data){
.name = "mpll0_div", .name = "mpll0_div",
...@@ -1047,6 +1053,10 @@ static struct clk_regmap g12a_mpll0 = { ...@@ -1047,6 +1053,10 @@ static struct clk_regmap g12a_mpll0 = {
}, },
}; };
static const struct reg_sequence g12a_mpll1_init_regs[] = {
{ .reg = HHI_MPLL_CNTL4, .def = 0x40000033 },
};
static struct clk_regmap g12a_mpll1_div = { static struct clk_regmap g12a_mpll1_div = {
.data = &(struct meson_clk_mpll_data){ .data = &(struct meson_clk_mpll_data){
.sdm = { .sdm = {
...@@ -1070,6 +1080,8 @@ static struct clk_regmap g12a_mpll1_div = { ...@@ -1070,6 +1080,8 @@ static struct clk_regmap g12a_mpll1_div = {
.width = 1, .width = 1,
}, },
.lock = &meson_clk_lock, .lock = &meson_clk_lock,
.init_regs = g12a_mpll1_init_regs,
.init_count = ARRAY_SIZE(g12a_mpll1_init_regs),
}, },
.hw.init = &(struct clk_init_data){ .hw.init = &(struct clk_init_data){
.name = "mpll1_div", .name = "mpll1_div",
...@@ -1093,6 +1105,10 @@ static struct clk_regmap g12a_mpll1 = { ...@@ -1093,6 +1105,10 @@ static struct clk_regmap g12a_mpll1 = {
}, },
}; };
static const struct reg_sequence g12a_mpll2_init_regs[] = {
{ .reg = HHI_MPLL_CNTL6, .def = 0x40000033 },
};
static struct clk_regmap g12a_mpll2_div = { static struct clk_regmap g12a_mpll2_div = {
.data = &(struct meson_clk_mpll_data){ .data = &(struct meson_clk_mpll_data){
.sdm = { .sdm = {
...@@ -1116,6 +1132,8 @@ static struct clk_regmap g12a_mpll2_div = { ...@@ -1116,6 +1132,8 @@ static struct clk_regmap g12a_mpll2_div = {
.width = 1, .width = 1,
}, },
.lock = &meson_clk_lock, .lock = &meson_clk_lock,
.init_regs = g12a_mpll2_init_regs,
.init_count = ARRAY_SIZE(g12a_mpll2_init_regs),
}, },
.hw.init = &(struct clk_init_data){ .hw.init = &(struct clk_init_data){
.name = "mpll2_div", .name = "mpll2_div",
...@@ -1139,6 +1157,10 @@ static struct clk_regmap g12a_mpll2 = { ...@@ -1139,6 +1157,10 @@ static struct clk_regmap g12a_mpll2 = {
}, },
}; };
static const struct reg_sequence g12a_mpll3_init_regs[] = {
{ .reg = HHI_MPLL_CNTL8, .def = 0x40000033 },
};
static struct clk_regmap g12a_mpll3_div = { static struct clk_regmap g12a_mpll3_div = {
.data = &(struct meson_clk_mpll_data){ .data = &(struct meson_clk_mpll_data){
.sdm = { .sdm = {
...@@ -1162,6 +1184,8 @@ static struct clk_regmap g12a_mpll3_div = { ...@@ -1162,6 +1184,8 @@ static struct clk_regmap g12a_mpll3_div = {
.width = 1, .width = 1,
}, },
.lock = &meson_clk_lock, .lock = &meson_clk_lock,
.init_regs = g12a_mpll3_init_regs,
.init_count = ARRAY_SIZE(g12a_mpll3_init_regs),
}, },
.hw.init = &(struct clk_init_data){ .hw.init = &(struct clk_init_data){
.name = "mpll3_div", .name = "mpll3_div",
......
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