Lines Matching refs:hbclk

58 	struct hb_clk *hbclk = to_hb_clk(hwclk);  in clk_pll_prepare()  local
61 reg = readl(hbclk->reg); in clk_pll_prepare()
63 writel(reg, hbclk->reg); in clk_pll_prepare()
65 while ((readl(hbclk->reg) & HB_PLL_LOCK) == 0) in clk_pll_prepare()
67 while ((readl(hbclk->reg) & HB_PLL_LOCK_500) == 0) in clk_pll_prepare()
75 struct hb_clk *hbclk = to_hb_clk(hwclk); in clk_pll_unprepare() local
78 reg = readl(hbclk->reg); in clk_pll_unprepare()
80 writel(reg, hbclk->reg); in clk_pll_unprepare()
85 struct hb_clk *hbclk = to_hb_clk(hwclk); in clk_pll_enable() local
88 reg = readl(hbclk->reg); in clk_pll_enable()
90 writel(reg, hbclk->reg); in clk_pll_enable()
97 struct hb_clk *hbclk = to_hb_clk(hwclk); in clk_pll_disable() local
100 reg = readl(hbclk->reg); in clk_pll_disable()
102 writel(reg, hbclk->reg); in clk_pll_disable()
108 struct hb_clk *hbclk = to_hb_clk(hwclk); in clk_pll_recalc_rate() local
111 reg = readl(hbclk->reg); in clk_pll_recalc_rate()
160 struct hb_clk *hbclk = to_hb_clk(hwclk); in clk_pll_set_rate() local
166 reg = readl(hbclk->reg); in clk_pll_set_rate()
170 writel(reg | HB_PLL_EXT_BYPASS, hbclk->reg); in clk_pll_set_rate()
172 writel(reg | HB_PLL_RESET, hbclk->reg); in clk_pll_set_rate()
175 writel(reg | HB_PLL_RESET, hbclk->reg); in clk_pll_set_rate()
176 writel(reg, hbclk->reg); in clk_pll_set_rate()
178 while ((readl(hbclk->reg) & HB_PLL_LOCK) == 0) in clk_pll_set_rate()
180 while ((readl(hbclk->reg) & HB_PLL_LOCK_500) == 0) in clk_pll_set_rate()
185 writel(reg | HB_PLL_EXT_BYPASS, hbclk->reg); in clk_pll_set_rate()
188 writel(reg | HB_PLL_EXT_BYPASS, hbclk->reg); in clk_pll_set_rate()
190 writel(reg, hbclk->reg); in clk_pll_set_rate()
208 struct hb_clk *hbclk = to_hb_clk(hwclk); in clk_cpu_periphclk_recalc_rate() local
209 u32 div = (readl(hbclk->reg) & HB_A9_PCLK_DIV) ? 8 : 4; in clk_cpu_periphclk_recalc_rate()
220 struct hb_clk *hbclk = to_hb_clk(hwclk); in clk_cpu_a9bclk_recalc_rate() local
221 u32 div = (readl(hbclk->reg) & HB_A9_BCLK_DIV_MASK) >> HB_A9_BCLK_DIV_SHIFT; in clk_cpu_a9bclk_recalc_rate()
233 struct hb_clk *hbclk = to_hb_clk(hwclk); in clk_periclk_recalc_rate() local
236 div = readl(hbclk->reg) & 0x1f; in clk_periclk_recalc_rate()
258 struct hb_clk *hbclk = to_hb_clk(hwclk); in clk_periclk_set_rate() local
265 writel(div >> 1, hbclk->reg); in clk_periclk_set_rate()