Commit b48d7c5b authored by Stephen Boyd's avatar Stephen Boyd

Merge tag 'meson-clk-fixes-for-4.13-rc4-v2' of git://github.com/baylibre/clk-meson into clk-fixes

Pull one Meson clock fix from Neil Armstrong

* tag 'meson-clk-fixes-for-4.13-rc4-v2' of git://github.com/baylibre/clk-meson:
  clk: meson: mpll: fix mpll0 fractional part ignored
parents 5b30850b 1f737ffa
...@@ -161,6 +161,13 @@ static int mpll_set_rate(struct clk_hw *hw, ...@@ -161,6 +161,13 @@ static int mpll_set_rate(struct clk_hw *hw,
reg = PARM_SET(p->width, p->shift, reg, 1); reg = PARM_SET(p->width, p->shift, reg, 1);
writel(reg, mpll->base + p->reg_off); writel(reg, mpll->base + p->reg_off);
p = &mpll->ssen;
if (p->width != 0) {
reg = readl(mpll->base + p->reg_off);
reg = PARM_SET(p->width, p->shift, reg, 1);
writel(reg, mpll->base + p->reg_off);
}
p = &mpll->n2; p = &mpll->n2;
reg = readl(mpll->base + p->reg_off); reg = readl(mpll->base + p->reg_off);
reg = PARM_SET(p->width, p->shift, reg, n2); reg = PARM_SET(p->width, p->shift, reg, n2);
......
...@@ -118,6 +118,7 @@ struct meson_clk_mpll { ...@@ -118,6 +118,7 @@ struct meson_clk_mpll {
struct parm sdm_en; struct parm sdm_en;
struct parm n2; struct parm n2;
struct parm en; struct parm en;
struct parm ssen;
spinlock_t *lock; spinlock_t *lock;
}; };
......
...@@ -528,6 +528,11 @@ static struct meson_clk_mpll gxbb_mpll0 = { ...@@ -528,6 +528,11 @@ static struct meson_clk_mpll gxbb_mpll0 = {
.shift = 14, .shift = 14,
.width = 1, .width = 1,
}, },
.ssen = {
.reg_off = HHI_MPLL_CNTL,
.shift = 25,
.width = 1,
},
.lock = &clk_lock, .lock = &clk_lock,
.hw.init = &(struct clk_init_data){ .hw.init = &(struct clk_init_data){
.name = "mpll0", .name = "mpll0",
......
...@@ -267,6 +267,11 @@ static struct meson_clk_mpll meson8b_mpll0 = { ...@@ -267,6 +267,11 @@ static struct meson_clk_mpll meson8b_mpll0 = {
.shift = 14, .shift = 14,
.width = 1, .width = 1,
}, },
.ssen = {
.reg_off = HHI_MPLL_CNTL,
.shift = 25,
.width = 1,
},
.lock = &clk_lock, .lock = &clk_lock,
.hw.init = &(struct clk_init_data){ .hw.init = &(struct clk_init_data){
.name = "mpll0", .name = "mpll0",
......
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