Lines Matching refs:zclk
59 struct cpg_z_clk *zclk = to_z_clk(hw); in cpg_z_clk_recalc_rate() local
63 val = (readl(zclk->reg) & CPG_FRQCRC_ZFC_MASK) >> CPG_FRQCRC_ZFC_SHIFT; in cpg_z_clk_recalc_rate()
87 struct cpg_z_clk *zclk = to_z_clk(hw); in cpg_z_clk_set_rate() local
95 if (readl(zclk->kick_reg) & CPG_FRQCRB_KICK) in cpg_z_clk_set_rate()
98 val = readl(zclk->reg); in cpg_z_clk_set_rate()
101 writel(val, zclk->reg); in cpg_z_clk_set_rate()
107 kick = readl(zclk->kick_reg); in cpg_z_clk_set_rate()
109 writel(kick, zclk->kick_reg); in cpg_z_clk_set_rate()
121 if (!(readl(zclk->kick_reg) & CPG_FRQCRB_KICK)) in cpg_z_clk_set_rate()
141 struct cpg_z_clk *zclk; in cpg_z_clk_register() local
144 zclk = kzalloc(sizeof(*zclk), GFP_KERNEL); in cpg_z_clk_register()
145 if (!zclk) in cpg_z_clk_register()
154 zclk->reg = base + CPG_FRQCRC; in cpg_z_clk_register()
155 zclk->kick_reg = base + CPG_FRQCRB; in cpg_z_clk_register()
156 zclk->hw.init = &init; in cpg_z_clk_register()
158 clk = clk_register(NULL, &zclk->hw); in cpg_z_clk_register()
160 kfree(zclk); in cpg_z_clk_register()