Lines Matching refs:hbclk

46 	struct hb_clk *hbclk = to_hb_clk(hwclk);  in clk_pll_prepare()  local
49 reg = readl(hbclk->reg); in clk_pll_prepare()
51 writel(reg, hbclk->reg); in clk_pll_prepare()
53 while ((readl(hbclk->reg) & HB_PLL_LOCK) == 0) in clk_pll_prepare()
55 while ((readl(hbclk->reg) & HB_PLL_LOCK_500) == 0) in clk_pll_prepare()
63 struct hb_clk *hbclk = to_hb_clk(hwclk); in clk_pll_unprepare() local
66 reg = readl(hbclk->reg); in clk_pll_unprepare()
68 writel(reg, hbclk->reg); in clk_pll_unprepare()
73 struct hb_clk *hbclk = to_hb_clk(hwclk); in clk_pll_enable() local
76 reg = readl(hbclk->reg); in clk_pll_enable()
78 writel(reg, hbclk->reg); in clk_pll_enable()
85 struct hb_clk *hbclk = to_hb_clk(hwclk); in clk_pll_disable() local
88 reg = readl(hbclk->reg); in clk_pll_disable()
90 writel(reg, hbclk->reg); in clk_pll_disable()
96 struct hb_clk *hbclk = to_hb_clk(hwclk); in clk_pll_recalc_rate() local
99 reg = readl(hbclk->reg); in clk_pll_recalc_rate()
148 struct hb_clk *hbclk = to_hb_clk(hwclk); in clk_pll_set_rate() local
154 reg = readl(hbclk->reg); in clk_pll_set_rate()
158 writel(reg | HB_PLL_EXT_BYPASS, hbclk->reg); in clk_pll_set_rate()
160 writel(reg | HB_PLL_RESET, hbclk->reg); in clk_pll_set_rate()
163 writel(reg | HB_PLL_RESET, hbclk->reg); in clk_pll_set_rate()
164 writel(reg, hbclk->reg); in clk_pll_set_rate()
166 while ((readl(hbclk->reg) & HB_PLL_LOCK) == 0) in clk_pll_set_rate()
168 while ((readl(hbclk->reg) & HB_PLL_LOCK_500) == 0) in clk_pll_set_rate()
173 writel(reg | HB_PLL_EXT_BYPASS, hbclk->reg); in clk_pll_set_rate()
176 writel(reg | HB_PLL_EXT_BYPASS, hbclk->reg); in clk_pll_set_rate()
178 writel(reg, hbclk->reg); in clk_pll_set_rate()
196 struct hb_clk *hbclk = to_hb_clk(hwclk); in clk_cpu_periphclk_recalc_rate() local
197 u32 div = (readl(hbclk->reg) & HB_A9_PCLK_DIV) ? 8 : 4; in clk_cpu_periphclk_recalc_rate()
208 struct hb_clk *hbclk = to_hb_clk(hwclk); in clk_cpu_a9bclk_recalc_rate() local
209 u32 div = (readl(hbclk->reg) & HB_A9_BCLK_DIV_MASK) >> HB_A9_BCLK_DIV_SHIFT; in clk_cpu_a9bclk_recalc_rate()
221 struct hb_clk *hbclk = to_hb_clk(hwclk); in clk_periclk_recalc_rate() local
224 div = readl(hbclk->reg) & 0x1f; in clk_periclk_recalc_rate()
246 struct hb_clk *hbclk = to_hb_clk(hwclk); in clk_periclk_set_rate() local
253 writel(div >> 1, hbclk->reg); in clk_periclk_set_rate()