diff options
author | Linus Walleij <linus.walleij@linaro.org> | 2016-03-10 03:29:25 +0100 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2016-03-10 03:29:25 +0100 |
commit | cc998d8bc74341f6bbbcd63ab4449a6acfc45ee9 (patch) | |
tree | 2f4e23fa1ceb83b3e720afd52d9a5ef2be26c77e /drivers/clk/versatile/clk-icst.c | |
parent | pinctrl: Broadcom Northstar2 pinctrl device tree bindings (diff) | |
parent | Linux 4.5-rc5 (diff) | |
download | linux-cc998d8bc74341f6bbbcd63ab4449a6acfc45ee9.tar.xz linux-cc998d8bc74341f6bbbcd63ab4449a6acfc45ee9.zip |
Merge tag 'v4.5-rc5' into devel
Linux 4.5-rc5
Diffstat (limited to 'drivers/clk/versatile/clk-icst.c')
-rw-r--r-- | drivers/clk/versatile/clk-icst.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/clk/versatile/clk-icst.c b/drivers/clk/versatile/clk-icst.c index e62f8cb2c9b5..3bca438ecd19 100644 --- a/drivers/clk/versatile/clk-icst.c +++ b/drivers/clk/versatile/clk-icst.c @@ -78,6 +78,9 @@ static int vco_set(struct clk_icst *icst, struct icst_vco vco) ret = regmap_read(icst->map, icst->vcoreg_off, &val); if (ret) return ret; + + /* Mask the 18 bits used by the VCO */ + val &= ~0x7ffff; val |= vco.v | (vco.r << 9) | (vco.s << 16); /* This magic unlocks the VCO so it can be controlled */ |