mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-08 14:13:53 +00:00
clk: imx: Remove values for mmask and nmask in struct clk_fractional_divider
Now that fractional_divider clk computes mmask and nmask when needed, there is no more need to provide them explicitly anymore. Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr> Link: https://lore.kernel.org/r/187a2266c3a034a593a151d6e5e6b21118043b5d.1680423909.git.christophe.jaillet@wanadoo.fr Reviewed-by: Abel Vesa <abel.vesa@linaro.org> Signed-off-by: Stephen Boyd <sboyd@kernel.org>
This commit is contained in:
parent
141b3251c5
commit
c1e0e392d6
@ -19,10 +19,8 @@
|
|||||||
#define PCG_CGC_SHIFT 30
|
#define PCG_CGC_SHIFT 30
|
||||||
#define PCG_FRAC_SHIFT 3
|
#define PCG_FRAC_SHIFT 3
|
||||||
#define PCG_FRAC_WIDTH 1
|
#define PCG_FRAC_WIDTH 1
|
||||||
#define PCG_FRAC_MASK BIT(3)
|
|
||||||
#define PCG_PCD_SHIFT 0
|
#define PCG_PCD_SHIFT 0
|
||||||
#define PCG_PCD_WIDTH 3
|
#define PCG_PCD_WIDTH 3
|
||||||
#define PCG_PCD_MASK 0x7
|
|
||||||
|
|
||||||
#define SW_RST BIT(28)
|
#define SW_RST BIT(28)
|
||||||
|
|
||||||
@ -102,10 +100,8 @@ static struct clk_hw *imx_ulp_clk_hw_composite(const char *name,
|
|||||||
fd->reg = reg;
|
fd->reg = reg;
|
||||||
fd->mshift = PCG_FRAC_SHIFT;
|
fd->mshift = PCG_FRAC_SHIFT;
|
||||||
fd->mwidth = PCG_FRAC_WIDTH;
|
fd->mwidth = PCG_FRAC_WIDTH;
|
||||||
fd->mmask = PCG_FRAC_MASK;
|
|
||||||
fd->nshift = PCG_PCD_SHIFT;
|
fd->nshift = PCG_PCD_SHIFT;
|
||||||
fd->nwidth = PCG_PCD_WIDTH;
|
fd->nwidth = PCG_PCD_WIDTH;
|
||||||
fd->nmask = PCG_PCD_MASK;
|
|
||||||
fd->flags = CLK_FRAC_DIVIDER_ZERO_BASED;
|
fd->flags = CLK_FRAC_DIVIDER_ZERO_BASED;
|
||||||
if (has_swrst)
|
if (has_swrst)
|
||||||
fd->lock = &imx_ccm_lock;
|
fd->lock = &imx_ccm_lock;
|
||||||
|
Loading…
Reference in New Issue
Block a user